diff --git build.xml build.xml index f20cbb6..ec6203f 100644 --- build.xml +++ build.xml @@ -389,8 +389,8 @@ - - + + diff --git cli/ivy.xml cli/ivy.xml index abe7232..23f7505 100644 --- cli/ivy.xml +++ cli/ivy.xml @@ -29,5 +29,7 @@ + diff --git eclipse-templates/.classpath eclipse-templates/.classpath index 74e5542..fca8e2d 100644 --- eclipse-templates/.classpath +++ eclipse-templates/.classpath @@ -17,8 +17,8 @@ - - + + diff --git ivy/libraries.properties ivy/libraries.properties index 4236df1..adde3cb 100644 --- ivy/libraries.properties +++ ivy/libraries.properties @@ -37,17 +37,17 @@ commons-logging-api.version=1.0.4 commons-pool.version=1.5.4 hbase.version=0.89.0-SNAPSHOT hbase-test.version=0.89.0-SNAPSHOT +ivy.version=2.1.0 jdo-api.version=2.3-ec jdom.version=1.1 jline.version=0.9.94 junit.version=3.8.1 -ivy.version=2.1.0 +libfb303.version=0.7.0 +libthrift.version=0.7.0 log4j.version=1.2.15 maven-ant-tasks.version=2.1.0 mockito-all.version=1.8.2 slf4j-api.version=1.6.1 slf4j-log4j12.version=1.6.1 -thrift.version=0.5.0 -thrift-fb303.version=0.5.0 zookeeper.version=3.3.1 guava.version=r06 diff --git jdbc/ivy.xml jdbc/ivy.xml index ec26e74..f5ca840 100644 --- jdbc/ivy.xml +++ jdbc/ivy.xml @@ -23,4 +23,8 @@ http://wiki.apache.org/hadoop/Hive + + + diff --git lib/README lib/README index 6cc2fba..6e993ee 100644 --- lib/README +++ lib/README @@ -1,8 +1,6 @@ Folowing is the list of external jars contained in this directory and the sources from where they were obtained: --------------------------------------------------------------------------------------------------------------- -* thrift-0.5.0.jar - http://thrift.apache.org/ -* thrift-fb303-0.5.0.jar - http://thrift.apache.org/ * jpox-core-1.2.2.jar - http://www.jpox.org/docs/download.html * derby.jar - http://db.apache.org/derby/derby_downloads.html * asm-3.1.jar - http://forge.objectweb.org/projects/asm/ diff --git lib/thrift-0.5.0.jar lib/thrift-0.5.0.jar deleted file mode 100644 index f38617b..0000000 Binary files lib/thrift-0.5.0.jar and /dev/null differ diff --git lib/thrift-fb303-0.5.0.jar lib/thrift-fb303-0.5.0.jar deleted file mode 100644 index bad90ce..0000000 Binary files lib/thrift-fb303-0.5.0.jar and /dev/null differ diff --git lib/thrift-fb303.LICENSE lib/thrift-fb303.LICENSE deleted file mode 100644 index 4eacb64..0000000 --- lib/thrift-fb303.LICENSE +++ /dev/null @@ -1,16 +0,0 @@ -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. diff --git lib/thrift.LICENSE lib/thrift.LICENSE deleted file mode 100644 index 9d189ef..0000000 --- lib/thrift.LICENSE +++ /dev/null @@ -1,324 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --------------------------------------------------- -SOFTWARE DISTRIBUTED WITH THRIFT: - -The Apache Thrift software includes a number of subcomponents with -separate copyright notices and license terms. Your use of the source -code for the these subcomponents is subject to the terms and -conditions of the following licenses. - --------------------------------------------------- -Portions of the following files are licensed under the MIT License: - - lib/erl/src/Makefile.am - -Please see doc/otp-base-license.txt for the full terms of this license. - - --------------------------------------------------- -The following files contain some portions of code contributed under -the Thrift Software License (see doc/old-thrift-license.txt), and relicensed -under the Apache 2.0 License: - - compiler/cpp/Makefile.am - compiler/cpp/src/generate/t_cocoa_generator.cc - compiler/cpp/src/generate/t_cpp_generator.cc - compiler/cpp/src/generate/t_csharp_generator.cc - compiler/cpp/src/generate/t_erl_generator.cc - compiler/cpp/src/generate/t_hs_generator.cc - compiler/cpp/src/generate/t_java_generator.cc - compiler/cpp/src/generate/t_ocaml_generator.cc - compiler/cpp/src/generate/t_perl_generator.cc - compiler/cpp/src/generate/t_php_generator.cc - compiler/cpp/src/generate/t_py_generator.cc - compiler/cpp/src/generate/t_rb_generator.cc - compiler/cpp/src/generate/t_st_generator.cc - compiler/cpp/src/generate/t_xsd_generator.cc - compiler/cpp/src/main.cc - compiler/cpp/src/parse/t_field.h - compiler/cpp/src/parse/t_program.h - compiler/cpp/src/platform.h - compiler/cpp/src/thriftl.ll - compiler/cpp/src/thrifty.yy - lib/csharp/src/Protocol/TBinaryProtocol.cs - lib/csharp/src/Protocol/TField.cs - lib/csharp/src/Protocol/TList.cs - lib/csharp/src/Protocol/TMap.cs - lib/csharp/src/Protocol/TMessage.cs - lib/csharp/src/Protocol/TMessageType.cs - lib/csharp/src/Protocol/TProtocol.cs - lib/csharp/src/Protocol/TProtocolException.cs - lib/csharp/src/Protocol/TProtocolFactory.cs - lib/csharp/src/Protocol/TProtocolUtil.cs - lib/csharp/src/Protocol/TSet.cs - lib/csharp/src/Protocol/TStruct.cs - lib/csharp/src/Protocol/TType.cs - lib/csharp/src/Server/TServer.cs - lib/csharp/src/Server/TSimpleServer.cs - lib/csharp/src/Server/TThreadPoolServer.cs - lib/csharp/src/TApplicationException.cs - lib/csharp/src/Thrift.csproj - lib/csharp/src/Thrift.sln - lib/csharp/src/TProcessor.cs - lib/csharp/src/Transport/TServerSocket.cs - lib/csharp/src/Transport/TServerTransport.cs - lib/csharp/src/Transport/TSocket.cs - lib/csharp/src/Transport/TStreamTransport.cs - lib/csharp/src/Transport/TTransport.cs - lib/csharp/src/Transport/TTransportException.cs - lib/csharp/src/Transport/TTransportFactory.cs - lib/csharp/ThriftMSBuildTask/Properties/AssemblyInfo.cs - lib/csharp/ThriftMSBuildTask/ThriftBuild.cs - lib/csharp/ThriftMSBuildTask/ThriftMSBuildTask.csproj - lib/rb/lib/thrift.rb - lib/st/README - lib/st/thrift.st - test/OptionalRequiredTest.cpp - test/OptionalRequiredTest.thrift - test/ThriftTest.thrift - --------------------------------------------------- -For the aclocal/ax_boost_base.m4 and contrib/fb303/aclocal/ax_boost_base.m4 components: - -# Copyright (c) 2007 Thomas Porschberg -# -# Copying and distribution of this file, with or without -# modification, are permitted in any medium without royalty provided -# the copyright notice and this notice are preserved. - --------------------------------------------------- -For the compiler/cpp/src/md5.[ch] components: - -/* - Copyright (C) 1999, 2000, 2002 Aladdin Enterprises. All rights reserved. - - This software is provided 'as-is', without any express or implied - warranty. In no event will the authors be held liable for any damages - arising from the use of this software. - - Permission is granted to anyone to use this software for any purpose, - including commercial applications, and to alter it and redistribute it - freely, subject to the following restrictions: - - 1. The origin of this software must not be misrepresented; you must not - claim that you wrote the original software. If you use this software - in a product, an acknowledgment in the product documentation would be - appreciated but is not required. - 2. Altered source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - 3. This notice may not be removed or altered from any source distribution. - - L. Peter Deutsch - ghost@aladdin.com - - */ - ---------------------------------------------------- -For the lib/rb/setup.rb: Copyright (c) 2000-2005 Minero Aoki, -lib/ocaml/OCamlMakefile and lib/ocaml/README-OCamlMakefile components: - Copyright (C) 1999 - 2007 Markus Mottl - -Licensed under the terms of the GNU Lesser General Public License 2.1 -(see doc/lgpl-2.1.txt for the full terms of this license) diff --git metastore/ivy.xml metastore/ivy.xml index 7647b37..2e5331d 100644 --- metastore/ivy.xml +++ metastore/ivy.xml @@ -72,5 +72,9 @@ + + diff --git metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index df1980d..c92a2ab 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -760,7 +760,7 @@ uint32_t ThriftHiveMetastore_get_databases_result::write(::apache::thrift::proto if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); std::vector ::const_iterator _iter160; for (_iter160 = this->success.begin(); _iter160 != this->success.end(); ++_iter160) { @@ -956,7 +956,7 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::write(::apache::thrift::p if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); std::vector ::const_iterator _iter171; for (_iter171 = this->success.begin(); _iter171 != this->success.end(); ++_iter171) { @@ -1975,7 +1975,7 @@ uint32_t ThriftHiveMetastore_get_type_all_result::write(::apache::thrift::protoc if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, this->success.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); std::map ::const_iterator _iter184; for (_iter184 = this->success.begin(); _iter184 != this->success.end(); ++_iter184) { @@ -2219,7 +2219,7 @@ uint32_t ThriftHiveMetastore_get_fields_result::write(::apache::thrift::protocol if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); std::vector ::const_iterator _iter197; for (_iter197 = this->success.begin(); _iter197 != this->success.end(); ++_iter197) { @@ -2483,7 +2483,7 @@ uint32_t ThriftHiveMetastore_get_schema_result::write(::apache::thrift::protocol if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); std::vector ::const_iterator _iter208; for (_iter208 = this->success.begin(); _iter208 != this->success.end(); ++_iter208) { @@ -3155,7 +3155,7 @@ uint32_t ThriftHiveMetastore_get_tables_result::write(::apache::thrift::protocol if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); std::vector ::const_iterator _iter219; for (_iter219 = this->success.begin(); _iter219 != this->success.end(); ++_iter219) { @@ -3365,7 +3365,7 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::write(::apache::thrift::prot if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); std::vector ::const_iterator _iter230; for (_iter230 = this->success.begin(); _iter230 != this->success.end(); ++_iter230) { @@ -3724,7 +3724,7 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::write(::apache::thr xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->tbl_names.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tbl_names.size())); std::vector ::const_iterator _iter241; for (_iter241 = this->tbl_names.begin(); _iter241 != this->tbl_names.end(); ++_iter241) { @@ -3746,7 +3746,7 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_pargs::write(::apache::th xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->tbl_names)).size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->tbl_names)).size())); std::vector ::const_iterator _iter242; for (_iter242 = (*(this->tbl_names)).begin(); _iter242 != (*(this->tbl_names)).end(); ++_iter242) { @@ -3845,7 +3845,7 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::write(::apache::t if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); std::vector ::const_iterator _iter248; for (_iter248 = this->success.begin(); _iter248 != this->success.end(); ++_iter248) { @@ -4123,7 +4123,7 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::write(::apache::t if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); std::vector ::const_iterator _iter259; for (_iter259 = this->success.begin(); _iter259 != this->success.end(); ++_iter259) { @@ -4707,7 +4707,7 @@ uint32_t ThriftHiveMetastore_add_partitions_args::write(::apache::thrift::protoc xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partitions_args"); xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->new_parts.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); std::vector ::const_iterator _iter270; for (_iter270 = this->new_parts.begin(); _iter270 != this->new_parts.end(); ++_iter270) { @@ -4726,7 +4726,7 @@ uint32_t ThriftHiveMetastore_add_partitions_pargs::write(::apache::thrift::proto xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partitions_pargs"); xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, (*(this->new_parts)).size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); std::vector ::const_iterator _iter271; for (_iter271 = (*(this->new_parts)).begin(); _iter271 != (*(this->new_parts)).end(); ++_iter271) { @@ -4975,7 +4975,7 @@ uint32_t ThriftHiveMetastore_append_partition_args::write(::apache::thrift::prot xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->part_vals.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); std::vector ::const_iterator _iter277; for (_iter277 = this->part_vals.begin(); _iter277 != this->part_vals.end(); ++_iter277) { @@ -5000,7 +5000,7 @@ uint32_t ThriftHiveMetastore_append_partition_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->part_vals)).size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); std::vector ::const_iterator _iter278; for (_iter278 = (*(this->part_vals)).begin(); _iter278 != (*(this->part_vals)).end(); ++_iter278) { @@ -5503,7 +5503,7 @@ uint32_t ThriftHiveMetastore_drop_partition_args::write(::apache::thrift::protoc xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->part_vals.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); std::vector ::const_iterator _iter284; for (_iter284 = this->part_vals.begin(); _iter284 != this->part_vals.end(); ++_iter284) { @@ -5531,7 +5531,7 @@ uint32_t ThriftHiveMetastore_drop_partition_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->part_vals)).size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); std::vector ::const_iterator _iter285; for (_iter285 = (*(this->part_vals)).begin(); _iter285 != (*(this->part_vals)).end(); ++_iter285) { @@ -6003,7 +6003,7 @@ uint32_t ThriftHiveMetastore_get_partition_args::write(::apache::thrift::protoco xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->part_vals.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); std::vector ::const_iterator _iter291; for (_iter291 = this->part_vals.begin(); _iter291 != this->part_vals.end(); ++_iter291) { @@ -6028,7 +6028,7 @@ uint32_t ThriftHiveMetastore_get_partition_pargs::write(::apache::thrift::protoc xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->part_vals)).size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); std::vector ::const_iterator _iter292; for (_iter292 = (*(this->part_vals)).begin(); _iter292 != (*(this->part_vals)).end(); ++_iter292) { @@ -6285,7 +6285,7 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->part_vals.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); std::vector ::const_iterator _iter303; for (_iter303 = this->part_vals.begin(); _iter303 != this->part_vals.end(); ++_iter303) { @@ -6299,7 +6299,7 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->group_names.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); std::vector ::const_iterator _iter304; for (_iter304 = this->group_names.begin(); _iter304 != this->group_names.end(); ++_iter304) { @@ -6324,7 +6324,7 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->part_vals)).size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); std::vector ::const_iterator _iter305; for (_iter305 = (*(this->part_vals)).begin(); _iter305 != (*(this->part_vals)).end(); ++_iter305) { @@ -6338,7 +6338,7 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->group_names)).size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); std::vector ::const_iterator _iter306; for (_iter306 = (*(this->group_names)).begin(); _iter306 != (*(this->group_names)).end(); ++_iter306) { @@ -6881,7 +6881,7 @@ uint32_t ThriftHiveMetastore_get_partitions_result::write(::apache::thrift::prot if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); std::vector ::const_iterator _iter312; for (_iter312 = this->success.begin(); _iter312 != this->success.end(); ++_iter312) { @@ -7073,7 +7073,7 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::write(::apache::thri xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->group_names.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); std::vector ::const_iterator _iter323; for (_iter323 = this->group_names.begin(); _iter323 != this->group_names.end(); ++_iter323) { @@ -7104,7 +7104,7 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_pargs::write(::apache::thr xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->group_names)).size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); std::vector ::const_iterator _iter324; for (_iter324 = (*(this->group_names)).begin(); _iter324 != (*(this->group_names)).end(); ++_iter324) { @@ -7195,7 +7195,7 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::write(::apache::th if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); std::vector ::const_iterator _iter330; for (_iter330 = this->success.begin(); _iter330 != this->success.end(); ++_iter330) { @@ -7445,7 +7445,7 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::write(::apache::thrift: if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); std::vector ::const_iterator _iter341; for (_iter341 = this->success.begin(); _iter341 != this->success.end(); ++_iter341) { @@ -7611,7 +7611,7 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_args::write(::apache::thrift::pro xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->part_vals.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); std::vector ::const_iterator _iter352; for (_iter352 = this->part_vals.begin(); _iter352 != this->part_vals.end(); ++_iter352) { @@ -7639,7 +7639,7 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_pargs::write(::apache::thrift::pr xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->part_vals)).size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); std::vector ::const_iterator _iter353; for (_iter353 = (*(this->part_vals)).begin(); _iter353 != (*(this->part_vals)).end(); ++_iter353) { @@ -7725,7 +7725,7 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::write(::apache::thrift::p if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); std::vector ::const_iterator _iter359; for (_iter359 = this->success.begin(); _iter359 != this->success.end(); ++_iter359) { @@ -7919,7 +7919,7 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::write(::apache::t xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->part_vals.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); std::vector ::const_iterator _iter375; for (_iter375 = this->part_vals.begin(); _iter375 != this->part_vals.end(); ++_iter375) { @@ -7936,7 +7936,7 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::write(::apache::t xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->group_names.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); std::vector ::const_iterator _iter376; for (_iter376 = this->group_names.begin(); _iter376 != this->group_names.end(); ++_iter376) { @@ -7961,7 +7961,7 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::write(::apache:: xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->part_vals)).size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); std::vector ::const_iterator _iter377; for (_iter377 = (*(this->part_vals)).begin(); _iter377 != (*(this->part_vals)).end(); ++_iter377) { @@ -7978,7 +7978,7 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::write(::apache:: xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->group_names)).size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); std::vector ::const_iterator _iter378; for (_iter378 = (*(this->group_names)).begin(); _iter378 != (*(this->group_names)).end(); ++_iter378) { @@ -8069,7 +8069,7 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::write(::apache: if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); std::vector ::const_iterator _iter384; for (_iter384 = this->success.begin(); _iter384 != this->success.end(); ++_iter384) { @@ -8247,7 +8247,7 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_args::write(::apache::thrift xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->part_vals.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); std::vector ::const_iterator _iter395; for (_iter395 = this->part_vals.begin(); _iter395 != this->part_vals.end(); ++_iter395) { @@ -8275,7 +8275,7 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_pargs::write(::apache::thrif xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->part_vals)).size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); std::vector ::const_iterator _iter396; for (_iter396 = (*(this->part_vals)).begin(); _iter396 != (*(this->part_vals)).end(); ++_iter396) { @@ -8361,7 +8361,7 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::write(::apache::thri if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); std::vector ::const_iterator _iter402; for (_iter402 = this->success.begin(); _iter402 != this->success.end(); ++_iter402) { @@ -8621,7 +8621,7 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::write(::apache::th if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); std::vector ::const_iterator _iter413; for (_iter413 = this->success.begin(); _iter413 != this->success.end(); ++_iter413) { @@ -8791,7 +8791,7 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::write(::apache::thrif xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 3); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->names.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->names.size())); std::vector ::const_iterator _iter424; for (_iter424 = this->names.begin(); _iter424 != this->names.end(); ++_iter424) { @@ -8816,7 +8816,7 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_pargs::write(::apache::thri xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 3); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->names)).size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->names)).size())); std::vector ::const_iterator _iter425; for (_iter425 = (*(this->names)).begin(); _iter425 != (*(this->names)).end(); ++_iter425) { @@ -8907,7 +8907,7 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::write(::apache::thr if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); std::vector ::const_iterator _iter431; for (_iter431 = this->success.begin(); _iter431 != this->success.end(); ++_iter431) { @@ -9527,7 +9527,7 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::write(::apache::thri if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); std::vector ::const_iterator _iter442; for (_iter442 = this->success.begin(); _iter442 != this->success.end(); ++_iter442) { @@ -9740,7 +9740,7 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::write(::apache::thri if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->success.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); std::map ::const_iterator _iter455; for (_iter455 = this->success.begin(); _iter455 != this->success.end(); ++_iter455) { @@ -9915,7 +9915,7 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::write(::apache::thrift: xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->part_vals.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); std::map ::const_iterator _iter471; for (_iter471 = this->part_vals.begin(); _iter471 != this->part_vals.end(); ++_iter471) { @@ -9944,7 +9944,7 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_pargs::write(::apache::thrift xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, (*(this->part_vals)).size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); std::map ::const_iterator _iter472; for (_iter472 = (*(this->part_vals)).begin(); _iter472 != (*(this->part_vals)).end(); ++_iter472) { @@ -10250,7 +10250,7 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::write(::apache::thr xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->part_vals.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); std::map ::const_iterator _iter481; for (_iter481 = this->part_vals.begin(); _iter481 != this->part_vals.end(); ++_iter481) { @@ -10279,7 +10279,7 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_pargs::write(::apache::th xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, (*(this->part_vals)).size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); std::map ::const_iterator _iter482; for (_iter482 = (*(this->part_vals)).begin(); _iter482 != (*(this->part_vals)).end(); ++_iter482) { @@ -11598,7 +11598,7 @@ uint32_t ThriftHiveMetastore_get_indexes_result::write(::apache::thrift::protoco if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); std::vector ::const_iterator _iter488; for (_iter488 = this->success.begin(); _iter488 != this->success.end(); ++_iter488) { @@ -11848,7 +11848,7 @@ uint32_t ThriftHiveMetastore_get_index_names_result::write(::apache::thrift::pro if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); std::vector ::const_iterator _iter499; for (_iter499 = this->success.begin(); _iter499 != this->success.end(); ++_iter499) { @@ -12400,7 +12400,7 @@ uint32_t ThriftHiveMetastore_get_role_names_result::write(::apache::thrift::prot if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); std::vector ::const_iterator _iter510; for (_iter510 = this->success.begin(); _iter510 != this->success.end(); ++_iter510) { @@ -13086,7 +13086,7 @@ uint32_t ThriftHiveMetastore_list_roles_result::write(::apache::thrift::protocol if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); std::vector ::const_iterator _iter525; for (_iter525 = this->success.begin(); _iter525 != this->success.end(); ++_iter525) { @@ -13244,7 +13244,7 @@ uint32_t ThriftHiveMetastore_get_privilege_set_args::write(::apache::thrift::pro xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->group_names.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); std::vector ::const_iterator _iter536; for (_iter536 = this->group_names.begin(); _iter536 != this->group_names.end(); ++_iter536) { @@ -13269,7 +13269,7 @@ uint32_t ThriftHiveMetastore_get_privilege_set_pargs::write(::apache::thrift::pr xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->group_names)).size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); std::vector ::const_iterator _iter537; for (_iter537 = (*(this->group_names)).begin(); _iter537 != (*(this->group_names)).end(); ++_iter537) { @@ -13560,7 +13560,7 @@ uint32_t ThriftHiveMetastore_list_privileges_result::write(::apache::thrift::pro if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); std::vector ::const_iterator _iter544; for (_iter544 = this->success.begin(); _iter544 != this->success.end(); ++_iter544) { @@ -14539,8 +14539,8 @@ void ThriftHiveMetastoreClient::send_create_database(const Database& database) args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_create_database() @@ -14562,13 +14562,11 @@ void ThriftHiveMetastoreClient::recv_create_database() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("create_database") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_create_database_presult result; result.read(iprot_); @@ -14603,8 +14601,8 @@ void ThriftHiveMetastoreClient::send_get_database(const std::string& name) args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_database(Database& _return) @@ -14626,13 +14624,11 @@ void ThriftHiveMetastoreClient::recv_get_database(Database& _return) iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_database") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_database_presult result; result.success = &_return; @@ -14671,8 +14667,8 @@ void ThriftHiveMetastoreClient::send_drop_database(const std::string& name, cons args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_drop_database() @@ -14694,13 +14690,11 @@ void ThriftHiveMetastoreClient::recv_drop_database() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("drop_database") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_drop_database_presult result; result.read(iprot_); @@ -14735,8 +14729,8 @@ void ThriftHiveMetastoreClient::send_get_databases(const std::string& pattern) args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_databases(std::vector & _return) @@ -14758,13 +14752,11 @@ void ThriftHiveMetastoreClient::recv_get_databases(std::vector & _r iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_databases") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_databases_presult result; result.success = &_return; @@ -14797,8 +14789,8 @@ void ThriftHiveMetastoreClient::send_get_all_databases() args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_all_databases(std::vector & _return) @@ -14820,13 +14812,11 @@ void ThriftHiveMetastoreClient::recv_get_all_databases(std::vector iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_all_databases") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_all_databases_presult result; result.success = &_return; @@ -14861,8 +14851,8 @@ void ThriftHiveMetastoreClient::send_alter_database(const std::string& dbname, c args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_alter_database() @@ -14884,13 +14874,11 @@ void ThriftHiveMetastoreClient::recv_alter_database() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("alter_database") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_alter_database_presult result; result.read(iprot_); @@ -14922,8 +14910,8 @@ void ThriftHiveMetastoreClient::send_get_type(const std::string& name) args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_type(Type& _return) @@ -14945,13 +14933,11 @@ void ThriftHiveMetastoreClient::recv_get_type(Type& _return) iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_type") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_type_presult result; result.success = &_return; @@ -14988,8 +14974,8 @@ void ThriftHiveMetastoreClient::send_create_type(const Type& type) args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } bool ThriftHiveMetastoreClient::recv_create_type() @@ -15011,13 +14997,11 @@ bool ThriftHiveMetastoreClient::recv_create_type() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("create_type") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } bool _return; ThriftHiveMetastore_create_type_presult result; @@ -15057,8 +15041,8 @@ void ThriftHiveMetastoreClient::send_drop_type(const std::string& type) args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } bool ThriftHiveMetastoreClient::recv_drop_type() @@ -15080,13 +15064,11 @@ bool ThriftHiveMetastoreClient::recv_drop_type() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("drop_type") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } bool _return; ThriftHiveMetastore_drop_type_presult result; @@ -15123,8 +15105,8 @@ void ThriftHiveMetastoreClient::send_get_type_all(const std::string& name) args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_type_all(std::map & _return) @@ -15146,13 +15128,11 @@ void ThriftHiveMetastoreClient::recv_get_type_all(std::map & iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_type_all") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_type_all_presult result; result.success = &_return; @@ -15187,8 +15167,8 @@ void ThriftHiveMetastoreClient::send_get_fields(const std::string& db_name, cons args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_fields(std::vector & _return) @@ -15210,13 +15190,11 @@ void ThriftHiveMetastoreClient::recv_get_fields(std::vector & _retu iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_fields") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_fields_presult result; result.success = &_return; @@ -15257,8 +15235,8 @@ void ThriftHiveMetastoreClient::send_get_schema(const std::string& db_name, cons args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_schema(std::vector & _return) @@ -15280,13 +15258,11 @@ void ThriftHiveMetastoreClient::recv_get_schema(std::vector & _retu iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_schema") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_schema_presult result; result.success = &_return; @@ -15326,8 +15302,8 @@ void ThriftHiveMetastoreClient::send_create_table(const Table& tbl) args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_create_table() @@ -15349,13 +15325,11 @@ void ThriftHiveMetastoreClient::recv_create_table() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("create_table") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_create_table_presult result; result.read(iprot_); @@ -15395,8 +15369,8 @@ void ThriftHiveMetastoreClient::send_drop_table(const std::string& dbname, const args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_drop_table() @@ -15418,13 +15392,11 @@ void ThriftHiveMetastoreClient::recv_drop_table() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("drop_table") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_drop_table_presult result; result.read(iprot_); @@ -15457,8 +15429,8 @@ void ThriftHiveMetastoreClient::send_get_tables(const std::string& db_name, cons args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_tables(std::vector & _return) @@ -15480,13 +15452,11 @@ void ThriftHiveMetastoreClient::recv_get_tables(std::vector & _retu iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_tables") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_tables_presult result; result.success = &_return; @@ -15520,8 +15490,8 @@ void ThriftHiveMetastoreClient::send_get_all_tables(const std::string& db_name) args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_all_tables(std::vector & _return) @@ -15543,13 +15513,11 @@ void ThriftHiveMetastoreClient::recv_get_all_tables(std::vector & _ iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_all_tables") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_all_tables_presult result; result.success = &_return; @@ -15584,8 +15552,8 @@ void ThriftHiveMetastoreClient::send_get_table(const std::string& dbname, const args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_table(Table& _return) @@ -15607,13 +15575,11 @@ void ThriftHiveMetastoreClient::recv_get_table(Table& _return) iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_table") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_table_presult result; result.success = &_return; @@ -15651,8 +15617,8 @@ void ThriftHiveMetastoreClient::send_get_table_objects_by_name(const std::string args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_table_objects_by_name(std::vector
& _return) @@ -15674,13 +15640,11 @@ void ThriftHiveMetastoreClient::recv_get_table_objects_by_name(std::vector
skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_table_objects_by_name") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_table_objects_by_name_presult result; result.success = &_return; @@ -15722,8 +15686,8 @@ void ThriftHiveMetastoreClient::send_get_table_names_by_filter(const std::string args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_table_names_by_filter(std::vector & _return) @@ -15745,13 +15709,11 @@ void ThriftHiveMetastoreClient::recv_get_table_names_by_filter(std::vectorskip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_table_names_by_filter") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_table_names_by_filter_presult result; result.success = &_return; @@ -15793,8 +15755,8 @@ void ThriftHiveMetastoreClient::send_alter_table(const std::string& dbname, cons args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_alter_table() @@ -15816,13 +15778,11 @@ void ThriftHiveMetastoreClient::recv_alter_table() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("alter_table") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_alter_table_presult result; result.read(iprot_); @@ -15854,8 +15814,8 @@ void ThriftHiveMetastoreClient::send_add_partition(const Partition& new_part) args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_add_partition(Partition& _return) @@ -15877,13 +15837,11 @@ void ThriftHiveMetastoreClient::recv_add_partition(Partition& _return) iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("add_partition") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_add_partition_presult result; result.success = &_return; @@ -15923,8 +15881,8 @@ void ThriftHiveMetastoreClient::send_add_partitions(const std::vector args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } int32_t ThriftHiveMetastoreClient::recv_add_partitions() @@ -15946,13 +15904,11 @@ int32_t ThriftHiveMetastoreClient::recv_add_partitions() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("add_partitions") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } int32_t _return; ThriftHiveMetastore_add_partitions_presult result; @@ -15994,8 +15950,8 @@ void ThriftHiveMetastoreClient::send_append_partition(const std::string& db_name args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_append_partition(Partition& _return) @@ -16017,13 +15973,11 @@ void ThriftHiveMetastoreClient::recv_append_partition(Partition& _return) iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("append_partition") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_append_partition_presult result; result.success = &_return; @@ -16065,8 +16019,8 @@ void ThriftHiveMetastoreClient::send_append_partition_by_name(const std::string& args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_append_partition_by_name(Partition& _return) @@ -16088,13 +16042,11 @@ void ThriftHiveMetastoreClient::recv_append_partition_by_name(Partition& _return iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("append_partition_by_name") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_append_partition_by_name_presult result; result.success = &_return; @@ -16137,8 +16089,8 @@ void ThriftHiveMetastoreClient::send_drop_partition(const std::string& db_name, args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } bool ThriftHiveMetastoreClient::recv_drop_partition() @@ -16160,13 +16112,11 @@ bool ThriftHiveMetastoreClient::recv_drop_partition() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("drop_partition") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } bool _return; ThriftHiveMetastore_drop_partition_presult result; @@ -16206,8 +16156,8 @@ void ThriftHiveMetastoreClient::send_drop_partition_by_name(const std::string& d args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } bool ThriftHiveMetastoreClient::recv_drop_partition_by_name() @@ -16229,13 +16179,11 @@ bool ThriftHiveMetastoreClient::recv_drop_partition_by_name() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("drop_partition_by_name") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } bool _return; ThriftHiveMetastore_drop_partition_by_name_presult result; @@ -16274,8 +16222,8 @@ void ThriftHiveMetastoreClient::send_get_partition(const std::string& db_name, c args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_partition(Partition& _return) @@ -16297,13 +16245,11 @@ void ThriftHiveMetastoreClient::recv_get_partition(Partition& _return) iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_partition") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_partition_presult result; result.success = &_return; @@ -16344,8 +16290,8 @@ void ThriftHiveMetastoreClient::send_get_partition_with_auth(const std::string& args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_partition_with_auth(Partition& _return) @@ -16367,13 +16313,11 @@ void ThriftHiveMetastoreClient::recv_get_partition_with_auth(Partition& _return) iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_partition_with_auth") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_partition_with_auth_presult result; result.success = &_return; @@ -16412,8 +16356,8 @@ void ThriftHiveMetastoreClient::send_get_partition_by_name(const std::string& db args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_partition_by_name(Partition& _return) @@ -16435,13 +16379,11 @@ void ThriftHiveMetastoreClient::recv_get_partition_by_name(Partition& _return) iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_partition_by_name") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_partition_by_name_presult result; result.success = &_return; @@ -16480,8 +16422,8 @@ void ThriftHiveMetastoreClient::send_get_partitions(const std::string& db_name, args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_partitions(std::vector & _return) @@ -16503,13 +16445,11 @@ void ThriftHiveMetastoreClient::recv_get_partitions(std::vector & _re iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_partitions") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_partitions_presult result; result.success = &_return; @@ -16550,8 +16490,8 @@ void ThriftHiveMetastoreClient::send_get_partitions_with_auth(const std::string& args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_partitions_with_auth(std::vector & _return) @@ -16573,13 +16513,11 @@ void ThriftHiveMetastoreClient::recv_get_partitions_with_auth(std::vectorskip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_partitions_with_auth") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_partitions_with_auth_presult result; result.success = &_return; @@ -16618,8 +16556,8 @@ void ThriftHiveMetastoreClient::send_get_partition_names(const std::string& db_n args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_partition_names(std::vector & _return) @@ -16641,13 +16579,11 @@ void ThriftHiveMetastoreClient::recv_get_partition_names(std::vectorskip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_partition_names") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_partition_names_presult result; result.success = &_return; @@ -16684,8 +16620,8 @@ void ThriftHiveMetastoreClient::send_get_partitions_ps(const std::string& db_nam args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_partitions_ps(std::vector & _return) @@ -16707,13 +16643,11 @@ void ThriftHiveMetastoreClient::recv_get_partitions_ps(std::vector & iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_partitions_ps") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_partitions_ps_presult result; result.success = &_return; @@ -16752,8 +16686,8 @@ void ThriftHiveMetastoreClient::send_get_partitions_ps_with_auth(const std::stri args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_partitions_ps_with_auth(std::vector & _return) @@ -16775,13 +16709,11 @@ void ThriftHiveMetastoreClient::recv_get_partitions_ps_with_auth(std::vectorskip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_partitions_ps_with_auth") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_partitions_ps_with_auth_presult result; result.success = &_return; @@ -16821,8 +16753,8 @@ void ThriftHiveMetastoreClient::send_get_partition_names_ps(const std::string& d args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_partition_names_ps(std::vector & _return) @@ -16844,13 +16776,11 @@ void ThriftHiveMetastoreClient::recv_get_partition_names_ps(std::vectorskip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_partition_names_ps") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_partition_names_ps_presult result; result.success = &_return; @@ -16887,8 +16817,8 @@ void ThriftHiveMetastoreClient::send_get_partitions_by_filter(const std::string& args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_partitions_by_filter(std::vector & _return) @@ -16910,13 +16840,11 @@ void ThriftHiveMetastoreClient::recv_get_partitions_by_filter(std::vectorskip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_partitions_by_filter") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_partitions_by_filter_presult result; result.success = &_return; @@ -16955,8 +16883,8 @@ void ThriftHiveMetastoreClient::send_get_partitions_by_names(const std::string& args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_partitions_by_names(std::vector & _return) @@ -16978,13 +16906,11 @@ void ThriftHiveMetastoreClient::recv_get_partitions_by_names(std::vectorskip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_partitions_by_names") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_partitions_by_names_presult result; result.success = &_return; @@ -17023,8 +16949,8 @@ void ThriftHiveMetastoreClient::send_alter_partition(const std::string& db_name, args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_alter_partition() @@ -17046,13 +16972,11 @@ void ThriftHiveMetastoreClient::recv_alter_partition() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("alter_partition") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_alter_partition_presult result; result.read(iprot_); @@ -17085,8 +17009,8 @@ void ThriftHiveMetastoreClient::send_get_config_value(const std::string& name, c args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_config_value(std::string& _return) @@ -17108,13 +17032,11 @@ void ThriftHiveMetastoreClient::recv_get_config_value(std::string& _return) iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_config_value") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_config_value_presult result; result.success = &_return; @@ -17148,8 +17070,8 @@ void ThriftHiveMetastoreClient::send_partition_name_to_vals(const std::string& p args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_partition_name_to_vals(std::vector & _return) @@ -17171,13 +17093,11 @@ void ThriftHiveMetastoreClient::recv_partition_name_to_vals(std::vectorskip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("partition_name_to_vals") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_partition_name_to_vals_presult result; result.success = &_return; @@ -17211,8 +17131,8 @@ void ThriftHiveMetastoreClient::send_partition_name_to_spec(const std::string& p args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_partition_name_to_spec(std::map & _return) @@ -17234,13 +17154,11 @@ void ThriftHiveMetastoreClient::recv_partition_name_to_spec(std::mapskip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("partition_name_to_spec") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_partition_name_to_spec_presult result; result.success = &_return; @@ -17277,8 +17195,8 @@ void ThriftHiveMetastoreClient::send_markPartitionForEvent(const std::string& db args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_markPartitionForEvent() @@ -17300,13 +17218,11 @@ void ThriftHiveMetastoreClient::recv_markPartitionForEvent() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("markPartitionForEvent") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_markPartitionForEvent_presult result; result.read(iprot_); @@ -17353,8 +17269,8 @@ void ThriftHiveMetastoreClient::send_isPartitionMarkedForEvent(const std::string args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } bool ThriftHiveMetastoreClient::recv_isPartitionMarkedForEvent() @@ -17376,13 +17292,11 @@ bool ThriftHiveMetastoreClient::recv_isPartitionMarkedForEvent() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("isPartitionMarkedForEvent") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } bool _return; ThriftHiveMetastore_isPartitionMarkedForEvent_presult result; @@ -17432,8 +17346,8 @@ void ThriftHiveMetastoreClient::send_add_index(const Index& new_index, const Tab args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_add_index(Index& _return) @@ -17455,13 +17369,11 @@ void ThriftHiveMetastoreClient::recv_add_index(Index& _return) iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("add_index") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_add_index_presult result; result.success = &_return; @@ -17504,8 +17416,8 @@ void ThriftHiveMetastoreClient::send_alter_index(const std::string& dbname, cons args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_alter_index() @@ -17527,13 +17439,11 @@ void ThriftHiveMetastoreClient::recv_alter_index() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("alter_index") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_alter_index_presult result; result.read(iprot_); @@ -17568,8 +17478,8 @@ void ThriftHiveMetastoreClient::send_drop_index_by_name(const std::string& db_na args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } bool ThriftHiveMetastoreClient::recv_drop_index_by_name() @@ -17591,13 +17501,11 @@ bool ThriftHiveMetastoreClient::recv_drop_index_by_name() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("drop_index_by_name") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } bool _return; ThriftHiveMetastore_drop_index_by_name_presult result; @@ -17636,8 +17544,8 @@ void ThriftHiveMetastoreClient::send_get_index_by_name(const std::string& db_nam args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_index_by_name(Index& _return) @@ -17659,13 +17567,11 @@ void ThriftHiveMetastoreClient::recv_get_index_by_name(Index& _return) iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_index_by_name") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_index_by_name_presult result; result.success = &_return; @@ -17704,8 +17610,8 @@ void ThriftHiveMetastoreClient::send_get_indexes(const std::string& db_name, con args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_indexes(std::vector & _return) @@ -17727,13 +17633,11 @@ void ThriftHiveMetastoreClient::recv_get_indexes(std::vector & _return) iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_indexes") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_indexes_presult result; result.success = &_return; @@ -17772,8 +17676,8 @@ void ThriftHiveMetastoreClient::send_get_index_names(const std::string& db_name, args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_index_names(std::vector & _return) @@ -17795,13 +17699,11 @@ void ThriftHiveMetastoreClient::recv_get_index_names(std::vector & iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_index_names") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_index_names_presult result; result.success = &_return; @@ -17835,8 +17737,8 @@ void ThriftHiveMetastoreClient::send_create_role(const Role& role) args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } bool ThriftHiveMetastoreClient::recv_create_role() @@ -17858,13 +17760,11 @@ bool ThriftHiveMetastoreClient::recv_create_role() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("create_role") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } bool _return; ThriftHiveMetastore_create_role_presult result; @@ -17898,8 +17798,8 @@ void ThriftHiveMetastoreClient::send_drop_role(const std::string& role_name) args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } bool ThriftHiveMetastoreClient::recv_drop_role() @@ -17921,13 +17821,11 @@ bool ThriftHiveMetastoreClient::recv_drop_role() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("drop_role") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } bool _return; ThriftHiveMetastore_drop_role_presult result; @@ -17960,8 +17858,8 @@ void ThriftHiveMetastoreClient::send_get_role_names() args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_role_names(std::vector & _return) @@ -17983,13 +17881,11 @@ void ThriftHiveMetastoreClient::recv_get_role_names(std::vector & _ iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_role_names") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_role_names_presult result; result.success = &_return; @@ -18028,8 +17924,8 @@ void ThriftHiveMetastoreClient::send_grant_role(const std::string& role_name, co args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } bool ThriftHiveMetastoreClient::recv_grant_role() @@ -18051,13 +17947,11 @@ bool ThriftHiveMetastoreClient::recv_grant_role() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("grant_role") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } bool _return; ThriftHiveMetastore_grant_role_presult result; @@ -18093,8 +17987,8 @@ void ThriftHiveMetastoreClient::send_revoke_role(const std::string& role_name, c args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } bool ThriftHiveMetastoreClient::recv_revoke_role() @@ -18116,13 +18010,11 @@ bool ThriftHiveMetastoreClient::recv_revoke_role() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("revoke_role") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } bool _return; ThriftHiveMetastore_revoke_role_presult result; @@ -18157,8 +18049,8 @@ void ThriftHiveMetastoreClient::send_list_roles(const std::string& principal_nam args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_list_roles(std::vector & _return) @@ -18180,13 +18072,11 @@ void ThriftHiveMetastoreClient::recv_list_roles(std::vector & _return) iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("list_roles") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_list_roles_presult result; result.success = &_return; @@ -18222,8 +18112,8 @@ void ThriftHiveMetastoreClient::send_get_privilege_set(const HiveObjectRef& hive args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_privilege_set(PrincipalPrivilegeSet& _return) @@ -18245,13 +18135,11 @@ void ThriftHiveMetastoreClient::recv_get_privilege_set(PrincipalPrivilegeSet& _r iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_privilege_set") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_privilege_set_presult result; result.success = &_return; @@ -18287,8 +18175,8 @@ void ThriftHiveMetastoreClient::send_list_privileges(const std::string& principa args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_list_privileges(std::vector & _return) @@ -18310,13 +18198,11 @@ void ThriftHiveMetastoreClient::recv_list_privileges(std::vectorskip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("list_privileges") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_list_privileges_presult result; result.success = &_return; @@ -18350,8 +18236,8 @@ void ThriftHiveMetastoreClient::send_grant_privileges(const PrivilegeBag& privil args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } bool ThriftHiveMetastoreClient::recv_grant_privileges() @@ -18373,13 +18259,11 @@ bool ThriftHiveMetastoreClient::recv_grant_privileges() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("grant_privileges") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } bool _return; ThriftHiveMetastore_grant_privileges_presult result; @@ -18413,8 +18297,8 @@ void ThriftHiveMetastoreClient::send_revoke_privileges(const PrivilegeBag& privi args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } bool ThriftHiveMetastoreClient::recv_revoke_privileges() @@ -18436,13 +18320,11 @@ bool ThriftHiveMetastoreClient::recv_revoke_privileges() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("revoke_privileges") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } bool _return; ThriftHiveMetastore_revoke_privileges_presult result; @@ -18477,8 +18359,8 @@ void ThriftHiveMetastoreClient::send_get_delegation_token(const std::string& tok args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_get_delegation_token(std::string& _return) @@ -18500,13 +18382,11 @@ void ThriftHiveMetastoreClient::recv_get_delegation_token(std::string& _return) iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("get_delegation_token") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_get_delegation_token_presult result; result.success = &_return; @@ -18540,8 +18420,8 @@ void ThriftHiveMetastoreClient::send_renew_delegation_token(const std::string& t args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } int64_t ThriftHiveMetastoreClient::recv_renew_delegation_token() @@ -18563,13 +18443,11 @@ int64_t ThriftHiveMetastoreClient::recv_renew_delegation_token() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("renew_delegation_token") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } int64_t _return; ThriftHiveMetastore_renew_delegation_token_presult result; @@ -18603,8 +18481,8 @@ void ThriftHiveMetastoreClient::send_cancel_delegation_token(const std::string& args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveMetastoreClient::recv_cancel_delegation_token() @@ -18626,13 +18504,11 @@ void ThriftHiveMetastoreClient::recv_cancel_delegation_token() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("cancel_delegation_token") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHiveMetastore_cancel_delegation_token_presult result; result.read(iprot_); @@ -18645,7 +18521,7 @@ void ThriftHiveMetastoreClient::recv_cancel_delegation_token() return; } -bool ThriftHiveMetastoreProcessor::process(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot) { +bool ThriftHiveMetastoreProcessor::process(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot, void* callContext) { ::apache::thrift::protocol::TProtocol* iprot = piprot.get(); ::apache::thrift::protocol::TProtocol* oprot = poprot.get(); @@ -18663,30 +18539,44 @@ bool ThriftHiveMetastoreProcessor::process(boost::shared_ptr< ::apache::thrift:: oprot->writeMessageBegin(fname, ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); - return true; + oprot->getTransport()->flush(); + return false; } - return process_fn(iprot, oprot, fname, seqid); + return process_fn(iprot, oprot, fname, seqid, callContext); } -bool ThriftHiveMetastoreProcessor::process_fn(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, std::string& fname, int32_t seqid) { - std::map::iterator pfn; +bool ThriftHiveMetastoreProcessor::process_fn(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, std::string& fname, int32_t seqid, void* callContext) { + std::map::iterator pfn; pfn = processMap_.find(fname); if (pfn == processMap_.end()) { - return facebook::fb303::FacebookServiceProcessor::process_fn(iprot, oprot, fname, seqid); + return facebook::fb303::FacebookServiceProcessor::process_fn(iprot, oprot, fname, seqid, callContext); } - (this->*(pfn->second))(seqid, iprot, oprot); + (this->*(pfn->second))(seqid, iprot, oprot, callContext); return true; } -void ThriftHiveMetastoreProcessor::process_create_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_create_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.create_database", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.create_database"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.create_database"); + } + ThriftHiveMetastore_create_database_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.create_database", bytes); + } ThriftHiveMetastore_create_database_result result; try { @@ -18701,28 +18591,54 @@ void ThriftHiveMetastoreProcessor::process_create_database(int32_t seqid, ::apac result.o3 = o3; result.__isset.o3 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.create_database"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("create_database", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.create_database"); + } + oprot->writeMessageBegin("create_database", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.create_database", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_database", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_database"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_database"); + } + ThriftHiveMetastore_get_database_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_database", bytes); + } ThriftHiveMetastore_get_database_result result; try { @@ -18735,28 +18651,54 @@ void ThriftHiveMetastoreProcessor::process_get_database(int32_t seqid, ::apache: result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_database"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_database", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_database"); + } + oprot->writeMessageBegin("get_database", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_database", bytes); + } } -void ThriftHiveMetastoreProcessor::process_drop_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_drop_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.drop_database", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.drop_database"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.drop_database"); + } + ThriftHiveMetastore_drop_database_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.drop_database", bytes); + } ThriftHiveMetastore_drop_database_result result; try { @@ -18771,28 +18713,54 @@ void ThriftHiveMetastoreProcessor::process_drop_database(int32_t seqid, ::apache result.o3 = o3; result.__isset.o3 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.drop_database"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("drop_database", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.drop_database"); + } + oprot->writeMessageBegin("drop_database", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.drop_database", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_databases(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_databases(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_databases", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_databases"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_databases"); + } + ThriftHiveMetastore_get_databases_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_databases", bytes); + } ThriftHiveMetastore_get_databases_result result; try { @@ -18802,28 +18770,54 @@ void ThriftHiveMetastoreProcessor::process_get_databases(int32_t seqid, ::apache result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_databases"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_databases", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_databases"); + } + oprot->writeMessageBegin("get_databases", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_databases", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_all_databases(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_all_databases(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_all_databases", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_all_databases"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_all_databases"); + } + ThriftHiveMetastore_get_all_databases_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_all_databases", bytes); + } ThriftHiveMetastore_get_all_databases_result result; try { @@ -18833,28 +18827,54 @@ void ThriftHiveMetastoreProcessor::process_get_all_databases(int32_t seqid, ::ap result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_all_databases"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_all_databases", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_all_databases"); + } + oprot->writeMessageBegin("get_all_databases", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_all_databases", bytes); + } } -void ThriftHiveMetastoreProcessor::process_alter_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_alter_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.alter_database", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.alter_database"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.alter_database"); + } + ThriftHiveMetastore_alter_database_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.alter_database", bytes); + } ThriftHiveMetastore_alter_database_result result; try { @@ -18866,28 +18886,54 @@ void ThriftHiveMetastoreProcessor::process_alter_database(int32_t seqid, ::apach result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.alter_database"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("alter_database", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.alter_database"); + } + oprot->writeMessageBegin("alter_database", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.alter_database", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_type(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_type(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_type", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_type"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_type"); + } + ThriftHiveMetastore_get_type_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_type", bytes); + } ThriftHiveMetastore_get_type_result result; try { @@ -18900,28 +18946,54 @@ void ThriftHiveMetastoreProcessor::process_get_type(int32_t seqid, ::apache::thr result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_type"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_type", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_type"); + } + oprot->writeMessageBegin("get_type", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_type", bytes); + } } -void ThriftHiveMetastoreProcessor::process_create_type(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_create_type(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.create_type", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.create_type"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.create_type"); + } + ThriftHiveMetastore_create_type_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.create_type", bytes); + } ThriftHiveMetastore_create_type_result result; try { @@ -18937,28 +19009,54 @@ void ThriftHiveMetastoreProcessor::process_create_type(int32_t seqid, ::apache:: result.o3 = o3; result.__isset.o3 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.create_type"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("create_type", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.create_type"); + } + oprot->writeMessageBegin("create_type", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.create_type", bytes); + } } -void ThriftHiveMetastoreProcessor::process_drop_type(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_drop_type(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.drop_type", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.drop_type"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.drop_type"); + } + ThriftHiveMetastore_drop_type_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.drop_type", bytes); + } ThriftHiveMetastore_drop_type_result result; try { @@ -18971,28 +19069,54 @@ void ThriftHiveMetastoreProcessor::process_drop_type(int32_t seqid, ::apache::th result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.drop_type"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("drop_type", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.drop_type"); + } + oprot->writeMessageBegin("drop_type", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.drop_type", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_type_all(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_type_all(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_type_all", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_type_all"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_type_all"); + } + ThriftHiveMetastore_get_type_all_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_type_all", bytes); + } ThriftHiveMetastore_get_type_all_result result; try { @@ -19002,28 +19126,54 @@ void ThriftHiveMetastoreProcessor::process_get_type_all(int32_t seqid, ::apache: result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_type_all"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_type_all", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_type_all"); + } + oprot->writeMessageBegin("get_type_all", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_type_all", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_fields(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_fields(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_fields", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_fields"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_fields"); + } + ThriftHiveMetastore_get_fields_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_fields", bytes); + } ThriftHiveMetastore_get_fields_result result; try { @@ -19039,28 +19189,54 @@ void ThriftHiveMetastoreProcessor::process_get_fields(int32_t seqid, ::apache::t result.o3 = o3; result.__isset.o3 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_fields"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_fields", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_fields"); + } + oprot->writeMessageBegin("get_fields", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_fields", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_schema(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_schema(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_schema", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_schema"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_schema"); + } + ThriftHiveMetastore_get_schema_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_schema", bytes); + } ThriftHiveMetastore_get_schema_result result; try { @@ -19076,28 +19252,54 @@ void ThriftHiveMetastoreProcessor::process_get_schema(int32_t seqid, ::apache::t result.o3 = o3; result.__isset.o3 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_schema"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_schema", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_schema"); + } + oprot->writeMessageBegin("get_schema", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_schema", bytes); + } } -void ThriftHiveMetastoreProcessor::process_create_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_create_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.create_table", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.create_table"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.create_table"); + } + ThriftHiveMetastore_create_table_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.create_table", bytes); + } ThriftHiveMetastore_create_table_result result; try { @@ -19115,28 +19317,54 @@ void ThriftHiveMetastoreProcessor::process_create_table(int32_t seqid, ::apache: result.o4 = o4; result.__isset.o4 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.create_table"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("create_table", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.create_table"); + } + oprot->writeMessageBegin("create_table", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.create_table", bytes); + } } -void ThriftHiveMetastoreProcessor::process_drop_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_drop_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.drop_table", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.drop_table"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.drop_table"); + } + ThriftHiveMetastore_drop_table_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.drop_table", bytes); + } ThriftHiveMetastore_drop_table_result result; try { @@ -19148,28 +19376,54 @@ void ThriftHiveMetastoreProcessor::process_drop_table(int32_t seqid, ::apache::t result.o3 = o3; result.__isset.o3 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.drop_table"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("drop_table", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.drop_table"); + } + oprot->writeMessageBegin("drop_table", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.drop_table", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_tables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_tables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_tables", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_tables"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_tables"); + } + ThriftHiveMetastore_get_tables_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_tables", bytes); + } ThriftHiveMetastore_get_tables_result result; try { @@ -19179,28 +19433,54 @@ void ThriftHiveMetastoreProcessor::process_get_tables(int32_t seqid, ::apache::t result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_tables"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_tables", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_tables"); + } + oprot->writeMessageBegin("get_tables", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_tables", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_all_tables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_all_tables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_all_tables", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_all_tables"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_all_tables"); + } + ThriftHiveMetastore_get_all_tables_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_all_tables", bytes); + } ThriftHiveMetastore_get_all_tables_result result; try { @@ -19210,28 +19490,54 @@ void ThriftHiveMetastoreProcessor::process_get_all_tables(int32_t seqid, ::apach result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_all_tables"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_all_tables", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_all_tables"); + } + oprot->writeMessageBegin("get_all_tables", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_all_tables", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_table", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_table"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_table"); + } + ThriftHiveMetastore_get_table_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_table", bytes); + } ThriftHiveMetastore_get_table_result result; try { @@ -19244,28 +19550,54 @@ void ThriftHiveMetastoreProcessor::process_get_table(int32_t seqid, ::apache::th result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_table"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_table", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_table"); + } + oprot->writeMessageBegin("get_table", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_table", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_table_objects_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_table_objects_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_table_objects_by_name", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_table_objects_by_name"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_table_objects_by_name"); + } + ThriftHiveMetastore_get_table_objects_by_name_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_table_objects_by_name", bytes); + } ThriftHiveMetastore_get_table_objects_by_name_result result; try { @@ -19281,28 +19613,54 @@ void ThriftHiveMetastoreProcessor::process_get_table_objects_by_name(int32_t seq result.o3 = o3; result.__isset.o3 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_table_objects_by_name"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_table_objects_by_name", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_table_objects_by_name"); + } + oprot->writeMessageBegin("get_table_objects_by_name", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_table_objects_by_name", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_table_names_by_filter(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_table_names_by_filter(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_table_names_by_filter", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_table_names_by_filter"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_table_names_by_filter"); + } + ThriftHiveMetastore_get_table_names_by_filter_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_table_names_by_filter", bytes); + } ThriftHiveMetastore_get_table_names_by_filter_result result; try { @@ -19318,28 +19676,54 @@ void ThriftHiveMetastoreProcessor::process_get_table_names_by_filter(int32_t seq result.o3 = o3; result.__isset.o3 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_table_names_by_filter"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_table_names_by_filter", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_table_names_by_filter"); + } + oprot->writeMessageBegin("get_table_names_by_filter", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_table_names_by_filter", bytes); + } } -void ThriftHiveMetastoreProcessor::process_alter_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_alter_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.alter_table", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.alter_table"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.alter_table"); + } + ThriftHiveMetastore_alter_table_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.alter_table", bytes); + } ThriftHiveMetastore_alter_table_result result; try { @@ -19351,28 +19735,54 @@ void ThriftHiveMetastoreProcessor::process_alter_table(int32_t seqid, ::apache:: result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.alter_table"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("alter_table", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.alter_table"); + } + oprot->writeMessageBegin("alter_table", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.alter_table", bytes); + } } -void ThriftHiveMetastoreProcessor::process_add_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_add_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.add_partition", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.add_partition"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.add_partition"); + } + ThriftHiveMetastore_add_partition_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.add_partition", bytes); + } ThriftHiveMetastore_add_partition_result result; try { @@ -19388,28 +19798,54 @@ void ThriftHiveMetastoreProcessor::process_add_partition(int32_t seqid, ::apache result.o3 = o3; result.__isset.o3 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.add_partition"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("add_partition", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.add_partition"); + } + oprot->writeMessageBegin("add_partition", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.add_partition", bytes); + } } -void ThriftHiveMetastoreProcessor::process_add_partitions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_add_partitions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.add_partitions", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.add_partitions"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.add_partitions"); + } + ThriftHiveMetastore_add_partitions_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.add_partitions", bytes); + } ThriftHiveMetastore_add_partitions_result result; try { @@ -19425,28 +19861,54 @@ void ThriftHiveMetastoreProcessor::process_add_partitions(int32_t seqid, ::apach result.o3 = o3; result.__isset.o3 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.add_partitions"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("add_partitions", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.add_partitions"); + } + oprot->writeMessageBegin("add_partitions", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.add_partitions", bytes); + } } -void ThriftHiveMetastoreProcessor::process_append_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_append_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.append_partition", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.append_partition"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.append_partition"); + } + ThriftHiveMetastore_append_partition_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.append_partition", bytes); + } ThriftHiveMetastore_append_partition_result result; try { @@ -19462,28 +19924,54 @@ void ThriftHiveMetastoreProcessor::process_append_partition(int32_t seqid, ::apa result.o3 = o3; result.__isset.o3 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.append_partition"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("append_partition", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.append_partition"); + } + oprot->writeMessageBegin("append_partition", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.append_partition", bytes); + } } -void ThriftHiveMetastoreProcessor::process_append_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_append_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.append_partition_by_name", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.append_partition_by_name"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.append_partition_by_name"); + } + ThriftHiveMetastore_append_partition_by_name_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.append_partition_by_name", bytes); + } ThriftHiveMetastore_append_partition_by_name_result result; try { @@ -19499,28 +19987,54 @@ void ThriftHiveMetastoreProcessor::process_append_partition_by_name(int32_t seqi result.o3 = o3; result.__isset.o3 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.append_partition_by_name"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("append_partition_by_name", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.append_partition_by_name"); + } + oprot->writeMessageBegin("append_partition_by_name", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.append_partition_by_name", bytes); + } } -void ThriftHiveMetastoreProcessor::process_drop_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_drop_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.drop_partition", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.drop_partition"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.drop_partition"); + } + ThriftHiveMetastore_drop_partition_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.drop_partition", bytes); + } ThriftHiveMetastore_drop_partition_result result; try { @@ -19533,28 +20047,54 @@ void ThriftHiveMetastoreProcessor::process_drop_partition(int32_t seqid, ::apach result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.drop_partition"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("drop_partition", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.drop_partition"); + } + oprot->writeMessageBegin("drop_partition", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.drop_partition", bytes); + } } -void ThriftHiveMetastoreProcessor::process_drop_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_drop_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.drop_partition_by_name", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.drop_partition_by_name"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.drop_partition_by_name"); + } + ThriftHiveMetastore_drop_partition_by_name_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.drop_partition_by_name", bytes); + } ThriftHiveMetastore_drop_partition_by_name_result result; try { @@ -19567,28 +20107,54 @@ void ThriftHiveMetastoreProcessor::process_drop_partition_by_name(int32_t seqid, result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.drop_partition_by_name"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("drop_partition_by_name", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.drop_partition_by_name"); + } + oprot->writeMessageBegin("drop_partition_by_name", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.drop_partition_by_name", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_partition", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_partition"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_partition"); + } + ThriftHiveMetastore_get_partition_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_partition", bytes); + } ThriftHiveMetastore_get_partition_result result; try { @@ -19601,28 +20167,54 @@ void ThriftHiveMetastoreProcessor::process_get_partition(int32_t seqid, ::apache result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_partition"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_partition", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_partition"); + } + oprot->writeMessageBegin("get_partition", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_partition", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_partition_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_partition_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_partition_with_auth", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_partition_with_auth"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_partition_with_auth"); + } + ThriftHiveMetastore_get_partition_with_auth_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_partition_with_auth", bytes); + } ThriftHiveMetastore_get_partition_with_auth_result result; try { @@ -19635,28 +20227,54 @@ void ThriftHiveMetastoreProcessor::process_get_partition_with_auth(int32_t seqid result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_partition_with_auth"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_partition_with_auth", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_partition_with_auth"); + } + oprot->writeMessageBegin("get_partition_with_auth", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_partition_with_auth", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_partition_by_name", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_partition_by_name"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_partition_by_name"); + } + ThriftHiveMetastore_get_partition_by_name_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_partition_by_name", bytes); + } ThriftHiveMetastore_get_partition_by_name_result result; try { @@ -19669,28 +20287,54 @@ void ThriftHiveMetastoreProcessor::process_get_partition_by_name(int32_t seqid, result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_partition_by_name"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_partition_by_name", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_partition_by_name"); + } + oprot->writeMessageBegin("get_partition_by_name", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_partition_by_name", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_partitions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_partitions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_partitions", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_partitions"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_partitions"); + } + ThriftHiveMetastore_get_partitions_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_partitions", bytes); + } ThriftHiveMetastore_get_partitions_result result; try { @@ -19703,28 +20347,54 @@ void ThriftHiveMetastoreProcessor::process_get_partitions(int32_t seqid, ::apach result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_partitions"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_partitions", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_partitions"); + } + oprot->writeMessageBegin("get_partitions", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_partitions", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_partitions_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_partitions_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_partitions_with_auth", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_partitions_with_auth"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_partitions_with_auth"); + } + ThriftHiveMetastore_get_partitions_with_auth_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_partitions_with_auth", bytes); + } ThriftHiveMetastore_get_partitions_with_auth_result result; try { @@ -19737,28 +20407,54 @@ void ThriftHiveMetastoreProcessor::process_get_partitions_with_auth(int32_t seqi result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_partitions_with_auth"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_partitions_with_auth", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_partitions_with_auth"); + } + oprot->writeMessageBegin("get_partitions_with_auth", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_partitions_with_auth", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_partition_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_partition_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_partition_names", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_partition_names"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_partition_names"); + } + ThriftHiveMetastore_get_partition_names_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_partition_names", bytes); + } ThriftHiveMetastore_get_partition_names_result result; try { @@ -19768,28 +20464,54 @@ void ThriftHiveMetastoreProcessor::process_get_partition_names(int32_t seqid, :: result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_partition_names"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_partition_names", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_partition_names"); + } + oprot->writeMessageBegin("get_partition_names", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_partition_names", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_partitions_ps(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_partitions_ps(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_partitions_ps", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_partitions_ps"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_partitions_ps"); + } + ThriftHiveMetastore_get_partitions_ps_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_partitions_ps", bytes); + } ThriftHiveMetastore_get_partitions_ps_result result; try { @@ -19799,28 +20521,54 @@ void ThriftHiveMetastoreProcessor::process_get_partitions_ps(int32_t seqid, ::ap result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_partitions_ps"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_partitions_ps", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_partitions_ps"); + } + oprot->writeMessageBegin("get_partitions_ps", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_partitions_ps", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_partitions_ps_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_partitions_ps_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_partitions_ps_with_auth", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_partitions_ps_with_auth"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_partitions_ps_with_auth"); + } + ThriftHiveMetastore_get_partitions_ps_with_auth_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_partitions_ps_with_auth", bytes); + } ThriftHiveMetastore_get_partitions_ps_with_auth_result result; try { @@ -19833,28 +20581,54 @@ void ThriftHiveMetastoreProcessor::process_get_partitions_ps_with_auth(int32_t s result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_partitions_ps_with_auth"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_partitions_ps_with_auth", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_partitions_ps_with_auth"); + } + oprot->writeMessageBegin("get_partitions_ps_with_auth", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_partitions_ps_with_auth", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_partition_names_ps(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_partition_names_ps(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_partition_names_ps", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_partition_names_ps"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_partition_names_ps"); + } + ThriftHiveMetastore_get_partition_names_ps_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_partition_names_ps", bytes); + } ThriftHiveMetastore_get_partition_names_ps_result result; try { @@ -19864,28 +20638,54 @@ void ThriftHiveMetastoreProcessor::process_get_partition_names_ps(int32_t seqid, result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_partition_names_ps"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_partition_names_ps", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_partition_names_ps"); + } + oprot->writeMessageBegin("get_partition_names_ps", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_partition_names_ps", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_partitions_by_filter(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_partitions_by_filter(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_partitions_by_filter", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_partitions_by_filter"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_partitions_by_filter"); + } + ThriftHiveMetastore_get_partitions_by_filter_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_partitions_by_filter", bytes); + } ThriftHiveMetastore_get_partitions_by_filter_result result; try { @@ -19898,28 +20698,54 @@ void ThriftHiveMetastoreProcessor::process_get_partitions_by_filter(int32_t seqi result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_partitions_by_filter"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_partitions_by_filter", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_partitions_by_filter"); + } + oprot->writeMessageBegin("get_partitions_by_filter", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_partitions_by_filter", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_partitions_by_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_partitions_by_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_partitions_by_names", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_partitions_by_names"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_partitions_by_names"); + } + ThriftHiveMetastore_get_partitions_by_names_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_partitions_by_names", bytes); + } ThriftHiveMetastore_get_partitions_by_names_result result; try { @@ -19932,28 +20758,54 @@ void ThriftHiveMetastoreProcessor::process_get_partitions_by_names(int32_t seqid result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_partitions_by_names"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_partitions_by_names", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_partitions_by_names"); + } + oprot->writeMessageBegin("get_partitions_by_names", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_partitions_by_names", bytes); + } } -void ThriftHiveMetastoreProcessor::process_alter_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_alter_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.alter_partition", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.alter_partition"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.alter_partition"); + } + ThriftHiveMetastore_alter_partition_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.alter_partition", bytes); + } ThriftHiveMetastore_alter_partition_result result; try { @@ -19965,28 +20817,54 @@ void ThriftHiveMetastoreProcessor::process_alter_partition(int32_t seqid, ::apac result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.alter_partition"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("alter_partition", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.alter_partition"); + } + oprot->writeMessageBegin("alter_partition", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.alter_partition", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_config_value(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_config_value(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_config_value", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_config_value"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_config_value"); + } + ThriftHiveMetastore_get_config_value_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_config_value", bytes); + } ThriftHiveMetastore_get_config_value_result result; try { @@ -19996,28 +20874,54 @@ void ThriftHiveMetastoreProcessor::process_get_config_value(int32_t seqid, ::apa result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_config_value"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_config_value", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_config_value"); + } + oprot->writeMessageBegin("get_config_value", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_config_value", bytes); + } } -void ThriftHiveMetastoreProcessor::process_partition_name_to_vals(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_partition_name_to_vals(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.partition_name_to_vals", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.partition_name_to_vals"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.partition_name_to_vals"); + } + ThriftHiveMetastore_partition_name_to_vals_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.partition_name_to_vals", bytes); + } ThriftHiveMetastore_partition_name_to_vals_result result; try { @@ -20027,28 +20931,54 @@ void ThriftHiveMetastoreProcessor::process_partition_name_to_vals(int32_t seqid, result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.partition_name_to_vals"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("partition_name_to_vals", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.partition_name_to_vals"); + } + oprot->writeMessageBegin("partition_name_to_vals", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.partition_name_to_vals", bytes); + } } -void ThriftHiveMetastoreProcessor::process_partition_name_to_spec(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_partition_name_to_spec(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.partition_name_to_spec", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.partition_name_to_spec"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.partition_name_to_spec"); + } + ThriftHiveMetastore_partition_name_to_spec_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.partition_name_to_spec", bytes); + } ThriftHiveMetastore_partition_name_to_spec_result result; try { @@ -20058,28 +20988,54 @@ void ThriftHiveMetastoreProcessor::process_partition_name_to_spec(int32_t seqid, result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.partition_name_to_spec"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("partition_name_to_spec", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.partition_name_to_spec"); + } + oprot->writeMessageBegin("partition_name_to_spec", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.partition_name_to_spec", bytes); + } } -void ThriftHiveMetastoreProcessor::process_markPartitionForEvent(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_markPartitionForEvent(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.markPartitionForEvent", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.markPartitionForEvent"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.markPartitionForEvent"); + } + ThriftHiveMetastore_markPartitionForEvent_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.markPartitionForEvent", bytes); + } ThriftHiveMetastore_markPartitionForEvent_result result; try { @@ -20103,28 +21059,54 @@ void ThriftHiveMetastoreProcessor::process_markPartitionForEvent(int32_t seqid, result.o6 = o6; result.__isset.o6 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.markPartitionForEvent"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("markPartitionForEvent", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.markPartitionForEvent"); + } + oprot->writeMessageBegin("markPartitionForEvent", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.markPartitionForEvent", bytes); + } } -void ThriftHiveMetastoreProcessor::process_isPartitionMarkedForEvent(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_isPartitionMarkedForEvent(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.isPartitionMarkedForEvent", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.isPartitionMarkedForEvent"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.isPartitionMarkedForEvent"); + } + ThriftHiveMetastore_isPartitionMarkedForEvent_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.isPartitionMarkedForEvent", bytes); + } ThriftHiveMetastore_isPartitionMarkedForEvent_result result; try { @@ -20149,28 +21131,54 @@ void ThriftHiveMetastoreProcessor::process_isPartitionMarkedForEvent(int32_t seq result.o6 = o6; result.__isset.o6 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.isPartitionMarkedForEvent"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("isPartitionMarkedForEvent", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.isPartitionMarkedForEvent"); + } + oprot->writeMessageBegin("isPartitionMarkedForEvent", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.isPartitionMarkedForEvent", bytes); + } } -void ThriftHiveMetastoreProcessor::process_add_index(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_add_index(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.add_index", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.add_index"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.add_index"); + } + ThriftHiveMetastore_add_index_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.add_index", bytes); + } ThriftHiveMetastore_add_index_result result; try { @@ -20186,28 +21194,54 @@ void ThriftHiveMetastoreProcessor::process_add_index(int32_t seqid, ::apache::th result.o3 = o3; result.__isset.o3 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.add_index"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("add_index", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.add_index"); + } + oprot->writeMessageBegin("add_index", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.add_index", bytes); + } } -void ThriftHiveMetastoreProcessor::process_alter_index(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_alter_index(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.alter_index", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.alter_index"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.alter_index"); + } + ThriftHiveMetastore_alter_index_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.alter_index", bytes); + } ThriftHiveMetastore_alter_index_result result; try { @@ -20219,28 +21253,54 @@ void ThriftHiveMetastoreProcessor::process_alter_index(int32_t seqid, ::apache:: result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.alter_index"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("alter_index", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.alter_index"); + } + oprot->writeMessageBegin("alter_index", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.alter_index", bytes); + } } -void ThriftHiveMetastoreProcessor::process_drop_index_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_drop_index_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.drop_index_by_name", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.drop_index_by_name"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.drop_index_by_name"); + } + ThriftHiveMetastore_drop_index_by_name_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.drop_index_by_name", bytes); + } ThriftHiveMetastore_drop_index_by_name_result result; try { @@ -20253,28 +21313,54 @@ void ThriftHiveMetastoreProcessor::process_drop_index_by_name(int32_t seqid, ::a result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.drop_index_by_name"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("drop_index_by_name", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.drop_index_by_name"); + } + oprot->writeMessageBegin("drop_index_by_name", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.drop_index_by_name", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_index_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_index_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_index_by_name", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_index_by_name"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_index_by_name"); + } + ThriftHiveMetastore_get_index_by_name_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_index_by_name", bytes); + } ThriftHiveMetastore_get_index_by_name_result result; try { @@ -20287,28 +21373,54 @@ void ThriftHiveMetastoreProcessor::process_get_index_by_name(int32_t seqid, ::ap result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_index_by_name"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_index_by_name", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_index_by_name"); + } + oprot->writeMessageBegin("get_index_by_name", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_index_by_name", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_indexes(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_indexes(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_indexes", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_indexes"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_indexes"); + } + ThriftHiveMetastore_get_indexes_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_indexes", bytes); + } ThriftHiveMetastore_get_indexes_result result; try { @@ -20321,28 +21433,54 @@ void ThriftHiveMetastoreProcessor::process_get_indexes(int32_t seqid, ::apache:: result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_indexes"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_indexes", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_indexes"); + } + oprot->writeMessageBegin("get_indexes", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_indexes", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_index_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_index_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_index_names", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_index_names"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_index_names"); + } + ThriftHiveMetastore_get_index_names_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_index_names", bytes); + } ThriftHiveMetastore_get_index_names_result result; try { @@ -20352,28 +21490,54 @@ void ThriftHiveMetastoreProcessor::process_get_index_names(int32_t seqid, ::apac result.o2 = o2; result.__isset.o2 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_index_names"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_index_names", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_index_names"); + } + oprot->writeMessageBegin("get_index_names", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_index_names", bytes); + } } -void ThriftHiveMetastoreProcessor::process_create_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_create_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.create_role", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.create_role"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.create_role"); + } + ThriftHiveMetastore_create_role_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.create_role", bytes); + } ThriftHiveMetastore_create_role_result result; try { @@ -20383,28 +21547,54 @@ void ThriftHiveMetastoreProcessor::process_create_role(int32_t seqid, ::apache:: result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.create_role"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("create_role", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.create_role"); + } + oprot->writeMessageBegin("create_role", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.create_role", bytes); + } } -void ThriftHiveMetastoreProcessor::process_drop_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_drop_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.drop_role", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.drop_role"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.drop_role"); + } + ThriftHiveMetastore_drop_role_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.drop_role", bytes); + } ThriftHiveMetastore_drop_role_result result; try { @@ -20414,28 +21604,54 @@ void ThriftHiveMetastoreProcessor::process_drop_role(int32_t seqid, ::apache::th result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.drop_role"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("drop_role", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.drop_role"); + } + oprot->writeMessageBegin("drop_role", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.drop_role", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_role_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_role_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_role_names", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_role_names"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_role_names"); + } + ThriftHiveMetastore_get_role_names_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_role_names", bytes); + } ThriftHiveMetastore_get_role_names_result result; try { @@ -20445,28 +21661,54 @@ void ThriftHiveMetastoreProcessor::process_get_role_names(int32_t seqid, ::apach result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_role_names"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_role_names", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_role_names"); + } + oprot->writeMessageBegin("get_role_names", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_role_names", bytes); + } } -void ThriftHiveMetastoreProcessor::process_grant_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_grant_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.grant_role", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.grant_role"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.grant_role"); + } + ThriftHiveMetastore_grant_role_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.grant_role", bytes); + } ThriftHiveMetastore_grant_role_result result; try { @@ -20476,28 +21718,54 @@ void ThriftHiveMetastoreProcessor::process_grant_role(int32_t seqid, ::apache::t result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.grant_role"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("grant_role", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.grant_role"); + } + oprot->writeMessageBegin("grant_role", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.grant_role", bytes); + } } -void ThriftHiveMetastoreProcessor::process_revoke_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_revoke_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.revoke_role", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.revoke_role"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.revoke_role"); + } + ThriftHiveMetastore_revoke_role_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.revoke_role", bytes); + } ThriftHiveMetastore_revoke_role_result result; try { @@ -20507,28 +21775,54 @@ void ThriftHiveMetastoreProcessor::process_revoke_role(int32_t seqid, ::apache:: result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.revoke_role"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("revoke_role", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.revoke_role"); + } + oprot->writeMessageBegin("revoke_role", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.revoke_role", bytes); + } } -void ThriftHiveMetastoreProcessor::process_list_roles(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_list_roles(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.list_roles", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.list_roles"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.list_roles"); + } + ThriftHiveMetastore_list_roles_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.list_roles", bytes); + } ThriftHiveMetastore_list_roles_result result; try { @@ -20538,28 +21832,54 @@ void ThriftHiveMetastoreProcessor::process_list_roles(int32_t seqid, ::apache::t result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.list_roles"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("list_roles", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.list_roles"); + } + oprot->writeMessageBegin("list_roles", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.list_roles", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_privilege_set(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_privilege_set(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_privilege_set", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_privilege_set"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_privilege_set"); + } + ThriftHiveMetastore_get_privilege_set_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_privilege_set", bytes); + } ThriftHiveMetastore_get_privilege_set_result result; try { @@ -20569,28 +21889,54 @@ void ThriftHiveMetastoreProcessor::process_get_privilege_set(int32_t seqid, ::ap result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_privilege_set"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_privilege_set", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_privilege_set"); + } + oprot->writeMessageBegin("get_privilege_set", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_privilege_set", bytes); + } } -void ThriftHiveMetastoreProcessor::process_list_privileges(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_list_privileges(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.list_privileges", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.list_privileges"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.list_privileges"); + } + ThriftHiveMetastore_list_privileges_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.list_privileges", bytes); + } ThriftHiveMetastore_list_privileges_result result; try { @@ -20600,28 +21946,54 @@ void ThriftHiveMetastoreProcessor::process_list_privileges(int32_t seqid, ::apac result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.list_privileges"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("list_privileges", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.list_privileges"); + } + oprot->writeMessageBegin("list_privileges", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.list_privileges", bytes); + } } -void ThriftHiveMetastoreProcessor::process_grant_privileges(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_grant_privileges(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.grant_privileges", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.grant_privileges"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.grant_privileges"); + } + ThriftHiveMetastore_grant_privileges_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.grant_privileges", bytes); + } ThriftHiveMetastore_grant_privileges_result result; try { @@ -20631,28 +22003,54 @@ void ThriftHiveMetastoreProcessor::process_grant_privileges(int32_t seqid, ::apa result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.grant_privileges"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("grant_privileges", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.grant_privileges"); + } + oprot->writeMessageBegin("grant_privileges", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.grant_privileges", bytes); + } } -void ThriftHiveMetastoreProcessor::process_revoke_privileges(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_revoke_privileges(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.revoke_privileges", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.revoke_privileges"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.revoke_privileges"); + } + ThriftHiveMetastore_revoke_privileges_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.revoke_privileges", bytes); + } ThriftHiveMetastore_revoke_privileges_result result; try { @@ -20662,28 +22060,54 @@ void ThriftHiveMetastoreProcessor::process_revoke_privileges(int32_t seqid, ::ap result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.revoke_privileges"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("revoke_privileges", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.revoke_privileges"); + } + oprot->writeMessageBegin("revoke_privileges", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.revoke_privileges", bytes); + } } -void ThriftHiveMetastoreProcessor::process_get_delegation_token(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_get_delegation_token(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.get_delegation_token", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.get_delegation_token"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_delegation_token"); + } + ThriftHiveMetastore_get_delegation_token_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_delegation_token", bytes); + } ThriftHiveMetastore_get_delegation_token_result result; try { @@ -20693,28 +22117,54 @@ void ThriftHiveMetastoreProcessor::process_get_delegation_token(int32_t seqid, : result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_delegation_token"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("get_delegation_token", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_delegation_token"); + } + oprot->writeMessageBegin("get_delegation_token", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_delegation_token", bytes); + } } -void ThriftHiveMetastoreProcessor::process_renew_delegation_token(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_renew_delegation_token(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.renew_delegation_token", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.renew_delegation_token"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.renew_delegation_token"); + } + ThriftHiveMetastore_renew_delegation_token_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.renew_delegation_token", bytes); + } ThriftHiveMetastore_renew_delegation_token_result result; try { @@ -20724,28 +22174,54 @@ void ThriftHiveMetastoreProcessor::process_renew_delegation_token(int32_t seqid, result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.renew_delegation_token"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("renew_delegation_token", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.renew_delegation_token"); + } + oprot->writeMessageBegin("renew_delegation_token", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.renew_delegation_token", bytes); + } } -void ThriftHiveMetastoreProcessor::process_cancel_delegation_token(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveMetastoreProcessor::process_cancel_delegation_token(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHiveMetastore.cancel_delegation_token", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHiveMetastore.cancel_delegation_token"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHiveMetastore.cancel_delegation_token"); + } + ThriftHiveMetastore_cancel_delegation_token_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHiveMetastore.cancel_delegation_token", bytes); + } ThriftHiveMetastore_cancel_delegation_token_result result; try { @@ -20754,20 +22230,32 @@ void ThriftHiveMetastoreProcessor::process_cancel_delegation_token(int32_t seqid result.o1 = o1; result.__isset.o1 = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHiveMetastore.cancel_delegation_token"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("cancel_delegation_token", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHiveMetastore.cancel_delegation_token"); + } + oprot->writeMessageBegin("cancel_delegation_token", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHiveMetastore.cancel_delegation_token", bytes); + } } }}} // namespace diff --git metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h index 80f2264..a6bfe31 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -301,6 +301,10 @@ class ThriftHiveMetastore_create_database_args { _ThriftHiveMetastore_create_database_args__isset __isset; + void __set_database(const Database& val) { + database = val; + } + bool operator == (const ThriftHiveMetastore_create_database_args & rhs) const { if (!(database == rhs.database)) @@ -352,6 +356,18 @@ class ThriftHiveMetastore_create_database_result { _ThriftHiveMetastore_create_database_result__isset __isset; + void __set_o1(const AlreadyExistsException& val) { + o1 = val; + } + + void __set_o2(const InvalidObjectException& val) { + o2 = val; + } + + void __set_o3(const MetaException& val) { + o3 = val; + } + bool operator == (const ThriftHiveMetastore_create_database_result & rhs) const { if (!(o1 == rhs.o1)) @@ -413,6 +429,10 @@ class ThriftHiveMetastore_get_database_args { _ThriftHiveMetastore_get_database_args__isset __isset; + void __set_name(const std::string& val) { + name = val; + } + bool operator == (const ThriftHiveMetastore_get_database_args & rhs) const { if (!(name == rhs.name)) @@ -464,6 +484,18 @@ class ThriftHiveMetastore_get_database_result { _ThriftHiveMetastore_get_database_result__isset __isset; + void __set_success(const Database& val) { + success = val; + } + + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } + + void __set_o2(const MetaException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_get_database_result & rhs) const { if (!(success == rhs.success)) @@ -529,6 +561,18 @@ class ThriftHiveMetastore_drop_database_args { _ThriftHiveMetastore_drop_database_args__isset __isset; + void __set_name(const std::string& val) { + name = val; + } + + void __set_deleteData(const bool val) { + deleteData = val; + } + + void __set_cascade(const bool val) { + cascade = val; + } + bool operator == (const ThriftHiveMetastore_drop_database_args & rhs) const { if (!(name == rhs.name)) @@ -586,6 +630,18 @@ class ThriftHiveMetastore_drop_database_result { _ThriftHiveMetastore_drop_database_result__isset __isset; + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } + + void __set_o2(const InvalidOperationException& val) { + o2 = val; + } + + void __set_o3(const MetaException& val) { + o3 = val; + } + bool operator == (const ThriftHiveMetastore_drop_database_result & rhs) const { if (!(o1 == rhs.o1)) @@ -647,6 +703,10 @@ class ThriftHiveMetastore_get_databases_args { _ThriftHiveMetastore_get_databases_args__isset __isset; + void __set_pattern(const std::string& val) { + pattern = val; + } + bool operator == (const ThriftHiveMetastore_get_databases_args & rhs) const { if (!(pattern == rhs.pattern)) @@ -696,6 +756,14 @@ class ThriftHiveMetastore_get_databases_result { _ThriftHiveMetastore_get_databases_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_get_databases_result & rhs) const { if (!(success == rhs.success)) @@ -792,6 +860,14 @@ class ThriftHiveMetastore_get_all_databases_result { _ThriftHiveMetastore_get_all_databases_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_get_all_databases_result & rhs) const { if (!(success == rhs.success)) @@ -851,6 +927,14 @@ class ThriftHiveMetastore_alter_database_args { _ThriftHiveMetastore_alter_database_args__isset __isset; + void __set_dbname(const std::string& val) { + dbname = val; + } + + void __set_db(const Database& val) { + db = val; + } + bool operator == (const ThriftHiveMetastore_alter_database_args & rhs) const { if (!(dbname == rhs.dbname)) @@ -903,6 +987,14 @@ class ThriftHiveMetastore_alter_database_result { _ThriftHiveMetastore_alter_database_result__isset __isset; + void __set_o1(const MetaException& val) { + o1 = val; + } + + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_alter_database_result & rhs) const { if (!(o1 == rhs.o1)) @@ -960,6 +1052,10 @@ class ThriftHiveMetastore_get_type_args { _ThriftHiveMetastore_get_type_args__isset __isset; + void __set_name(const std::string& val) { + name = val; + } + bool operator == (const ThriftHiveMetastore_get_type_args & rhs) const { if (!(name == rhs.name)) @@ -1011,6 +1107,18 @@ class ThriftHiveMetastore_get_type_result { _ThriftHiveMetastore_get_type_result__isset __isset; + void __set_success(const Type& val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_get_type_result & rhs) const { if (!(success == rhs.success)) @@ -1072,6 +1180,10 @@ class ThriftHiveMetastore_create_type_args { _ThriftHiveMetastore_create_type_args__isset __isset; + void __set_type(const Type& val) { + type = val; + } + bool operator == (const ThriftHiveMetastore_create_type_args & rhs) const { if (!(type == rhs.type)) @@ -1125,6 +1237,22 @@ class ThriftHiveMetastore_create_type_result { _ThriftHiveMetastore_create_type_result__isset __isset; + void __set_success(const bool val) { + success = val; + } + + void __set_o1(const AlreadyExistsException& val) { + o1 = val; + } + + void __set_o2(const InvalidObjectException& val) { + o2 = val; + } + + void __set_o3(const MetaException& val) { + o3 = val; + } + bool operator == (const ThriftHiveMetastore_create_type_result & rhs) const { if (!(success == rhs.success)) @@ -1190,6 +1318,10 @@ class ThriftHiveMetastore_drop_type_args { _ThriftHiveMetastore_drop_type_args__isset __isset; + void __set_type(const std::string& val) { + type = val; + } + bool operator == (const ThriftHiveMetastore_drop_type_args & rhs) const { if (!(type == rhs.type)) @@ -1241,6 +1373,18 @@ class ThriftHiveMetastore_drop_type_result { _ThriftHiveMetastore_drop_type_result__isset __isset; + void __set_success(const bool val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_drop_type_result & rhs) const { if (!(success == rhs.success)) @@ -1302,6 +1446,10 @@ class ThriftHiveMetastore_get_type_all_args { _ThriftHiveMetastore_get_type_all_args__isset __isset; + void __set_name(const std::string& val) { + name = val; + } + bool operator == (const ThriftHiveMetastore_get_type_all_args & rhs) const { if (!(name == rhs.name)) @@ -1351,6 +1499,14 @@ class ThriftHiveMetastore_get_type_all_result { _ThriftHiveMetastore_get_type_all_result__isset __isset; + void __set_success(const std::map & val) { + success = val; + } + + void __set_o2(const MetaException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_get_type_all_result & rhs) const { if (!(success == rhs.success)) @@ -1410,6 +1566,14 @@ class ThriftHiveMetastore_get_fields_args { _ThriftHiveMetastore_get_fields_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_table_name(const std::string& val) { + table_name = val; + } + bool operator == (const ThriftHiveMetastore_get_fields_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -1466,6 +1630,22 @@ class ThriftHiveMetastore_get_fields_result { _ThriftHiveMetastore_get_fields_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + + void __set_o2(const UnknownTableException& val) { + o2 = val; + } + + void __set_o3(const UnknownDBException& val) { + o3 = val; + } + bool operator == (const ThriftHiveMetastore_get_fields_result & rhs) const { if (!(success == rhs.success)) @@ -1533,6 +1713,14 @@ class ThriftHiveMetastore_get_schema_args { _ThriftHiveMetastore_get_schema_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_table_name(const std::string& val) { + table_name = val; + } + bool operator == (const ThriftHiveMetastore_get_schema_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -1589,6 +1777,22 @@ class ThriftHiveMetastore_get_schema_result { _ThriftHiveMetastore_get_schema_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + + void __set_o2(const UnknownTableException& val) { + o2 = val; + } + + void __set_o3(const UnknownDBException& val) { + o3 = val; + } + bool operator == (const ThriftHiveMetastore_get_schema_result & rhs) const { if (!(success == rhs.success)) @@ -1654,6 +1858,10 @@ class ThriftHiveMetastore_create_table_args { _ThriftHiveMetastore_create_table_args__isset __isset; + void __set_tbl(const Table& val) { + tbl = val; + } + bool operator == (const ThriftHiveMetastore_create_table_args & rhs) const { if (!(tbl == rhs.tbl)) @@ -1707,6 +1915,22 @@ class ThriftHiveMetastore_create_table_result { _ThriftHiveMetastore_create_table_result__isset __isset; + void __set_o1(const AlreadyExistsException& val) { + o1 = val; + } + + void __set_o2(const InvalidObjectException& val) { + o2 = val; + } + + void __set_o3(const MetaException& val) { + o3 = val; + } + + void __set_o4(const NoSuchObjectException& val) { + o4 = val; + } + bool operator == (const ThriftHiveMetastore_create_table_result & rhs) const { if (!(o1 == rhs.o1)) @@ -1776,6 +2000,18 @@ class ThriftHiveMetastore_drop_table_args { _ThriftHiveMetastore_drop_table_args__isset __isset; + void __set_dbname(const std::string& val) { + dbname = val; + } + + void __set_name(const std::string& val) { + name = val; + } + + void __set_deleteData(const bool val) { + deleteData = val; + } + bool operator == (const ThriftHiveMetastore_drop_table_args & rhs) const { if (!(dbname == rhs.dbname)) @@ -1831,6 +2067,14 @@ class ThriftHiveMetastore_drop_table_result { _ThriftHiveMetastore_drop_table_result__isset __isset; + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } + + void __set_o3(const MetaException& val) { + o3 = val; + } + bool operator == (const ThriftHiveMetastore_drop_table_result & rhs) const { if (!(o1 == rhs.o1)) @@ -1890,6 +2134,14 @@ class ThriftHiveMetastore_get_tables_args { _ThriftHiveMetastore_get_tables_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_pattern(const std::string& val) { + pattern = val; + } + bool operator == (const ThriftHiveMetastore_get_tables_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -1942,6 +2194,14 @@ class ThriftHiveMetastore_get_tables_result { _ThriftHiveMetastore_get_tables_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_get_tables_result & rhs) const { if (!(success == rhs.success)) @@ -1999,6 +2259,10 @@ class ThriftHiveMetastore_get_all_tables_args { _ThriftHiveMetastore_get_all_tables_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + bool operator == (const ThriftHiveMetastore_get_all_tables_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -2048,6 +2312,14 @@ class ThriftHiveMetastore_get_all_tables_result { _ThriftHiveMetastore_get_all_tables_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_get_all_tables_result & rhs) const { if (!(success == rhs.success)) @@ -2107,6 +2379,14 @@ class ThriftHiveMetastore_get_table_args { _ThriftHiveMetastore_get_table_args__isset __isset; + void __set_dbname(const std::string& val) { + dbname = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + bool operator == (const ThriftHiveMetastore_get_table_args & rhs) const { if (!(dbname == rhs.dbname)) @@ -2161,6 +2441,18 @@ class ThriftHiveMetastore_get_table_result { _ThriftHiveMetastore_get_table_result__isset __isset; + void __set_success(const Table& val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_get_table_result & rhs) const { if (!(success == rhs.success)) @@ -2224,6 +2516,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { _ThriftHiveMetastore_get_table_objects_by_name_args__isset __isset; + void __set_dbname(const std::string& val) { + dbname = val; + } + + void __set_tbl_names(const std::vector & val) { + tbl_names = val; + } + bool operator == (const ThriftHiveMetastore_get_table_objects_by_name_args & rhs) const { if (!(dbname == rhs.dbname)) @@ -2280,6 +2580,22 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { _ThriftHiveMetastore_get_table_objects_by_name_result__isset __isset; + void __set_success(const std::vector
& val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + + void __set_o2(const InvalidOperationException& val) { + o2 = val; + } + + void __set_o3(const UnknownDBException& val) { + o3 = val; + } + bool operator == (const ThriftHiveMetastore_get_table_objects_by_name_result & rhs) const { if (!(success == rhs.success)) @@ -2349,6 +2665,18 @@ class ThriftHiveMetastore_get_table_names_by_filter_args { _ThriftHiveMetastore_get_table_names_by_filter_args__isset __isset; + void __set_dbname(const std::string& val) { + dbname = val; + } + + void __set_filter(const std::string& val) { + filter = val; + } + + void __set_max_tables(const int16_t val) { + max_tables = val; + } + bool operator == (const ThriftHiveMetastore_get_table_names_by_filter_args & rhs) const { if (!(dbname == rhs.dbname)) @@ -2408,6 +2736,22 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { _ThriftHiveMetastore_get_table_names_by_filter_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + + void __set_o2(const InvalidOperationException& val) { + o2 = val; + } + + void __set_o3(const UnknownDBException& val) { + o3 = val; + } + bool operator == (const ThriftHiveMetastore_get_table_names_by_filter_result & rhs) const { if (!(success == rhs.success)) @@ -2477,6 +2821,18 @@ class ThriftHiveMetastore_alter_table_args { _ThriftHiveMetastore_alter_table_args__isset __isset; + void __set_dbname(const std::string& val) { + dbname = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_new_tbl(const Table& val) { + new_tbl = val; + } + bool operator == (const ThriftHiveMetastore_alter_table_args & rhs) const { if (!(dbname == rhs.dbname)) @@ -2532,6 +2888,14 @@ class ThriftHiveMetastore_alter_table_result { _ThriftHiveMetastore_alter_table_result__isset __isset; + void __set_o1(const InvalidOperationException& val) { + o1 = val; + } + + void __set_o2(const MetaException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_alter_table_result & rhs) const { if (!(o1 == rhs.o1)) @@ -2589,6 +2953,10 @@ class ThriftHiveMetastore_add_partition_args { _ThriftHiveMetastore_add_partition_args__isset __isset; + void __set_new_part(const Partition& val) { + new_part = val; + } + bool operator == (const ThriftHiveMetastore_add_partition_args & rhs) const { if (!(new_part == rhs.new_part)) @@ -2642,6 +3010,22 @@ class ThriftHiveMetastore_add_partition_result { _ThriftHiveMetastore_add_partition_result__isset __isset; + void __set_success(const Partition& val) { + success = val; + } + + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } + + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } + + void __set_o3(const MetaException& val) { + o3 = val; + } + bool operator == (const ThriftHiveMetastore_add_partition_result & rhs) const { if (!(success == rhs.success)) @@ -2707,6 +3091,10 @@ class ThriftHiveMetastore_add_partitions_args { _ThriftHiveMetastore_add_partitions_args__isset __isset; + void __set_new_parts(const std::vector & val) { + new_parts = val; + } + bool operator == (const ThriftHiveMetastore_add_partitions_args & rhs) const { if (!(new_parts == rhs.new_parts)) @@ -2760,6 +3148,22 @@ class ThriftHiveMetastore_add_partitions_result { _ThriftHiveMetastore_add_partitions_result__isset __isset; + void __set_success(const int32_t val) { + success = val; + } + + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } + + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } + + void __set_o3(const MetaException& val) { + o3 = val; + } + bool operator == (const ThriftHiveMetastore_add_partitions_result & rhs) const { if (!(success == rhs.success)) @@ -2829,6 +3233,18 @@ class ThriftHiveMetastore_append_partition_args { _ThriftHiveMetastore_append_partition_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_part_vals(const std::vector & val) { + part_vals = val; + } + bool operator == (const ThriftHiveMetastore_append_partition_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -2888,6 +3304,22 @@ class ThriftHiveMetastore_append_partition_result { _ThriftHiveMetastore_append_partition_result__isset __isset; + void __set_success(const Partition& val) { + success = val; + } + + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } + + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } + + void __set_o3(const MetaException& val) { + o3 = val; + } + bool operator == (const ThriftHiveMetastore_append_partition_result & rhs) const { if (!(success == rhs.success)) @@ -2957,6 +3389,18 @@ class ThriftHiveMetastore_append_partition_by_name_args { _ThriftHiveMetastore_append_partition_by_name_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_part_name(const std::string& val) { + part_name = val; + } + bool operator == (const ThriftHiveMetastore_append_partition_by_name_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -3016,6 +3460,22 @@ class ThriftHiveMetastore_append_partition_by_name_result { _ThriftHiveMetastore_append_partition_by_name_result__isset __isset; + void __set_success(const Partition& val) { + success = val; + } + + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } + + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } + + void __set_o3(const MetaException& val) { + o3 = val; + } + bool operator == (const ThriftHiveMetastore_append_partition_by_name_result & rhs) const { if (!(success == rhs.success)) @@ -3087,6 +3547,22 @@ class ThriftHiveMetastore_drop_partition_args { _ThriftHiveMetastore_drop_partition_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_part_vals(const std::vector & val) { + part_vals = val; + } + + void __set_deleteData(const bool val) { + deleteData = val; + } + bool operator == (const ThriftHiveMetastore_drop_partition_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -3147,6 +3623,18 @@ class ThriftHiveMetastore_drop_partition_result { _ThriftHiveMetastore_drop_partition_result__isset __isset; + void __set_success(const bool val) { + success = val; + } + + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } + + void __set_o2(const MetaException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_drop_partition_result & rhs) const { if (!(success == rhs.success)) @@ -3214,6 +3702,22 @@ class ThriftHiveMetastore_drop_partition_by_name_args { _ThriftHiveMetastore_drop_partition_by_name_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_part_name(const std::string& val) { + part_name = val; + } + + void __set_deleteData(const bool val) { + deleteData = val; + } + bool operator == (const ThriftHiveMetastore_drop_partition_by_name_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -3274,6 +3778,18 @@ class ThriftHiveMetastore_drop_partition_by_name_result { _ThriftHiveMetastore_drop_partition_by_name_result__isset __isset; + void __set_success(const bool val) { + success = val; + } + + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } + + void __set_o2(const MetaException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_drop_partition_by_name_result & rhs) const { if (!(success == rhs.success)) @@ -3339,6 +3855,18 @@ class ThriftHiveMetastore_get_partition_args { _ThriftHiveMetastore_get_partition_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_part_vals(const std::vector & val) { + part_vals = val; + } + bool operator == (const ThriftHiveMetastore_get_partition_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -3396,6 +3924,18 @@ class ThriftHiveMetastore_get_partition_result { _ThriftHiveMetastore_get_partition_result__isset __isset; + void __set_success(const Partition& val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_get_partition_result & rhs) const { if (!(success == rhs.success)) @@ -3465,6 +4005,26 @@ class ThriftHiveMetastore_get_partition_with_auth_args { _ThriftHiveMetastore_get_partition_with_auth_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_part_vals(const std::vector & val) { + part_vals = val; + } + + void __set_user_name(const std::string& val) { + user_name = val; + } + + void __set_group_names(const std::vector & val) { + group_names = val; + } + bool operator == (const ThriftHiveMetastore_get_partition_with_auth_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -3528,6 +4088,18 @@ class ThriftHiveMetastore_get_partition_with_auth_result { _ThriftHiveMetastore_get_partition_with_auth_result__isset __isset; + void __set_success(const Partition& val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_get_partition_with_auth_result & rhs) const { if (!(success == rhs.success)) @@ -3593,6 +4165,18 @@ class ThriftHiveMetastore_get_partition_by_name_args { _ThriftHiveMetastore_get_partition_by_name_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_part_name(const std::string& val) { + part_name = val; + } + bool operator == (const ThriftHiveMetastore_get_partition_by_name_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -3650,6 +4234,18 @@ class ThriftHiveMetastore_get_partition_by_name_result { _ThriftHiveMetastore_get_partition_by_name_result__isset __isset; + void __set_success(const Partition& val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_get_partition_by_name_result & rhs) const { if (!(success == rhs.success)) @@ -3715,6 +4311,18 @@ class ThriftHiveMetastore_get_partitions_args { _ThriftHiveMetastore_get_partitions_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_max_parts(const int16_t val) { + max_parts = val; + } + bool operator == (const ThriftHiveMetastore_get_partitions_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -3772,6 +4380,18 @@ class ThriftHiveMetastore_get_partitions_result { _ThriftHiveMetastore_get_partitions_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } + + void __set_o2(const MetaException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_get_partitions_result & rhs) const { if (!(success == rhs.success)) @@ -3841,6 +4461,26 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { _ThriftHiveMetastore_get_partitions_with_auth_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_max_parts(const int16_t val) { + max_parts = val; + } + + void __set_user_name(const std::string& val) { + user_name = val; + } + + void __set_group_names(const std::vector & val) { + group_names = val; + } + bool operator == (const ThriftHiveMetastore_get_partitions_with_auth_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -3904,6 +4544,18 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { _ThriftHiveMetastore_get_partitions_with_auth_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } + + void __set_o2(const MetaException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_get_partitions_with_auth_result & rhs) const { if (!(success == rhs.success)) @@ -3969,6 +4621,18 @@ class ThriftHiveMetastore_get_partition_names_args { _ThriftHiveMetastore_get_partition_names_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_max_parts(const int16_t val) { + max_parts = val; + } + bool operator == (const ThriftHiveMetastore_get_partition_names_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -4024,6 +4688,14 @@ class ThriftHiveMetastore_get_partition_names_result { _ThriftHiveMetastore_get_partition_names_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o2(const MetaException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_get_partition_names_result & rhs) const { if (!(success == rhs.success)) @@ -4087,6 +4759,22 @@ class ThriftHiveMetastore_get_partitions_ps_args { _ThriftHiveMetastore_get_partitions_ps_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_part_vals(const std::vector & val) { + part_vals = val; + } + + void __set_max_parts(const int16_t val) { + max_parts = val; + } + bool operator == (const ThriftHiveMetastore_get_partitions_ps_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -4145,6 +4833,14 @@ class ThriftHiveMetastore_get_partitions_ps_result { _ThriftHiveMetastore_get_partitions_ps_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_get_partitions_ps_result & rhs) const { if (!(success == rhs.success)) @@ -4212,6 +4908,30 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { _ThriftHiveMetastore_get_partitions_ps_with_auth_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_part_vals(const std::vector & val) { + part_vals = val; + } + + void __set_max_parts(const int16_t val) { + max_parts = val; + } + + void __set_user_name(const std::string& val) { + user_name = val; + } + + void __set_group_names(const std::vector & val) { + group_names = val; + } + bool operator == (const ThriftHiveMetastore_get_partitions_ps_with_auth_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -4278,6 +4998,18 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { _ThriftHiveMetastore_get_partitions_ps_with_auth_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } + + void __set_o2(const MetaException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_get_partitions_ps_with_auth_result & rhs) const { if (!(success == rhs.success)) @@ -4345,6 +5077,22 @@ class ThriftHiveMetastore_get_partition_names_ps_args { _ThriftHiveMetastore_get_partition_names_ps_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_part_vals(const std::vector & val) { + part_vals = val; + } + + void __set_max_parts(const int16_t val) { + max_parts = val; + } + bool operator == (const ThriftHiveMetastore_get_partition_names_ps_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -4403,6 +5151,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { _ThriftHiveMetastore_get_partition_names_ps_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_get_partition_names_ps_result & rhs) const { if (!(success == rhs.success)) @@ -4466,6 +5222,22 @@ class ThriftHiveMetastore_get_partitions_by_filter_args { _ThriftHiveMetastore_get_partitions_by_filter_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_filter(const std::string& val) { + filter = val; + } + + void __set_max_parts(const int16_t val) { + max_parts = val; + } + bool operator == (const ThriftHiveMetastore_get_partitions_by_filter_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -4526,6 +5298,18 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { _ThriftHiveMetastore_get_partitions_by_filter_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_get_partitions_by_filter_result & rhs) const { if (!(success == rhs.success)) @@ -4591,6 +5375,18 @@ class ThriftHiveMetastore_get_partitions_by_names_args { _ThriftHiveMetastore_get_partitions_by_names_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_names(const std::vector & val) { + names = val; + } + bool operator == (const ThriftHiveMetastore_get_partitions_by_names_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -4648,6 +5444,18 @@ class ThriftHiveMetastore_get_partitions_by_names_result { _ThriftHiveMetastore_get_partitions_by_names_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_get_partitions_by_names_result & rhs) const { if (!(success == rhs.success)) @@ -4713,6 +5521,18 @@ class ThriftHiveMetastore_alter_partition_args { _ThriftHiveMetastore_alter_partition_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_new_part(const Partition& val) { + new_part = val; + } + bool operator == (const ThriftHiveMetastore_alter_partition_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -4768,6 +5588,14 @@ class ThriftHiveMetastore_alter_partition_result { _ThriftHiveMetastore_alter_partition_result__isset __isset; + void __set_o1(const InvalidOperationException& val) { + o1 = val; + } + + void __set_o2(const MetaException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_alter_partition_result & rhs) const { if (!(o1 == rhs.o1)) @@ -4827,6 +5655,14 @@ class ThriftHiveMetastore_get_config_value_args { _ThriftHiveMetastore_get_config_value_args__isset __isset; + void __set_name(const std::string& val) { + name = val; + } + + void __set_defaultValue(const std::string& val) { + defaultValue = val; + } + bool operator == (const ThriftHiveMetastore_get_config_value_args & rhs) const { if (!(name == rhs.name)) @@ -4879,6 +5715,14 @@ class ThriftHiveMetastore_get_config_value_result { _ThriftHiveMetastore_get_config_value_result__isset __isset; + void __set_success(const std::string& val) { + success = val; + } + + void __set_o1(const ConfigValSecurityException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_get_config_value_result & rhs) const { if (!(success == rhs.success)) @@ -4936,6 +5780,10 @@ class ThriftHiveMetastore_partition_name_to_vals_args { _ThriftHiveMetastore_partition_name_to_vals_args__isset __isset; + void __set_part_name(const std::string& val) { + part_name = val; + } + bool operator == (const ThriftHiveMetastore_partition_name_to_vals_args & rhs) const { if (!(part_name == rhs.part_name)) @@ -4985,6 +5833,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { _ThriftHiveMetastore_partition_name_to_vals_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_partition_name_to_vals_result & rhs) const { if (!(success == rhs.success)) @@ -5042,6 +5898,10 @@ class ThriftHiveMetastore_partition_name_to_spec_args { _ThriftHiveMetastore_partition_name_to_spec_args__isset __isset; + void __set_part_name(const std::string& val) { + part_name = val; + } + bool operator == (const ThriftHiveMetastore_partition_name_to_spec_args & rhs) const { if (!(part_name == rhs.part_name)) @@ -5091,6 +5951,14 @@ class ThriftHiveMetastore_partition_name_to_spec_result { _ThriftHiveMetastore_partition_name_to_spec_result__isset __isset; + void __set_success(const std::map & val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_partition_name_to_spec_result & rhs) const { if (!(success == rhs.success)) @@ -5154,6 +6022,22 @@ class ThriftHiveMetastore_markPartitionForEvent_args { _ThriftHiveMetastore_markPartitionForEvent_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_part_vals(const std::map & val) { + part_vals = val; + } + + void __set_eventType(const PartitionEventType::type val) { + eventType = val; + } + bool operator == (const ThriftHiveMetastore_markPartitionForEvent_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -5220,6 +6104,30 @@ class ThriftHiveMetastore_markPartitionForEvent_result { _ThriftHiveMetastore_markPartitionForEvent_result__isset __isset; + void __set_o1(const MetaException& val) { + o1 = val; + } + + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } + + void __set_o3(const UnknownDBException& val) { + o3 = val; + } + + void __set_o4(const UnknownTableException& val) { + o4 = val; + } + + void __set_o5(const UnknownPartitionException& val) { + o5 = val; + } + + void __set_o6(const InvalidPartitionException& val) { + o6 = val; + } + bool operator == (const ThriftHiveMetastore_markPartitionForEvent_result & rhs) const { if (!(o1 == rhs.o1)) @@ -5299,6 +6207,22 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { _ThriftHiveMetastore_isPartitionMarkedForEvent_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_part_vals(const std::map & val) { + part_vals = val; + } + + void __set_eventType(const PartitionEventType::type val) { + eventType = val; + } + bool operator == (const ThriftHiveMetastore_isPartitionMarkedForEvent_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -5367,6 +6291,34 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_result { _ThriftHiveMetastore_isPartitionMarkedForEvent_result__isset __isset; + void __set_success(const bool val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } + + void __set_o3(const UnknownDBException& val) { + o3 = val; + } + + void __set_o4(const UnknownTableException& val) { + o4 = val; + } + + void __set_o5(const UnknownPartitionException& val) { + o5 = val; + } + + void __set_o6(const InvalidPartitionException& val) { + o6 = val; + } + bool operator == (const ThriftHiveMetastore_isPartitionMarkedForEvent_result & rhs) const { if (!(success == rhs.success)) @@ -5446,6 +6398,14 @@ class ThriftHiveMetastore_add_index_args { _ThriftHiveMetastore_add_index_args__isset __isset; + void __set_new_index(const Index& val) { + new_index = val; + } + + void __set_index_table(const Table& val) { + index_table = val; + } + bool operator == (const ThriftHiveMetastore_add_index_args & rhs) const { if (!(new_index == rhs.new_index)) @@ -5502,6 +6462,22 @@ class ThriftHiveMetastore_add_index_result { _ThriftHiveMetastore_add_index_result__isset __isset; + void __set_success(const Index& val) { + success = val; + } + + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } + + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } + + void __set_o3(const MetaException& val) { + o3 = val; + } + bool operator == (const ThriftHiveMetastore_add_index_result & rhs) const { if (!(success == rhs.success)) @@ -5573,6 +6549,22 @@ class ThriftHiveMetastore_alter_index_args { _ThriftHiveMetastore_alter_index_args__isset __isset; + void __set_dbname(const std::string& val) { + dbname = val; + } + + void __set_base_tbl_name(const std::string& val) { + base_tbl_name = val; + } + + void __set_idx_name(const std::string& val) { + idx_name = val; + } + + void __set_new_idx(const Index& val) { + new_idx = val; + } + bool operator == (const ThriftHiveMetastore_alter_index_args & rhs) const { if (!(dbname == rhs.dbname)) @@ -5631,6 +6623,14 @@ class ThriftHiveMetastore_alter_index_result { _ThriftHiveMetastore_alter_index_result__isset __isset; + void __set_o1(const InvalidOperationException& val) { + o1 = val; + } + + void __set_o2(const MetaException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_alter_index_result & rhs) const { if (!(o1 == rhs.o1)) @@ -5694,6 +6694,22 @@ class ThriftHiveMetastore_drop_index_by_name_args { _ThriftHiveMetastore_drop_index_by_name_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_index_name(const std::string& val) { + index_name = val; + } + + void __set_deleteData(const bool val) { + deleteData = val; + } + bool operator == (const ThriftHiveMetastore_drop_index_by_name_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -5754,6 +6770,18 @@ class ThriftHiveMetastore_drop_index_by_name_result { _ThriftHiveMetastore_drop_index_by_name_result__isset __isset; + void __set_success(const bool val) { + success = val; + } + + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } + + void __set_o2(const MetaException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_drop_index_by_name_result & rhs) const { if (!(success == rhs.success)) @@ -5819,6 +6847,18 @@ class ThriftHiveMetastore_get_index_by_name_args { _ThriftHiveMetastore_get_index_by_name_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_index_name(const std::string& val) { + index_name = val; + } + bool operator == (const ThriftHiveMetastore_get_index_by_name_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -5876,6 +6916,18 @@ class ThriftHiveMetastore_get_index_by_name_result { _ThriftHiveMetastore_get_index_by_name_result__isset __isset; + void __set_success(const Index& val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_get_index_by_name_result & rhs) const { if (!(success == rhs.success)) @@ -5941,6 +6993,18 @@ class ThriftHiveMetastore_get_indexes_args { _ThriftHiveMetastore_get_indexes_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_max_indexes(const int16_t val) { + max_indexes = val; + } + bool operator == (const ThriftHiveMetastore_get_indexes_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -5998,6 +7062,18 @@ class ThriftHiveMetastore_get_indexes_result { _ThriftHiveMetastore_get_indexes_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } + + void __set_o2(const MetaException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_get_indexes_result & rhs) const { if (!(success == rhs.success)) @@ -6063,6 +7139,18 @@ class ThriftHiveMetastore_get_index_names_args { _ThriftHiveMetastore_get_index_names_args__isset __isset; + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_max_indexes(const int16_t val) { + max_indexes = val; + } + bool operator == (const ThriftHiveMetastore_get_index_names_args & rhs) const { if (!(db_name == rhs.db_name)) @@ -6118,6 +7206,14 @@ class ThriftHiveMetastore_get_index_names_result { _ThriftHiveMetastore_get_index_names_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o2(const MetaException& val) { + o2 = val; + } + bool operator == (const ThriftHiveMetastore_get_index_names_result & rhs) const { if (!(success == rhs.success)) @@ -6175,6 +7271,10 @@ class ThriftHiveMetastore_create_role_args { _ThriftHiveMetastore_create_role_args__isset __isset; + void __set_role(const Role& val) { + role = val; + } + bool operator == (const ThriftHiveMetastore_create_role_args & rhs) const { if (!(role == rhs.role)) @@ -6224,6 +7324,14 @@ class ThriftHiveMetastore_create_role_result { _ThriftHiveMetastore_create_role_result__isset __isset; + void __set_success(const bool val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_create_role_result & rhs) const { if (!(success == rhs.success)) @@ -6281,6 +7389,10 @@ class ThriftHiveMetastore_drop_role_args { _ThriftHiveMetastore_drop_role_args__isset __isset; + void __set_role_name(const std::string& val) { + role_name = val; + } + bool operator == (const ThriftHiveMetastore_drop_role_args & rhs) const { if (!(role_name == rhs.role_name)) @@ -6330,6 +7442,14 @@ class ThriftHiveMetastore_drop_role_result { _ThriftHiveMetastore_drop_role_result__isset __isset; + void __set_success(const bool val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_drop_role_result & rhs) const { if (!(success == rhs.success)) @@ -6426,6 +7546,14 @@ class ThriftHiveMetastore_get_role_names_result { _ThriftHiveMetastore_get_role_names_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_get_role_names_result & rhs) const { if (!(success == rhs.success)) @@ -6493,6 +7621,30 @@ class ThriftHiveMetastore_grant_role_args { _ThriftHiveMetastore_grant_role_args__isset __isset; + void __set_role_name(const std::string& val) { + role_name = val; + } + + void __set_principal_name(const std::string& val) { + principal_name = val; + } + + void __set_principal_type(const PrincipalType::type val) { + principal_type = val; + } + + void __set_grantor(const std::string& val) { + grantor = val; + } + + void __set_grantorType(const PrincipalType::type val) { + grantorType = val; + } + + void __set_grant_option(const bool val) { + grant_option = val; + } + bool operator == (const ThriftHiveMetastore_grant_role_args & rhs) const { if (!(role_name == rhs.role_name)) @@ -6557,6 +7709,14 @@ class ThriftHiveMetastore_grant_role_result { _ThriftHiveMetastore_grant_role_result__isset __isset; + void __set_success(const bool val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_grant_role_result & rhs) const { if (!(success == rhs.success)) @@ -6618,6 +7778,18 @@ class ThriftHiveMetastore_revoke_role_args { _ThriftHiveMetastore_revoke_role_args__isset __isset; + void __set_role_name(const std::string& val) { + role_name = val; + } + + void __set_principal_name(const std::string& val) { + principal_name = val; + } + + void __set_principal_type(const PrincipalType::type val) { + principal_type = val; + } + bool operator == (const ThriftHiveMetastore_revoke_role_args & rhs) const { if (!(role_name == rhs.role_name)) @@ -6673,6 +7845,14 @@ class ThriftHiveMetastore_revoke_role_result { _ThriftHiveMetastore_revoke_role_result__isset __isset; + void __set_success(const bool val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_revoke_role_result & rhs) const { if (!(success == rhs.success)) @@ -6732,6 +7912,14 @@ class ThriftHiveMetastore_list_roles_args { _ThriftHiveMetastore_list_roles_args__isset __isset; + void __set_principal_name(const std::string& val) { + principal_name = val; + } + + void __set_principal_type(const PrincipalType::type val) { + principal_type = val; + } + bool operator == (const ThriftHiveMetastore_list_roles_args & rhs) const { if (!(principal_name == rhs.principal_name)) @@ -6784,6 +7972,14 @@ class ThriftHiveMetastore_list_roles_result { _ThriftHiveMetastore_list_roles_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_list_roles_result & rhs) const { if (!(success == rhs.success)) @@ -6845,6 +8041,18 @@ class ThriftHiveMetastore_get_privilege_set_args { _ThriftHiveMetastore_get_privilege_set_args__isset __isset; + void __set_hiveObject(const HiveObjectRef& val) { + hiveObject = val; + } + + void __set_user_name(const std::string& val) { + user_name = val; + } + + void __set_group_names(const std::vector & val) { + group_names = val; + } + bool operator == (const ThriftHiveMetastore_get_privilege_set_args & rhs) const { if (!(hiveObject == rhs.hiveObject)) @@ -6900,6 +8108,14 @@ class ThriftHiveMetastore_get_privilege_set_result { _ThriftHiveMetastore_get_privilege_set_result__isset __isset; + void __set_success(const PrincipalPrivilegeSet& val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_get_privilege_set_result & rhs) const { if (!(success == rhs.success)) @@ -6961,6 +8177,18 @@ class ThriftHiveMetastore_list_privileges_args { _ThriftHiveMetastore_list_privileges_args__isset __isset; + void __set_principal_name(const std::string& val) { + principal_name = val; + } + + void __set_principal_type(const PrincipalType::type val) { + principal_type = val; + } + + void __set_hiveObject(const HiveObjectRef& val) { + hiveObject = val; + } + bool operator == (const ThriftHiveMetastore_list_privileges_args & rhs) const { if (!(principal_name == rhs.principal_name)) @@ -7016,6 +8244,14 @@ class ThriftHiveMetastore_list_privileges_result { _ThriftHiveMetastore_list_privileges_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_list_privileges_result & rhs) const { if (!(success == rhs.success)) @@ -7073,6 +8309,10 @@ class ThriftHiveMetastore_grant_privileges_args { _ThriftHiveMetastore_grant_privileges_args__isset __isset; + void __set_privileges(const PrivilegeBag& val) { + privileges = val; + } + bool operator == (const ThriftHiveMetastore_grant_privileges_args & rhs) const { if (!(privileges == rhs.privileges)) @@ -7122,6 +8362,14 @@ class ThriftHiveMetastore_grant_privileges_result { _ThriftHiveMetastore_grant_privileges_result__isset __isset; + void __set_success(const bool val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_grant_privileges_result & rhs) const { if (!(success == rhs.success)) @@ -7179,6 +8427,10 @@ class ThriftHiveMetastore_revoke_privileges_args { _ThriftHiveMetastore_revoke_privileges_args__isset __isset; + void __set_privileges(const PrivilegeBag& val) { + privileges = val; + } + bool operator == (const ThriftHiveMetastore_revoke_privileges_args & rhs) const { if (!(privileges == rhs.privileges)) @@ -7228,6 +8480,14 @@ class ThriftHiveMetastore_revoke_privileges_result { _ThriftHiveMetastore_revoke_privileges_result__isset __isset; + void __set_success(const bool val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_revoke_privileges_result & rhs) const { if (!(success == rhs.success)) @@ -7287,6 +8547,14 @@ class ThriftHiveMetastore_get_delegation_token_args { _ThriftHiveMetastore_get_delegation_token_args__isset __isset; + void __set_token_owner(const std::string& val) { + token_owner = val; + } + + void __set_renewer_kerberos_principal_name(const std::string& val) { + renewer_kerberos_principal_name = val; + } + bool operator == (const ThriftHiveMetastore_get_delegation_token_args & rhs) const { if (!(token_owner == rhs.token_owner)) @@ -7339,6 +8607,14 @@ class ThriftHiveMetastore_get_delegation_token_result { _ThriftHiveMetastore_get_delegation_token_result__isset __isset; + void __set_success(const std::string& val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_get_delegation_token_result & rhs) const { if (!(success == rhs.success)) @@ -7396,6 +8672,10 @@ class ThriftHiveMetastore_renew_delegation_token_args { _ThriftHiveMetastore_renew_delegation_token_args__isset __isset; + void __set_token_str_form(const std::string& val) { + token_str_form = val; + } + bool operator == (const ThriftHiveMetastore_renew_delegation_token_args & rhs) const { if (!(token_str_form == rhs.token_str_form)) @@ -7445,6 +8725,14 @@ class ThriftHiveMetastore_renew_delegation_token_result { _ThriftHiveMetastore_renew_delegation_token_result__isset __isset; + void __set_success(const int64_t val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_renew_delegation_token_result & rhs) const { if (!(success == rhs.success)) @@ -7502,6 +8790,10 @@ class ThriftHiveMetastore_cancel_delegation_token_args { _ThriftHiveMetastore_cancel_delegation_token_args__isset __isset; + void __set_token_str_form(const std::string& val) { + token_str_form = val; + } + bool operator == (const ThriftHiveMetastore_cancel_delegation_token_args & rhs) const { if (!(token_str_form == rhs.token_str_form)) @@ -7549,6 +8841,10 @@ class ThriftHiveMetastore_cancel_delegation_token_result { _ThriftHiveMetastore_cancel_delegation_token_result__isset __isset; + void __set_o1(const MetaException& val) { + o1 = val; + } + bool operator == (const ThriftHiveMetastore_cancel_delegation_token_result & rhs) const { if (!(o1 == rhs.o1)) @@ -7788,71 +9084,71 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public f class ThriftHiveMetastoreProcessor : virtual public ::apache::thrift::TProcessor, public facebook::fb303::FacebookServiceProcessor { protected: boost::shared_ptr iface_; - virtual bool process_fn(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, std::string& fname, int32_t seqid); + virtual bool process_fn(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, std::string& fname, int32_t seqid, void* callContext); private: - std::map processMap_; - void process_create_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_drop_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_databases(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_all_databases(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_alter_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_type(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_create_type(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_drop_type(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_type_all(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_fields(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_schema(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_create_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_drop_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_tables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_all_tables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_table_objects_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_table_names_by_filter(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_alter_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_add_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_add_partitions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_append_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_append_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_drop_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_drop_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_partition_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_partitions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_partitions_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_partition_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_partitions_ps(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_partitions_ps_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_partition_names_ps(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_partitions_by_filter(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_partitions_by_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_alter_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_config_value(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_partition_name_to_vals(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_partition_name_to_spec(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_markPartitionForEvent(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_isPartitionMarkedForEvent(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_add_index(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_alter_index(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_drop_index_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_index_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_indexes(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_index_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_create_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_drop_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_role_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_grant_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_revoke_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_list_roles(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_privilege_set(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_list_privileges(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_grant_privileges(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_revoke_privileges(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_get_delegation_token(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_renew_delegation_token(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_cancel_delegation_token(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); + std::map processMap_; + void process_create_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_drop_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_databases(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_all_databases(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_alter_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_type(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_create_type(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_drop_type(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_type_all(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_fields(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_schema(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_create_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_drop_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_tables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_all_tables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_table_objects_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_table_names_by_filter(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_alter_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_add_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_add_partitions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_append_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_append_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_drop_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_drop_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_partition_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_partitions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_partitions_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_partition_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_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); + void process_get_partitions_by_filter(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_partitions_by_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_alter_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_config_value(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_partition_name_to_vals(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_partition_name_to_spec(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_markPartitionForEvent(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_isPartitionMarkedForEvent(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_add_index(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_alter_index(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_drop_index_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_index_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_indexes(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_index_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_create_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_drop_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_role_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_grant_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_revoke_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_list_roles(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_privilege_set(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_list_privileges(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_grant_privileges(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_revoke_privileges(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_delegation_token(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_renew_delegation_token(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_cancel_delegation_token(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); public: ThriftHiveMetastoreProcessor(boost::shared_ptr iface) : facebook::fb303::FacebookServiceProcessor(iface), @@ -7921,7 +9217,7 @@ class ThriftHiveMetastoreProcessor : virtual public ::apache::thrift::TProcessor processMap_["cancel_delegation_token"] = &ThriftHiveMetastoreProcessor::process_cancel_delegation_token; } - virtual bool process(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot); + virtual bool process(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot, void* callContext); virtual ~ThriftHiveMetastoreProcessor() {} }; @@ -7943,15 +9239,15 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } public: void create_database(const Database& database) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { ifaces_[i]->create_database(database); } } void get_database(Database& _return, const std::string& name) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_database(_return, name); return; @@ -7962,15 +9258,15 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void drop_database(const std::string& name, const bool deleteData, const bool cascade) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { ifaces_[i]->drop_database(name, deleteData, cascade); } } void get_databases(std::vector & _return, const std::string& pattern) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_databases(_return, pattern); return; @@ -7981,8 +9277,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void get_all_databases(std::vector & _return) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_all_databases(_return); return; @@ -7993,15 +9289,15 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void alter_database(const std::string& dbname, const Database& db) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { ifaces_[i]->alter_database(dbname, db); } } void get_type(Type& _return, const std::string& name) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_type(_return, name); return; @@ -8012,8 +9308,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } bool create_type(const Type& type) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { return ifaces_[i]->create_type(type); } else { @@ -8023,8 +9319,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } bool drop_type(const std::string& type) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { return ifaces_[i]->drop_type(type); } else { @@ -8034,8 +9330,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void get_type_all(std::map & _return, const std::string& name) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_type_all(_return, name); return; @@ -8046,8 +9342,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void get_fields(std::vector & _return, const std::string& db_name, const std::string& table_name) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_fields(_return, db_name, table_name); return; @@ -8058,8 +9354,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void get_schema(std::vector & _return, const std::string& db_name, const std::string& table_name) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_schema(_return, db_name, table_name); return; @@ -8070,22 +9366,22 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void create_table(const Table& tbl) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { ifaces_[i]->create_table(tbl); } } void drop_table(const std::string& dbname, const std::string& name, const bool deleteData) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { ifaces_[i]->drop_table(dbname, name, deleteData); } } void get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_tables(_return, db_name, pattern); return; @@ -8096,8 +9392,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void get_all_tables(std::vector & _return, const std::string& db_name) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_all_tables(_return, db_name); return; @@ -8108,8 +9404,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void get_table(Table& _return, const std::string& dbname, const std::string& tbl_name) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_table(_return, dbname, tbl_name); return; @@ -8120,8 +9416,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void get_table_objects_by_name(std::vector
& _return, const std::string& dbname, const std::vector & tbl_names) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_table_objects_by_name(_return, dbname, tbl_names); return; @@ -8132,8 +9428,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void get_table_names_by_filter(std::vector & _return, const std::string& dbname, const std::string& filter, const int16_t max_tables) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_table_names_by_filter(_return, dbname, filter, max_tables); return; @@ -8144,15 +9440,15 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void alter_table(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { ifaces_[i]->alter_table(dbname, tbl_name, new_tbl); } } void add_partition(Partition& _return, const Partition& new_part) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->add_partition(_return, new_part); return; @@ -8163,8 +9459,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } int32_t add_partitions(const std::vector & new_parts) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { return ifaces_[i]->add_partitions(new_parts); } else { @@ -8174,8 +9470,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void append_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->append_partition(_return, db_name, tbl_name, part_vals); return; @@ -8186,8 +9482,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void append_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->append_partition_by_name(_return, db_name, tbl_name, part_name); return; @@ -8198,8 +9494,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } bool drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { return ifaces_[i]->drop_partition(db_name, tbl_name, part_vals, deleteData); } else { @@ -8209,8 +9505,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } bool drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { return ifaces_[i]->drop_partition_by_name(db_name, tbl_name, part_name, deleteData); } else { @@ -8220,8 +9516,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void get_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_partition(_return, db_name, tbl_name, part_vals); return; @@ -8232,8 +9528,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void get_partition_with_auth(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const std::string& user_name, const std::vector & group_names) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_partition_with_auth(_return, db_name, tbl_name, part_vals, user_name, group_names); return; @@ -8244,8 +9540,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void get_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_partition_by_name(_return, db_name, tbl_name, part_name); return; @@ -8256,8 +9552,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void get_partitions(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_partitions(_return, db_name, tbl_name, max_parts); return; @@ -8268,8 +9564,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } 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) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_partitions_with_auth(_return, db_name, tbl_name, max_parts, user_name, group_names); return; @@ -8280,8 +9576,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void get_partition_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_partition_names(_return, db_name, tbl_name, max_parts); return; @@ -8292,8 +9588,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } 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) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_partitions_ps(_return, db_name, tbl_name, part_vals, max_parts); return; @@ -8304,8 +9600,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } 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) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_partitions_ps_with_auth(_return, db_name, tbl_name, part_vals, max_parts, user_name, group_names); return; @@ -8316,8 +9612,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } 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) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_partition_names_ps(_return, db_name, tbl_name, part_vals, max_parts); return; @@ -8328,8 +9624,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void get_partitions_by_filter(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_partitions_by_filter(_return, db_name, tbl_name, filter, max_parts); return; @@ -8340,8 +9636,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void get_partitions_by_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & names) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_partitions_by_names(_return, db_name, tbl_name, names); return; @@ -8352,15 +9648,15 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void alter_partition(const std::string& db_name, const std::string& tbl_name, const Partition& new_part) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { ifaces_[i]->alter_partition(db_name, tbl_name, new_part); } } void get_config_value(std::string& _return, const std::string& name, const std::string& defaultValue) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_config_value(_return, name, defaultValue); return; @@ -8371,8 +9667,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void partition_name_to_vals(std::vector & _return, const std::string& part_name) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->partition_name_to_vals(_return, part_name); return; @@ -8383,8 +9679,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void partition_name_to_spec(std::map & _return, const std::string& part_name) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->partition_name_to_spec(_return, part_name); return; @@ -8395,15 +9691,15 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void markPartitionForEvent(const std::string& db_name, const std::string& tbl_name, const std::map & part_vals, const PartitionEventType::type eventType) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { ifaces_[i]->markPartitionForEvent(db_name, tbl_name, part_vals, eventType); } } bool isPartitionMarkedForEvent(const std::string& db_name, const std::string& tbl_name, const std::map & part_vals, const PartitionEventType::type eventType) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { return ifaces_[i]->isPartitionMarkedForEvent(db_name, tbl_name, part_vals, eventType); } else { @@ -8413,8 +9709,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void add_index(Index& _return, const Index& new_index, const Table& index_table) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->add_index(_return, new_index, index_table); return; @@ -8425,15 +9721,15 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void alter_index(const std::string& dbname, const std::string& base_tbl_name, const std::string& idx_name, const Index& new_idx) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { ifaces_[i]->alter_index(dbname, base_tbl_name, idx_name, new_idx); } } bool drop_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name, const bool deleteData) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { return ifaces_[i]->drop_index_by_name(db_name, tbl_name, index_name, deleteData); } else { @@ -8443,8 +9739,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void get_index_by_name(Index& _return, const std::string& db_name, const std::string& tbl_name, const std::string& index_name) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_index_by_name(_return, db_name, tbl_name, index_name); return; @@ -8455,8 +9751,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void get_indexes(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_indexes(_return, db_name, tbl_name, max_indexes); return; @@ -8467,8 +9763,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void get_index_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_index_names(_return, db_name, tbl_name, max_indexes); return; @@ -8479,8 +9775,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } bool create_role(const Role& role) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { return ifaces_[i]->create_role(role); } else { @@ -8490,8 +9786,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } bool drop_role(const std::string& role_name) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { return ifaces_[i]->drop_role(role_name); } else { @@ -8501,8 +9797,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void get_role_names(std::vector & _return) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_role_names(_return); return; @@ -8513,8 +9809,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } bool grant_role(const std::string& role_name, const std::string& principal_name, const PrincipalType::type principal_type, const std::string& grantor, const PrincipalType::type grantorType, const bool grant_option) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { return ifaces_[i]->grant_role(role_name, principal_name, principal_type, grantor, grantorType, grant_option); } else { @@ -8524,8 +9820,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } bool revoke_role(const std::string& role_name, const std::string& principal_name, const PrincipalType::type principal_type) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { return ifaces_[i]->revoke_role(role_name, principal_name, principal_type); } else { @@ -8535,8 +9831,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void list_roles(std::vector & _return, const std::string& principal_name, const PrincipalType::type principal_type) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->list_roles(_return, principal_name, principal_type); return; @@ -8547,8 +9843,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void get_privilege_set(PrincipalPrivilegeSet& _return, const HiveObjectRef& hiveObject, const std::string& user_name, const std::vector & group_names) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_privilege_set(_return, hiveObject, user_name, group_names); return; @@ -8559,8 +9855,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void list_privileges(std::vector & _return, const std::string& principal_name, const PrincipalType::type principal_type, const HiveObjectRef& hiveObject) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->list_privileges(_return, principal_name, principal_type, hiveObject); return; @@ -8571,8 +9867,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } bool grant_privileges(const PrivilegeBag& privileges) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { return ifaces_[i]->grant_privileges(privileges); } else { @@ -8582,8 +9878,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } bool revoke_privileges(const PrivilegeBag& privileges) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { return ifaces_[i]->revoke_privileges(privileges); } else { @@ -8593,8 +9889,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void get_delegation_token(std::string& _return, const std::string& token_owner, const std::string& renewer_kerberos_principal_name) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->get_delegation_token(_return, token_owner, renewer_kerberos_principal_name); return; @@ -8605,8 +9901,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } int64_t renew_delegation_token(const std::string& token_str_form) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { return ifaces_[i]->renew_delegation_token(token_str_form); } else { @@ -8616,8 +9912,8 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi } void cancel_delegation_token(const std::string& token_str_form) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { ifaces_[i]->cancel_delegation_token(token_str_form); } } diff --git metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.cpp metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.cpp index a2eec7a..98f2f10 100644 --- metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.cpp +++ metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ diff --git metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.h metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.h index 65a44d8..ad08586 100644 --- metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.h +++ metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ diff --git metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp index 16d3d81..4a38aec 100644 --- metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp +++ metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -7,6 +7,42 @@ namespace Apache { namespace Hadoop { namespace Hive { +int _kHiveObjectTypeValues[] = { + HiveObjectType::GLOBAL, + HiveObjectType::DATABASE, + HiveObjectType::TABLE, + HiveObjectType::PARTITION, + HiveObjectType::COLUMN +}; +const char* _kHiveObjectTypeNames[] = { + "GLOBAL", + "DATABASE", + "TABLE", + "PARTITION", + "COLUMN" +}; +const std::map _HiveObjectType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(5, _kHiveObjectTypeValues, _kHiveObjectTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kPrincipalTypeValues[] = { + PrincipalType::USER, + PrincipalType::ROLE, + PrincipalType::GROUP +}; +const char* _kPrincipalTypeNames[] = { + "USER", + "ROLE", + "GROUP" +}; +const std::map _PrincipalType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(3, _kPrincipalTypeValues, _kPrincipalTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kPartitionEventTypeValues[] = { + PartitionEventType::LOAD_DONE +}; +const char* _kPartitionEventTypeNames[] = { + "LOAD_DONE" +}; +const std::map _PartitionEventType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(1, _kPartitionEventTypeValues, _kPartitionEventTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + const char* Version::ascii_fingerprint = "07A9615F837F7D0A952B595DD3020972"; const uint8_t Version::binary_fingerprint[16] = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; @@ -246,7 +282,7 @@ uint32_t Type::write(::apache::thrift::protocol::TProtocol* oprot) const { if (this->__isset.fields) { xfer += oprot->writeFieldBegin("fields", ::apache::thrift::protocol::T_LIST, 4); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->fields.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->fields.size())); std::vector ::const_iterator _iter5; for (_iter5 = this->fields.begin(); _iter5 != this->fields.end(); ++_iter5) { @@ -364,7 +400,7 @@ uint32_t HiveObjectRef::write(::apache::thrift::protocol::TProtocol* oprot) cons xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("partValues", ::apache::thrift::protocol::T_LIST, 4); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->partValues.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partValues.size())); std::vector ::const_iterator _iter12; for (_iter12 = this->partValues.begin(); _iter12 != this->partValues.end(); ++_iter12) { @@ -630,7 +666,7 @@ uint32_t PrivilegeBag::write(::apache::thrift::protocol::TProtocol* oprot) const xfer += oprot->writeStructBegin("PrivilegeBag"); xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_LIST, 1); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->privileges.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->privileges.size())); std::vector ::const_iterator _iter20; for (_iter20 = this->privileges.begin(); _iter20 != this->privileges.end(); ++_iter20) { @@ -789,13 +825,13 @@ uint32_t PrincipalPrivilegeSet::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeStructBegin("PrincipalPrivilegeSet"); xfer += oprot->writeFieldBegin("userPrivileges", ::apache::thrift::protocol::T_MAP, 1); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, this->userPrivileges.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast(this->userPrivileges.size())); std::map > ::const_iterator _iter57; for (_iter57 = this->userPrivileges.begin(); _iter57 != this->userPrivileges.end(); ++_iter57) { xfer += oprot->writeString(_iter57->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, _iter57->second.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter57->second.size())); std::vector ::const_iterator _iter58; for (_iter58 = _iter57->second.begin(); _iter58 != _iter57->second.end(); ++_iter58) { @@ -809,13 +845,13 @@ uint32_t PrincipalPrivilegeSet::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("groupPrivileges", ::apache::thrift::protocol::T_MAP, 2); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, this->groupPrivileges.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast(this->groupPrivileges.size())); std::map > ::const_iterator _iter59; for (_iter59 = this->groupPrivileges.begin(); _iter59 != this->groupPrivileges.end(); ++_iter59) { xfer += oprot->writeString(_iter59->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, _iter59->second.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter59->second.size())); std::vector ::const_iterator _iter60; for (_iter60 = _iter59->second.begin(); _iter60 != _iter59->second.end(); ++_iter60) { @@ -829,13 +865,13 @@ uint32_t PrincipalPrivilegeSet::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("rolePrivileges", ::apache::thrift::protocol::T_MAP, 3); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, this->rolePrivileges.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast(this->rolePrivileges.size())); std::map > ::const_iterator _iter61; for (_iter61 = this->rolePrivileges.begin(); _iter61 != this->rolePrivileges.end(); ++_iter61) { xfer += oprot->writeString(_iter61->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, _iter61->second.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter61->second.size())); std::vector ::const_iterator _iter62; for (_iter62 = _iter61->second.begin(); _iter62 != _iter61->second.end(); ++_iter62) { @@ -1032,7 +1068,7 @@ uint32_t Database::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 4); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->parameters.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); std::map ::const_iterator _iter70; for (_iter70 = this->parameters.begin(); _iter70 != this->parameters.end(); ++_iter70) { @@ -1137,7 +1173,7 @@ uint32_t SerDeInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 3); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->parameters.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); std::map ::const_iterator _iter78; for (_iter78 = this->parameters.begin(); _iter78 != this->parameters.end(); ++_iter78) { @@ -1388,7 +1424,7 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeStructBegin("StorageDescriptor"); xfer += oprot->writeFieldBegin("cols", ::apache::thrift::protocol::T_LIST, 1); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->cols.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->cols.size())); std::vector ::const_iterator _iter101; for (_iter101 = this->cols.begin(); _iter101 != this->cols.end(); ++_iter101) { @@ -1417,7 +1453,7 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("bucketCols", ::apache::thrift::protocol::T_LIST, 8); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->bucketCols.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->bucketCols.size())); std::vector ::const_iterator _iter102; for (_iter102 = this->bucketCols.begin(); _iter102 != this->bucketCols.end(); ++_iter102) { @@ -1428,7 +1464,7 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("sortCols", ::apache::thrift::protocol::T_LIST, 9); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->sortCols.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->sortCols.size())); std::vector ::const_iterator _iter103; for (_iter103 = this->sortCols.begin(); _iter103 != this->sortCols.end(); ++_iter103) { @@ -1439,7 +1475,7 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 10); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->parameters.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); std::map ::const_iterator _iter104; for (_iter104 = this->parameters.begin(); _iter104 != this->parameters.end(); ++_iter104) { @@ -1646,7 +1682,7 @@ uint32_t Table::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("partitionKeys", ::apache::thrift::protocol::T_LIST, 8); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->partitionKeys.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitionKeys.size())); std::vector ::const_iterator _iter117; for (_iter117 = this->partitionKeys.begin(); _iter117 != this->partitionKeys.end(); ++_iter117) { @@ -1657,7 +1693,7 @@ uint32_t Table::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 9); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->parameters.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); std::map ::const_iterator _iter118; for (_iter118 = this->parameters.begin(); _iter118 != this->parameters.end(); ++_iter118) { @@ -1817,7 +1853,7 @@ uint32_t Partition::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeStructBegin("Partition"); xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->values.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->values.size())); std::vector ::const_iterator _iter131; for (_iter131 = this->values.begin(); _iter131 != this->values.end(); ++_iter131) { @@ -1843,7 +1879,7 @@ uint32_t Partition::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 7); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->parameters.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); std::map ::const_iterator _iter132; for (_iter132 = this->parameters.begin(); _iter132 != this->parameters.end(); ++_iter132) { @@ -2022,7 +2058,7 @@ uint32_t Index::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 9); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->parameters.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); std::map ::const_iterator _iter140; for (_iter140 = this->parameters.begin(); _iter140 != this->parameters.end(); ++_iter140) { @@ -2123,7 +2159,7 @@ uint32_t Schema::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeStructBegin("Schema"); xfer += oprot->writeFieldBegin("fieldSchemas", ::apache::thrift::protocol::T_LIST, 1); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->fieldSchemas.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->fieldSchemas.size())); std::vector ::const_iterator _iter153; for (_iter153 = this->fieldSchemas.begin(); _iter153 != this->fieldSchemas.end(); ++_iter153) { @@ -2134,7 +2170,7 @@ uint32_t Schema::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("properties", ::apache::thrift::protocol::T_MAP, 2); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->properties.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->properties.size())); std::map ::const_iterator _iter154; for (_iter154 = this->properties.begin(); _iter154 != this->properties.end(); ++_iter154) { diff --git metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h index bd9445a..88610f2 100644 --- metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h +++ metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -26,6 +26,8 @@ struct HiveObjectType { }; }; +extern const std::map _HiveObjectType_VALUES_TO_NAMES; + struct PrincipalType { enum type { USER = 1, @@ -34,12 +36,16 @@ struct PrincipalType { }; }; +extern const std::map _PrincipalType_VALUES_TO_NAMES; + struct PartitionEventType { enum type { LOAD_DONE = 1 }; }; +extern const std::map _PartitionEventType_VALUES_TO_NAMES; + typedef struct _Version__isset { _Version__isset() : version(false), comments(false) {} bool version; @@ -62,6 +68,14 @@ class Version { _Version__isset __isset; + void __set_version(const std::string& val) { + version = val; + } + + void __set_comments(const std::string& val) { + comments = val; + } + bool operator == (const Version & rhs) const { if (!(version == rhs.version)) @@ -105,6 +119,18 @@ class FieldSchema { _FieldSchema__isset __isset; + void __set_name(const std::string& val) { + name = val; + } + + void __set_type(const std::string& val) { + type = val; + } + + void __set_comment(const std::string& val) { + comment = val; + } + bool operator == (const FieldSchema & rhs) const { if (!(name == rhs.name)) @@ -152,6 +178,25 @@ class Type { _Type__isset __isset; + void __set_name(const std::string& val) { + name = val; + } + + void __set_type1(const std::string& val) { + type1 = val; + __isset.type1 = true; + } + + void __set_type2(const std::string& val) { + type2 = val; + __isset.type2 = true; + } + + void __set_fields(const std::vector & val) { + fields = val; + __isset.fields = true; + } + bool operator == (const Type & rhs) const { if (!(name == rhs.name)) @@ -209,6 +254,26 @@ class HiveObjectRef { _HiveObjectRef__isset __isset; + void __set_objectType(const HiveObjectType::type val) { + objectType = val; + } + + void __set_dbName(const std::string& val) { + dbName = val; + } + + void __set_objectName(const std::string& val) { + objectName = val; + } + + void __set_partValues(const std::vector & val) { + partValues = val; + } + + void __set_columnName(const std::string& val) { + columnName = val; + } + bool operator == (const HiveObjectRef & rhs) const { if (!(objectType == rhs.objectType)) @@ -262,6 +327,26 @@ class PrivilegeGrantInfo { _PrivilegeGrantInfo__isset __isset; + void __set_privilege(const std::string& val) { + privilege = val; + } + + void __set_createTime(const int32_t val) { + createTime = val; + } + + void __set_grantor(const std::string& val) { + grantor = val; + } + + void __set_grantorType(const PrincipalType::type val) { + grantorType = val; + } + + void __set_grantOption(const bool val) { + grantOption = val; + } + bool operator == (const PrivilegeGrantInfo & rhs) const { if (!(privilege == rhs.privilege)) @@ -313,6 +398,22 @@ class HiveObjectPrivilege { _HiveObjectPrivilege__isset __isset; + void __set_hiveObject(const HiveObjectRef& val) { + hiveObject = val; + } + + void __set_principalName(const std::string& val) { + principalName = val; + } + + void __set_principalType(const PrincipalType::type val) { + principalType = val; + } + + void __set_grantInfo(const PrivilegeGrantInfo& val) { + grantInfo = val; + } + bool operator == (const HiveObjectPrivilege & rhs) const { if (!(hiveObject == rhs.hiveObject)) @@ -356,6 +457,10 @@ class PrivilegeBag { _PrivilegeBag__isset __isset; + void __set_privileges(const std::vector & val) { + privileges = val; + } + bool operator == (const PrivilegeBag & rhs) const { if (!(privileges == rhs.privileges)) @@ -397,6 +502,18 @@ class PrincipalPrivilegeSet { _PrincipalPrivilegeSet__isset __isset; + void __set_userPrivileges(const std::map > & val) { + userPrivileges = val; + } + + void __set_groupPrivileges(const std::map > & val) { + groupPrivileges = val; + } + + void __set_rolePrivileges(const std::map > & val) { + rolePrivileges = val; + } + bool operator == (const PrincipalPrivilegeSet & rhs) const { if (!(userPrivileges == rhs.userPrivileges)) @@ -442,6 +559,18 @@ class Role { _Role__isset __isset; + void __set_roleName(const std::string& val) { + roleName = val; + } + + void __set_createTime(const int32_t val) { + createTime = val; + } + + void __set_ownerName(const std::string& val) { + ownerName = val; + } + bool operator == (const Role & rhs) const { if (!(roleName == rhs.roleName)) @@ -491,6 +620,27 @@ class Database { _Database__isset __isset; + void __set_name(const std::string& val) { + name = val; + } + + void __set_description(const std::string& val) { + description = val; + } + + void __set_locationUri(const std::string& val) { + locationUri = val; + } + + void __set_parameters(const std::map & val) { + parameters = val; + } + + void __set_privileges(const PrincipalPrivilegeSet& val) { + privileges = val; + __isset.privileges = true; + } + bool operator == (const Database & rhs) const { if (!(name == rhs.name)) @@ -542,6 +692,18 @@ class SerDeInfo { _SerDeInfo__isset __isset; + void __set_name(const std::string& val) { + name = val; + } + + void __set_serializationLib(const std::string& val) { + serializationLib = val; + } + + void __set_parameters(const std::map & val) { + parameters = val; + } + bool operator == (const SerDeInfo & rhs) const { if (!(name == rhs.name)) @@ -585,6 +747,14 @@ class Order { _Order__isset __isset; + void __set_col(const std::string& val) { + col = val; + } + + void __set_order(const int32_t val) { + order = val; + } + bool operator == (const Order & rhs) const { if (!(col == rhs.col)) @@ -642,6 +812,46 @@ class StorageDescriptor { _StorageDescriptor__isset __isset; + void __set_cols(const std::vector & val) { + cols = val; + } + + void __set_location(const std::string& val) { + location = val; + } + + void __set_inputFormat(const std::string& val) { + inputFormat = val; + } + + void __set_outputFormat(const std::string& val) { + outputFormat = val; + } + + void __set_compressed(const bool val) { + compressed = val; + } + + void __set_numBuckets(const int32_t val) { + numBuckets = val; + } + + void __set_serdeInfo(const SerDeInfo& val) { + serdeInfo = val; + } + + void __set_bucketCols(const std::vector & val) { + bucketCols = val; + } + + void __set_sortCols(const std::vector & val) { + sortCols = val; + } + + void __set_parameters(const std::map & val) { + parameters = val; + } + bool operator == (const StorageDescriptor & rhs) const { if (!(cols == rhs.cols)) @@ -721,6 +931,59 @@ class Table { _Table__isset __isset; + void __set_tableName(const std::string& val) { + tableName = val; + } + + void __set_dbName(const std::string& val) { + dbName = val; + } + + void __set_owner(const std::string& val) { + owner = val; + } + + void __set_createTime(const int32_t val) { + createTime = val; + } + + void __set_lastAccessTime(const int32_t val) { + lastAccessTime = val; + } + + void __set_retention(const int32_t val) { + retention = val; + } + + void __set_sd(const StorageDescriptor& val) { + sd = val; + } + + void __set_partitionKeys(const std::vector & val) { + partitionKeys = val; + } + + void __set_parameters(const std::map & val) { + parameters = val; + } + + void __set_viewOriginalText(const std::string& val) { + viewOriginalText = val; + } + + void __set_viewExpandedText(const std::string& val) { + viewExpandedText = val; + } + + void __set_tableType(const std::string& val) { + tableType = val; + } + + void __set_privileges(const PrincipalPrivilegeSet& val) { + privileges = val; + __isset.privileges = true; + } + bool operator == (const Table & rhs) const { if (!(tableName == rhs.tableName)) @@ -798,6 +1061,39 @@ class Partition { _Partition__isset __isset; + void __set_values(const std::vector & val) { + values = val; + } + + void __set_dbName(const std::string& val) { + dbName = val; + } + + void __set_tableName(const std::string& val) { + tableName = val; + } + + void __set_createTime(const int32_t val) { + createTime = val; + } + + void __set_lastAccessTime(const int32_t val) { + lastAccessTime = val; + } + + void __set_sd(const StorageDescriptor& val) { + sd = val; + } + + void __set_parameters(const std::map & val) { + parameters = val; + } + + void __set_privileges(const PrincipalPrivilegeSet& val) { + privileges = val; + __isset.privileges = true; + } + bool operator == (const Partition & rhs) const { if (!(values == rhs.values)) @@ -869,6 +1165,46 @@ class Index { _Index__isset __isset; + void __set_indexName(const std::string& val) { + indexName = val; + } + + void __set_indexHandlerClass(const std::string& val) { + indexHandlerClass = val; + } + + void __set_dbName(const std::string& val) { + dbName = val; + } + + void __set_origTableName(const std::string& val) { + origTableName = val; + } + + void __set_createTime(const int32_t val) { + createTime = val; + } + + void __set_lastAccessTime(const int32_t val) { + lastAccessTime = val; + } + + void __set_indexTableName(const std::string& val) { + indexTableName = val; + } + + void __set_sd(const StorageDescriptor& val) { + sd = val; + } + + void __set_parameters(const std::map & val) { + parameters = val; + } + + void __set_deferredRebuild(const bool val) { + deferredRebuild = val; + } + bool operator == (const Index & rhs) const { if (!(indexName == rhs.indexName)) @@ -926,6 +1262,14 @@ class Schema { _Schema__isset __isset; + void __set_fieldSchemas(const std::vector & val) { + fieldSchemas = val; + } + + void __set_properties(const std::map & val) { + properties = val; + } + bool operator == (const Schema & rhs) const { if (!(fieldSchemas == rhs.fieldSchemas)) @@ -965,6 +1309,10 @@ class MetaException : public ::apache::thrift::TException { _MetaException__isset __isset; + void __set_message(const std::string& val) { + message = val; + } + bool operator == (const MetaException & rhs) const { if (!(message == rhs.message)) @@ -1002,6 +1350,10 @@ class UnknownTableException : public ::apache::thrift::TException { _UnknownTableException__isset __isset; + void __set_message(const std::string& val) { + message = val; + } + bool operator == (const UnknownTableException & rhs) const { if (!(message == rhs.message)) @@ -1039,6 +1391,10 @@ class UnknownDBException : public ::apache::thrift::TException { _UnknownDBException__isset __isset; + void __set_message(const std::string& val) { + message = val; + } + bool operator == (const UnknownDBException & rhs) const { if (!(message == rhs.message)) @@ -1076,6 +1432,10 @@ class AlreadyExistsException : public ::apache::thrift::TException { _AlreadyExistsException__isset __isset; + void __set_message(const std::string& val) { + message = val; + } + bool operator == (const AlreadyExistsException & rhs) const { if (!(message == rhs.message)) @@ -1113,6 +1473,10 @@ class InvalidPartitionException : public ::apache::thrift::TException { _InvalidPartitionException__isset __isset; + void __set_message(const std::string& val) { + message = val; + } + bool operator == (const InvalidPartitionException & rhs) const { if (!(message == rhs.message)) @@ -1150,6 +1514,10 @@ class UnknownPartitionException : public ::apache::thrift::TException { _UnknownPartitionException__isset __isset; + void __set_message(const std::string& val) { + message = val; + } + bool operator == (const UnknownPartitionException & rhs) const { if (!(message == rhs.message)) @@ -1187,6 +1555,10 @@ class InvalidObjectException : public ::apache::thrift::TException { _InvalidObjectException__isset __isset; + void __set_message(const std::string& val) { + message = val; + } + bool operator == (const InvalidObjectException & rhs) const { if (!(message == rhs.message)) @@ -1224,6 +1596,10 @@ class NoSuchObjectException : public ::apache::thrift::TException { _NoSuchObjectException__isset __isset; + void __set_message(const std::string& val) { + message = val; + } + bool operator == (const NoSuchObjectException & rhs) const { if (!(message == rhs.message)) @@ -1261,6 +1637,10 @@ class IndexAlreadyExistsException : public ::apache::thrift::TException { _IndexAlreadyExistsException__isset __isset; + void __set_message(const std::string& val) { + message = val; + } + bool operator == (const IndexAlreadyExistsException & rhs) const { if (!(message == rhs.message)) @@ -1298,6 +1678,10 @@ class InvalidOperationException : public ::apache::thrift::TException { _InvalidOperationException__isset __isset; + void __set_message(const std::string& val) { + message = val; + } + bool operator == (const InvalidOperationException & rhs) const { if (!(message == rhs.message)) @@ -1335,6 +1719,10 @@ class ConfigValSecurityException : public ::apache::thrift::TException { _ConfigValSecurityException__isset __isset; + void __set_message(const std::string& val) { + message = val; + } + bool operator == (const ConfigValSecurityException & rhs) const { if (!(message == rhs.message)) diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlreadyExistsException.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlreadyExistsException.java index b99801a..09cb891 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlreadyExistsException.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlreadyExistsException.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,21 +20,15 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; +public class AlreadyExistsException extends Exception implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AlreadyExistsException"); -public class AlreadyExistsException extends Exception implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("AlreadyExistsException"); + private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)1); - - private String message; + private String message; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { MESSAGE((short)1, "message"); private static final Map byName = new HashMap(); @@ -93,13 +87,13 @@ public class AlreadyExistsException extends Exception implements TBase metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(AlreadyExistsException.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AlreadyExistsException.class, metaDataMap); } public AlreadyExistsException() { @@ -142,7 +136,7 @@ public class AlreadyExistsException extends Exception implements TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ConfigValSecurityException"); -public class ConfigValSecurityException extends Exception implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("ConfigValSecurityException"); + private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)1); - - private String message; + private String message; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { MESSAGE((short)1, "message"); private static final Map byName = new HashMap(); @@ -93,13 +87,13 @@ public class ConfigValSecurityException extends Exception implements TBase metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(ConfigValSecurityException.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ConfigValSecurityException.class, metaDataMap); } public ConfigValSecurityException() { @@ -142,7 +136,7 @@ public class ConfigValSecurityException extends Exception implements TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Database"); -public class Database implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("Database"); + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField LOCATION_URI_FIELD_DESC = new org.apache.thrift.protocol.TField("locationUri", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField PARAMETERS_FIELD_DESC = new org.apache.thrift.protocol.TField("parameters", org.apache.thrift.protocol.TType.MAP, (short)4); + private static final org.apache.thrift.protocol.TField PRIVILEGES_FIELD_DESC = new org.apache.thrift.protocol.TField("privileges", org.apache.thrift.protocol.TType.STRUCT, (short)5); - private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1); - private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)2); - private static final TField LOCATION_URI_FIELD_DESC = new TField("locationUri", TType.STRING, (short)3); - private static final TField PARAMETERS_FIELD_DESC = new TField("parameters", TType.MAP, (short)4); - private static final TField PRIVILEGES_FIELD_DESC = new TField("privileges", TType.STRUCT, (short)5); - - private String name; - private String description; - private String locationUri; - private Map parameters; - private PrincipalPrivilegeSet privileges; + private String name; // required + private String description; // required + private String locationUri; // required + private Map parameters; // required + private PrincipalPrivilegeSet privileges; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { NAME((short)1, "name"), DESCRIPTION((short)2, "description"), LOCATION_URI((short)3, "locationUri"), @@ -113,23 +107,23 @@ public class Database implements TBase, java.io.Seri // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.LOCATION_URI, new FieldMetaData("locationUri", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PARAMETERS, new FieldMetaData("parameters", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.PRIVILEGES, new FieldMetaData("privileges", TFieldRequirementType.OPTIONAL, - new StructMetaData(TType.STRUCT, PrincipalPrivilegeSet.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LOCATION_URI, new org.apache.thrift.meta_data.FieldMetaData("locationUri", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PARAMETERS, new org.apache.thrift.meta_data.FieldMetaData("parameters", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.PRIVILEGES, new org.apache.thrift.meta_data.FieldMetaData("privileges", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrincipalPrivilegeSet.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(Database.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Database.class, metaDataMap); } public Database() { @@ -206,7 +200,7 @@ public class Database implements TBase, java.io.Seri this.name = null; } - /** Returns true if field name is set (has been asigned a value) and false otherwise */ + /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } @@ -229,7 +223,7 @@ public class Database implements TBase, java.io.Seri this.description = null; } - /** Returns true if field description is set (has been asigned a value) and false otherwise */ + /** Returns true if field description is set (has been assigned a value) and false otherwise */ public boolean isSetDescription() { return this.description != null; } @@ -252,7 +246,7 @@ public class Database implements TBase, java.io.Seri this.locationUri = null; } - /** Returns true if field locationUri is set (has been asigned a value) and false otherwise */ + /** Returns true if field locationUri is set (has been assigned a value) and false otherwise */ public boolean isSetLocationUri() { return this.locationUri != null; } @@ -286,7 +280,7 @@ public class Database implements TBase, java.io.Seri this.parameters = null; } - /** Returns true if field parameters is set (has been asigned a value) and false otherwise */ + /** Returns true if field parameters is set (has been assigned a value) and false otherwise */ public boolean isSetParameters() { return this.parameters != null; } @@ -309,7 +303,7 @@ public class Database implements TBase, java.io.Seri this.privileges = null; } - /** Returns true if field privileges is set (has been asigned a value) and false otherwise */ + /** Returns true if field privileges is set (has been assigned a value) and false otherwise */ public boolean isSetPrivileges() { return this.privileges != null; } @@ -386,7 +380,7 @@ public class Database implements TBase, java.io.Seri throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -486,7 +480,7 @@ public class Database implements TBase, java.io.Seri return lastComparison; } if (isSetName()) { - lastComparison = TBaseHelper.compareTo(this.name, typedOther.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } @@ -496,7 +490,7 @@ public class Database implements TBase, java.io.Seri return lastComparison; } if (isSetDescription()) { - lastComparison = TBaseHelper.compareTo(this.description, typedOther.description); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description); if (lastComparison != 0) { return lastComparison; } @@ -506,7 +500,7 @@ public class Database implements TBase, java.io.Seri return lastComparison; } if (isSetLocationUri()) { - lastComparison = TBaseHelper.compareTo(this.locationUri, typedOther.locationUri); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.locationUri, typedOther.locationUri); if (lastComparison != 0) { return lastComparison; } @@ -516,7 +510,7 @@ public class Database implements TBase, java.io.Seri return lastComparison; } if (isSetParameters()) { - lastComparison = TBaseHelper.compareTo(this.parameters, typedOther.parameters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters); if (lastComparison != 0) { return lastComparison; } @@ -526,7 +520,7 @@ public class Database implements TBase, java.io.Seri return lastComparison; } if (isSetPrivileges()) { - lastComparison = TBaseHelper.compareTo(this.privileges, typedOther.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } @@ -538,46 +532,46 @@ public class Database implements TBase, java.io.Seri return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // DESCRIPTION - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.description = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // LOCATION_URI - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.locationUri = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // PARAMETERS - if (field.type == TType.MAP) { + if (field.type == org.apache.thrift.protocol.TType.MAP) { { - TMap _map39 = iprot.readMapBegin(); + org.apache.thrift.protocol.TMap _map39 = iprot.readMapBegin(); this.parameters = new HashMap(2*_map39.size); for (int _i40 = 0; _i40 < _map39.size; ++_i40) { - String _key41; - String _val42; + String _key41; // required + String _val42; // required _key41 = iprot.readString(); _val42 = iprot.readString(); this.parameters.put(_key41, _val42); @@ -585,19 +579,19 @@ public class Database implements TBase, java.io.Seri iprot.readMapEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 5: // PRIVILEGES - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.privileges = new PrincipalPrivilegeSet(); this.privileges.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -605,7 +599,7 @@ public class Database implements TBase, java.io.Seri validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -627,7 +621,7 @@ public class Database implements TBase, java.io.Seri if (this.parameters != null) { oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { - oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.parameters.size())); + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.parameters.size())); for (Map.Entry _iter43 : this.parameters.entrySet()) { oprot.writeString(_iter43.getKey()); @@ -698,9 +692,25 @@ public class Database implements TBase, java.io.Seri return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FieldSchema.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FieldSchema.java index de93135..6df5577 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FieldSchema.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FieldSchema.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,25 +20,19 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; +public class FieldSchema implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FieldSchema"); -public class FieldSchema implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("FieldSchema"); + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField COMMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("comment", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1); - private static final TField TYPE_FIELD_DESC = new TField("type", TType.STRING, (short)2); - private static final TField COMMENT_FIELD_DESC = new TField("comment", TType.STRING, (short)3); - - private String name; - private String type; - private String comment; + private String name; // required + private String type; // required + private String comment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { NAME((short)1, "name"), TYPE((short)2, "type"), COMMENT((short)3, "comment"); @@ -103,17 +97,17 @@ public class FieldSchema implements TBase, jav // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.COMMENT, new FieldMetaData("comment", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.COMMENT, new org.apache.thrift.meta_data.FieldMetaData("comment", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(FieldSchema.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(FieldSchema.class, metaDataMap); } public FieldSchema() { @@ -168,7 +162,7 @@ public class FieldSchema implements TBase, jav this.name = null; } - /** Returns true if field name is set (has been asigned a value) and false otherwise */ + /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } @@ -191,7 +185,7 @@ public class FieldSchema implements TBase, jav this.type = null; } - /** Returns true if field type is set (has been asigned a value) and false otherwise */ + /** Returns true if field type is set (has been assigned a value) and false otherwise */ public boolean isSetType() { return this.type != null; } @@ -214,7 +208,7 @@ public class FieldSchema implements TBase, jav this.comment = null; } - /** Returns true if field comment is set (has been asigned a value) and false otherwise */ + /** Returns true if field comment is set (has been assigned a value) and false otherwise */ public boolean isSetComment() { return this.comment != null; } @@ -269,7 +263,7 @@ public class FieldSchema implements TBase, jav throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -347,7 +341,7 @@ public class FieldSchema implements TBase, jav return lastComparison; } if (isSetName()) { - lastComparison = TBaseHelper.compareTo(this.name, typedOther.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } @@ -357,7 +351,7 @@ public class FieldSchema implements TBase, jav return lastComparison; } if (isSetType()) { - lastComparison = TBaseHelper.compareTo(this.type, typedOther.type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } @@ -367,7 +361,7 @@ public class FieldSchema implements TBase, jav return lastComparison; } if (isSetComment()) { - lastComparison = TBaseHelper.compareTo(this.comment, typedOther.comment); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, typedOther.comment); if (lastComparison != 0) { return lastComparison; } @@ -379,39 +373,39 @@ public class FieldSchema implements TBase, jav return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TYPE - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.type = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // COMMENT - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.comment = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -419,7 +413,7 @@ public class FieldSchema implements TBase, jav validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -474,9 +468,25 @@ public class FieldSchema implements TBase, jav return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectPrivilege.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectPrivilege.java index e83cc27..0cb1927 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectPrivilege.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectPrivilege.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,27 +20,21 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; +public class HiveObjectPrivilege implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HiveObjectPrivilege"); -public class HiveObjectPrivilege implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("HiveObjectPrivilege"); + private static final org.apache.thrift.protocol.TField HIVE_OBJECT_FIELD_DESC = new org.apache.thrift.protocol.TField("hiveObject", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField PRINCIPAL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("principalName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PRINCIPAL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("principalType", org.apache.thrift.protocol.TType.I32, (short)3); + private static final org.apache.thrift.protocol.TField GRANT_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("grantInfo", org.apache.thrift.protocol.TType.STRUCT, (short)4); - private static final TField HIVE_OBJECT_FIELD_DESC = new TField("hiveObject", TType.STRUCT, (short)1); - private static final TField PRINCIPAL_NAME_FIELD_DESC = new TField("principalName", TType.STRING, (short)2); - private static final TField PRINCIPAL_TYPE_FIELD_DESC = new TField("principalType", TType.I32, (short)3); - private static final TField GRANT_INFO_FIELD_DESC = new TField("grantInfo", TType.STRUCT, (short)4); - - private HiveObjectRef hiveObject; - private String principalName; - private PrincipalType principalType; - private PrivilegeGrantInfo grantInfo; + private HiveObjectRef hiveObject; // required + private String principalName; // required + private PrincipalType principalType; // required + private PrivilegeGrantInfo grantInfo; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { HIVE_OBJECT((short)1, "hiveObject"), PRINCIPAL_NAME((short)2, "principalName"), /** @@ -112,19 +106,19 @@ public class HiveObjectPrivilege implements TBase metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.HIVE_OBJECT, new FieldMetaData("hiveObject", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, HiveObjectRef.class))); - tmpMap.put(_Fields.PRINCIPAL_NAME, new FieldMetaData("principalName", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PRINCIPAL_TYPE, new FieldMetaData("principalType", TFieldRequirementType.DEFAULT, - new EnumMetaData(TType.ENUM, PrincipalType.class))); - tmpMap.put(_Fields.GRANT_INFO, new FieldMetaData("grantInfo", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, PrivilegeGrantInfo.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.HIVE_OBJECT, new org.apache.thrift.meta_data.FieldMetaData("hiveObject", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HiveObjectRef.class))); + tmpMap.put(_Fields.PRINCIPAL_NAME, new org.apache.thrift.meta_data.FieldMetaData("principalName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PRINCIPAL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("principalType", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PrincipalType.class))); + tmpMap.put(_Fields.GRANT_INFO, new org.apache.thrift.meta_data.FieldMetaData("grantInfo", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrivilegeGrantInfo.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(HiveObjectPrivilege.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(HiveObjectPrivilege.class, metaDataMap); } public HiveObjectPrivilege() { @@ -185,7 +179,7 @@ public class HiveObjectPrivilege implements TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HiveObjectRef"); -public class HiveObjectRef implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("HiveObjectRef"); + private static final org.apache.thrift.protocol.TField OBJECT_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("objectType", org.apache.thrift.protocol.TType.I32, (short)1); + 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)2); + private static final org.apache.thrift.protocol.TField OBJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("objectName", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField PART_VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("partValues", org.apache.thrift.protocol.TType.LIST, (short)4); + private static final org.apache.thrift.protocol.TField COLUMN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("columnName", org.apache.thrift.protocol.TType.STRING, (short)5); - private static final TField OBJECT_TYPE_FIELD_DESC = new TField("objectType", TType.I32, (short)1); - private static final TField DB_NAME_FIELD_DESC = new TField("dbName", TType.STRING, (short)2); - private static final TField OBJECT_NAME_FIELD_DESC = new TField("objectName", TType.STRING, (short)3); - private static final TField PART_VALUES_FIELD_DESC = new TField("partValues", TType.LIST, (short)4); - private static final TField COLUMN_NAME_FIELD_DESC = new TField("columnName", TType.STRING, (short)5); - - private HiveObjectType objectType; - private String dbName; - private String objectName; - private List partValues; - private String columnName; + private HiveObjectType objectType; // required + private String dbName; // required + private String objectName; // required + private List partValues; // required + private String columnName; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { /** * * @see HiveObjectType @@ -117,22 +111,22 @@ public class HiveObjectRef implements TBase metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.OBJECT_TYPE, new FieldMetaData("objectType", TFieldRequirementType.DEFAULT, - new EnumMetaData(TType.ENUM, HiveObjectType.class))); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("dbName", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.OBJECT_NAME, new FieldMetaData("objectName", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PART_VALUES, new FieldMetaData("partValues", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.COLUMN_NAME, new FieldMetaData("columnName", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.OBJECT_TYPE, new org.apache.thrift.meta_data.FieldMetaData("objectType", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, HiveObjectType.class))); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("dbName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.OBJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("objectName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALUES, new org.apache.thrift.meta_data.FieldMetaData("partValues", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.COLUMN_NAME, new org.apache.thrift.meta_data.FieldMetaData("columnName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(HiveObjectRef.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(HiveObjectRef.class, metaDataMap); } public HiveObjectRef() { @@ -211,7 +205,7 @@ public class HiveObjectRef implements TBase(_list4.size); for (int _i5 = 0; _i5 < _list4.size; ++_i5) { - String _elem6; + String _elem6; // required _elem6 = iprot.readString(); this.partValues.add(_elem6); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 5: // COLUMN_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.columnName = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -611,7 +605,7 @@ public class HiveObjectRef implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("Index"); - - private static final TField INDEX_NAME_FIELD_DESC = new TField("indexName", TType.STRING, (short)1); - private static final TField INDEX_HANDLER_CLASS_FIELD_DESC = new TField("indexHandlerClass", TType.STRING, (short)2); - private static final TField DB_NAME_FIELD_DESC = new TField("dbName", TType.STRING, (short)3); - private static final TField ORIG_TABLE_NAME_FIELD_DESC = new TField("origTableName", TType.STRING, (short)4); - private static final TField CREATE_TIME_FIELD_DESC = new TField("createTime", TType.I32, (short)5); - private static final TField LAST_ACCESS_TIME_FIELD_DESC = new TField("lastAccessTime", TType.I32, (short)6); - private static final TField INDEX_TABLE_NAME_FIELD_DESC = new TField("indexTableName", TType.STRING, (short)7); - private static final TField SD_FIELD_DESC = new TField("sd", TType.STRUCT, (short)8); - private static final TField PARAMETERS_FIELD_DESC = new TField("parameters", TType.MAP, (short)9); - private static final TField DEFERRED_REBUILD_FIELD_DESC = new TField("deferredRebuild", TType.BOOL, (short)10); - - private String indexName; - private String indexHandlerClass; - private String dbName; - private String origTableName; - private int createTime; - private int lastAccessTime; - private String indexTableName; - private StorageDescriptor sd; - private Map parameters; - private boolean deferredRebuild; +public class Index implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Index"); + + private static final org.apache.thrift.protocol.TField INDEX_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("indexName", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField INDEX_HANDLER_CLASS_FIELD_DESC = new org.apache.thrift.protocol.TField("indexHandlerClass", org.apache.thrift.protocol.TType.STRING, (short)2); + 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)3); + private static final org.apache.thrift.protocol.TField ORIG_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("origTableName", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField CREATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("createTime", org.apache.thrift.protocol.TType.I32, (short)5); + private static final org.apache.thrift.protocol.TField LAST_ACCESS_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastAccessTime", org.apache.thrift.protocol.TType.I32, (short)6); + private static final org.apache.thrift.protocol.TField INDEX_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("indexTableName", org.apache.thrift.protocol.TType.STRING, (short)7); + private static final org.apache.thrift.protocol.TField SD_FIELD_DESC = new org.apache.thrift.protocol.TField("sd", org.apache.thrift.protocol.TType.STRUCT, (short)8); + private static final org.apache.thrift.protocol.TField PARAMETERS_FIELD_DESC = new org.apache.thrift.protocol.TField("parameters", org.apache.thrift.protocol.TType.MAP, (short)9); + private static final org.apache.thrift.protocol.TField DEFERRED_REBUILD_FIELD_DESC = new org.apache.thrift.protocol.TField("deferredRebuild", org.apache.thrift.protocol.TType.BOOL, (short)10); + + private String indexName; // required + private String indexHandlerClass; // required + private String dbName; // required + private String origTableName; // required + private int createTime; // required + private int lastAccessTime; // required + private String indexTableName; // required + private StorageDescriptor sd; // required + private Map parameters; // required + private boolean deferredRebuild; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { INDEX_NAME((short)1, "indexName"), INDEX_HANDLER_CLASS((short)2, "indexHandlerClass"), DB_NAME((short)3, "dbName"), @@ -142,33 +136,33 @@ public class Index implements TBase, java.io.Serializable, private static final int __DEFERREDREBUILD_ISSET_ID = 2; private BitSet __isset_bit_vector = new BitSet(3); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.INDEX_NAME, new FieldMetaData("indexName", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.INDEX_HANDLER_CLASS, new FieldMetaData("indexHandlerClass", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("dbName", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.ORIG_TABLE_NAME, new FieldMetaData("origTableName", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.CREATE_TIME, new FieldMetaData("createTime", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMap.put(_Fields.LAST_ACCESS_TIME, new FieldMetaData("lastAccessTime", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMap.put(_Fields.INDEX_TABLE_NAME, new FieldMetaData("indexTableName", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.SD, new FieldMetaData("sd", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, StorageDescriptor.class))); - tmpMap.put(_Fields.PARAMETERS, new FieldMetaData("parameters", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.DEFERRED_REBUILD, new FieldMetaData("deferredRebuild", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.INDEX_NAME, new org.apache.thrift.meta_data.FieldMetaData("indexName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.INDEX_HANDLER_CLASS, new org.apache.thrift.meta_data.FieldMetaData("indexHandlerClass", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("dbName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.ORIG_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("origTableName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.CREATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("createTime", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.LAST_ACCESS_TIME, new org.apache.thrift.meta_data.FieldMetaData("lastAccessTime", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.INDEX_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("indexTableName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.SD, new org.apache.thrift.meta_data.FieldMetaData("sd", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StorageDescriptor.class))); + tmpMap.put(_Fields.PARAMETERS, new org.apache.thrift.meta_data.FieldMetaData("parameters", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.DEFERRED_REBUILD, new org.apache.thrift.meta_data.FieldMetaData("deferredRebuild", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(Index.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Index.class, metaDataMap); } public Index() { @@ -279,7 +273,7 @@ public class Index implements TBase, java.io.Serializable, this.indexName = null; } - /** Returns true if field indexName is set (has been asigned a value) and false otherwise */ + /** Returns true if field indexName is set (has been assigned a value) and false otherwise */ public boolean isSetIndexName() { return this.indexName != null; } @@ -302,7 +296,7 @@ public class Index implements TBase, java.io.Serializable, this.indexHandlerClass = null; } - /** Returns true if field indexHandlerClass is set (has been asigned a value) and false otherwise */ + /** Returns true if field indexHandlerClass is set (has been assigned a value) and false otherwise */ public boolean isSetIndexHandlerClass() { return this.indexHandlerClass != null; } @@ -325,7 +319,7 @@ public class Index implements TBase, java.io.Serializable, this.dbName = null; } - /** Returns true if field dbName is set (has been asigned a value) and false otherwise */ + /** Returns true if field dbName is set (has been assigned a value) and false otherwise */ public boolean isSetDbName() { return this.dbName != null; } @@ -348,7 +342,7 @@ public class Index implements TBase, java.io.Serializable, this.origTableName = null; } - /** Returns true if field origTableName is set (has been asigned a value) and false otherwise */ + /** Returns true if field origTableName is set (has been assigned a value) and false otherwise */ public boolean isSetOrigTableName() { return this.origTableName != null; } @@ -372,7 +366,7 @@ public class Index implements TBase, java.io.Serializable, __isset_bit_vector.clear(__CREATETIME_ISSET_ID); } - /** Returns true if field createTime is set (has been asigned a value) and false otherwise */ + /** Returns true if field createTime is set (has been assigned a value) and false otherwise */ public boolean isSetCreateTime() { return __isset_bit_vector.get(__CREATETIME_ISSET_ID); } @@ -394,7 +388,7 @@ public class Index implements TBase, java.io.Serializable, __isset_bit_vector.clear(__LASTACCESSTIME_ISSET_ID); } - /** Returns true if field lastAccessTime is set (has been asigned a value) and false otherwise */ + /** Returns true if field lastAccessTime is set (has been assigned a value) and false otherwise */ public boolean isSetLastAccessTime() { return __isset_bit_vector.get(__LASTACCESSTIME_ISSET_ID); } @@ -415,7 +409,7 @@ public class Index implements TBase, java.io.Serializable, this.indexTableName = null; } - /** Returns true if field indexTableName is set (has been asigned a value) and false otherwise */ + /** Returns true if field indexTableName is set (has been assigned a value) and false otherwise */ public boolean isSetIndexTableName() { return this.indexTableName != null; } @@ -438,7 +432,7 @@ public class Index implements TBase, java.io.Serializable, this.sd = null; } - /** Returns true if field sd is set (has been asigned a value) and false otherwise */ + /** Returns true if field sd is set (has been assigned a value) and false otherwise */ public boolean isSetSd() { return this.sd != null; } @@ -472,7 +466,7 @@ public class Index implements TBase, java.io.Serializable, this.parameters = null; } - /** Returns true if field parameters is set (has been asigned a value) and false otherwise */ + /** Returns true if field parameters is set (has been assigned a value) and false otherwise */ public boolean isSetParameters() { return this.parameters != null; } @@ -496,7 +490,7 @@ public class Index implements TBase, java.io.Serializable, __isset_bit_vector.clear(__DEFERREDREBUILD_ISSET_ID); } - /** Returns true if field deferredRebuild is set (has been asigned a value) and false otherwise */ + /** Returns true if field deferredRebuild is set (has been assigned a value) and false otherwise */ public boolean isSetDeferredRebuild() { return __isset_bit_vector.get(__DEFERREDREBUILD_ISSET_ID); } @@ -605,10 +599,10 @@ public class Index implements TBase, java.io.Serializable, return getOrigTableName(); case CREATE_TIME: - return new Integer(getCreateTime()); + return Integer.valueOf(getCreateTime()); case LAST_ACCESS_TIME: - return new Integer(getLastAccessTime()); + return Integer.valueOf(getLastAccessTime()); case INDEX_TABLE_NAME: return getIndexTableName(); @@ -620,13 +614,13 @@ public class Index implements TBase, java.io.Serializable, return getParameters(); case DEFERRED_REBUILD: - return new Boolean(isDeferredRebuild()); + return Boolean.valueOf(isDeferredRebuild()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -781,7 +775,7 @@ public class Index implements TBase, java.io.Serializable, return lastComparison; } if (isSetIndexName()) { - lastComparison = TBaseHelper.compareTo(this.indexName, typedOther.indexName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.indexName, typedOther.indexName); if (lastComparison != 0) { return lastComparison; } @@ -791,7 +785,7 @@ public class Index implements TBase, java.io.Serializable, return lastComparison; } if (isSetIndexHandlerClass()) { - lastComparison = TBaseHelper.compareTo(this.indexHandlerClass, typedOther.indexHandlerClass); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.indexHandlerClass, typedOther.indexHandlerClass); if (lastComparison != 0) { return lastComparison; } @@ -801,7 +795,7 @@ public class Index implements TBase, java.io.Serializable, return lastComparison; } if (isSetDbName()) { - lastComparison = TBaseHelper.compareTo(this.dbName, typedOther.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } @@ -811,7 +805,7 @@ public class Index implements TBase, java.io.Serializable, return lastComparison; } if (isSetOrigTableName()) { - lastComparison = TBaseHelper.compareTo(this.origTableName, typedOther.origTableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.origTableName, typedOther.origTableName); if (lastComparison != 0) { return lastComparison; } @@ -821,7 +815,7 @@ public class Index implements TBase, java.io.Serializable, return lastComparison; } if (isSetCreateTime()) { - lastComparison = TBaseHelper.compareTo(this.createTime, typedOther.createTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime); if (lastComparison != 0) { return lastComparison; } @@ -831,7 +825,7 @@ public class Index implements TBase, java.io.Serializable, return lastComparison; } if (isSetLastAccessTime()) { - lastComparison = TBaseHelper.compareTo(this.lastAccessTime, typedOther.lastAccessTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAccessTime, typedOther.lastAccessTime); if (lastComparison != 0) { return lastComparison; } @@ -841,7 +835,7 @@ public class Index implements TBase, java.io.Serializable, return lastComparison; } if (isSetIndexTableName()) { - lastComparison = TBaseHelper.compareTo(this.indexTableName, typedOther.indexTableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.indexTableName, typedOther.indexTableName); if (lastComparison != 0) { return lastComparison; } @@ -851,7 +845,7 @@ public class Index implements TBase, java.io.Serializable, return lastComparison; } if (isSetSd()) { - lastComparison = TBaseHelper.compareTo(this.sd, typedOther.sd); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sd, typedOther.sd); if (lastComparison != 0) { return lastComparison; } @@ -861,7 +855,7 @@ public class Index implements TBase, java.io.Serializable, return lastComparison; } if (isSetParameters()) { - lastComparison = TBaseHelper.compareTo(this.parameters, typedOther.parameters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters); if (lastComparison != 0) { return lastComparison; } @@ -871,7 +865,7 @@ public class Index implements TBase, java.io.Serializable, return lastComparison; } if (isSetDeferredRebuild()) { - lastComparison = TBaseHelper.compareTo(this.deferredRebuild, typedOther.deferredRebuild); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deferredRebuild, typedOther.deferredRebuild); if (lastComparison != 0) { return lastComparison; } @@ -883,84 +877,84 @@ public class Index implements TBase, java.io.Serializable, return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // INDEX_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.indexName = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // INDEX_HANDLER_CLASS - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.indexHandlerClass = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.dbName = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // ORIG_TABLE_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.origTableName = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 5: // CREATE_TIME - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.createTime = iprot.readI32(); setCreateTimeIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 6: // LAST_ACCESS_TIME - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.lastAccessTime = iprot.readI32(); setLastAccessTimeIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 7: // INDEX_TABLE_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.indexTableName = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 8: // SD - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.sd = new StorageDescriptor(); this.sd.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 9: // PARAMETERS - if (field.type == TType.MAP) { + if (field.type == org.apache.thrift.protocol.TType.MAP) { { - TMap _map84 = iprot.readMapBegin(); + org.apache.thrift.protocol.TMap _map84 = iprot.readMapBegin(); this.parameters = new HashMap(2*_map84.size); for (int _i85 = 0; _i85 < _map84.size; ++_i85) { - String _key86; - String _val87; + String _key86; // required + String _val87; // required _key86 = iprot.readString(); _val87 = iprot.readString(); this.parameters.put(_key86, _val87); @@ -968,19 +962,19 @@ public class Index implements TBase, java.io.Serializable, iprot.readMapEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 10: // DEFERRED_REBUILD - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.deferredRebuild = iprot.readBool(); setDeferredRebuildIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -988,7 +982,7 @@ public class Index implements TBase, java.io.Serializable, validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -1031,7 +1025,7 @@ public class Index implements TBase, java.io.Serializable, if (this.parameters != null) { oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { - oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.parameters.size())); + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.parameters.size())); for (Map.Entry _iter88 : this.parameters.entrySet()) { oprot.writeString(_iter88.getKey()); @@ -1124,9 +1118,27 @@ public class Index implements TBase, java.io.Serializable, return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + 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); + } + } + } diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/IndexAlreadyExistsException.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/IndexAlreadyExistsException.java index 392f6fe..00f79f6 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/IndexAlreadyExistsException.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/IndexAlreadyExistsException.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,21 +20,15 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; +public class IndexAlreadyExistsException extends Exception implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("IndexAlreadyExistsException"); -public class IndexAlreadyExistsException extends Exception implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("IndexAlreadyExistsException"); + private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)1); - - private String message; + private String message; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { MESSAGE((short)1, "message"); private static final Map byName = new HashMap(); @@ -93,13 +87,13 @@ public class IndexAlreadyExistsException extends Exception implements TBase metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(IndexAlreadyExistsException.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(IndexAlreadyExistsException.class, metaDataMap); } public IndexAlreadyExistsException() { @@ -142,7 +136,7 @@ public class IndexAlreadyExistsException extends Exception implements TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InvalidObjectException"); -public class InvalidObjectException extends Exception implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("InvalidObjectException"); + private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)1); - - private String message; + private String message; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { MESSAGE((short)1, "message"); private static final Map byName = new HashMap(); @@ -93,13 +87,13 @@ public class InvalidObjectException extends Exception implements TBase metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(InvalidObjectException.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(InvalidObjectException.class, metaDataMap); } public InvalidObjectException() { @@ -142,7 +136,7 @@ public class InvalidObjectException extends Exception implements TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InvalidOperationException"); -public class InvalidOperationException extends Exception implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("InvalidOperationException"); + private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)1); - - private String message; + private String message; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { MESSAGE((short)1, "message"); private static final Map byName = new HashMap(); @@ -93,13 +87,13 @@ public class InvalidOperationException extends Exception implements TBase metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(InvalidOperationException.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(InvalidOperationException.class, metaDataMap); } public InvalidOperationException() { @@ -142,7 +136,7 @@ public class InvalidOperationException extends Exception implements TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InvalidPartitionException"); -public class InvalidPartitionException extends Exception implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("InvalidPartitionException"); + private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)1); - - private String message; + private String message; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { MESSAGE((short)1, "message"); private static final Map byName = new HashMap(); @@ -93,13 +87,13 @@ public class InvalidPartitionException extends Exception implements TBase metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(InvalidPartitionException.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(InvalidPartitionException.class, metaDataMap); } public InvalidPartitionException() { @@ -142,7 +136,7 @@ public class InvalidPartitionException extends Exception implements TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("MetaException"); -public class MetaException extends Exception implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("MetaException"); + private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)1); - - private String message; + private String message; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { MESSAGE((short)1, "message"); private static final Map byName = new HashMap(); @@ -93,13 +87,13 @@ public class MetaException extends Exception implements TBase metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(MetaException.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(MetaException.class, metaDataMap); } public MetaException() { @@ -142,7 +136,7 @@ public class MetaException extends Exception implements TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("NoSuchObjectException"); -public class NoSuchObjectException extends Exception implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("NoSuchObjectException"); + private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)1); - - private String message; + private String message; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { MESSAGE((short)1, "message"); private static final Map byName = new HashMap(); @@ -93,13 +87,13 @@ public class NoSuchObjectException extends Exception implements TBase metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(NoSuchObjectException.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(NoSuchObjectException.class, metaDataMap); } public NoSuchObjectException() { @@ -142,7 +136,7 @@ public class NoSuchObjectException extends Exception implements TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Order"); -public class Order implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("Order"); + private static final org.apache.thrift.protocol.TField COL_FIELD_DESC = new org.apache.thrift.protocol.TField("col", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField ORDER_FIELD_DESC = new org.apache.thrift.protocol.TField("order", org.apache.thrift.protocol.TType.I32, (short)2); - private static final TField COL_FIELD_DESC = new TField("col", TType.STRING, (short)1); - private static final TField ORDER_FIELD_DESC = new TField("order", TType.I32, (short)2); - - private String col; - private int order; + private String col; // required + private int order; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { COL((short)1, "col"), ORDER((short)2, "order"); @@ -100,15 +94,15 @@ public class Order implements TBase, java.io.Serializable, private static final int __ORDER_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.COL, new FieldMetaData("col", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.ORDER, new FieldMetaData("order", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.COL, new org.apache.thrift.meta_data.FieldMetaData("col", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.ORDER, new org.apache.thrift.meta_data.FieldMetaData("order", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap); } public Order() { @@ -159,7 +153,7 @@ public class Order implements TBase, java.io.Serializable, this.col = null; } - /** Returns true if field col is set (has been asigned a value) and false otherwise */ + /** Returns true if field col is set (has been assigned a value) and false otherwise */ public boolean isSetCol() { return this.col != null; } @@ -183,7 +177,7 @@ public class Order implements TBase, java.io.Serializable, __isset_bit_vector.clear(__ORDER_ISSET_ID); } - /** Returns true if field order is set (has been asigned a value) and false otherwise */ + /** Returns true if field order is set (has been assigned a value) and false otherwise */ public boolean isSetOrder() { return __isset_bit_vector.get(__ORDER_ISSET_ID); } @@ -219,13 +213,13 @@ public class Order implements TBase, java.io.Serializable, return getCol(); case ORDER: - return new Integer(getOrder()); + return Integer.valueOf(getOrder()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -292,7 +286,7 @@ public class Order implements TBase, java.io.Serializable, return lastComparison; } if (isSetCol()) { - lastComparison = TBaseHelper.compareTo(this.col, typedOther.col); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col, typedOther.col); if (lastComparison != 0) { return lastComparison; } @@ -302,7 +296,7 @@ public class Order implements TBase, java.io.Serializable, return lastComparison; } if (isSetOrder()) { - lastComparison = TBaseHelper.compareTo(this.order, typedOther.order); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.order, typedOther.order); if (lastComparison != 0) { return lastComparison; } @@ -314,33 +308,33 @@ public class Order implements TBase, java.io.Serializable, return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // COL - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.col = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // ORDER - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.order = iprot.readI32(); setOrderIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -348,7 +342,7 @@ public class Order implements TBase, java.io.Serializable, validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -384,9 +378,27 @@ public class Order implements TBase, java.io.Serializable, return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + 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); + } + } + } diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java index eaaade8..ea9286e 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,35 +20,29 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; - -public class Partition implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("Partition"); - - private static final TField VALUES_FIELD_DESC = new TField("values", TType.LIST, (short)1); - private static final TField DB_NAME_FIELD_DESC = new TField("dbName", TType.STRING, (short)2); - private static final TField TABLE_NAME_FIELD_DESC = new TField("tableName", TType.STRING, (short)3); - private static final TField CREATE_TIME_FIELD_DESC = new TField("createTime", TType.I32, (short)4); - private static final TField LAST_ACCESS_TIME_FIELD_DESC = new TField("lastAccessTime", TType.I32, (short)5); - private static final TField SD_FIELD_DESC = new TField("sd", TType.STRUCT, (short)6); - private static final TField PARAMETERS_FIELD_DESC = new TField("parameters", TType.MAP, (short)7); - private static final TField PRIVILEGES_FIELD_DESC = new TField("privileges", TType.STRUCT, (short)8); - - private List values; - private String dbName; - private String tableName; - private int createTime; - private int lastAccessTime; - private StorageDescriptor sd; - private Map parameters; - private PrincipalPrivilegeSet privileges; +public class Partition implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Partition"); + + private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1); + 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)2); + private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField CREATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("createTime", org.apache.thrift.protocol.TType.I32, (short)4); + private static final org.apache.thrift.protocol.TField LAST_ACCESS_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastAccessTime", org.apache.thrift.protocol.TType.I32, (short)5); + private static final org.apache.thrift.protocol.TField SD_FIELD_DESC = new org.apache.thrift.protocol.TField("sd", org.apache.thrift.protocol.TType.STRUCT, (short)6); + private static final org.apache.thrift.protocol.TField PARAMETERS_FIELD_DESC = new org.apache.thrift.protocol.TField("parameters", org.apache.thrift.protocol.TType.MAP, (short)7); + private static final org.apache.thrift.protocol.TField PRIVILEGES_FIELD_DESC = new org.apache.thrift.protocol.TField("privileges", org.apache.thrift.protocol.TType.STRUCT, (short)8); + + private List values; // required + private String dbName; // required + private String tableName; // required + private int createTime; // required + private int lastAccessTime; // required + private StorageDescriptor sd; // required + private Map parameters; // required + private PrincipalPrivilegeSet privileges; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { VALUES((short)1, "values"), DB_NAME((short)2, "dbName"), TABLE_NAME((short)3, "tableName"), @@ -131,30 +125,30 @@ public class Partition implements TBase, java.io.S private static final int __LASTACCESSTIME_ISSET_ID = 1; private BitSet __isset_bit_vector = new BitSet(2); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.VALUES, new FieldMetaData("values", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("dbName", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TABLE_NAME, new FieldMetaData("tableName", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.CREATE_TIME, new FieldMetaData("createTime", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMap.put(_Fields.LAST_ACCESS_TIME, new FieldMetaData("lastAccessTime", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMap.put(_Fields.SD, new FieldMetaData("sd", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, StorageDescriptor.class))); - tmpMap.put(_Fields.PARAMETERS, new FieldMetaData("parameters", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.PRIVILEGES, new FieldMetaData("privileges", TFieldRequirementType.OPTIONAL, - new StructMetaData(TType.STRUCT, PrincipalPrivilegeSet.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.VALUES, new org.apache.thrift.meta_data.FieldMetaData("values", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("dbName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.CREATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("createTime", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.LAST_ACCESS_TIME, new org.apache.thrift.meta_data.FieldMetaData("lastAccessTime", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.SD, new org.apache.thrift.meta_data.FieldMetaData("sd", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StorageDescriptor.class))); + tmpMap.put(_Fields.PARAMETERS, new org.apache.thrift.meta_data.FieldMetaData("parameters", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.PRIVILEGES, new org.apache.thrift.meta_data.FieldMetaData("privileges", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrincipalPrivilegeSet.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(Partition.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Partition.class, metaDataMap); } public Partition() { @@ -270,7 +264,7 @@ public class Partition implements TBase, java.io.S this.values = null; } - /** Returns true if field values is set (has been asigned a value) and false otherwise */ + /** Returns true if field values is set (has been assigned a value) and false otherwise */ public boolean isSetValues() { return this.values != null; } @@ -293,7 +287,7 @@ public class Partition implements TBase, java.io.S this.dbName = null; } - /** Returns true if field dbName is set (has been asigned a value) and false otherwise */ + /** Returns true if field dbName is set (has been assigned a value) and false otherwise */ public boolean isSetDbName() { return this.dbName != null; } @@ -316,7 +310,7 @@ public class Partition implements TBase, java.io.S this.tableName = null; } - /** Returns true if field tableName is set (has been asigned a value) and false otherwise */ + /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ public boolean isSetTableName() { return this.tableName != null; } @@ -340,7 +334,7 @@ public class Partition implements TBase, java.io.S __isset_bit_vector.clear(__CREATETIME_ISSET_ID); } - /** Returns true if field createTime is set (has been asigned a value) and false otherwise */ + /** Returns true if field createTime is set (has been assigned a value) and false otherwise */ public boolean isSetCreateTime() { return __isset_bit_vector.get(__CREATETIME_ISSET_ID); } @@ -362,7 +356,7 @@ public class Partition implements TBase, java.io.S __isset_bit_vector.clear(__LASTACCESSTIME_ISSET_ID); } - /** Returns true if field lastAccessTime is set (has been asigned a value) and false otherwise */ + /** Returns true if field lastAccessTime is set (has been assigned a value) and false otherwise */ public boolean isSetLastAccessTime() { return __isset_bit_vector.get(__LASTACCESSTIME_ISSET_ID); } @@ -383,7 +377,7 @@ public class Partition implements TBase, java.io.S this.sd = null; } - /** Returns true if field sd is set (has been asigned a value) and false otherwise */ + /** Returns true if field sd is set (has been assigned a value) and false otherwise */ public boolean isSetSd() { return this.sd != null; } @@ -417,7 +411,7 @@ public class Partition implements TBase, java.io.S this.parameters = null; } - /** Returns true if field parameters is set (has been asigned a value) and false otherwise */ + /** Returns true if field parameters is set (has been assigned a value) and false otherwise */ public boolean isSetParameters() { return this.parameters != null; } @@ -440,7 +434,7 @@ public class Partition implements TBase, java.io.S this.privileges = null; } - /** Returns true if field privileges is set (has been asigned a value) and false otherwise */ + /** Returns true if field privileges is set (has been assigned a value) and false otherwise */ public boolean isSetPrivileges() { return this.privileges != null; } @@ -532,10 +526,10 @@ public class Partition implements TBase, java.io.S return getTableName(); case CREATE_TIME: - return new Integer(getCreateTime()); + return Integer.valueOf(getCreateTime()); case LAST_ACCESS_TIME: - return new Integer(getLastAccessTime()); + return Integer.valueOf(getLastAccessTime()); case SD: return getSd(); @@ -550,7 +544,7 @@ public class Partition implements TBase, java.io.S throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -683,7 +677,7 @@ public class Partition implements TBase, java.io.S return lastComparison; } if (isSetValues()) { - lastComparison = TBaseHelper.compareTo(this.values, typedOther.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); if (lastComparison != 0) { return lastComparison; } @@ -693,7 +687,7 @@ public class Partition implements TBase, java.io.S return lastComparison; } if (isSetDbName()) { - lastComparison = TBaseHelper.compareTo(this.dbName, typedOther.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } @@ -703,7 +697,7 @@ public class Partition implements TBase, java.io.S return lastComparison; } if (isSetTableName()) { - lastComparison = TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); if (lastComparison != 0) { return lastComparison; } @@ -713,7 +707,7 @@ public class Partition implements TBase, java.io.S return lastComparison; } if (isSetCreateTime()) { - lastComparison = TBaseHelper.compareTo(this.createTime, typedOther.createTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime); if (lastComparison != 0) { return lastComparison; } @@ -723,7 +717,7 @@ public class Partition implements TBase, java.io.S return lastComparison; } if (isSetLastAccessTime()) { - lastComparison = TBaseHelper.compareTo(this.lastAccessTime, typedOther.lastAccessTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAccessTime, typedOther.lastAccessTime); if (lastComparison != 0) { return lastComparison; } @@ -733,7 +727,7 @@ public class Partition implements TBase, java.io.S return lastComparison; } if (isSetSd()) { - lastComparison = TBaseHelper.compareTo(this.sd, typedOther.sd); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sd, typedOther.sd); if (lastComparison != 0) { return lastComparison; } @@ -743,7 +737,7 @@ public class Partition implements TBase, java.io.S return lastComparison; } if (isSetParameters()) { - lastComparison = TBaseHelper.compareTo(this.parameters, typedOther.parameters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters); if (lastComparison != 0) { return lastComparison; } @@ -753,7 +747,7 @@ public class Partition implements TBase, java.io.S return lastComparison; } if (isSetPrivileges()) { - lastComparison = TBaseHelper.compareTo(this.privileges, typedOther.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } @@ -765,80 +759,80 @@ public class Partition implements TBase, java.io.S return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // VALUES - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list75 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list75 = iprot.readListBegin(); this.values = new ArrayList(_list75.size); for (int _i76 = 0; _i76 < _list75.size; ++_i76) { - String _elem77; + String _elem77; // required _elem77 = iprot.readString(); this.values.add(_elem77); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.dbName = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // TABLE_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tableName = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // CREATE_TIME - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.createTime = iprot.readI32(); setCreateTimeIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 5: // LAST_ACCESS_TIME - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.lastAccessTime = iprot.readI32(); setLastAccessTimeIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 6: // SD - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.sd = new StorageDescriptor(); this.sd.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 7: // PARAMETERS - if (field.type == TType.MAP) { + if (field.type == org.apache.thrift.protocol.TType.MAP) { { - TMap _map78 = iprot.readMapBegin(); + org.apache.thrift.protocol.TMap _map78 = iprot.readMapBegin(); this.parameters = new HashMap(2*_map78.size); for (int _i79 = 0; _i79 < _map78.size; ++_i79) { - String _key80; - String _val81; + String _key80; // required + String _val81; // required _key80 = iprot.readString(); _val81 = iprot.readString(); this.parameters.put(_key80, _val81); @@ -846,19 +840,19 @@ public class Partition implements TBase, java.io.S iprot.readMapEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 8: // PRIVILEGES - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.privileges = new PrincipalPrivilegeSet(); this.privileges.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -866,14 +860,14 @@ public class Partition implements TBase, java.io.S validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.values != null) { oprot.writeFieldBegin(VALUES_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.values.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.values.size())); for (String _iter82 : this.values) { oprot.writeString(_iter82); @@ -906,7 +900,7 @@ public class Partition implements TBase, java.io.S if (this.parameters != null) { oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { - oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.parameters.size())); + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.parameters.size())); for (Map.Entry _iter83 : this.parameters.entrySet()) { oprot.writeString(_iter83.getKey()); @@ -993,9 +987,27 @@ public class Partition implements TBase, java.io.S return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + 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); + } + } + } diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionEventType.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionEventType.java index f9da232..19aff66 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionEventType.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionEventType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -10,7 +10,7 @@ import java.util.Map; import java.util.HashMap; import org.apache.thrift.TEnum; -public enum PartitionEventType implements TEnum { +public enum PartitionEventType implements org.apache.thrift.TEnum { LOAD_DONE(1); private final int value; diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java index 088a1fb..3cbd50b 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,25 +20,19 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; +public class PrincipalPrivilegeSet implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PrincipalPrivilegeSet"); -public class PrincipalPrivilegeSet implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("PrincipalPrivilegeSet"); + private static final org.apache.thrift.protocol.TField USER_PRIVILEGES_FIELD_DESC = new org.apache.thrift.protocol.TField("userPrivileges", org.apache.thrift.protocol.TType.MAP, (short)1); + private static final org.apache.thrift.protocol.TField GROUP_PRIVILEGES_FIELD_DESC = new org.apache.thrift.protocol.TField("groupPrivileges", org.apache.thrift.protocol.TType.MAP, (short)2); + private static final org.apache.thrift.protocol.TField ROLE_PRIVILEGES_FIELD_DESC = new org.apache.thrift.protocol.TField("rolePrivileges", org.apache.thrift.protocol.TType.MAP, (short)3); - private static final TField USER_PRIVILEGES_FIELD_DESC = new TField("userPrivileges", TType.MAP, (short)1); - private static final TField GROUP_PRIVILEGES_FIELD_DESC = new TField("groupPrivileges", TType.MAP, (short)2); - private static final TField ROLE_PRIVILEGES_FIELD_DESC = new TField("rolePrivileges", TType.MAP, (short)3); - - private Map> userPrivileges; - private Map> groupPrivileges; - private Map> rolePrivileges; + private Map> userPrivileges; // required + private Map> groupPrivileges; // required + private Map> rolePrivileges; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { USER_PRIVILEGES((short)1, "userPrivileges"), GROUP_PRIVILEGES((short)2, "groupPrivileges"), ROLE_PRIVILEGES((short)3, "rolePrivileges"); @@ -103,26 +97,26 @@ public class PrincipalPrivilegeSet implements TBase metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.USER_PRIVILEGES, new FieldMetaData("userPrivileges", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, PrivilegeGrantInfo.class))))); - tmpMap.put(_Fields.GROUP_PRIVILEGES, new FieldMetaData("groupPrivileges", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, PrivilegeGrantInfo.class))))); - tmpMap.put(_Fields.ROLE_PRIVILEGES, new FieldMetaData("rolePrivileges", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, PrivilegeGrantInfo.class))))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.USER_PRIVILEGES, new org.apache.thrift.meta_data.FieldMetaData("userPrivileges", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrivilegeGrantInfo.class))))); + tmpMap.put(_Fields.GROUP_PRIVILEGES, new org.apache.thrift.meta_data.FieldMetaData("groupPrivileges", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrivilegeGrantInfo.class))))); + tmpMap.put(_Fields.ROLE_PRIVILEGES, new org.apache.thrift.meta_data.FieldMetaData("rolePrivileges", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrivilegeGrantInfo.class))))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(PrincipalPrivilegeSet.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PrincipalPrivilegeSet.class, metaDataMap); } public PrincipalPrivilegeSet() { @@ -233,7 +227,7 @@ public class PrincipalPrivilegeSet implements TBase>(2*_map12.size); for (int _i13 = 0; _i13 < _map12.size; ++_i13) { - String _key14; - List _val15; + String _key14; // required + List _val15; // required _key14 = iprot.readString(); { - TList _list16 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list16 = iprot.readListBegin(); _val15 = new ArrayList(_list16.size); for (int _i17 = 0; _i17 < _list16.size; ++_i17) { - PrivilegeGrantInfo _elem18; + PrivilegeGrantInfo _elem18; // required _elem18 = new PrivilegeGrantInfo(); _elem18.read(iprot); _val15.add(_elem18); @@ -503,25 +497,25 @@ public class PrincipalPrivilegeSet implements TBase>(2*_map19.size); for (int _i20 = 0; _i20 < _map19.size; ++_i20) { - String _key21; - List _val22; + String _key21; // required + List _val22; // required _key21 = iprot.readString(); { - TList _list23 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list23 = iprot.readListBegin(); _val22 = new ArrayList(_list23.size); for (int _i24 = 0; _i24 < _list23.size; ++_i24) { - PrivilegeGrantInfo _elem25; + PrivilegeGrantInfo _elem25; // required _elem25 = new PrivilegeGrantInfo(); _elem25.read(iprot); _val22.add(_elem25); @@ -533,25 +527,25 @@ public class PrincipalPrivilegeSet implements TBase>(2*_map26.size); for (int _i27 = 0; _i27 < _map26.size; ++_i27) { - String _key28; - List _val29; + String _key28; // required + List _val29; // required _key28 = iprot.readString(); { - TList _list30 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list30 = iprot.readListBegin(); _val29 = new ArrayList(_list30.size); for (int _i31 = 0; _i31 < _list30.size; ++_i31) { - PrivilegeGrantInfo _elem32; + PrivilegeGrantInfo _elem32; // required _elem32 = new PrivilegeGrantInfo(); _elem32.read(iprot); _val29.add(_elem32); @@ -563,11 +557,11 @@ public class PrincipalPrivilegeSet implements TBase> _iter33 : this.userPrivileges.entrySet()) { oprot.writeString(_iter33.getKey()); { - oprot.writeListBegin(new TList(TType.STRUCT, _iter33.getValue().size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter33.getValue().size())); for (PrivilegeGrantInfo _iter34 : _iter33.getValue()) { _iter34.write(oprot); @@ -602,12 +596,12 @@ public class PrincipalPrivilegeSet implements TBase> _iter35 : this.groupPrivileges.entrySet()) { oprot.writeString(_iter35.getKey()); { - oprot.writeListBegin(new TList(TType.STRUCT, _iter35.getValue().size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter35.getValue().size())); for (PrivilegeGrantInfo _iter36 : _iter35.getValue()) { _iter36.write(oprot); @@ -622,12 +616,12 @@ public class PrincipalPrivilegeSet implements TBase> _iter37 : this.rolePrivileges.entrySet()) { oprot.writeString(_iter37.getKey()); { - oprot.writeListBegin(new TList(TType.STRUCT, _iter37.getValue().size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter37.getValue().size())); for (PrivilegeGrantInfo _iter38 : _iter37.getValue()) { _iter38.write(oprot); @@ -675,9 +669,25 @@ public class PrincipalPrivilegeSet implements TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PrivilegeBag"); -public class PrivilegeBag implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("PrivilegeBag"); + private static final org.apache.thrift.protocol.TField PRIVILEGES_FIELD_DESC = new org.apache.thrift.protocol.TField("privileges", org.apache.thrift.protocol.TType.LIST, (short)1); - private static final TField PRIVILEGES_FIELD_DESC = new TField("privileges", TType.LIST, (short)1); - - private List privileges; + private List privileges; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { PRIVILEGES((short)1, "privileges"); private static final Map byName = new HashMap(); @@ -93,14 +87,14 @@ public class PrivilegeBag implements TBase, // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.PRIVILEGES, new FieldMetaData("privileges", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, HiveObjectPrivilege.class)))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.PRIVILEGES, new org.apache.thrift.meta_data.FieldMetaData("privileges", 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, HiveObjectPrivilege.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(PrivilegeBag.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PrivilegeBag.class, metaDataMap); } public PrivilegeBag() { @@ -162,7 +156,7 @@ public class PrivilegeBag implements TBase, this.privileges = null; } - /** Returns true if field privileges is set (has been asigned a value) and false otherwise */ + /** Returns true if field privileges is set (has been assigned a value) and false otherwise */ public boolean isSetPrivileges() { return this.privileges != null; } @@ -195,7 +189,7 @@ public class PrivilegeBag implements TBase, throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -251,7 +245,7 @@ public class PrivilegeBag implements TBase, return lastComparison; } if (isSetPrivileges()) { - lastComparison = TBaseHelper.compareTo(this.privileges, typedOther.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } @@ -263,24 +257,24 @@ public class PrivilegeBag implements TBase, return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // PRIVILEGES - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list8 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); this.privileges = new ArrayList(_list8.size); for (int _i9 = 0; _i9 < _list8.size; ++_i9) { - HiveObjectPrivilege _elem10; + HiveObjectPrivilege _elem10; // required _elem10 = new HiveObjectPrivilege(); _elem10.read(iprot); this.privileges.add(_elem10); @@ -288,11 +282,11 @@ public class PrivilegeBag implements TBase, iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -300,14 +294,14 @@ public class PrivilegeBag implements TBase, validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.privileges != null) { oprot.writeFieldBegin(PRIVILEGES_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.privileges.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.privileges.size())); for (HiveObjectPrivilege _iter11 : this.privileges) { _iter11.write(oprot); @@ -336,9 +330,25 @@ public class PrivilegeBag implements TBase, return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeGrantInfo.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeGrantInfo.java index ea144c0..d390341 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeGrantInfo.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeGrantInfo.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,29 +20,23 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; +public class PrivilegeGrantInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PrivilegeGrantInfo"); -public class PrivilegeGrantInfo implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("PrivilegeGrantInfo"); + private static final org.apache.thrift.protocol.TField PRIVILEGE_FIELD_DESC = new org.apache.thrift.protocol.TField("privilege", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField CREATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("createTime", org.apache.thrift.protocol.TType.I32, (short)2); + private static final org.apache.thrift.protocol.TField GRANTOR_FIELD_DESC = new org.apache.thrift.protocol.TField("grantor", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField GRANTOR_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("grantorType", org.apache.thrift.protocol.TType.I32, (short)4); + private static final org.apache.thrift.protocol.TField GRANT_OPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("grantOption", org.apache.thrift.protocol.TType.BOOL, (short)5); - private static final TField PRIVILEGE_FIELD_DESC = new TField("privilege", TType.STRING, (short)1); - private static final TField CREATE_TIME_FIELD_DESC = new TField("createTime", TType.I32, (short)2); - private static final TField GRANTOR_FIELD_DESC = new TField("grantor", TType.STRING, (short)3); - private static final TField GRANTOR_TYPE_FIELD_DESC = new TField("grantorType", TType.I32, (short)4); - private static final TField GRANT_OPTION_FIELD_DESC = new TField("grantOption", TType.BOOL, (short)5); - - private String privilege; - private int createTime; - private String grantor; - private PrincipalType grantorType; - private boolean grantOption; + private String privilege; // required + private int createTime; // required + private String grantor; // required + private PrincipalType grantorType; // required + private boolean grantOption; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { PRIVILEGE((short)1, "privilege"), CREATE_TIME((short)2, "createTime"), GRANTOR((short)3, "grantor"), @@ -120,21 +114,21 @@ public class PrivilegeGrantInfo implements TBase metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.PRIVILEGE, new FieldMetaData("privilege", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.CREATE_TIME, new FieldMetaData("createTime", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMap.put(_Fields.GRANTOR, new FieldMetaData("grantor", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.GRANTOR_TYPE, new FieldMetaData("grantorType", TFieldRequirementType.DEFAULT, - new EnumMetaData(TType.ENUM, PrincipalType.class))); - tmpMap.put(_Fields.GRANT_OPTION, new FieldMetaData("grantOption", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.PRIVILEGE, new org.apache.thrift.meta_data.FieldMetaData("privilege", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.CREATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("createTime", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.GRANTOR, new org.apache.thrift.meta_data.FieldMetaData("grantor", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.GRANTOR_TYPE, new org.apache.thrift.meta_data.FieldMetaData("grantorType", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PrincipalType.class))); + tmpMap.put(_Fields.GRANT_OPTION, new org.apache.thrift.meta_data.FieldMetaData("grantOption", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(PrivilegeGrantInfo.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PrivilegeGrantInfo.class, metaDataMap); } public PrivilegeGrantInfo() { @@ -203,7 +197,7 @@ public class PrivilegeGrantInfo implements TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Role"); -public class Role implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("Role"); + private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("roleName", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField CREATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("createTime", org.apache.thrift.protocol.TType.I32, (short)2); + private static final org.apache.thrift.protocol.TField OWNER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("ownerName", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final TField ROLE_NAME_FIELD_DESC = new TField("roleName", TType.STRING, (short)1); - private static final TField CREATE_TIME_FIELD_DESC = new TField("createTime", TType.I32, (short)2); - private static final TField OWNER_NAME_FIELD_DESC = new TField("ownerName", TType.STRING, (short)3); - - private String roleName; - private int createTime; - private String ownerName; + private String roleName; // required + private int createTime; // required + private String ownerName; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { ROLE_NAME((short)1, "roleName"), CREATE_TIME((short)2, "createTime"), OWNER_NAME((short)3, "ownerName"); @@ -105,17 +99,17 @@ public class Role implements TBase, java.io.Serializable, Cl private static final int __CREATETIME_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.ROLE_NAME, new FieldMetaData("roleName", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.CREATE_TIME, new FieldMetaData("createTime", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMap.put(_Fields.OWNER_NAME, new FieldMetaData("ownerName", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.CREATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("createTime", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.OWNER_NAME, new org.apache.thrift.meta_data.FieldMetaData("ownerName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(Role.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Role.class, metaDataMap); } public Role() { @@ -172,7 +166,7 @@ public class Role implements TBase, java.io.Serializable, Cl this.roleName = null; } - /** Returns true if field roleName is set (has been asigned a value) and false otherwise */ + /** Returns true if field roleName is set (has been assigned a value) and false otherwise */ public boolean isSetRoleName() { return this.roleName != null; } @@ -196,7 +190,7 @@ public class Role implements TBase, java.io.Serializable, Cl __isset_bit_vector.clear(__CREATETIME_ISSET_ID); } - /** Returns true if field createTime is set (has been asigned a value) and false otherwise */ + /** Returns true if field createTime is set (has been assigned a value) and false otherwise */ public boolean isSetCreateTime() { return __isset_bit_vector.get(__CREATETIME_ISSET_ID); } @@ -217,7 +211,7 @@ public class Role implements TBase, java.io.Serializable, Cl this.ownerName = null; } - /** Returns true if field ownerName is set (has been asigned a value) and false otherwise */ + /** Returns true if field ownerName is set (has been assigned a value) and false otherwise */ public boolean isSetOwnerName() { return this.ownerName != null; } @@ -263,7 +257,7 @@ public class Role implements TBase, java.io.Serializable, Cl return getRoleName(); case CREATE_TIME: - return new Integer(getCreateTime()); + return Integer.valueOf(getCreateTime()); case OWNER_NAME: return getOwnerName(); @@ -272,7 +266,7 @@ public class Role implements TBase, java.io.Serializable, Cl throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -350,7 +344,7 @@ public class Role implements TBase, java.io.Serializable, Cl return lastComparison; } if (isSetRoleName()) { - lastComparison = TBaseHelper.compareTo(this.roleName, typedOther.roleName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName); if (lastComparison != 0) { return lastComparison; } @@ -360,7 +354,7 @@ public class Role implements TBase, java.io.Serializable, Cl return lastComparison; } if (isSetCreateTime()) { - lastComparison = TBaseHelper.compareTo(this.createTime, typedOther.createTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime); if (lastComparison != 0) { return lastComparison; } @@ -370,7 +364,7 @@ public class Role implements TBase, java.io.Serializable, Cl return lastComparison; } if (isSetOwnerName()) { - lastComparison = TBaseHelper.compareTo(this.ownerName, typedOther.ownerName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerName, typedOther.ownerName); if (lastComparison != 0) { return lastComparison; } @@ -382,40 +376,40 @@ public class Role implements TBase, java.io.Serializable, Cl return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // ROLE_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.roleName = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // CREATE_TIME - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.createTime = iprot.readI32(); setCreateTimeIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // OWNER_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.ownerName = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -423,7 +417,7 @@ public class Role implements TBase, java.io.Serializable, Cl validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -472,9 +466,27 @@ public class Role implements TBase, java.io.Serializable, Cl return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + 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); + } + } + } diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java index 9ea30c3..25f5e42 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,23 +20,17 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; +public class Schema implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Schema"); -public class Schema implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("Schema"); + private static final org.apache.thrift.protocol.TField FIELD_SCHEMAS_FIELD_DESC = new org.apache.thrift.protocol.TField("fieldSchemas", org.apache.thrift.protocol.TType.LIST, (short)1); + private static final org.apache.thrift.protocol.TField PROPERTIES_FIELD_DESC = new org.apache.thrift.protocol.TField("properties", org.apache.thrift.protocol.TType.MAP, (short)2); - private static final TField FIELD_SCHEMAS_FIELD_DESC = new TField("fieldSchemas", TType.LIST, (short)1); - private static final TField PROPERTIES_FIELD_DESC = new TField("properties", TType.MAP, (short)2); - - private List fieldSchemas; - private Map properties; + private List fieldSchemas; // required + private Map properties; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { FIELD_SCHEMAS((short)1, "fieldSchemas"), PROPERTIES((short)2, "properties"); @@ -98,18 +92,18 @@ public class Schema implements TBase, java.io.Serializab // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.FIELD_SCHEMAS, new FieldMetaData("fieldSchemas", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, FieldSchema.class)))); - tmpMap.put(_Fields.PROPERTIES, new FieldMetaData("properties", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new FieldValueMetaData(TType.STRING)))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.FIELD_SCHEMAS, new org.apache.thrift.meta_data.FieldMetaData("fieldSchemas", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FieldSchema.class)))); + tmpMap.put(_Fields.PROPERTIES, new org.apache.thrift.meta_data.FieldMetaData("properties", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(Schema.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Schema.class, metaDataMap); } public Schema() { @@ -189,7 +183,7 @@ public class Schema implements TBase, java.io.Serializab this.fieldSchemas = null; } - /** Returns true if field fieldSchemas is set (has been asigned a value) and false otherwise */ + /** Returns true if field fieldSchemas is set (has been assigned a value) and false otherwise */ public boolean isSetFieldSchemas() { return this.fieldSchemas != null; } @@ -223,7 +217,7 @@ public class Schema implements TBase, java.io.Serializab this.properties = null; } - /** Returns true if field properties is set (has been asigned a value) and false otherwise */ + /** Returns true if field properties is set (has been assigned a value) and false otherwise */ public boolean isSetProperties() { return this.properties != null; } @@ -267,7 +261,7 @@ public class Schema implements TBase, java.io.Serializab throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -334,7 +328,7 @@ public class Schema implements TBase, java.io.Serializab return lastComparison; } if (isSetFieldSchemas()) { - lastComparison = TBaseHelper.compareTo(this.fieldSchemas, typedOther.fieldSchemas); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fieldSchemas, typedOther.fieldSchemas); if (lastComparison != 0) { return lastComparison; } @@ -344,7 +338,7 @@ public class Schema implements TBase, java.io.Serializab return lastComparison; } if (isSetProperties()) { - lastComparison = TBaseHelper.compareTo(this.properties, typedOther.properties); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.properties, typedOther.properties); if (lastComparison != 0) { return lastComparison; } @@ -356,24 +350,24 @@ public class Schema implements TBase, java.io.Serializab return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // FIELD_SCHEMAS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list89 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list89 = iprot.readListBegin(); this.fieldSchemas = new ArrayList(_list89.size); for (int _i90 = 0; _i90 < _list89.size; ++_i90) { - FieldSchema _elem91; + FieldSchema _elem91; // required _elem91 = new FieldSchema(); _elem91.read(iprot); this.fieldSchemas.add(_elem91); @@ -381,18 +375,18 @@ public class Schema implements TBase, java.io.Serializab iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // PROPERTIES - if (field.type == TType.MAP) { + if (field.type == org.apache.thrift.protocol.TType.MAP) { { - TMap _map92 = iprot.readMapBegin(); + org.apache.thrift.protocol.TMap _map92 = iprot.readMapBegin(); this.properties = new HashMap(2*_map92.size); for (int _i93 = 0; _i93 < _map92.size; ++_i93) { - String _key94; - String _val95; + String _key94; // required + String _val95; // required _key94 = iprot.readString(); _val95 = iprot.readString(); this.properties.put(_key94, _val95); @@ -400,11 +394,11 @@ public class Schema implements TBase, java.io.Serializab iprot.readMapEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -412,14 +406,14 @@ public class Schema implements TBase, java.io.Serializab validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.fieldSchemas != null) { oprot.writeFieldBegin(FIELD_SCHEMAS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.fieldSchemas.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.fieldSchemas.size())); for (FieldSchema _iter96 : this.fieldSchemas) { _iter96.write(oprot); @@ -431,7 +425,7 @@ public class Schema implements TBase, java.io.Serializab if (this.properties != null) { oprot.writeFieldBegin(PROPERTIES_FIELD_DESC); { - oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.properties.size())); + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.properties.size())); for (Map.Entry _iter97 : this.properties.entrySet()) { oprot.writeString(_iter97.getKey()); @@ -469,9 +463,25 @@ public class Schema implements TBase, java.io.Serializab return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java index 5931d5b..208ece2 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,25 +20,19 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; +public class SerDeInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SerDeInfo"); -public class SerDeInfo implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("SerDeInfo"); + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField SERIALIZATION_LIB_FIELD_DESC = new org.apache.thrift.protocol.TField("serializationLib", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PARAMETERS_FIELD_DESC = new org.apache.thrift.protocol.TField("parameters", org.apache.thrift.protocol.TType.MAP, (short)3); - private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1); - private static final TField SERIALIZATION_LIB_FIELD_DESC = new TField("serializationLib", TType.STRING, (short)2); - private static final TField PARAMETERS_FIELD_DESC = new TField("parameters", TType.MAP, (short)3); - - private String name; - private String serializationLib; - private Map parameters; + private String name; // required + private String serializationLib; // required + private Map parameters; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { NAME((short)1, "name"), SERIALIZATION_LIB((short)2, "serializationLib"), PARAMETERS((short)3, "parameters"); @@ -103,19 +97,19 @@ public class SerDeInfo implements TBase, java.io.S // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.SERIALIZATION_LIB, new FieldMetaData("serializationLib", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PARAMETERS, new FieldMetaData("parameters", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new FieldValueMetaData(TType.STRING)))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.SERIALIZATION_LIB, new org.apache.thrift.meta_data.FieldMetaData("serializationLib", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PARAMETERS, new org.apache.thrift.meta_data.FieldMetaData("parameters", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(SerDeInfo.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SerDeInfo.class, metaDataMap); } public SerDeInfo() { @@ -182,7 +176,7 @@ public class SerDeInfo implements TBase, java.io.S this.name = null; } - /** Returns true if field name is set (has been asigned a value) and false otherwise */ + /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } @@ -205,7 +199,7 @@ public class SerDeInfo implements TBase, java.io.S this.serializationLib = null; } - /** Returns true if field serializationLib is set (has been asigned a value) and false otherwise */ + /** Returns true if field serializationLib is set (has been assigned a value) and false otherwise */ public boolean isSetSerializationLib() { return this.serializationLib != null; } @@ -239,7 +233,7 @@ public class SerDeInfo implements TBase, java.io.S this.parameters = null; } - /** Returns true if field parameters is set (has been asigned a value) and false otherwise */ + /** Returns true if field parameters is set (has been assigned a value) and false otherwise */ public boolean isSetParameters() { return this.parameters != null; } @@ -294,7 +288,7 @@ public class SerDeInfo implements TBase, java.io.S throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -372,7 +366,7 @@ public class SerDeInfo implements TBase, java.io.S return lastComparison; } if (isSetName()) { - lastComparison = TBaseHelper.compareTo(this.name, typedOther.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } @@ -382,7 +376,7 @@ public class SerDeInfo implements TBase, java.io.S return lastComparison; } if (isSetSerializationLib()) { - lastComparison = TBaseHelper.compareTo(this.serializationLib, typedOther.serializationLib); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serializationLib, typedOther.serializationLib); if (lastComparison != 0) { return lastComparison; } @@ -392,7 +386,7 @@ public class SerDeInfo implements TBase, java.io.S return lastComparison; } if (isSetParameters()) { - lastComparison = TBaseHelper.compareTo(this.parameters, typedOther.parameters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters); if (lastComparison != 0) { return lastComparison; } @@ -404,39 +398,39 @@ public class SerDeInfo implements TBase, java.io.S return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // SERIALIZATION_LIB - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.serializationLib = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // PARAMETERS - if (field.type == TType.MAP) { + if (field.type == org.apache.thrift.protocol.TType.MAP) { { - TMap _map44 = iprot.readMapBegin(); + org.apache.thrift.protocol.TMap _map44 = iprot.readMapBegin(); this.parameters = new HashMap(2*_map44.size); for (int _i45 = 0; _i45 < _map44.size; ++_i45) { - String _key46; - String _val47; + String _key46; // required + String _val47; // required _key46 = iprot.readString(); _val47 = iprot.readString(); this.parameters.put(_key46, _val47); @@ -444,11 +438,11 @@ public class SerDeInfo implements TBase, java.io.S iprot.readMapEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -456,7 +450,7 @@ public class SerDeInfo implements TBase, java.io.S validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -473,7 +467,7 @@ public class SerDeInfo implements TBase, java.io.S if (this.parameters != null) { oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { - oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.parameters.size())); + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.parameters.size())); for (Map.Entry _iter48 : this.parameters.entrySet()) { oprot.writeString(_iter48.getKey()); @@ -519,9 +513,25 @@ public class SerDeInfo implements TBase, java.io.S return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java index fe42f50..3f7d7cc 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,39 +20,33 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; - -public class StorageDescriptor implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("StorageDescriptor"); - - private static final TField COLS_FIELD_DESC = new TField("cols", TType.LIST, (short)1); - private static final TField LOCATION_FIELD_DESC = new TField("location", TType.STRING, (short)2); - private static final TField INPUT_FORMAT_FIELD_DESC = new TField("inputFormat", TType.STRING, (short)3); - private static final TField OUTPUT_FORMAT_FIELD_DESC = new TField("outputFormat", TType.STRING, (short)4); - private static final TField COMPRESSED_FIELD_DESC = new TField("compressed", TType.BOOL, (short)5); - private static final TField NUM_BUCKETS_FIELD_DESC = new TField("numBuckets", TType.I32, (short)6); - private static final TField SERDE_INFO_FIELD_DESC = new TField("serdeInfo", TType.STRUCT, (short)7); - private static final TField BUCKET_COLS_FIELD_DESC = new TField("bucketCols", TType.LIST, (short)8); - private static final TField SORT_COLS_FIELD_DESC = new TField("sortCols", TType.LIST, (short)9); - private static final TField PARAMETERS_FIELD_DESC = new TField("parameters", TType.MAP, (short)10); - - private List cols; - private String location; - private String inputFormat; - private String outputFormat; - private boolean compressed; - private int numBuckets; - private SerDeInfo serdeInfo; - private List bucketCols; - private List sortCols; - private Map parameters; +public class StorageDescriptor implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("StorageDescriptor"); + + private static final org.apache.thrift.protocol.TField COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("cols", org.apache.thrift.protocol.TType.LIST, (short)1); + private static final org.apache.thrift.protocol.TField LOCATION_FIELD_DESC = new org.apache.thrift.protocol.TField("location", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField INPUT_FORMAT_FIELD_DESC = new org.apache.thrift.protocol.TField("inputFormat", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField OUTPUT_FORMAT_FIELD_DESC = new org.apache.thrift.protocol.TField("outputFormat", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField COMPRESSED_FIELD_DESC = new org.apache.thrift.protocol.TField("compressed", org.apache.thrift.protocol.TType.BOOL, (short)5); + private static final org.apache.thrift.protocol.TField NUM_BUCKETS_FIELD_DESC = new org.apache.thrift.protocol.TField("numBuckets", org.apache.thrift.protocol.TType.I32, (short)6); + private static final org.apache.thrift.protocol.TField SERDE_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("serdeInfo", org.apache.thrift.protocol.TType.STRUCT, (short)7); + private static final org.apache.thrift.protocol.TField BUCKET_COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("bucketCols", org.apache.thrift.protocol.TType.LIST, (short)8); + private static final org.apache.thrift.protocol.TField SORT_COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("sortCols", org.apache.thrift.protocol.TType.LIST, (short)9); + private static final org.apache.thrift.protocol.TField PARAMETERS_FIELD_DESC = new org.apache.thrift.protocol.TField("parameters", org.apache.thrift.protocol.TType.MAP, (short)10); + + private List cols; // required + private String location; // required + private String inputFormat; // required + private String outputFormat; // required + private boolean compressed; // required + private int numBuckets; // required + private SerDeInfo serdeInfo; // required + private List bucketCols; // required + private List sortCols; // required + private Map parameters; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { COLS((short)1, "cols"), LOCATION((short)2, "location"), INPUT_FORMAT((short)3, "inputFormat"), @@ -141,36 +135,36 @@ public class StorageDescriptor implements TBase metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.COLS, new FieldMetaData("cols", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, FieldSchema.class)))); - tmpMap.put(_Fields.LOCATION, new FieldMetaData("location", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.INPUT_FORMAT, new FieldMetaData("inputFormat", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.OUTPUT_FORMAT, new FieldMetaData("outputFormat", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.COMPRESSED, new FieldMetaData("compressed", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); - tmpMap.put(_Fields.NUM_BUCKETS, new FieldMetaData("numBuckets", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMap.put(_Fields.SERDE_INFO, new FieldMetaData("serdeInfo", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, SerDeInfo.class))); - tmpMap.put(_Fields.BUCKET_COLS, new FieldMetaData("bucketCols", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.SORT_COLS, new FieldMetaData("sortCols", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Order.class)))); - tmpMap.put(_Fields.PARAMETERS, new FieldMetaData("parameters", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new FieldValueMetaData(TType.STRING)))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.COLS, new org.apache.thrift.meta_data.FieldMetaData("cols", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FieldSchema.class)))); + tmpMap.put(_Fields.LOCATION, new org.apache.thrift.meta_data.FieldMetaData("location", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.INPUT_FORMAT, new org.apache.thrift.meta_data.FieldMetaData("inputFormat", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.OUTPUT_FORMAT, new org.apache.thrift.meta_data.FieldMetaData("outputFormat", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.COMPRESSED, new org.apache.thrift.meta_data.FieldMetaData("compressed", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.NUM_BUCKETS, new org.apache.thrift.meta_data.FieldMetaData("numBuckets", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.SERDE_INFO, new org.apache.thrift.meta_data.FieldMetaData("serdeInfo", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SerDeInfo.class))); + tmpMap.put(_Fields.BUCKET_COLS, new org.apache.thrift.meta_data.FieldMetaData("bucketCols", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.SORT_COLS, new org.apache.thrift.meta_data.FieldMetaData("sortCols", 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, Order.class)))); + tmpMap.put(_Fields.PARAMETERS, new org.apache.thrift.meta_data.FieldMetaData("parameters", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(StorageDescriptor.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(StorageDescriptor.class, metaDataMap); } public StorageDescriptor() { @@ -308,7 +302,7 @@ public class StorageDescriptor implements TBase(_list49.size); for (int _i50 = 0; _i50 < _list49.size; ++_i50) { - FieldSchema _elem51; + FieldSchema _elem51; // required _elem51 = new FieldSchema(); _elem51.read(iprot); this.cols.add(_elem51); @@ -968,79 +962,79 @@ public class StorageDescriptor implements TBase(_list52.size); for (int _i53 = 0; _i53 < _list52.size; ++_i53) { - String _elem54; + String _elem54; // required _elem54 = iprot.readString(); this.bucketCols.add(_elem54); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 9: // SORT_COLS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list55 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list55 = iprot.readListBegin(); this.sortCols = new ArrayList(_list55.size); for (int _i56 = 0; _i56 < _list55.size; ++_i56) { - Order _elem57; + Order _elem57; // required _elem57 = new Order(); _elem57.read(iprot); this.sortCols.add(_elem57); @@ -1048,18 +1042,18 @@ public class StorageDescriptor implements TBase(2*_map58.size); for (int _i59 = 0; _i59 < _map58.size; ++_i59) { - String _key60; - String _val61; + String _key60; // required + String _val61; // required _key60 = iprot.readString(); _val61 = iprot.readString(); this.parameters.put(_key60, _val61); @@ -1067,11 +1061,11 @@ public class StorageDescriptor implements TBase _iter65 : this.parameters.entrySet()) { oprot.writeString(_iter65.getKey()); @@ -1242,9 +1236,27 @@ public class StorageDescriptor implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("Table"); - - private static final TField TABLE_NAME_FIELD_DESC = new TField("tableName", TType.STRING, (short)1); - private static final TField DB_NAME_FIELD_DESC = new TField("dbName", TType.STRING, (short)2); - private static final TField OWNER_FIELD_DESC = new TField("owner", TType.STRING, (short)3); - private static final TField CREATE_TIME_FIELD_DESC = new TField("createTime", TType.I32, (short)4); - private static final TField LAST_ACCESS_TIME_FIELD_DESC = new TField("lastAccessTime", TType.I32, (short)5); - private static final TField RETENTION_FIELD_DESC = new TField("retention", TType.I32, (short)6); - private static final TField SD_FIELD_DESC = new TField("sd", TType.STRUCT, (short)7); - private static final TField PARTITION_KEYS_FIELD_DESC = new TField("partitionKeys", TType.LIST, (short)8); - private static final TField PARAMETERS_FIELD_DESC = new TField("parameters", TType.MAP, (short)9); - private static final TField VIEW_ORIGINAL_TEXT_FIELD_DESC = new TField("viewOriginalText", TType.STRING, (short)10); - private static final TField VIEW_EXPANDED_TEXT_FIELD_DESC = new TField("viewExpandedText", TType.STRING, (short)11); - private static final TField TABLE_TYPE_FIELD_DESC = new TField("tableType", TType.STRING, (short)12); - private static final TField PRIVILEGES_FIELD_DESC = new TField("privileges", TType.STRUCT, (short)13); - - private String tableName; - private String dbName; - private String owner; - private int createTime; - private int lastAccessTime; - private int retention; - private StorageDescriptor sd; - private List partitionKeys; - private Map parameters; - private String viewOriginalText; - private String viewExpandedText; - private String tableType; - private PrincipalPrivilegeSet privileges; +public class Table implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Table"); + + private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); + 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)2); + private static final org.apache.thrift.protocol.TField OWNER_FIELD_DESC = new org.apache.thrift.protocol.TField("owner", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField CREATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("createTime", org.apache.thrift.protocol.TType.I32, (short)4); + private static final org.apache.thrift.protocol.TField LAST_ACCESS_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastAccessTime", org.apache.thrift.protocol.TType.I32, (short)5); + private static final org.apache.thrift.protocol.TField RETENTION_FIELD_DESC = new org.apache.thrift.protocol.TField("retention", org.apache.thrift.protocol.TType.I32, (short)6); + private static final org.apache.thrift.protocol.TField SD_FIELD_DESC = new org.apache.thrift.protocol.TField("sd", org.apache.thrift.protocol.TType.STRUCT, (short)7); + 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)8); + private static final org.apache.thrift.protocol.TField PARAMETERS_FIELD_DESC = new org.apache.thrift.protocol.TField("parameters", org.apache.thrift.protocol.TType.MAP, (short)9); + private static final org.apache.thrift.protocol.TField VIEW_ORIGINAL_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("viewOriginalText", org.apache.thrift.protocol.TType.STRING, (short)10); + private static final org.apache.thrift.protocol.TField VIEW_EXPANDED_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("viewExpandedText", org.apache.thrift.protocol.TType.STRING, (short)11); + private static final org.apache.thrift.protocol.TField TABLE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("tableType", org.apache.thrift.protocol.TType.STRING, (short)12); + private static final org.apache.thrift.protocol.TField PRIVILEGES_FIELD_DESC = new org.apache.thrift.protocol.TField("privileges", org.apache.thrift.protocol.TType.STRUCT, (short)13); + + private String tableName; // required + private String dbName; // required + private String owner; // required + private int createTime; // required + private int lastAccessTime; // required + private int retention; // required + private StorageDescriptor sd; // required + private List partitionKeys; // required + private Map parameters; // required + private String viewOriginalText; // required + private String viewExpandedText; // required + private String tableType; // required + private PrincipalPrivilegeSet privileges; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { TABLE_NAME((short)1, "tableName"), DB_NAME((short)2, "dbName"), OWNER((short)3, "owner"), @@ -157,40 +151,40 @@ public class Table implements TBase, java.io.Serializable, private static final int __RETENTION_ISSET_ID = 2; private BitSet __isset_bit_vector = new BitSet(3); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.TABLE_NAME, new FieldMetaData("tableName", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("dbName", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.OWNER, new FieldMetaData("owner", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.CREATE_TIME, new FieldMetaData("createTime", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMap.put(_Fields.LAST_ACCESS_TIME, new FieldMetaData("lastAccessTime", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMap.put(_Fields.RETENTION, new FieldMetaData("retention", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMap.put(_Fields.SD, new FieldMetaData("sd", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, StorageDescriptor.class))); - tmpMap.put(_Fields.PARTITION_KEYS, new FieldMetaData("partitionKeys", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, FieldSchema.class)))); - tmpMap.put(_Fields.PARAMETERS, new FieldMetaData("parameters", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.VIEW_ORIGINAL_TEXT, new FieldMetaData("viewOriginalText", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.VIEW_EXPANDED_TEXT, new FieldMetaData("viewExpandedText", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TABLE_TYPE, new FieldMetaData("tableType", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PRIVILEGES, new FieldMetaData("privileges", TFieldRequirementType.OPTIONAL, - new StructMetaData(TType.STRUCT, PrincipalPrivilegeSet.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("dbName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.OWNER, new org.apache.thrift.meta_data.FieldMetaData("owner", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.CREATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("createTime", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.LAST_ACCESS_TIME, new org.apache.thrift.meta_data.FieldMetaData("lastAccessTime", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.RETENTION, new org.apache.thrift.meta_data.FieldMetaData("retention", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.SD, new org.apache.thrift.meta_data.FieldMetaData("sd", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StorageDescriptor.class))); + tmpMap.put(_Fields.PARTITION_KEYS, new org.apache.thrift.meta_data.FieldMetaData("partitionKeys", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FieldSchema.class)))); + tmpMap.put(_Fields.PARAMETERS, new org.apache.thrift.meta_data.FieldMetaData("parameters", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.VIEW_ORIGINAL_TEXT, new org.apache.thrift.meta_data.FieldMetaData("viewOriginalText", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.VIEW_EXPANDED_TEXT, new org.apache.thrift.meta_data.FieldMetaData("viewExpandedText", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("tableType", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PRIVILEGES, new org.apache.thrift.meta_data.FieldMetaData("privileges", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrincipalPrivilegeSet.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(Table.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Table.class, metaDataMap); } public Table() { @@ -321,7 +315,7 @@ public class Table implements TBase, java.io.Serializable, this.tableName = null; } - /** Returns true if field tableName is set (has been asigned a value) and false otherwise */ + /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ public boolean isSetTableName() { return this.tableName != null; } @@ -344,7 +338,7 @@ public class Table implements TBase, java.io.Serializable, this.dbName = null; } - /** Returns true if field dbName is set (has been asigned a value) and false otherwise */ + /** Returns true if field dbName is set (has been assigned a value) and false otherwise */ public boolean isSetDbName() { return this.dbName != null; } @@ -367,7 +361,7 @@ public class Table implements TBase, java.io.Serializable, this.owner = null; } - /** Returns true if field owner is set (has been asigned a value) and false otherwise */ + /** Returns true if field owner is set (has been assigned a value) and false otherwise */ public boolean isSetOwner() { return this.owner != null; } @@ -391,7 +385,7 @@ public class Table implements TBase, java.io.Serializable, __isset_bit_vector.clear(__CREATETIME_ISSET_ID); } - /** Returns true if field createTime is set (has been asigned a value) and false otherwise */ + /** Returns true if field createTime is set (has been assigned a value) and false otherwise */ public boolean isSetCreateTime() { return __isset_bit_vector.get(__CREATETIME_ISSET_ID); } @@ -413,7 +407,7 @@ public class Table implements TBase, java.io.Serializable, __isset_bit_vector.clear(__LASTACCESSTIME_ISSET_ID); } - /** Returns true if field lastAccessTime is set (has been asigned a value) and false otherwise */ + /** Returns true if field lastAccessTime is set (has been assigned a value) and false otherwise */ public boolean isSetLastAccessTime() { return __isset_bit_vector.get(__LASTACCESSTIME_ISSET_ID); } @@ -435,7 +429,7 @@ public class Table implements TBase, java.io.Serializable, __isset_bit_vector.clear(__RETENTION_ISSET_ID); } - /** Returns true if field retention is set (has been asigned a value) and false otherwise */ + /** Returns true if field retention is set (has been assigned a value) and false otherwise */ public boolean isSetRetention() { return __isset_bit_vector.get(__RETENTION_ISSET_ID); } @@ -456,7 +450,7 @@ public class Table implements TBase, java.io.Serializable, this.sd = null; } - /** Returns true if field sd is set (has been asigned a value) and false otherwise */ + /** Returns true if field sd is set (has been assigned a value) and false otherwise */ public boolean isSetSd() { return this.sd != null; } @@ -494,7 +488,7 @@ public class Table implements TBase, java.io.Serializable, this.partitionKeys = null; } - /** Returns true if field partitionKeys is set (has been asigned a value) and false otherwise */ + /** Returns true if field partitionKeys is set (has been assigned a value) and false otherwise */ public boolean isSetPartitionKeys() { return this.partitionKeys != null; } @@ -528,7 +522,7 @@ public class Table implements TBase, java.io.Serializable, this.parameters = null; } - /** Returns true if field parameters is set (has been asigned a value) and false otherwise */ + /** Returns true if field parameters is set (has been assigned a value) and false otherwise */ public boolean isSetParameters() { return this.parameters != null; } @@ -551,7 +545,7 @@ public class Table implements TBase, java.io.Serializable, this.viewOriginalText = null; } - /** Returns true if field viewOriginalText is set (has been asigned a value) and false otherwise */ + /** Returns true if field viewOriginalText is set (has been assigned a value) and false otherwise */ public boolean isSetViewOriginalText() { return this.viewOriginalText != null; } @@ -574,7 +568,7 @@ public class Table implements TBase, java.io.Serializable, this.viewExpandedText = null; } - /** Returns true if field viewExpandedText is set (has been asigned a value) and false otherwise */ + /** Returns true if field viewExpandedText is set (has been assigned a value) and false otherwise */ public boolean isSetViewExpandedText() { return this.viewExpandedText != null; } @@ -597,7 +591,7 @@ public class Table implements TBase, java.io.Serializable, this.tableType = null; } - /** Returns true if field tableType is set (has been asigned a value) and false otherwise */ + /** Returns true if field tableType is set (has been assigned a value) and false otherwise */ public boolean isSetTableType() { return this.tableType != null; } @@ -620,7 +614,7 @@ public class Table implements TBase, java.io.Serializable, this.privileges = null; } - /** Returns true if field privileges is set (has been asigned a value) and false otherwise */ + /** Returns true if field privileges is set (has been assigned a value) and false otherwise */ public boolean isSetPrivileges() { return this.privileges != null; } @@ -752,13 +746,13 @@ public class Table implements TBase, java.io.Serializable, return getOwner(); case CREATE_TIME: - return new Integer(getCreateTime()); + return Integer.valueOf(getCreateTime()); case LAST_ACCESS_TIME: - return new Integer(getLastAccessTime()); + return Integer.valueOf(getLastAccessTime()); case RETENTION: - return new Integer(getRetention()); + return Integer.valueOf(getRetention()); case SD: return getSd(); @@ -785,7 +779,7 @@ public class Table implements TBase, java.io.Serializable, throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -973,7 +967,7 @@ public class Table implements TBase, java.io.Serializable, return lastComparison; } if (isSetTableName()) { - lastComparison = TBaseHelper.compareTo(this.tableName, typedOther.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); if (lastComparison != 0) { return lastComparison; } @@ -983,7 +977,7 @@ public class Table implements TBase, java.io.Serializable, return lastComparison; } if (isSetDbName()) { - lastComparison = TBaseHelper.compareTo(this.dbName, typedOther.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } @@ -993,7 +987,7 @@ public class Table implements TBase, java.io.Serializable, return lastComparison; } if (isSetOwner()) { - lastComparison = TBaseHelper.compareTo(this.owner, typedOther.owner); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.owner, typedOther.owner); if (lastComparison != 0) { return lastComparison; } @@ -1003,7 +997,7 @@ public class Table implements TBase, java.io.Serializable, return lastComparison; } if (isSetCreateTime()) { - lastComparison = TBaseHelper.compareTo(this.createTime, typedOther.createTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime); if (lastComparison != 0) { return lastComparison; } @@ -1013,7 +1007,7 @@ public class Table implements TBase, java.io.Serializable, return lastComparison; } if (isSetLastAccessTime()) { - lastComparison = TBaseHelper.compareTo(this.lastAccessTime, typedOther.lastAccessTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAccessTime, typedOther.lastAccessTime); if (lastComparison != 0) { return lastComparison; } @@ -1023,7 +1017,7 @@ public class Table implements TBase, java.io.Serializable, return lastComparison; } if (isSetRetention()) { - lastComparison = TBaseHelper.compareTo(this.retention, typedOther.retention); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.retention, typedOther.retention); if (lastComparison != 0) { return lastComparison; } @@ -1033,7 +1027,7 @@ public class Table implements TBase, java.io.Serializable, return lastComparison; } if (isSetSd()) { - lastComparison = TBaseHelper.compareTo(this.sd, typedOther.sd); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sd, typedOther.sd); if (lastComparison != 0) { return lastComparison; } @@ -1043,7 +1037,7 @@ public class Table implements TBase, java.io.Serializable, return lastComparison; } if (isSetPartitionKeys()) { - lastComparison = TBaseHelper.compareTo(this.partitionKeys, typedOther.partitionKeys); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionKeys, typedOther.partitionKeys); if (lastComparison != 0) { return lastComparison; } @@ -1053,7 +1047,7 @@ public class Table implements TBase, java.io.Serializable, return lastComparison; } if (isSetParameters()) { - lastComparison = TBaseHelper.compareTo(this.parameters, typedOther.parameters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters); if (lastComparison != 0) { return lastComparison; } @@ -1063,7 +1057,7 @@ public class Table implements TBase, java.io.Serializable, return lastComparison; } if (isSetViewOriginalText()) { - lastComparison = TBaseHelper.compareTo(this.viewOriginalText, typedOther.viewOriginalText); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.viewOriginalText, typedOther.viewOriginalText); if (lastComparison != 0) { return lastComparison; } @@ -1073,7 +1067,7 @@ public class Table implements TBase, java.io.Serializable, return lastComparison; } if (isSetViewExpandedText()) { - lastComparison = TBaseHelper.compareTo(this.viewExpandedText, typedOther.viewExpandedText); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.viewExpandedText, typedOther.viewExpandedText); if (lastComparison != 0) { return lastComparison; } @@ -1083,7 +1077,7 @@ public class Table implements TBase, java.io.Serializable, return lastComparison; } if (isSetTableType()) { - lastComparison = TBaseHelper.compareTo(this.tableType, typedOther.tableType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableType, typedOther.tableType); if (lastComparison != 0) { return lastComparison; } @@ -1093,7 +1087,7 @@ public class Table implements TBase, java.io.Serializable, return lastComparison; } if (isSetPrivileges()) { - lastComparison = TBaseHelper.compareTo(this.privileges, typedOther.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } @@ -1105,77 +1099,77 @@ public class Table implements TBase, java.io.Serializable, return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // TABLE_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tableName = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.dbName = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // OWNER - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.owner = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // CREATE_TIME - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.createTime = iprot.readI32(); setCreateTimeIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 5: // LAST_ACCESS_TIME - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.lastAccessTime = iprot.readI32(); setLastAccessTimeIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 6: // RETENTION - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.retention = iprot.readI32(); setRetentionIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 7: // SD - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.sd = new StorageDescriptor(); this.sd.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 8: // PARTITION_KEYS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list66 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list66 = iprot.readListBegin(); this.partitionKeys = new ArrayList(_list66.size); for (int _i67 = 0; _i67 < _list66.size; ++_i67) { - FieldSchema _elem68; + FieldSchema _elem68; // required _elem68 = new FieldSchema(); _elem68.read(iprot); this.partitionKeys.add(_elem68); @@ -1183,18 +1177,18 @@ public class Table implements TBase, java.io.Serializable, iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 9: // PARAMETERS - if (field.type == TType.MAP) { + if (field.type == org.apache.thrift.protocol.TType.MAP) { { - TMap _map69 = iprot.readMapBegin(); + org.apache.thrift.protocol.TMap _map69 = iprot.readMapBegin(); this.parameters = new HashMap(2*_map69.size); for (int _i70 = 0; _i70 < _map69.size; ++_i70) { - String _key71; - String _val72; + String _key71; // required + String _val72; // required _key71 = iprot.readString(); _val72 = iprot.readString(); this.parameters.put(_key71, _val72); @@ -1202,40 +1196,40 @@ public class Table implements TBase, java.io.Serializable, iprot.readMapEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 10: // VIEW_ORIGINAL_TEXT - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.viewOriginalText = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 11: // VIEW_EXPANDED_TEXT - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.viewExpandedText = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 12: // TABLE_TYPE - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tableType = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 13: // PRIVILEGES - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.privileges = new PrincipalPrivilegeSet(); this.privileges.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -1243,7 +1237,7 @@ public class Table implements TBase, java.io.Serializable, validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -1279,7 +1273,7 @@ public class Table implements TBase, java.io.Serializable, if (this.partitionKeys != null) { oprot.writeFieldBegin(PARTITION_KEYS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.partitionKeys.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.partitionKeys.size())); for (FieldSchema _iter73 : this.partitionKeys) { _iter73.write(oprot); @@ -1291,7 +1285,7 @@ public class Table implements TBase, java.io.Serializable, if (this.parameters != null) { oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { - oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.parameters.size())); + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.parameters.size())); for (Map.Entry _iter74 : this.parameters.entrySet()) { oprot.writeString(_iter74.getKey()); @@ -1429,9 +1423,27 @@ public class Table implements TBase, java.io.Serializable, return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + 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); + } + } + } diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index 073fc36..3e07f73 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,12 +20,6 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; - public class ThriftHiveMetastore { /** @@ -33,311 +27,297 @@ public class ThriftHiveMetastore { */ public interface Iface extends com.facebook.fb303.FacebookService.Iface { - public void create_database(Database database) throws AlreadyExistsException, InvalidObjectException, MetaException, TException; + public void create_database(Database database) throws AlreadyExistsException, InvalidObjectException, MetaException, org.apache.thrift.TException; - public Database get_database(String name) throws NoSuchObjectException, MetaException, TException; + public Database get_database(String name) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; - public void drop_database(String name, boolean deleteData, boolean cascade) throws NoSuchObjectException, InvalidOperationException, MetaException, TException; + public void drop_database(String name, boolean deleteData, boolean cascade) throws NoSuchObjectException, InvalidOperationException, MetaException, org.apache.thrift.TException; - public List get_databases(String pattern) throws MetaException, TException; + public List get_databases(String pattern) throws MetaException, org.apache.thrift.TException; - public List get_all_databases() throws MetaException, TException; + public List get_all_databases() throws MetaException, org.apache.thrift.TException; - public void alter_database(String dbname, Database db) throws MetaException, NoSuchObjectException, TException; + public void alter_database(String dbname, Database db) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; - public Type get_type(String name) throws MetaException, NoSuchObjectException, TException; + public Type get_type(String name) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; - public boolean create_type(Type type) throws AlreadyExistsException, InvalidObjectException, MetaException, TException; + public boolean create_type(Type type) throws AlreadyExistsException, InvalidObjectException, MetaException, org.apache.thrift.TException; - public boolean drop_type(String type) throws MetaException, NoSuchObjectException, TException; + public boolean drop_type(String type) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; - public Map get_type_all(String name) throws MetaException, TException; + public Map get_type_all(String name) throws MetaException, org.apache.thrift.TException; - public List get_fields(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, TException; + public List get_fields(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException; - public List get_schema(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, TException; + public List get_schema(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException; - public void create_table(Table tbl) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException; + public void create_table(Table tbl) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException; - public void drop_table(String dbname, String name, boolean deleteData) throws NoSuchObjectException, MetaException, TException; + public void drop_table(String dbname, String name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; - public List get_tables(String db_name, String pattern) throws MetaException, TException; + public List get_tables(String db_name, String pattern) throws MetaException, org.apache.thrift.TException; - public List get_all_tables(String db_name) throws MetaException, TException; + public List get_all_tables(String db_name) throws MetaException, org.apache.thrift.TException; - public Table get_table(String dbname, String tbl_name) throws MetaException, NoSuchObjectException, TException; + public Table get_table(String dbname, String tbl_name) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; - public List
get_table_objects_by_name(String dbname, List tbl_names) throws MetaException, InvalidOperationException, UnknownDBException, TException; + public List
get_table_objects_by_name(String dbname, List tbl_names) throws MetaException, InvalidOperationException, UnknownDBException, org.apache.thrift.TException; - public List get_table_names_by_filter(String dbname, String filter, short max_tables) throws MetaException, InvalidOperationException, UnknownDBException, TException; + public List get_table_names_by_filter(String dbname, String filter, short max_tables) throws MetaException, InvalidOperationException, UnknownDBException, org.apache.thrift.TException; - public void alter_table(String dbname, String tbl_name, Table new_tbl) throws InvalidOperationException, MetaException, TException; + public void alter_table(String dbname, String tbl_name, Table new_tbl) throws InvalidOperationException, MetaException, org.apache.thrift.TException; - public Partition add_partition(Partition new_part) throws InvalidObjectException, AlreadyExistsException, MetaException, TException; + public Partition add_partition(Partition new_part) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException; - public int add_partitions(List new_parts) throws InvalidObjectException, AlreadyExistsException, MetaException, TException; + public int add_partitions(List new_parts) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException; - public Partition append_partition(String db_name, String tbl_name, List part_vals) throws InvalidObjectException, AlreadyExistsException, MetaException, TException; + public Partition append_partition(String db_name, String tbl_name, List part_vals) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException; - public Partition append_partition_by_name(String db_name, String tbl_name, String part_name) throws InvalidObjectException, AlreadyExistsException, MetaException, TException; + public Partition append_partition_by_name(String db_name, String tbl_name, String part_name) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException; - public boolean drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData) throws NoSuchObjectException, MetaException, TException; + public boolean drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; - public boolean drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData) throws NoSuchObjectException, MetaException, TException; + public boolean drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; - public Partition get_partition(String db_name, String tbl_name, List part_vals) throws MetaException, NoSuchObjectException, TException; + public Partition get_partition(String db_name, String tbl_name, List part_vals) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; - public Partition get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names) throws MetaException, NoSuchObjectException, TException; + public Partition get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; - public Partition get_partition_by_name(String db_name, String tbl_name, String part_name) throws MetaException, NoSuchObjectException, TException; + public Partition get_partition_by_name(String db_name, String tbl_name, String part_name) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; - public List get_partitions(String db_name, String tbl_name, short max_parts) throws NoSuchObjectException, MetaException, TException; + public List get_partitions(String db_name, String tbl_name, short max_parts) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; - public List get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names) throws NoSuchObjectException, MetaException, TException; + public List get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; - public List get_partition_names(String db_name, String tbl_name, short max_parts) throws MetaException, TException; + public List get_partition_names(String db_name, String tbl_name, short max_parts) throws MetaException, org.apache.thrift.TException; - public List get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts) throws MetaException, TException; + public List get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts) throws MetaException, 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, 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; - public List get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts) throws MetaException, TException; + public List get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts) throws MetaException, org.apache.thrift.TException; - public List get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts) throws MetaException, NoSuchObjectException, TException; + public List get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; - public List get_partitions_by_names(String db_name, String tbl_name, List names) throws MetaException, NoSuchObjectException, TException; + public List get_partitions_by_names(String db_name, String tbl_name, List names) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; - public void alter_partition(String db_name, String tbl_name, Partition new_part) throws InvalidOperationException, MetaException, TException; + public void alter_partition(String db_name, String tbl_name, Partition new_part) throws InvalidOperationException, MetaException, org.apache.thrift.TException; - public String get_config_value(String name, String defaultValue) throws ConfigValSecurityException, TException; + public String get_config_value(String name, String defaultValue) throws ConfigValSecurityException, org.apache.thrift.TException; - public List partition_name_to_vals(String part_name) throws MetaException, TException; + public List partition_name_to_vals(String part_name) throws MetaException, org.apache.thrift.TException; - public Map partition_name_to_spec(String part_name) throws MetaException, TException; + public Map partition_name_to_spec(String part_name) throws MetaException, org.apache.thrift.TException; - public void markPartitionForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType) throws MetaException, NoSuchObjectException, UnknownDBException, UnknownTableException, UnknownPartitionException, InvalidPartitionException, TException; + public void markPartitionForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType) throws MetaException, NoSuchObjectException, UnknownDBException, UnknownTableException, UnknownPartitionException, InvalidPartitionException, org.apache.thrift.TException; - public boolean isPartitionMarkedForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType) throws MetaException, NoSuchObjectException, UnknownDBException, UnknownTableException, UnknownPartitionException, InvalidPartitionException, TException; + public boolean isPartitionMarkedForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType) throws MetaException, NoSuchObjectException, UnknownDBException, UnknownTableException, UnknownPartitionException, InvalidPartitionException, org.apache.thrift.TException; - public Index add_index(Index new_index, Table index_table) throws InvalidObjectException, AlreadyExistsException, MetaException, TException; + public Index add_index(Index new_index, Table index_table) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException; - public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx) throws InvalidOperationException, MetaException, TException; + public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx) throws InvalidOperationException, MetaException, org.apache.thrift.TException; - public boolean drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData) throws NoSuchObjectException, MetaException, TException; + public boolean drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; - public Index get_index_by_name(String db_name, String tbl_name, String index_name) throws MetaException, NoSuchObjectException, TException; + public Index get_index_by_name(String db_name, String tbl_name, String index_name) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; - public List get_indexes(String db_name, String tbl_name, short max_indexes) throws NoSuchObjectException, MetaException, TException; + public List get_indexes(String db_name, String tbl_name, short max_indexes) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; - public List get_index_names(String db_name, String tbl_name, short max_indexes) throws MetaException, TException; + public List get_index_names(String db_name, String tbl_name, short max_indexes) throws MetaException, org.apache.thrift.TException; - public boolean create_role(Role role) throws MetaException, TException; + public boolean create_role(Role role) throws MetaException, org.apache.thrift.TException; - public boolean drop_role(String role_name) throws MetaException, TException; + public boolean drop_role(String role_name) throws MetaException, org.apache.thrift.TException; - public List get_role_names() throws MetaException, TException; + public List get_role_names() throws MetaException, org.apache.thrift.TException; - public boolean grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option) throws MetaException, TException; + public boolean grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option) throws MetaException, org.apache.thrift.TException; - public boolean revoke_role(String role_name, String principal_name, PrincipalType principal_type) throws MetaException, TException; + public boolean revoke_role(String role_name, String principal_name, PrincipalType principal_type) throws MetaException, org.apache.thrift.TException; - public List list_roles(String principal_name, PrincipalType principal_type) throws MetaException, TException; + public List list_roles(String principal_name, PrincipalType principal_type) throws MetaException, org.apache.thrift.TException; - public PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names) throws MetaException, TException; + public PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names) throws MetaException, org.apache.thrift.TException; - public List list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject) throws MetaException, TException; + public List list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject) throws MetaException, org.apache.thrift.TException; - public boolean grant_privileges(PrivilegeBag privileges) throws MetaException, TException; + public boolean grant_privileges(PrivilegeBag privileges) throws MetaException, org.apache.thrift.TException; - public boolean revoke_privileges(PrivilegeBag privileges) throws MetaException, TException; + public boolean revoke_privileges(PrivilegeBag privileges) throws MetaException, org.apache.thrift.TException; - public String get_delegation_token(String token_owner, String renewer_kerberos_principal_name) throws MetaException, TException; + public String get_delegation_token(String token_owner, String renewer_kerberos_principal_name) throws MetaException, org.apache.thrift.TException; - public long renew_delegation_token(String token_str_form) throws MetaException, TException; + public long renew_delegation_token(String token_str_form) throws MetaException, org.apache.thrift.TException; - public void cancel_delegation_token(String token_str_form) throws MetaException, TException; + public void cancel_delegation_token(String token_str_form) throws MetaException, org.apache.thrift.TException; } public interface AsyncIface extends com.facebook.fb303.FacebookService .AsyncIface { - public void create_database(Database database, AsyncMethodCallback resultHandler) throws TException; + public void create_database(Database database, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_database(String name, AsyncMethodCallback resultHandler) throws TException; + public void get_database(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_database(String name, boolean deleteData, boolean cascade, AsyncMethodCallback resultHandler) throws TException; + public void drop_database(String name, boolean deleteData, boolean cascade, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_databases(String pattern, AsyncMethodCallback resultHandler) throws TException; + public void get_databases(String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_all_databases(AsyncMethodCallback resultHandler) throws TException; + public void get_all_databases(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_database(String dbname, Database db, AsyncMethodCallback resultHandler) throws TException; + public void alter_database(String dbname, Database db, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_type(String name, AsyncMethodCallback resultHandler) throws TException; + public void get_type(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void create_type(Type type, AsyncMethodCallback resultHandler) throws TException; + public void create_type(Type type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_type(String type, AsyncMethodCallback resultHandler) throws TException; + public void drop_type(String type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_type_all(String name, AsyncMethodCallback resultHandler) throws TException; + public void get_type_all(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_fields(String db_name, String table_name, AsyncMethodCallback resultHandler) throws TException; + public void get_fields(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_schema(String db_name, String table_name, AsyncMethodCallback resultHandler) throws TException; + public void get_schema(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void create_table(Table tbl, AsyncMethodCallback resultHandler) throws TException; + public void create_table(Table tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_table(String dbname, String name, boolean deleteData, AsyncMethodCallback resultHandler) throws TException; + public void drop_table(String dbname, String name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_tables(String db_name, String pattern, AsyncMethodCallback resultHandler) throws TException; + public void get_tables(String db_name, String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_all_tables(String db_name, AsyncMethodCallback resultHandler) throws TException; + public void get_all_tables(String db_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_table(String dbname, String tbl_name, AsyncMethodCallback resultHandler) throws TException; + public void get_table(String dbname, String tbl_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_table_objects_by_name(String dbname, List tbl_names, AsyncMethodCallback resultHandler) throws TException; + public void get_table_objects_by_name(String dbname, List tbl_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_table_names_by_filter(String dbname, String filter, short max_tables, AsyncMethodCallback resultHandler) throws TException; + public void get_table_names_by_filter(String dbname, String filter, short max_tables, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_table(String dbname, String tbl_name, Table new_tbl, AsyncMethodCallback resultHandler) throws TException; + public void alter_table(String dbname, String tbl_name, Table new_tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void add_partition(Partition new_part, AsyncMethodCallback resultHandler) throws TException; + public void add_partition(Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void add_partitions(List new_parts, AsyncMethodCallback resultHandler) throws TException; + public void add_partitions(List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void append_partition(String db_name, String tbl_name, List part_vals, AsyncMethodCallback resultHandler) throws TException; + public void append_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void append_partition_by_name(String db_name, String tbl_name, String part_name, AsyncMethodCallback resultHandler) throws TException; + public void append_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData, AsyncMethodCallback resultHandler) throws TException; + public void drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData, AsyncMethodCallback resultHandler) throws TException; + public void drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partition(String db_name, String tbl_name, List part_vals, AsyncMethodCallback resultHandler) throws TException; + public void get_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names, AsyncMethodCallback resultHandler) throws TException; + public void get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partition_by_name(String db_name, String tbl_name, String part_name, AsyncMethodCallback resultHandler) throws TException; + public void get_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions(String db_name, String tbl_name, short max_parts, AsyncMethodCallback resultHandler) throws TException; + public void get_partitions(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names, AsyncMethodCallback resultHandler) throws TException; + public void get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partition_names(String db_name, String tbl_name, short max_parts, AsyncMethodCallback resultHandler) throws TException; + public void get_partition_names(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts, AsyncMethodCallback resultHandler) throws 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, AsyncMethodCallback resultHandler) throws TException; + public void get_partitions_ps_with_auth(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts, AsyncMethodCallback resultHandler) throws TException; + public void get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts, AsyncMethodCallback resultHandler) throws TException; + public void get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions_by_names(String db_name, String tbl_name, List names, AsyncMethodCallback resultHandler) throws TException; + public void get_partitions_by_names(String db_name, String tbl_name, List names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_partition(String db_name, String tbl_name, Partition new_part, AsyncMethodCallback resultHandler) throws TException; + public void alter_partition(String db_name, String tbl_name, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_config_value(String name, String defaultValue, AsyncMethodCallback resultHandler) throws TException; + public void get_config_value(String name, String defaultValue, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void partition_name_to_vals(String part_name, AsyncMethodCallback resultHandler) throws TException; + public void partition_name_to_vals(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void partition_name_to_spec(String part_name, AsyncMethodCallback resultHandler) throws TException; + public void partition_name_to_spec(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void markPartitionForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, AsyncMethodCallback resultHandler) throws TException; + public void markPartitionForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void isPartitionMarkedForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, AsyncMethodCallback resultHandler) throws TException; + public void isPartitionMarkedForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void add_index(Index new_index, Table index_table, AsyncMethodCallback resultHandler) throws TException; + public void add_index(Index new_index, Table index_table, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx, AsyncMethodCallback resultHandler) throws TException; + public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData, AsyncMethodCallback resultHandler) throws TException; + public void drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_index_by_name(String db_name, String tbl_name, String index_name, AsyncMethodCallback resultHandler) throws TException; + public void get_index_by_name(String db_name, String tbl_name, String index_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_indexes(String db_name, String tbl_name, short max_indexes, AsyncMethodCallback resultHandler) throws TException; + public void get_indexes(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_index_names(String db_name, String tbl_name, short max_indexes, AsyncMethodCallback resultHandler) throws TException; + public void get_index_names(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void create_role(Role role, AsyncMethodCallback resultHandler) throws TException; + public void create_role(Role role, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_role(String role_name, AsyncMethodCallback resultHandler) throws TException; + public void drop_role(String role_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_role_names(AsyncMethodCallback resultHandler) throws TException; + public void get_role_names(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option, AsyncMethodCallback resultHandler) throws TException; + public void grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void revoke_role(String role_name, String principal_name, PrincipalType principal_type, AsyncMethodCallback resultHandler) throws TException; + public void revoke_role(String role_name, String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void list_roles(String principal_name, PrincipalType principal_type, AsyncMethodCallback resultHandler) throws TException; + public void list_roles(String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names, AsyncMethodCallback resultHandler) throws TException; + public void get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, AsyncMethodCallback resultHandler) throws TException; + public void list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void grant_privileges(PrivilegeBag privileges, AsyncMethodCallback resultHandler) throws TException; + public void grant_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void revoke_privileges(PrivilegeBag privileges, AsyncMethodCallback resultHandler) throws TException; + public void revoke_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_delegation_token(String token_owner, String renewer_kerberos_principal_name, AsyncMethodCallback resultHandler) throws TException; + public void get_delegation_token(String token_owner, String renewer_kerberos_principal_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void renew_delegation_token(String token_str_form, AsyncMethodCallback resultHandler) throws TException; + public void renew_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void cancel_delegation_token(String token_str_form, AsyncMethodCallback resultHandler) throws TException; + public void cancel_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; } - public static class Client extends com.facebook.fb303.FacebookService.Client implements TServiceClient, Iface { - public static class Factory implements TServiceClientFactory { + public static class Client extends com.facebook.fb303.FacebookService.Client implements Iface { + public static class Factory implements org.apache.thrift.TServiceClientFactory { public Factory() {} - public Client getClient(TProtocol prot) { + public Client getClient(org.apache.thrift.protocol.TProtocol prot) { return new Client(prot); } - public Client getClient(TProtocol iprot, TProtocol oprot) { + public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) { return new Client(iprot, oprot); } } - public Client(TProtocol prot) + public Client(org.apache.thrift.protocol.TProtocol prot) { - this(prot, prot); + super(prot, prot); } - public Client(TProtocol iprot, TProtocol oprot) - { + public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) { super(iprot, oprot); } - public void create_database(Database database) throws AlreadyExistsException, InvalidObjectException, MetaException, TException + public void create_database(Database database) throws AlreadyExistsException, InvalidObjectException, MetaException, org.apache.thrift.TException { send_create_database(database); recv_create_database(); } - public void send_create_database(Database database) throws TException + public void send_create_database(Database database) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("create_database", TMessageType.CALL, ++seqid_)); create_database_args args = new create_database_args(); args.setDatabase(database); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("create_database", args); } - public void recv_create_database() throws AlreadyExistsException, InvalidObjectException, MetaException, TException + public void recv_create_database() throws AlreadyExistsException, InvalidObjectException, MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "create_database failed: out of sequence response"); - } create_database_result result = new create_database_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "create_database"); if (result.o1 != null) { throw result.o1; } @@ -350,36 +330,23 @@ public class ThriftHiveMetastore { return; } - public Database get_database(String name) throws NoSuchObjectException, MetaException, TException + public Database get_database(String name) throws NoSuchObjectException, MetaException, org.apache.thrift.TException { send_get_database(name); return recv_get_database(); } - public void send_get_database(String name) throws TException + public void send_get_database(String name) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_database", TMessageType.CALL, ++seqid_)); get_database_args args = new get_database_args(); args.setName(name); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_database", args); } - public Database recv_get_database() throws NoSuchObjectException, MetaException, TException + public Database recv_get_database() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_database failed: out of sequence response"); - } get_database_result result = new get_database_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_database"); if (result.isSetSuccess()) { return result.success; } @@ -389,41 +356,28 @@ public class ThriftHiveMetastore { if (result.o2 != null) { throw result.o2; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_database failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_database failed: unknown result"); } - public void drop_database(String name, boolean deleteData, boolean cascade) throws NoSuchObjectException, InvalidOperationException, MetaException, TException + public void drop_database(String name, boolean deleteData, boolean cascade) throws NoSuchObjectException, InvalidOperationException, MetaException, org.apache.thrift.TException { send_drop_database(name, deleteData, cascade); recv_drop_database(); } - public void send_drop_database(String name, boolean deleteData, boolean cascade) throws TException + public void send_drop_database(String name, boolean deleteData, boolean cascade) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("drop_database", TMessageType.CALL, ++seqid_)); drop_database_args args = new drop_database_args(); args.setName(name); args.setDeleteData(deleteData); args.setCascade(cascade); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("drop_database", args); } - public void recv_drop_database() throws NoSuchObjectException, InvalidOperationException, MetaException, TException + public void recv_drop_database() throws NoSuchObjectException, InvalidOperationException, MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "drop_database failed: out of sequence response"); - } drop_database_result result = new drop_database_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "drop_database"); if (result.o1 != null) { throw result.o1; } @@ -436,114 +390,75 @@ public class ThriftHiveMetastore { return; } - public List get_databases(String pattern) throws MetaException, TException + public List get_databases(String pattern) throws MetaException, org.apache.thrift.TException { send_get_databases(pattern); return recv_get_databases(); } - public void send_get_databases(String pattern) throws TException + public void send_get_databases(String pattern) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_databases", TMessageType.CALL, ++seqid_)); get_databases_args args = new get_databases_args(); args.setPattern(pattern); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_databases", args); } - public List recv_get_databases() throws MetaException, TException + public List recv_get_databases() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_databases failed: out of sequence response"); - } get_databases_result result = new get_databases_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_databases"); if (result.isSetSuccess()) { return result.success; } if (result.o1 != null) { throw result.o1; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_databases failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_databases failed: unknown result"); } - public List get_all_databases() throws MetaException, TException + public List get_all_databases() throws MetaException, org.apache.thrift.TException { send_get_all_databases(); return recv_get_all_databases(); } - public void send_get_all_databases() throws TException + public void send_get_all_databases() throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_all_databases", TMessageType.CALL, ++seqid_)); get_all_databases_args args = new get_all_databases_args(); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_all_databases", args); } - public List recv_get_all_databases() throws MetaException, TException + public List recv_get_all_databases() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_all_databases failed: out of sequence response"); - } get_all_databases_result result = new get_all_databases_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_all_databases"); if (result.isSetSuccess()) { return result.success; } if (result.o1 != null) { throw result.o1; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_all_databases failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_all_databases failed: unknown result"); } - public void alter_database(String dbname, Database db) throws MetaException, NoSuchObjectException, TException + public void alter_database(String dbname, Database db) throws MetaException, NoSuchObjectException, org.apache.thrift.TException { send_alter_database(dbname, db); recv_alter_database(); } - public void send_alter_database(String dbname, Database db) throws TException + public void send_alter_database(String dbname, Database db) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("alter_database", TMessageType.CALL, ++seqid_)); alter_database_args args = new alter_database_args(); args.setDbname(dbname); args.setDb(db); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("alter_database", args); } - public void recv_alter_database() throws MetaException, NoSuchObjectException, TException + public void recv_alter_database() throws MetaException, NoSuchObjectException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "alter_database failed: out of sequence response"); - } alter_database_result result = new alter_database_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "alter_database"); if (result.o1 != null) { throw result.o1; } @@ -553,36 +468,23 @@ public class ThriftHiveMetastore { return; } - public Type get_type(String name) throws MetaException, NoSuchObjectException, TException + public Type get_type(String name) throws MetaException, NoSuchObjectException, org.apache.thrift.TException { send_get_type(name); return recv_get_type(); } - public void send_get_type(String name) throws TException + public void send_get_type(String name) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_type", TMessageType.CALL, ++seqid_)); get_type_args args = new get_type_args(); args.setName(name); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_type", args); } - public Type recv_get_type() throws MetaException, NoSuchObjectException, TException + public Type recv_get_type() throws MetaException, NoSuchObjectException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_type failed: out of sequence response"); - } get_type_result result = new get_type_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_type"); if (result.isSetSuccess()) { return result.success; } @@ -592,39 +494,26 @@ public class ThriftHiveMetastore { if (result.o2 != null) { throw result.o2; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_type failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_type failed: unknown result"); } - public boolean create_type(Type type) throws AlreadyExistsException, InvalidObjectException, MetaException, TException + public boolean create_type(Type type) throws AlreadyExistsException, InvalidObjectException, MetaException, org.apache.thrift.TException { send_create_type(type); return recv_create_type(); } - public void send_create_type(Type type) throws TException + public void send_create_type(Type type) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("create_type", TMessageType.CALL, ++seqid_)); create_type_args args = new create_type_args(); args.setType(type); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("create_type", args); } - public boolean recv_create_type() throws AlreadyExistsException, InvalidObjectException, MetaException, TException + public boolean recv_create_type() throws AlreadyExistsException, InvalidObjectException, MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "create_type failed: out of sequence response"); - } create_type_result result = new create_type_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "create_type"); if (result.isSetSuccess()) { return result.success; } @@ -637,39 +526,26 @@ public class ThriftHiveMetastore { if (result.o3 != null) { throw result.o3; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "create_type failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "create_type failed: unknown result"); } - public boolean drop_type(String type) throws MetaException, NoSuchObjectException, TException + public boolean drop_type(String type) throws MetaException, NoSuchObjectException, org.apache.thrift.TException { send_drop_type(type); return recv_drop_type(); } - public void send_drop_type(String type) throws TException + public void send_drop_type(String type) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("drop_type", TMessageType.CALL, ++seqid_)); drop_type_args args = new drop_type_args(); args.setType(type); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("drop_type", args); } - public boolean recv_drop_type() throws MetaException, NoSuchObjectException, TException + public boolean recv_drop_type() throws MetaException, NoSuchObjectException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "drop_type failed: out of sequence response"); - } drop_type_result result = new drop_type_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "drop_type"); if (result.isSetSuccess()) { return result.success; } @@ -679,79 +555,53 @@ public class ThriftHiveMetastore { if (result.o2 != null) { throw result.o2; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "drop_type failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "drop_type failed: unknown result"); } - public Map get_type_all(String name) throws MetaException, TException + public Map get_type_all(String name) throws MetaException, org.apache.thrift.TException { send_get_type_all(name); return recv_get_type_all(); } - public void send_get_type_all(String name) throws TException + public void send_get_type_all(String name) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_type_all", TMessageType.CALL, ++seqid_)); get_type_all_args args = new get_type_all_args(); args.setName(name); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_type_all", args); } - public Map recv_get_type_all() throws MetaException, TException + public Map recv_get_type_all() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_type_all failed: out of sequence response"); - } get_type_all_result result = new get_type_all_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_type_all"); if (result.isSetSuccess()) { return result.success; } if (result.o2 != null) { throw result.o2; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_type_all failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_type_all failed: unknown result"); } - public List get_fields(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, TException + public List get_fields(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException { send_get_fields(db_name, table_name); return recv_get_fields(); } - public void send_get_fields(String db_name, String table_name) throws TException + public void send_get_fields(String db_name, String table_name) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_fields", TMessageType.CALL, ++seqid_)); get_fields_args args = new get_fields_args(); args.setDb_name(db_name); args.setTable_name(table_name); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_fields", args); } - public List recv_get_fields() throws MetaException, UnknownTableException, UnknownDBException, TException + public List recv_get_fields() throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_fields failed: out of sequence response"); - } get_fields_result result = new get_fields_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_fields"); if (result.isSetSuccess()) { return result.success; } @@ -764,40 +614,27 @@ public class ThriftHiveMetastore { if (result.o3 != null) { throw result.o3; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_fields failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_fields failed: unknown result"); } - public List get_schema(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, TException + public List get_schema(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException { send_get_schema(db_name, table_name); return recv_get_schema(); } - public void send_get_schema(String db_name, String table_name) throws TException + public void send_get_schema(String db_name, String table_name) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_schema", TMessageType.CALL, ++seqid_)); get_schema_args args = new get_schema_args(); args.setDb_name(db_name); args.setTable_name(table_name); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_schema", args); } - public List recv_get_schema() throws MetaException, UnknownTableException, UnknownDBException, TException + public List recv_get_schema() throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_schema failed: out of sequence response"); - } get_schema_result result = new get_schema_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_schema"); if (result.isSetSuccess()) { return result.success; } @@ -810,39 +647,26 @@ public class ThriftHiveMetastore { if (result.o3 != null) { throw result.o3; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_schema failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_schema failed: unknown result"); } - public void create_table(Table tbl) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException + public void create_table(Table tbl) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException { send_create_table(tbl); recv_create_table(); } - public void send_create_table(Table tbl) throws TException + public void send_create_table(Table tbl) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("create_table", TMessageType.CALL, ++seqid_)); create_table_args args = new create_table_args(); args.setTbl(tbl); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("create_table", args); } - public void recv_create_table() throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException + public void recv_create_table() throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "create_table failed: out of sequence response"); - } create_table_result result = new create_table_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "create_table"); if (result.o1 != null) { throw result.o1; } @@ -858,38 +682,25 @@ public class ThriftHiveMetastore { return; } - public void drop_table(String dbname, String name, boolean deleteData) throws NoSuchObjectException, MetaException, TException + public void drop_table(String dbname, String name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException { send_drop_table(dbname, name, deleteData); recv_drop_table(); } - public void send_drop_table(String dbname, String name, boolean deleteData) throws TException + public void send_drop_table(String dbname, String name, boolean deleteData) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("drop_table", TMessageType.CALL, ++seqid_)); drop_table_args args = new drop_table_args(); args.setDbname(dbname); args.setName(name); args.setDeleteData(deleteData); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("drop_table", args); } - public void recv_drop_table() throws NoSuchObjectException, MetaException, TException + public void recv_drop_table() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "drop_table failed: out of sequence response"); - } drop_table_result result = new drop_table_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "drop_table"); if (result.o1 != null) { throw result.o1; } @@ -899,116 +710,77 @@ public class ThriftHiveMetastore { return; } - public List get_tables(String db_name, String pattern) throws MetaException, TException + public List get_tables(String db_name, String pattern) throws MetaException, org.apache.thrift.TException { send_get_tables(db_name, pattern); return recv_get_tables(); } - public void send_get_tables(String db_name, String pattern) throws TException + public void send_get_tables(String db_name, String pattern) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_tables", TMessageType.CALL, ++seqid_)); get_tables_args args = new get_tables_args(); args.setDb_name(db_name); args.setPattern(pattern); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_tables", args); } - public List recv_get_tables() throws MetaException, TException + public List recv_get_tables() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_tables failed: out of sequence response"); - } get_tables_result result = new get_tables_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_tables"); if (result.isSetSuccess()) { return result.success; } if (result.o1 != null) { throw result.o1; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_tables failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_tables failed: unknown result"); } - public List get_all_tables(String db_name) throws MetaException, TException + public List get_all_tables(String db_name) throws MetaException, org.apache.thrift.TException { send_get_all_tables(db_name); return recv_get_all_tables(); } - public void send_get_all_tables(String db_name) throws TException + public void send_get_all_tables(String db_name) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_all_tables", TMessageType.CALL, ++seqid_)); get_all_tables_args args = new get_all_tables_args(); args.setDb_name(db_name); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_all_tables", args); } - public List recv_get_all_tables() throws MetaException, TException + public List recv_get_all_tables() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_all_tables failed: out of sequence response"); - } get_all_tables_result result = new get_all_tables_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_all_tables"); if (result.isSetSuccess()) { return result.success; } if (result.o1 != null) { throw result.o1; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_all_tables failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_all_tables failed: unknown result"); } - public Table get_table(String dbname, String tbl_name) throws MetaException, NoSuchObjectException, TException + public Table get_table(String dbname, String tbl_name) throws MetaException, NoSuchObjectException, org.apache.thrift.TException { send_get_table(dbname, tbl_name); return recv_get_table(); } - public void send_get_table(String dbname, String tbl_name) throws TException + public void send_get_table(String dbname, String tbl_name) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_table", TMessageType.CALL, ++seqid_)); get_table_args args = new get_table_args(); args.setDbname(dbname); args.setTbl_name(tbl_name); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_table", args); } - public Table recv_get_table() throws MetaException, NoSuchObjectException, TException + public Table recv_get_table() throws MetaException, NoSuchObjectException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_table failed: out of sequence response"); - } get_table_result result = new get_table_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_table"); if (result.isSetSuccess()) { return result.success; } @@ -1018,40 +790,27 @@ public class ThriftHiveMetastore { if (result.o2 != null) { throw result.o2; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_table failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_table failed: unknown result"); } - public List
get_table_objects_by_name(String dbname, List tbl_names) throws MetaException, InvalidOperationException, UnknownDBException, TException + public List
get_table_objects_by_name(String dbname, List tbl_names) throws MetaException, InvalidOperationException, UnknownDBException, org.apache.thrift.TException { send_get_table_objects_by_name(dbname, tbl_names); return recv_get_table_objects_by_name(); } - public void send_get_table_objects_by_name(String dbname, List tbl_names) throws TException + public void send_get_table_objects_by_name(String dbname, List tbl_names) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_table_objects_by_name", TMessageType.CALL, ++seqid_)); get_table_objects_by_name_args args = new get_table_objects_by_name_args(); args.setDbname(dbname); args.setTbl_names(tbl_names); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_table_objects_by_name", args); } - public List
recv_get_table_objects_by_name() throws MetaException, InvalidOperationException, UnknownDBException, TException + public List
recv_get_table_objects_by_name() throws MetaException, InvalidOperationException, UnknownDBException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_table_objects_by_name failed: out of sequence response"); - } get_table_objects_by_name_result result = new get_table_objects_by_name_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_table_objects_by_name"); if (result.isSetSuccess()) { return result.success; } @@ -1064,41 +823,28 @@ public class ThriftHiveMetastore { if (result.o3 != null) { throw result.o3; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_table_objects_by_name failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_table_objects_by_name failed: unknown result"); } - public List get_table_names_by_filter(String dbname, String filter, short max_tables) throws MetaException, InvalidOperationException, UnknownDBException, TException + public List get_table_names_by_filter(String dbname, String filter, short max_tables) throws MetaException, InvalidOperationException, UnknownDBException, org.apache.thrift.TException { send_get_table_names_by_filter(dbname, filter, max_tables); return recv_get_table_names_by_filter(); } - public void send_get_table_names_by_filter(String dbname, String filter, short max_tables) throws TException + public void send_get_table_names_by_filter(String dbname, String filter, short max_tables) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_table_names_by_filter", TMessageType.CALL, ++seqid_)); get_table_names_by_filter_args args = new get_table_names_by_filter_args(); args.setDbname(dbname); args.setFilter(filter); args.setMax_tables(max_tables); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_table_names_by_filter", args); } - public List recv_get_table_names_by_filter() throws MetaException, InvalidOperationException, UnknownDBException, TException + public List recv_get_table_names_by_filter() throws MetaException, InvalidOperationException, UnknownDBException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_table_names_by_filter failed: out of sequence response"); - } get_table_names_by_filter_result result = new get_table_names_by_filter_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_table_names_by_filter"); if (result.isSetSuccess()) { return result.success; } @@ -1111,41 +857,28 @@ public class ThriftHiveMetastore { if (result.o3 != null) { throw result.o3; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_table_names_by_filter failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_table_names_by_filter failed: unknown result"); } - public void alter_table(String dbname, String tbl_name, Table new_tbl) throws InvalidOperationException, MetaException, TException + public void alter_table(String dbname, String tbl_name, Table new_tbl) throws InvalidOperationException, MetaException, org.apache.thrift.TException { send_alter_table(dbname, tbl_name, new_tbl); recv_alter_table(); } - public void send_alter_table(String dbname, String tbl_name, Table new_tbl) throws TException + public void send_alter_table(String dbname, String tbl_name, Table new_tbl) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("alter_table", TMessageType.CALL, ++seqid_)); alter_table_args args = new alter_table_args(); args.setDbname(dbname); args.setTbl_name(tbl_name); args.setNew_tbl(new_tbl); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("alter_table", args); } - public void recv_alter_table() throws InvalidOperationException, MetaException, TException + public void recv_alter_table() throws InvalidOperationException, MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "alter_table failed: out of sequence response"); - } alter_table_result result = new alter_table_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "alter_table"); if (result.o1 != null) { throw result.o1; } @@ -1155,36 +888,23 @@ public class ThriftHiveMetastore { return; } - public Partition add_partition(Partition new_part) throws InvalidObjectException, AlreadyExistsException, MetaException, TException + public Partition add_partition(Partition new_part) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException { send_add_partition(new_part); return recv_add_partition(); } - public void send_add_partition(Partition new_part) throws TException + public void send_add_partition(Partition new_part) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("add_partition", TMessageType.CALL, ++seqid_)); add_partition_args args = new add_partition_args(); args.setNew_part(new_part); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("add_partition", args); } - public Partition recv_add_partition() throws InvalidObjectException, AlreadyExistsException, MetaException, TException + public Partition recv_add_partition() throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "add_partition failed: out of sequence response"); - } add_partition_result result = new add_partition_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "add_partition"); if (result.isSetSuccess()) { return result.success; } @@ -1197,39 +917,26 @@ public class ThriftHiveMetastore { if (result.o3 != null) { throw result.o3; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "add_partition failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "add_partition failed: unknown result"); } - public int add_partitions(List new_parts) throws InvalidObjectException, AlreadyExistsException, MetaException, TException + public int add_partitions(List new_parts) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException { send_add_partitions(new_parts); return recv_add_partitions(); } - public void send_add_partitions(List new_parts) throws TException + public void send_add_partitions(List new_parts) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("add_partitions", TMessageType.CALL, ++seqid_)); add_partitions_args args = new add_partitions_args(); args.setNew_parts(new_parts); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("add_partitions", args); } - public int recv_add_partitions() throws InvalidObjectException, AlreadyExistsException, MetaException, TException + public int recv_add_partitions() throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "add_partitions failed: out of sequence response"); - } add_partitions_result result = new add_partitions_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "add_partitions"); if (result.isSetSuccess()) { return result.success; } @@ -1242,41 +949,28 @@ public class ThriftHiveMetastore { if (result.o3 != null) { throw result.o3; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "add_partitions failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "add_partitions failed: unknown result"); } - public Partition append_partition(String db_name, String tbl_name, List part_vals) throws InvalidObjectException, AlreadyExistsException, MetaException, TException + public Partition append_partition(String db_name, String tbl_name, List part_vals) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException { send_append_partition(db_name, tbl_name, part_vals); return recv_append_partition(); } - public void send_append_partition(String db_name, String tbl_name, List part_vals) throws TException + public void send_append_partition(String db_name, String tbl_name, List part_vals) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("append_partition", TMessageType.CALL, ++seqid_)); append_partition_args args = new append_partition_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setPart_vals(part_vals); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("append_partition", args); } - public Partition recv_append_partition() throws InvalidObjectException, AlreadyExistsException, MetaException, TException + public Partition recv_append_partition() throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "append_partition failed: out of sequence response"); - } append_partition_result result = new append_partition_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "append_partition"); if (result.isSetSuccess()) { return result.success; } @@ -1289,41 +983,28 @@ public class ThriftHiveMetastore { if (result.o3 != null) { throw result.o3; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "append_partition failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "append_partition failed: unknown result"); } - public Partition append_partition_by_name(String db_name, String tbl_name, String part_name) throws InvalidObjectException, AlreadyExistsException, MetaException, TException + public Partition append_partition_by_name(String db_name, String tbl_name, String part_name) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException { send_append_partition_by_name(db_name, tbl_name, part_name); return recv_append_partition_by_name(); } - public void send_append_partition_by_name(String db_name, String tbl_name, String part_name) throws TException + public void send_append_partition_by_name(String db_name, String tbl_name, String part_name) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("append_partition_by_name", TMessageType.CALL, ++seqid_)); append_partition_by_name_args args = new append_partition_by_name_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setPart_name(part_name); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("append_partition_by_name", args); } - public Partition recv_append_partition_by_name() throws InvalidObjectException, AlreadyExistsException, MetaException, TException + public Partition recv_append_partition_by_name() throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "append_partition_by_name failed: out of sequence response"); - } append_partition_by_name_result result = new append_partition_by_name_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "append_partition_by_name"); if (result.isSetSuccess()) { return result.success; } @@ -1336,42 +1017,29 @@ public class ThriftHiveMetastore { if (result.o3 != null) { throw result.o3; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "append_partition_by_name failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "append_partition_by_name failed: unknown result"); } - public boolean drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData) throws NoSuchObjectException, MetaException, TException + public boolean drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException { send_drop_partition(db_name, tbl_name, part_vals, deleteData); return recv_drop_partition(); } - public void send_drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData) throws TException + public void send_drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("drop_partition", TMessageType.CALL, ++seqid_)); drop_partition_args args = new drop_partition_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setPart_vals(part_vals); args.setDeleteData(deleteData); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("drop_partition", args); } - public boolean recv_drop_partition() throws NoSuchObjectException, MetaException, TException + public boolean recv_drop_partition() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "drop_partition failed: out of sequence response"); - } drop_partition_result result = new drop_partition_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "drop_partition"); if (result.isSetSuccess()) { return result.success; } @@ -1381,42 +1049,29 @@ public class ThriftHiveMetastore { if (result.o2 != null) { throw result.o2; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "drop_partition failed: unknown result"); } - public boolean drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData) throws NoSuchObjectException, MetaException, TException + public boolean drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException { send_drop_partition_by_name(db_name, tbl_name, part_name, deleteData); return recv_drop_partition_by_name(); } - public void send_drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData) throws TException + public void send_drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("drop_partition_by_name", TMessageType.CALL, ++seqid_)); drop_partition_by_name_args args = new drop_partition_by_name_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setPart_name(part_name); args.setDeleteData(deleteData); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("drop_partition_by_name", args); } - public boolean recv_drop_partition_by_name() throws NoSuchObjectException, MetaException, TException + public boolean recv_drop_partition_by_name() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "drop_partition_by_name failed: out of sequence response"); - } drop_partition_by_name_result result = new drop_partition_by_name_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "drop_partition_by_name"); if (result.isSetSuccess()) { return result.success; } @@ -1426,41 +1081,28 @@ public class ThriftHiveMetastore { if (result.o2 != null) { throw result.o2; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_by_name failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "drop_partition_by_name failed: unknown result"); } - public Partition get_partition(String db_name, String tbl_name, List part_vals) throws MetaException, NoSuchObjectException, TException + public Partition get_partition(String db_name, String tbl_name, List part_vals) throws MetaException, NoSuchObjectException, org.apache.thrift.TException { send_get_partition(db_name, tbl_name, part_vals); return recv_get_partition(); } - public void send_get_partition(String db_name, String tbl_name, List part_vals) throws TException + public void send_get_partition(String db_name, String tbl_name, List part_vals) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_partition", TMessageType.CALL, ++seqid_)); get_partition_args args = new get_partition_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setPart_vals(part_vals); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_partition", args); } - public Partition recv_get_partition() throws MetaException, NoSuchObjectException, TException + public Partition recv_get_partition() throws MetaException, NoSuchObjectException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_partition failed: out of sequence response"); - } get_partition_result result = new get_partition_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_partition"); if (result.isSetSuccess()) { return result.success; } @@ -1470,43 +1112,30 @@ public class ThriftHiveMetastore { if (result.o2 != null) { throw result.o2; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_partition failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partition failed: unknown result"); } - public Partition get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names) throws MetaException, NoSuchObjectException, TException + public Partition get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names) throws MetaException, NoSuchObjectException, org.apache.thrift.TException { send_get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names); return recv_get_partition_with_auth(); } - public void send_get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names) throws TException + public void send_get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_partition_with_auth", TMessageType.CALL, ++seqid_)); get_partition_with_auth_args args = new get_partition_with_auth_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setPart_vals(part_vals); args.setUser_name(user_name); args.setGroup_names(group_names); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_partition_with_auth", args); } - public Partition recv_get_partition_with_auth() throws MetaException, NoSuchObjectException, TException + public Partition recv_get_partition_with_auth() throws MetaException, NoSuchObjectException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_partition_with_auth failed: out of sequence response"); - } get_partition_with_auth_result result = new get_partition_with_auth_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_partition_with_auth"); if (result.isSetSuccess()) { return result.success; } @@ -1516,41 +1145,28 @@ public class ThriftHiveMetastore { if (result.o2 != null) { throw result.o2; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_with_auth failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partition_with_auth failed: unknown result"); } - public Partition get_partition_by_name(String db_name, String tbl_name, String part_name) throws MetaException, NoSuchObjectException, TException + public Partition get_partition_by_name(String db_name, String tbl_name, String part_name) throws MetaException, NoSuchObjectException, org.apache.thrift.TException { send_get_partition_by_name(db_name, tbl_name, part_name); return recv_get_partition_by_name(); } - public void send_get_partition_by_name(String db_name, String tbl_name, String part_name) throws TException + public void send_get_partition_by_name(String db_name, String tbl_name, String part_name) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_partition_by_name", TMessageType.CALL, ++seqid_)); get_partition_by_name_args args = new get_partition_by_name_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setPart_name(part_name); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_partition_by_name", args); } - public Partition recv_get_partition_by_name() throws MetaException, NoSuchObjectException, TException + public Partition recv_get_partition_by_name() throws MetaException, NoSuchObjectException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_partition_by_name failed: out of sequence response"); - } get_partition_by_name_result result = new get_partition_by_name_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_partition_by_name"); if (result.isSetSuccess()) { return result.success; } @@ -1560,41 +1176,28 @@ public class ThriftHiveMetastore { if (result.o2 != null) { throw result.o2; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_by_name failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partition_by_name failed: unknown result"); } - public List get_partitions(String db_name, String tbl_name, short max_parts) throws NoSuchObjectException, MetaException, TException + public List get_partitions(String db_name, String tbl_name, short max_parts) throws NoSuchObjectException, MetaException, org.apache.thrift.TException { send_get_partitions(db_name, tbl_name, max_parts); return recv_get_partitions(); } - public void send_get_partitions(String db_name, String tbl_name, short max_parts) throws TException + public void send_get_partitions(String db_name, String tbl_name, short max_parts) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_partitions", TMessageType.CALL, ++seqid_)); get_partitions_args args = new get_partitions_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setMax_parts(max_parts); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_partitions", args); } - public List recv_get_partitions() throws NoSuchObjectException, MetaException, TException + public List recv_get_partitions() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_partitions failed: out of sequence response"); - } get_partitions_result result = new get_partitions_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_partitions"); if (result.isSetSuccess()) { return result.success; } @@ -1604,43 +1207,30 @@ public class ThriftHiveMetastore { if (result.o2 != null) { throw result.o2; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partitions failed: unknown result"); } - public List get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names) throws NoSuchObjectException, MetaException, TException + public List get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names) throws NoSuchObjectException, MetaException, org.apache.thrift.TException { send_get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names); return recv_get_partitions_with_auth(); } - public void send_get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names) throws TException + public void send_get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_partitions_with_auth", TMessageType.CALL, ++seqid_)); get_partitions_with_auth_args args = new get_partitions_with_auth_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setMax_parts(max_parts); args.setUser_name(user_name); args.setGroup_names(group_names); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_partitions_with_auth", args); } - public List recv_get_partitions_with_auth() throws NoSuchObjectException, MetaException, TException + public List recv_get_partitions_with_auth() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_partitions_with_auth failed: out of sequence response"); - } get_partitions_with_auth_result result = new get_partitions_with_auth_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_partitions_with_auth"); if (result.isSetSuccess()) { return result.success; } @@ -1650,101 +1240,74 @@ public class ThriftHiveMetastore { if (result.o2 != null) { throw result.o2; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_with_auth failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partitions_with_auth failed: unknown result"); } - public List get_partition_names(String db_name, String tbl_name, short max_parts) throws MetaException, TException + public List get_partition_names(String db_name, String tbl_name, short max_parts) throws MetaException, org.apache.thrift.TException { send_get_partition_names(db_name, tbl_name, max_parts); return recv_get_partition_names(); } - public void send_get_partition_names(String db_name, String tbl_name, short max_parts) throws TException + public void send_get_partition_names(String db_name, String tbl_name, short max_parts) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_partition_names", TMessageType.CALL, ++seqid_)); get_partition_names_args args = new get_partition_names_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setMax_parts(max_parts); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_partition_names", args); } - public List recv_get_partition_names() throws MetaException, TException + public List recv_get_partition_names() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_partition_names failed: out of sequence response"); - } get_partition_names_result result = new get_partition_names_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_partition_names"); if (result.isSetSuccess()) { return result.success; } if (result.o2 != null) { throw result.o2; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partition_names failed: unknown result"); } - public List get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts) throws MetaException, TException + public List get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts) throws MetaException, org.apache.thrift.TException { send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts); return recv_get_partitions_ps(); } - public void send_get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts) throws TException + public void send_get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_partitions_ps", TMessageType.CALL, ++seqid_)); get_partitions_ps_args args = new get_partitions_ps_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setPart_vals(part_vals); args.setMax_parts(max_parts); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_partitions_ps", args); } - public List recv_get_partitions_ps() throws MetaException, TException + public List recv_get_partitions_ps() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_partitions_ps failed: out of sequence response"); - } get_partitions_ps_result result = new get_partitions_ps_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_partitions_ps"); if (result.isSetSuccess()) { return result.success; } if (result.o1 != null) { throw result.o1; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_ps failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partitions_ps failed: unknown result"); } - 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, 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 { send_get_partitions_ps_with_auth(db_name, tbl_name, part_vals, max_parts, user_name, group_names); return recv_get_partitions_ps_with_auth(); } - public void send_get_partitions_ps_with_auth(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names) throws TException + public void send_get_partitions_ps_with_auth(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_partitions_ps_with_auth", TMessageType.CALL, ++seqid_)); get_partitions_ps_with_auth_args args = new get_partitions_ps_with_auth_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -1752,25 +1315,13 @@ public class ThriftHiveMetastore { args.setMax_parts(max_parts); args.setUser_name(user_name); args.setGroup_names(group_names); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_partitions_ps_with_auth", args); } - public List recv_get_partitions_ps_with_auth() throws NoSuchObjectException, MetaException, TException + public List recv_get_partitions_ps_with_auth() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_partitions_ps_with_auth failed: out of sequence response"); - } get_partitions_ps_with_auth_result result = new get_partitions_ps_with_auth_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_partitions_ps_with_auth"); if (result.isSetSuccess()) { return result.success; } @@ -1780,84 +1331,58 @@ public class ThriftHiveMetastore { if (result.o2 != null) { throw result.o2; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_ps_with_auth failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partitions_ps_with_auth failed: unknown result"); } - public List get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts) throws MetaException, TException + public List get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts) throws MetaException, org.apache.thrift.TException { send_get_partition_names_ps(db_name, tbl_name, part_vals, max_parts); return recv_get_partition_names_ps(); } - public void send_get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts) throws TException + public void send_get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_partition_names_ps", TMessageType.CALL, ++seqid_)); get_partition_names_ps_args args = new get_partition_names_ps_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setPart_vals(part_vals); args.setMax_parts(max_parts); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_partition_names_ps", args); } - public List recv_get_partition_names_ps() throws MetaException, TException + public List recv_get_partition_names_ps() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_partition_names_ps failed: out of sequence response"); - } get_partition_names_ps_result result = new get_partition_names_ps_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_partition_names_ps"); if (result.isSetSuccess()) { return result.success; } if (result.o1 != null) { throw result.o1; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names_ps failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partition_names_ps failed: unknown result"); } - public List get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts) throws MetaException, NoSuchObjectException, TException + public List get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts) throws MetaException, NoSuchObjectException, org.apache.thrift.TException { send_get_partitions_by_filter(db_name, tbl_name, filter, max_parts); return recv_get_partitions_by_filter(); } - public void send_get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts) throws TException + public void send_get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_partitions_by_filter", TMessageType.CALL, ++seqid_)); get_partitions_by_filter_args args = new get_partitions_by_filter_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setFilter(filter); args.setMax_parts(max_parts); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_partitions_by_filter", args); } - public List recv_get_partitions_by_filter() throws MetaException, NoSuchObjectException, TException + public List recv_get_partitions_by_filter() throws MetaException, NoSuchObjectException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_partitions_by_filter failed: out of sequence response"); - } get_partitions_by_filter_result result = new get_partitions_by_filter_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_partitions_by_filter"); if (result.isSetSuccess()) { return result.success; } @@ -1867,41 +1392,28 @@ public class ThriftHiveMetastore { if (result.o2 != null) { throw result.o2; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_filter failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partitions_by_filter failed: unknown result"); } - public List get_partitions_by_names(String db_name, String tbl_name, List names) throws MetaException, NoSuchObjectException, TException + public List get_partitions_by_names(String db_name, String tbl_name, List names) throws MetaException, NoSuchObjectException, org.apache.thrift.TException { send_get_partitions_by_names(db_name, tbl_name, names); return recv_get_partitions_by_names(); } - public void send_get_partitions_by_names(String db_name, String tbl_name, List names) throws TException + public void send_get_partitions_by_names(String db_name, String tbl_name, List names) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_partitions_by_names", TMessageType.CALL, ++seqid_)); get_partitions_by_names_args args = new get_partitions_by_names_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setNames(names); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_partitions_by_names", args); } - public List recv_get_partitions_by_names() throws MetaException, NoSuchObjectException, TException + public List recv_get_partitions_by_names() throws MetaException, NoSuchObjectException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_partitions_by_names failed: out of sequence response"); - } get_partitions_by_names_result result = new get_partitions_by_names_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_partitions_by_names"); if (result.isSetSuccess()) { return result.success; } @@ -1911,41 +1423,28 @@ public class ThriftHiveMetastore { if (result.o2 != null) { throw result.o2; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_names failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partitions_by_names failed: unknown result"); } - public void alter_partition(String db_name, String tbl_name, Partition new_part) throws InvalidOperationException, MetaException, TException + public void alter_partition(String db_name, String tbl_name, Partition new_part) throws InvalidOperationException, MetaException, org.apache.thrift.TException { send_alter_partition(db_name, tbl_name, new_part); recv_alter_partition(); } - public void send_alter_partition(String db_name, String tbl_name, Partition new_part) throws TException + public void send_alter_partition(String db_name, String tbl_name, Partition new_part) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("alter_partition", TMessageType.CALL, ++seqid_)); alter_partition_args args = new alter_partition_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setNew_part(new_part); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("alter_partition", args); } - public void recv_alter_partition() throws InvalidOperationException, MetaException, TException + public void recv_alter_partition() throws InvalidOperationException, MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "alter_partition failed: out of sequence response"); - } alter_partition_result result = new alter_partition_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "alter_partition"); if (result.o1 != null) { throw result.o1; } @@ -1955,157 +1454,105 @@ public class ThriftHiveMetastore { return; } - public String get_config_value(String name, String defaultValue) throws ConfigValSecurityException, TException + public String get_config_value(String name, String defaultValue) throws ConfigValSecurityException, org.apache.thrift.TException { send_get_config_value(name, defaultValue); return recv_get_config_value(); } - public void send_get_config_value(String name, String defaultValue) throws TException + public void send_get_config_value(String name, String defaultValue) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_config_value", TMessageType.CALL, ++seqid_)); get_config_value_args args = new get_config_value_args(); args.setName(name); args.setDefaultValue(defaultValue); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_config_value", args); } - public String recv_get_config_value() throws ConfigValSecurityException, TException + public String recv_get_config_value() throws ConfigValSecurityException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_config_value failed: out of sequence response"); - } get_config_value_result result = new get_config_value_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_config_value"); if (result.isSetSuccess()) { return result.success; } if (result.o1 != null) { throw result.o1; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_config_value failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_config_value failed: unknown result"); } - public List partition_name_to_vals(String part_name) throws MetaException, TException + public List partition_name_to_vals(String part_name) throws MetaException, org.apache.thrift.TException { send_partition_name_to_vals(part_name); return recv_partition_name_to_vals(); } - public void send_partition_name_to_vals(String part_name) throws TException + public void send_partition_name_to_vals(String part_name) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("partition_name_to_vals", TMessageType.CALL, ++seqid_)); partition_name_to_vals_args args = new partition_name_to_vals_args(); args.setPart_name(part_name); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("partition_name_to_vals", args); } - public List recv_partition_name_to_vals() throws MetaException, TException + public List recv_partition_name_to_vals() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "partition_name_to_vals failed: out of sequence response"); - } partition_name_to_vals_result result = new partition_name_to_vals_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "partition_name_to_vals"); if (result.isSetSuccess()) { return result.success; } if (result.o1 != null) { throw result.o1; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_to_vals failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "partition_name_to_vals failed: unknown result"); } - public Map partition_name_to_spec(String part_name) throws MetaException, TException + public Map partition_name_to_spec(String part_name) throws MetaException, org.apache.thrift.TException { send_partition_name_to_spec(part_name); return recv_partition_name_to_spec(); } - public void send_partition_name_to_spec(String part_name) throws TException + public void send_partition_name_to_spec(String part_name) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("partition_name_to_spec", TMessageType.CALL, ++seqid_)); partition_name_to_spec_args args = new partition_name_to_spec_args(); args.setPart_name(part_name); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("partition_name_to_spec", args); } - public Map recv_partition_name_to_spec() throws MetaException, TException + public Map recv_partition_name_to_spec() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "partition_name_to_spec failed: out of sequence response"); - } partition_name_to_spec_result result = new partition_name_to_spec_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "partition_name_to_spec"); if (result.isSetSuccess()) { return result.success; } if (result.o1 != null) { throw result.o1; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_to_spec failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "partition_name_to_spec failed: unknown result"); } - public void markPartitionForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType) throws MetaException, NoSuchObjectException, UnknownDBException, UnknownTableException, UnknownPartitionException, InvalidPartitionException, TException + public void markPartitionForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType) throws MetaException, NoSuchObjectException, UnknownDBException, UnknownTableException, UnknownPartitionException, InvalidPartitionException, org.apache.thrift.TException { send_markPartitionForEvent(db_name, tbl_name, part_vals, eventType); recv_markPartitionForEvent(); } - public void send_markPartitionForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType) throws TException + public void send_markPartitionForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("markPartitionForEvent", TMessageType.CALL, ++seqid_)); markPartitionForEvent_args args = new markPartitionForEvent_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setPart_vals(part_vals); args.setEventType(eventType); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("markPartitionForEvent", args); } - public void recv_markPartitionForEvent() throws MetaException, NoSuchObjectException, UnknownDBException, UnknownTableException, UnknownPartitionException, InvalidPartitionException, TException + public void recv_markPartitionForEvent() throws MetaException, NoSuchObjectException, UnknownDBException, UnknownTableException, UnknownPartitionException, InvalidPartitionException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "markPartitionForEvent failed: out of sequence response"); - } markPartitionForEvent_result result = new markPartitionForEvent_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "markPartitionForEvent"); if (result.o1 != null) { throw result.o1; } @@ -2127,39 +1574,26 @@ public class ThriftHiveMetastore { return; } - public boolean isPartitionMarkedForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType) throws MetaException, NoSuchObjectException, UnknownDBException, UnknownTableException, UnknownPartitionException, InvalidPartitionException, TException + public boolean isPartitionMarkedForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType) throws MetaException, NoSuchObjectException, UnknownDBException, UnknownTableException, UnknownPartitionException, InvalidPartitionException, org.apache.thrift.TException { send_isPartitionMarkedForEvent(db_name, tbl_name, part_vals, eventType); return recv_isPartitionMarkedForEvent(); } - public void send_isPartitionMarkedForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType) throws TException + public void send_isPartitionMarkedForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("isPartitionMarkedForEvent", TMessageType.CALL, ++seqid_)); isPartitionMarkedForEvent_args args = new isPartitionMarkedForEvent_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setPart_vals(part_vals); args.setEventType(eventType); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("isPartitionMarkedForEvent", args); } - public boolean recv_isPartitionMarkedForEvent() throws MetaException, NoSuchObjectException, UnknownDBException, UnknownTableException, UnknownPartitionException, InvalidPartitionException, TException + public boolean recv_isPartitionMarkedForEvent() throws MetaException, NoSuchObjectException, UnknownDBException, UnknownTableException, UnknownPartitionException, InvalidPartitionException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "isPartitionMarkedForEvent failed: out of sequence response"); - } isPartitionMarkedForEvent_result result = new isPartitionMarkedForEvent_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "isPartitionMarkedForEvent"); if (result.isSetSuccess()) { return result.success; } @@ -2181,40 +1615,27 @@ public class ThriftHiveMetastore { if (result.o6 != null) { throw result.o6; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "isPartitionMarkedForEvent failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isPartitionMarkedForEvent failed: unknown result"); } - public Index add_index(Index new_index, Table index_table) throws InvalidObjectException, AlreadyExistsException, MetaException, TException + public Index add_index(Index new_index, Table index_table) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException { send_add_index(new_index, index_table); return recv_add_index(); } - public void send_add_index(Index new_index, Table index_table) throws TException + public void send_add_index(Index new_index, Table index_table) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("add_index", TMessageType.CALL, ++seqid_)); add_index_args args = new add_index_args(); args.setNew_index(new_index); args.setIndex_table(index_table); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("add_index", args); } - public Index recv_add_index() throws InvalidObjectException, AlreadyExistsException, MetaException, TException + public Index recv_add_index() throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "add_index failed: out of sequence response"); - } add_index_result result = new add_index_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "add_index"); if (result.isSetSuccess()) { return result.success; } @@ -2227,42 +1648,29 @@ public class ThriftHiveMetastore { if (result.o3 != null) { throw result.o3; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "add_index failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "add_index failed: unknown result"); } - public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx) throws InvalidOperationException, MetaException, TException + public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx) throws InvalidOperationException, MetaException, org.apache.thrift.TException { send_alter_index(dbname, base_tbl_name, idx_name, new_idx); recv_alter_index(); } - public void send_alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx) throws TException + public void send_alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("alter_index", TMessageType.CALL, ++seqid_)); alter_index_args args = new alter_index_args(); args.setDbname(dbname); args.setBase_tbl_name(base_tbl_name); args.setIdx_name(idx_name); args.setNew_idx(new_idx); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("alter_index", args); } - public void recv_alter_index() throws InvalidOperationException, MetaException, TException + public void recv_alter_index() throws InvalidOperationException, MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "alter_index failed: out of sequence response"); - } alter_index_result result = new alter_index_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "alter_index"); if (result.o1 != null) { throw result.o1; } @@ -2272,39 +1680,26 @@ public class ThriftHiveMetastore { return; } - public boolean drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData) throws NoSuchObjectException, MetaException, TException + public boolean drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException { send_drop_index_by_name(db_name, tbl_name, index_name, deleteData); return recv_drop_index_by_name(); } - public void send_drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData) throws TException + public void send_drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("drop_index_by_name", TMessageType.CALL, ++seqid_)); drop_index_by_name_args args = new drop_index_by_name_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setIndex_name(index_name); args.setDeleteData(deleteData); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("drop_index_by_name", args); } - public boolean recv_drop_index_by_name() throws NoSuchObjectException, MetaException, TException + public boolean recv_drop_index_by_name() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "drop_index_by_name failed: out of sequence response"); - } drop_index_by_name_result result = new drop_index_by_name_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "drop_index_by_name"); if (result.isSetSuccess()) { return result.success; } @@ -2314,41 +1709,28 @@ public class ThriftHiveMetastore { if (result.o2 != null) { throw result.o2; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "drop_index_by_name failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "drop_index_by_name failed: unknown result"); } - public Index get_index_by_name(String db_name, String tbl_name, String index_name) throws MetaException, NoSuchObjectException, TException + public Index get_index_by_name(String db_name, String tbl_name, String index_name) throws MetaException, NoSuchObjectException, org.apache.thrift.TException { send_get_index_by_name(db_name, tbl_name, index_name); return recv_get_index_by_name(); } - public void send_get_index_by_name(String db_name, String tbl_name, String index_name) throws TException + public void send_get_index_by_name(String db_name, String tbl_name, String index_name) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_index_by_name", TMessageType.CALL, ++seqid_)); get_index_by_name_args args = new get_index_by_name_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setIndex_name(index_name); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_index_by_name", args); } - public Index recv_get_index_by_name() throws MetaException, NoSuchObjectException, TException + public Index recv_get_index_by_name() throws MetaException, NoSuchObjectException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_index_by_name failed: out of sequence response"); - } get_index_by_name_result result = new get_index_by_name_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_index_by_name"); if (result.isSetSuccess()) { return result.success; } @@ -2358,41 +1740,28 @@ public class ThriftHiveMetastore { if (result.o2 != null) { throw result.o2; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_index_by_name failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_index_by_name failed: unknown result"); } - public List get_indexes(String db_name, String tbl_name, short max_indexes) throws NoSuchObjectException, MetaException, TException + public List get_indexes(String db_name, String tbl_name, short max_indexes) throws NoSuchObjectException, MetaException, org.apache.thrift.TException { send_get_indexes(db_name, tbl_name, max_indexes); return recv_get_indexes(); } - public void send_get_indexes(String db_name, String tbl_name, short max_indexes) throws TException + public void send_get_indexes(String db_name, String tbl_name, short max_indexes) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_indexes", TMessageType.CALL, ++seqid_)); get_indexes_args args = new get_indexes_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setMax_indexes(max_indexes); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_indexes", args); } - public List recv_get_indexes() throws NoSuchObjectException, MetaException, TException + public List recv_get_indexes() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_indexes failed: out of sequence response"); - } get_indexes_result result = new get_indexes_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_indexes"); if (result.isSetSuccess()) { return result.success; } @@ -2402,175 +1771,122 @@ public class ThriftHiveMetastore { if (result.o2 != null) { throw result.o2; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_indexes failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_indexes failed: unknown result"); } - public List get_index_names(String db_name, String tbl_name, short max_indexes) throws MetaException, TException + public List get_index_names(String db_name, String tbl_name, short max_indexes) throws MetaException, org.apache.thrift.TException { send_get_index_names(db_name, tbl_name, max_indexes); return recv_get_index_names(); } - public void send_get_index_names(String db_name, String tbl_name, short max_indexes) throws TException + public void send_get_index_names(String db_name, String tbl_name, short max_indexes) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_index_names", TMessageType.CALL, ++seqid_)); get_index_names_args args = new get_index_names_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setMax_indexes(max_indexes); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_index_names", args); } - public List recv_get_index_names() throws MetaException, TException + public List recv_get_index_names() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_index_names failed: out of sequence response"); - } get_index_names_result result = new get_index_names_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_index_names"); if (result.isSetSuccess()) { return result.success; } if (result.o2 != null) { throw result.o2; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_index_names failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_index_names failed: unknown result"); } - public boolean create_role(Role role) throws MetaException, TException + public boolean create_role(Role role) throws MetaException, org.apache.thrift.TException { send_create_role(role); return recv_create_role(); } - public void send_create_role(Role role) throws TException + public void send_create_role(Role role) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("create_role", TMessageType.CALL, ++seqid_)); create_role_args args = new create_role_args(); args.setRole(role); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("create_role", args); } - public boolean recv_create_role() throws MetaException, TException + public boolean recv_create_role() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "create_role failed: out of sequence response"); - } create_role_result result = new create_role_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "create_role"); if (result.isSetSuccess()) { return result.success; } if (result.o1 != null) { throw result.o1; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "create_role failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "create_role failed: unknown result"); } - public boolean drop_role(String role_name) throws MetaException, TException + public boolean drop_role(String role_name) throws MetaException, org.apache.thrift.TException { send_drop_role(role_name); return recv_drop_role(); } - public void send_drop_role(String role_name) throws TException + public void send_drop_role(String role_name) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("drop_role", TMessageType.CALL, ++seqid_)); drop_role_args args = new drop_role_args(); args.setRole_name(role_name); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("drop_role", args); } - public boolean recv_drop_role() throws MetaException, TException + public boolean recv_drop_role() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "drop_role failed: out of sequence response"); - } drop_role_result result = new drop_role_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "drop_role"); if (result.isSetSuccess()) { return result.success; } if (result.o1 != null) { throw result.o1; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "drop_role failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "drop_role failed: unknown result"); } - public List get_role_names() throws MetaException, TException + public List get_role_names() throws MetaException, org.apache.thrift.TException { send_get_role_names(); return recv_get_role_names(); } - public void send_get_role_names() throws TException + public void send_get_role_names() throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_role_names", TMessageType.CALL, ++seqid_)); get_role_names_args args = new get_role_names_args(); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_role_names", args); } - public List recv_get_role_names() throws MetaException, TException + public List recv_get_role_names() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_role_names failed: out of sequence response"); - } get_role_names_result result = new get_role_names_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_role_names"); if (result.isSetSuccess()) { return result.success; } if (result.o1 != null) { throw result.o1; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_role_names failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_role_names failed: unknown result"); } - public boolean grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option) throws MetaException, TException + public boolean grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option) throws MetaException, org.apache.thrift.TException { send_grant_role(role_name, principal_name, principal_type, grantor, grantorType, grant_option); return recv_grant_role(); } - public void send_grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option) throws TException + public void send_grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("grant_role", TMessageType.CALL, ++seqid_)); grant_role_args args = new grant_role_args(); args.setRole_name(role_name); args.setPrincipal_name(principal_name); @@ -2578,384 +1894,255 @@ public class ThriftHiveMetastore { args.setGrantor(grantor); args.setGrantorType(grantorType); args.setGrant_option(grant_option); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("grant_role", args); } - public boolean recv_grant_role() throws MetaException, TException + public boolean recv_grant_role() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "grant_role failed: out of sequence response"); - } grant_role_result result = new grant_role_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "grant_role"); if (result.isSetSuccess()) { return result.success; } if (result.o1 != null) { throw result.o1; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "grant_role failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "grant_role failed: unknown result"); } - public boolean revoke_role(String role_name, String principal_name, PrincipalType principal_type) throws MetaException, TException + public boolean revoke_role(String role_name, String principal_name, PrincipalType principal_type) throws MetaException, org.apache.thrift.TException { send_revoke_role(role_name, principal_name, principal_type); return recv_revoke_role(); } - public void send_revoke_role(String role_name, String principal_name, PrincipalType principal_type) throws TException + public void send_revoke_role(String role_name, String principal_name, PrincipalType principal_type) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("revoke_role", TMessageType.CALL, ++seqid_)); revoke_role_args args = new revoke_role_args(); args.setRole_name(role_name); args.setPrincipal_name(principal_name); args.setPrincipal_type(principal_type); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("revoke_role", args); } - public boolean recv_revoke_role() throws MetaException, TException + public boolean recv_revoke_role() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "revoke_role failed: out of sequence response"); - } revoke_role_result result = new revoke_role_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "revoke_role"); if (result.isSetSuccess()) { return result.success; } if (result.o1 != null) { throw result.o1; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "revoke_role failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "revoke_role failed: unknown result"); } - public List list_roles(String principal_name, PrincipalType principal_type) throws MetaException, TException + public List list_roles(String principal_name, PrincipalType principal_type) throws MetaException, org.apache.thrift.TException { send_list_roles(principal_name, principal_type); return recv_list_roles(); } - public void send_list_roles(String principal_name, PrincipalType principal_type) throws TException + public void send_list_roles(String principal_name, PrincipalType principal_type) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("list_roles", TMessageType.CALL, ++seqid_)); list_roles_args args = new list_roles_args(); args.setPrincipal_name(principal_name); args.setPrincipal_type(principal_type); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("list_roles", args); } - public List recv_list_roles() throws MetaException, TException + public List recv_list_roles() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "list_roles failed: out of sequence response"); - } list_roles_result result = new list_roles_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "list_roles"); if (result.isSetSuccess()) { return result.success; } if (result.o1 != null) { throw result.o1; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "list_roles failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "list_roles failed: unknown result"); } - public PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names) throws MetaException, TException + public PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names) throws MetaException, org.apache.thrift.TException { send_get_privilege_set(hiveObject, user_name, group_names); return recv_get_privilege_set(); } - public void send_get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names) throws TException + public void send_get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_privilege_set", TMessageType.CALL, ++seqid_)); get_privilege_set_args args = new get_privilege_set_args(); args.setHiveObject(hiveObject); args.setUser_name(user_name); args.setGroup_names(group_names); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_privilege_set", args); } - public PrincipalPrivilegeSet recv_get_privilege_set() throws MetaException, TException + public PrincipalPrivilegeSet recv_get_privilege_set() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_privilege_set failed: out of sequence response"); - } get_privilege_set_result result = new get_privilege_set_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_privilege_set"); if (result.isSetSuccess()) { return result.success; } if (result.o1 != null) { throw result.o1; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_privilege_set failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_privilege_set failed: unknown result"); } - public List list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject) throws MetaException, TException + public List list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject) throws MetaException, org.apache.thrift.TException { send_list_privileges(principal_name, principal_type, hiveObject); return recv_list_privileges(); } - public void send_list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject) throws TException + public void send_list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("list_privileges", TMessageType.CALL, ++seqid_)); list_privileges_args args = new list_privileges_args(); args.setPrincipal_name(principal_name); args.setPrincipal_type(principal_type); args.setHiveObject(hiveObject); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("list_privileges", args); } - public List recv_list_privileges() throws MetaException, TException + public List recv_list_privileges() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "list_privileges failed: out of sequence response"); - } list_privileges_result result = new list_privileges_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "list_privileges"); if (result.isSetSuccess()) { return result.success; } if (result.o1 != null) { throw result.o1; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "list_privileges failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "list_privileges failed: unknown result"); } - public boolean grant_privileges(PrivilegeBag privileges) throws MetaException, TException + public boolean grant_privileges(PrivilegeBag privileges) throws MetaException, org.apache.thrift.TException { send_grant_privileges(privileges); return recv_grant_privileges(); } - public void send_grant_privileges(PrivilegeBag privileges) throws TException + public void send_grant_privileges(PrivilegeBag privileges) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("grant_privileges", TMessageType.CALL, ++seqid_)); grant_privileges_args args = new grant_privileges_args(); args.setPrivileges(privileges); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("grant_privileges", args); } - public boolean recv_grant_privileges() throws MetaException, TException + public boolean recv_grant_privileges() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "grant_privileges failed: out of sequence response"); - } grant_privileges_result result = new grant_privileges_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "grant_privileges"); if (result.isSetSuccess()) { return result.success; } if (result.o1 != null) { throw result.o1; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "grant_privileges failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "grant_privileges failed: unknown result"); } - public boolean revoke_privileges(PrivilegeBag privileges) throws MetaException, TException + public boolean revoke_privileges(PrivilegeBag privileges) throws MetaException, org.apache.thrift.TException { send_revoke_privileges(privileges); return recv_revoke_privileges(); } - public void send_revoke_privileges(PrivilegeBag privileges) throws TException + public void send_revoke_privileges(PrivilegeBag privileges) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("revoke_privileges", TMessageType.CALL, ++seqid_)); revoke_privileges_args args = new revoke_privileges_args(); args.setPrivileges(privileges); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("revoke_privileges", args); } - public boolean recv_revoke_privileges() throws MetaException, TException + public boolean recv_revoke_privileges() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "revoke_privileges failed: out of sequence response"); - } revoke_privileges_result result = new revoke_privileges_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "revoke_privileges"); if (result.isSetSuccess()) { return result.success; } if (result.o1 != null) { throw result.o1; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "revoke_privileges failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "revoke_privileges failed: unknown result"); } - public String get_delegation_token(String token_owner, String renewer_kerberos_principal_name) throws MetaException, TException + public String get_delegation_token(String token_owner, String renewer_kerberos_principal_name) throws MetaException, org.apache.thrift.TException { send_get_delegation_token(token_owner, renewer_kerberos_principal_name); return recv_get_delegation_token(); } - public void send_get_delegation_token(String token_owner, String renewer_kerberos_principal_name) throws TException + public void send_get_delegation_token(String token_owner, String renewer_kerberos_principal_name) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("get_delegation_token", TMessageType.CALL, ++seqid_)); get_delegation_token_args args = new get_delegation_token_args(); args.setToken_owner(token_owner); args.setRenewer_kerberos_principal_name(renewer_kerberos_principal_name); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("get_delegation_token", args); } - public String recv_get_delegation_token() throws MetaException, TException + public String recv_get_delegation_token() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_delegation_token failed: out of sequence response"); - } get_delegation_token_result result = new get_delegation_token_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "get_delegation_token"); if (result.isSetSuccess()) { return result.success; } if (result.o1 != null) { throw result.o1; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_delegation_token failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_delegation_token failed: unknown result"); } - public long renew_delegation_token(String token_str_form) throws MetaException, TException + public long renew_delegation_token(String token_str_form) throws MetaException, org.apache.thrift.TException { send_renew_delegation_token(token_str_form); return recv_renew_delegation_token(); } - public void send_renew_delegation_token(String token_str_form) throws TException + public void send_renew_delegation_token(String token_str_form) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("renew_delegation_token", TMessageType.CALL, ++seqid_)); renew_delegation_token_args args = new renew_delegation_token_args(); args.setToken_str_form(token_str_form); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("renew_delegation_token", args); } - public long recv_renew_delegation_token() throws MetaException, TException + public long recv_renew_delegation_token() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "renew_delegation_token failed: out of sequence response"); - } renew_delegation_token_result result = new renew_delegation_token_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "renew_delegation_token"); if (result.isSetSuccess()) { return result.success; } if (result.o1 != null) { throw result.o1; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "renew_delegation_token failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "renew_delegation_token failed: unknown result"); } - public void cancel_delegation_token(String token_str_form) throws MetaException, TException + public void cancel_delegation_token(String token_str_form) throws MetaException, org.apache.thrift.TException { send_cancel_delegation_token(token_str_form); recv_cancel_delegation_token(); } - public void send_cancel_delegation_token(String token_str_form) throws TException + public void send_cancel_delegation_token(String token_str_form) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("cancel_delegation_token", TMessageType.CALL, ++seqid_)); cancel_delegation_token_args args = new cancel_delegation_token_args(); args.setToken_str_form(token_str_form); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("cancel_delegation_token", args); } - public void recv_cancel_delegation_token() throws MetaException, TException + public void recv_cancel_delegation_token() throws MetaException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "cancel_delegation_token failed: out of sequence response"); - } cancel_delegation_token_result result = new cancel_delegation_token_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "cancel_delegation_token"); if (result.o1 != null) { throw result.o1; } @@ -2964,103 +2151,106 @@ public class ThriftHiveMetastore { } public static class AsyncClient extends com.facebook.fb303.FacebookService.AsyncClient implements AsyncIface { - public static class Factory implements TAsyncClientFactory { - private TAsyncClientManager clientManager; - private TProtocolFactory protocolFactory; - public Factory(TAsyncClientManager clientManager, TProtocolFactory protocolFactory) { + public static class Factory implements org.apache.thrift.async.TAsyncClientFactory { + private org.apache.thrift.async.TAsyncClientManager clientManager; + private org.apache.thrift.protocol.TProtocolFactory protocolFactory; + public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) { this.clientManager = clientManager; this.protocolFactory = protocolFactory; } - public AsyncClient getAsyncClient(TNonblockingTransport transport) { + public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) { return new AsyncClient(protocolFactory, clientManager, transport); } } - public AsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager clientManager, TNonblockingTransport transport) { + public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) { super(protocolFactory, clientManager, transport); } - public void create_database(Database database, AsyncMethodCallback resultHandler) throws TException { + public void create_database(Database database, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - create_database_call method_call = new create_database_call(database, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + create_database_call method_call = new create_database_call(database, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class create_database_call extends TAsyncMethodCall { + public static class create_database_call extends org.apache.thrift.async.TAsyncMethodCall { private Database database; - public create_database_call(Database database, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public create_database_call(Database database, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.database = database; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("create_database", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("create_database", org.apache.thrift.protocol.TMessageType.CALL, 0)); create_database_args args = new create_database_args(); args.setDatabase(database); args.write(prot); prot.writeMessageEnd(); } - public void getResult() throws AlreadyExistsException, InvalidObjectException, MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public void getResult() throws AlreadyExistsException, InvalidObjectException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_create_database(); } } - public void get_database(String name, AsyncMethodCallback resultHandler) throws TException { + public void get_database(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_database_call method_call = new get_database_call(name, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_database_call method_call = new get_database_call(name, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_database_call extends TAsyncMethodCall { + public static class get_database_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; - public get_database_call(String name, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_database_call(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.name = name; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_database", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_database", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_database_args args = new get_database_args(); args.setName(name); args.write(prot); prot.writeMessageEnd(); } - public Database getResult() throws NoSuchObjectException, MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public Database getResult() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_database(); } } - public void drop_database(String name, boolean deleteData, boolean cascade, AsyncMethodCallback resultHandler) throws TException { + public void drop_database(String name, boolean deleteData, boolean cascade, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - drop_database_call method_call = new drop_database_call(name, deleteData, cascade, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + drop_database_call method_call = new drop_database_call(name, deleteData, cascade, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class drop_database_call extends TAsyncMethodCall { + public static class drop_database_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; private boolean deleteData; private boolean cascade; - public drop_database_call(String name, boolean deleteData, boolean cascade, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public drop_database_call(String name, boolean deleteData, boolean cascade, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.name = name; this.deleteData = deleteData; this.cascade = cascade; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("drop_database", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("drop_database", org.apache.thrift.protocol.TMessageType.CALL, 0)); drop_database_args args = new drop_database_args(); args.setName(name); args.setDeleteData(deleteData); @@ -3069,92 +2259,95 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public void getResult() throws NoSuchObjectException, InvalidOperationException, MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public void getResult() throws NoSuchObjectException, InvalidOperationException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_drop_database(); } } - public void get_databases(String pattern, AsyncMethodCallback resultHandler) throws TException { + public void get_databases(String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_databases_call method_call = new get_databases_call(pattern, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_databases_call method_call = new get_databases_call(pattern, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_databases_call extends TAsyncMethodCall { + public static class get_databases_call extends org.apache.thrift.async.TAsyncMethodCall { private String pattern; - public get_databases_call(String pattern, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_databases_call(String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.pattern = pattern; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_databases", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_databases", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_databases_args args = new get_databases_args(); args.setPattern(pattern); args.write(prot); prot.writeMessageEnd(); } - public List getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public List getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_databases(); } } - public void get_all_databases(AsyncMethodCallback resultHandler) throws TException { + public void get_all_databases(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_all_databases_call method_call = new get_all_databases_call(resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_all_databases_call method_call = new get_all_databases_call(resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_all_databases_call extends TAsyncMethodCall { - public get_all_databases_call(AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public static class get_all_databases_call extends org.apache.thrift.async.TAsyncMethodCall { + public get_all_databases_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_all_databases", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_all_databases", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_all_databases_args args = new get_all_databases_args(); args.write(prot); prot.writeMessageEnd(); } - public List getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public List getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_all_databases(); } } - public void alter_database(String dbname, Database db, AsyncMethodCallback resultHandler) throws TException { + public void alter_database(String dbname, Database db, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - alter_database_call method_call = new alter_database_call(dbname, db, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + alter_database_call method_call = new alter_database_call(dbname, db, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class alter_database_call extends TAsyncMethodCall { + public static class alter_database_call extends org.apache.thrift.async.TAsyncMethodCall { private String dbname; private Database db; - public alter_database_call(String dbname, Database db, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public alter_database_call(String dbname, Database db, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.dbname = dbname; this.db = db; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("alter_database", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("alter_database", org.apache.thrift.protocol.TMessageType.CALL, 0)); alter_database_args args = new alter_database_args(); args.setDbname(dbname); args.setDb(db); @@ -3162,157 +2355,162 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public void getResult() throws MetaException, NoSuchObjectException, TException { - if (getState() != State.RESPONSE_READ) { + public void 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!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_alter_database(); } } - public void get_type(String name, AsyncMethodCallback resultHandler) throws TException { + public void get_type(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_type_call method_call = new get_type_call(name, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_type_call method_call = new get_type_call(name, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_type_call extends TAsyncMethodCall { + public static class get_type_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; - public get_type_call(String name, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_type_call(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.name = name; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_type", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_type", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_type_args args = new get_type_args(); args.setName(name); args.write(prot); prot.writeMessageEnd(); } - public Type getResult() throws MetaException, NoSuchObjectException, TException { - if (getState() != State.RESPONSE_READ) { + public Type 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!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_type(); } } - public void create_type(Type type, AsyncMethodCallback resultHandler) throws TException { + public void create_type(Type type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - create_type_call method_call = new create_type_call(type, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + create_type_call method_call = new create_type_call(type, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class create_type_call extends TAsyncMethodCall { + public static class create_type_call extends org.apache.thrift.async.TAsyncMethodCall { private Type type; - public create_type_call(Type type, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public create_type_call(Type type, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.type = type; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("create_type", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("create_type", org.apache.thrift.protocol.TMessageType.CALL, 0)); create_type_args args = new create_type_args(); args.setType(type); args.write(prot); prot.writeMessageEnd(); } - public boolean getResult() throws AlreadyExistsException, InvalidObjectException, MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public boolean getResult() throws AlreadyExistsException, InvalidObjectException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_create_type(); } } - public void drop_type(String type, AsyncMethodCallback resultHandler) throws TException { + public void drop_type(String type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - drop_type_call method_call = new drop_type_call(type, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + drop_type_call method_call = new drop_type_call(type, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class drop_type_call extends TAsyncMethodCall { + public static class drop_type_call extends org.apache.thrift.async.TAsyncMethodCall { private String type; - public drop_type_call(String type, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public drop_type_call(String type, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.type = type; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("drop_type", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("drop_type", org.apache.thrift.protocol.TMessageType.CALL, 0)); drop_type_args args = new drop_type_args(); args.setType(type); args.write(prot); prot.writeMessageEnd(); } - public boolean getResult() throws MetaException, NoSuchObjectException, TException { - if (getState() != State.RESPONSE_READ) { + public boolean 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!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_drop_type(); } } - public void get_type_all(String name, AsyncMethodCallback resultHandler) throws TException { + public void get_type_all(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_type_all_call method_call = new get_type_all_call(name, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_type_all_call method_call = new get_type_all_call(name, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_type_all_call extends TAsyncMethodCall { + public static class get_type_all_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; - public get_type_all_call(String name, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_type_all_call(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.name = name; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_type_all", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_type_all", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_type_all_args args = new get_type_all_args(); args.setName(name); args.write(prot); prot.writeMessageEnd(); } - public Map getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public Map getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_type_all(); } } - public void get_fields(String db_name, String table_name, AsyncMethodCallback resultHandler) throws TException { + public void get_fields(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_fields_call method_call = new get_fields_call(db_name, table_name, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_fields_call method_call = new get_fields_call(db_name, table_name, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_fields_call extends TAsyncMethodCall { + public static class get_fields_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String table_name; - public get_fields_call(String db_name, String table_name, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_fields_call(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.table_name = table_name; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_fields", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_fields", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_fields_args args = new get_fields_args(); args.setDb_name(db_name); args.setTable_name(table_name); @@ -3320,33 +2518,34 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public List getResult() throws MetaException, UnknownTableException, UnknownDBException, TException { - if (getState() != State.RESPONSE_READ) { + public List getResult() throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_fields(); } } - public void get_schema(String db_name, String table_name, AsyncMethodCallback resultHandler) throws TException { + public void get_schema(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_schema_call method_call = new get_schema_call(db_name, table_name, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_schema_call method_call = new get_schema_call(db_name, table_name, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_schema_call extends TAsyncMethodCall { + public static class get_schema_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String table_name; - public get_schema_call(String db_name, String table_name, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_schema_call(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.table_name = table_name; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_schema", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_schema", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_schema_args args = new get_schema_args(); args.setDb_name(db_name); args.setTable_name(table_name); @@ -3354,66 +2553,68 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public List getResult() throws MetaException, UnknownTableException, UnknownDBException, TException { - if (getState() != State.RESPONSE_READ) { + public List getResult() throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_schema(); } } - public void create_table(Table tbl, AsyncMethodCallback resultHandler) throws TException { + public void create_table(Table tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - create_table_call method_call = new create_table_call(tbl, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + create_table_call method_call = new create_table_call(tbl, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class create_table_call extends TAsyncMethodCall { + public static class create_table_call extends org.apache.thrift.async.TAsyncMethodCall { private Table tbl; - public create_table_call(Table tbl, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public create_table_call(Table tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tbl = tbl; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("create_table", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("create_table", org.apache.thrift.protocol.TMessageType.CALL, 0)); create_table_args args = new create_table_args(); args.setTbl(tbl); args.write(prot); prot.writeMessageEnd(); } - public void getResult() throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException { - if (getState() != State.RESPONSE_READ) { + public void getResult() throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_create_table(); } } - public void drop_table(String dbname, String name, boolean deleteData, AsyncMethodCallback resultHandler) throws TException { + public void drop_table(String dbname, String name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - drop_table_call method_call = new drop_table_call(dbname, name, deleteData, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + drop_table_call method_call = new drop_table_call(dbname, name, deleteData, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class drop_table_call extends TAsyncMethodCall { + public static class drop_table_call extends org.apache.thrift.async.TAsyncMethodCall { private String dbname; private String name; private boolean deleteData; - public drop_table_call(String dbname, String name, boolean deleteData, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public drop_table_call(String dbname, String name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.dbname = dbname; this.name = name; this.deleteData = deleteData; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("drop_table", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("drop_table", org.apache.thrift.protocol.TMessageType.CALL, 0)); drop_table_args args = new drop_table_args(); args.setDbname(dbname); args.setName(name); @@ -3422,33 +2623,34 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public void getResult() throws NoSuchObjectException, MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public void getResult() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_drop_table(); } } - public void get_tables(String db_name, String pattern, AsyncMethodCallback resultHandler) throws TException { + public void get_tables(String db_name, String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_tables_call method_call = new get_tables_call(db_name, pattern, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_tables_call method_call = new get_tables_call(db_name, pattern, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_tables_call extends TAsyncMethodCall { + public static class get_tables_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String pattern; - public get_tables_call(String db_name, String pattern, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_tables_call(String db_name, String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.pattern = pattern; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_tables", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_tables", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_tables_args args = new get_tables_args(); args.setDb_name(db_name); args.setPattern(pattern); @@ -3456,64 +2658,66 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public List getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public List getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_tables(); } } - public void get_all_tables(String db_name, AsyncMethodCallback resultHandler) throws TException { + public void get_all_tables(String db_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_all_tables_call method_call = new get_all_tables_call(db_name, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_all_tables_call method_call = new get_all_tables_call(db_name, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_all_tables_call extends TAsyncMethodCall { + public static class get_all_tables_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; - public get_all_tables_call(String db_name, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_all_tables_call(String db_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_all_tables", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_all_tables", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_all_tables_args args = new get_all_tables_args(); args.setDb_name(db_name); args.write(prot); prot.writeMessageEnd(); } - public List getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public List getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_all_tables(); } } - public void get_table(String dbname, String tbl_name, AsyncMethodCallback resultHandler) throws TException { + public void get_table(String dbname, String tbl_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_table_call method_call = new get_table_call(dbname, tbl_name, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_table_call method_call = new get_table_call(dbname, tbl_name, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_table_call extends TAsyncMethodCall { + public static class get_table_call extends org.apache.thrift.async.TAsyncMethodCall { private String dbname; private String tbl_name; - public get_table_call(String dbname, String tbl_name, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_table_call(String dbname, String tbl_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.dbname = dbname; this.tbl_name = tbl_name; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_table", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_table", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_table_args args = new get_table_args(); args.setDbname(dbname); args.setTbl_name(tbl_name); @@ -3521,33 +2725,34 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public Table getResult() throws MetaException, NoSuchObjectException, TException { - if (getState() != State.RESPONSE_READ) { + public Table 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!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_table(); } } - public void get_table_objects_by_name(String dbname, List tbl_names, AsyncMethodCallback resultHandler) throws TException { + public void get_table_objects_by_name(String dbname, List tbl_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_table_objects_by_name_call method_call = new get_table_objects_by_name_call(dbname, tbl_names, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_table_objects_by_name_call method_call = new get_table_objects_by_name_call(dbname, tbl_names, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_table_objects_by_name_call extends TAsyncMethodCall { + public static class get_table_objects_by_name_call extends org.apache.thrift.async.TAsyncMethodCall { private String dbname; private List tbl_names; - public get_table_objects_by_name_call(String dbname, List tbl_names, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_table_objects_by_name_call(String dbname, List tbl_names, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.dbname = dbname; this.tbl_names = tbl_names; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_table_objects_by_name", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_table_objects_by_name", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_table_objects_by_name_args args = new get_table_objects_by_name_args(); args.setDbname(dbname); args.setTbl_names(tbl_names); @@ -3555,35 +2760,36 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public List
getResult() throws MetaException, InvalidOperationException, UnknownDBException, TException { - if (getState() != State.RESPONSE_READ) { + public List
getResult() throws MetaException, InvalidOperationException, UnknownDBException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_table_objects_by_name(); } } - public void get_table_names_by_filter(String dbname, String filter, short max_tables, AsyncMethodCallback resultHandler) throws TException { + public void get_table_names_by_filter(String dbname, String filter, short max_tables, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_table_names_by_filter_call method_call = new get_table_names_by_filter_call(dbname, filter, max_tables, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_table_names_by_filter_call method_call = new get_table_names_by_filter_call(dbname, filter, max_tables, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_table_names_by_filter_call extends TAsyncMethodCall { + public static class get_table_names_by_filter_call extends org.apache.thrift.async.TAsyncMethodCall { private String dbname; private String filter; private short max_tables; - public get_table_names_by_filter_call(String dbname, String filter, short max_tables, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_table_names_by_filter_call(String dbname, String filter, short max_tables, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.dbname = dbname; this.filter = filter; this.max_tables = max_tables; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_table_names_by_filter", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_table_names_by_filter", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_table_names_by_filter_args args = new get_table_names_by_filter_args(); args.setDbname(dbname); args.setFilter(filter); @@ -3592,35 +2798,36 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public List getResult() throws MetaException, InvalidOperationException, UnknownDBException, TException { - if (getState() != State.RESPONSE_READ) { + public List getResult() throws MetaException, InvalidOperationException, UnknownDBException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_table_names_by_filter(); } } - public void alter_table(String dbname, String tbl_name, Table new_tbl, AsyncMethodCallback resultHandler) throws TException { + public void alter_table(String dbname, String tbl_name, Table new_tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - alter_table_call method_call = new alter_table_call(dbname, tbl_name, new_tbl, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + alter_table_call method_call = new alter_table_call(dbname, tbl_name, new_tbl, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class alter_table_call extends TAsyncMethodCall { + public static class alter_table_call extends org.apache.thrift.async.TAsyncMethodCall { private String dbname; private String tbl_name; private Table new_tbl; - public alter_table_call(String dbname, String tbl_name, Table new_tbl, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public alter_table_call(String dbname, String tbl_name, Table new_tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.dbname = dbname; this.tbl_name = tbl_name; this.new_tbl = new_tbl; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("alter_table", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("alter_table", org.apache.thrift.protocol.TMessageType.CALL, 0)); alter_table_args args = new alter_table_args(); args.setDbname(dbname); args.setTbl_name(tbl_name); @@ -3629,97 +2836,100 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public void getResult() throws InvalidOperationException, MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public void getResult() throws InvalidOperationException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_alter_table(); } } - public void add_partition(Partition new_part, AsyncMethodCallback resultHandler) throws TException { + public void add_partition(Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - add_partition_call method_call = new add_partition_call(new_part, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + add_partition_call method_call = new add_partition_call(new_part, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class add_partition_call extends TAsyncMethodCall { + public static class add_partition_call extends org.apache.thrift.async.TAsyncMethodCall { private Partition new_part; - public add_partition_call(Partition new_part, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public add_partition_call(Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.new_part = new_part; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("add_partition", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("add_partition", org.apache.thrift.protocol.TMessageType.CALL, 0)); add_partition_args args = new add_partition_args(); args.setNew_part(new_part); args.write(prot); prot.writeMessageEnd(); } - public Partition getResult() throws InvalidObjectException, AlreadyExistsException, MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public Partition getResult() throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_add_partition(); } } - public void add_partitions(List new_parts, AsyncMethodCallback resultHandler) throws TException { + public void add_partitions(List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - add_partitions_call method_call = new add_partitions_call(new_parts, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + add_partitions_call method_call = new add_partitions_call(new_parts, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class add_partitions_call extends TAsyncMethodCall { + public static class add_partitions_call extends org.apache.thrift.async.TAsyncMethodCall { private List new_parts; - public add_partitions_call(List new_parts, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public add_partitions_call(List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.new_parts = new_parts; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("add_partitions", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("add_partitions", org.apache.thrift.protocol.TMessageType.CALL, 0)); add_partitions_args args = new add_partitions_args(); args.setNew_parts(new_parts); args.write(prot); prot.writeMessageEnd(); } - public int getResult() throws InvalidObjectException, AlreadyExistsException, MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public int getResult() throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_add_partitions(); } } - public void append_partition(String db_name, String tbl_name, List part_vals, AsyncMethodCallback resultHandler) throws TException { + public void append_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - append_partition_call method_call = new append_partition_call(db_name, tbl_name, part_vals, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + append_partition_call method_call = new append_partition_call(db_name, tbl_name, part_vals, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class append_partition_call extends TAsyncMethodCall { + public static class append_partition_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private List part_vals; - public append_partition_call(String db_name, String tbl_name, List part_vals, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public append_partition_call(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; this.part_vals = part_vals; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("append_partition", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("append_partition", org.apache.thrift.protocol.TMessageType.CALL, 0)); append_partition_args args = new append_partition_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -3728,35 +2938,36 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public Partition getResult() throws InvalidObjectException, AlreadyExistsException, MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public Partition getResult() throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_append_partition(); } } - public void append_partition_by_name(String db_name, String tbl_name, String part_name, AsyncMethodCallback resultHandler) throws TException { + public void append_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - append_partition_by_name_call method_call = new append_partition_by_name_call(db_name, tbl_name, part_name, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + append_partition_by_name_call method_call = new append_partition_by_name_call(db_name, tbl_name, part_name, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class append_partition_by_name_call extends TAsyncMethodCall { + public static class append_partition_by_name_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private String part_name; - public append_partition_by_name_call(String db_name, String tbl_name, String part_name, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public append_partition_by_name_call(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; this.part_name = part_name; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("append_partition_by_name", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("append_partition_by_name", org.apache.thrift.protocol.TMessageType.CALL, 0)); append_partition_by_name_args args = new append_partition_by_name_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -3765,28 +2976,29 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public Partition getResult() throws InvalidObjectException, AlreadyExistsException, MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public Partition getResult() throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_append_partition_by_name(); } } - public void drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData, AsyncMethodCallback resultHandler) throws TException { + public void drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - drop_partition_call method_call = new drop_partition_call(db_name, tbl_name, part_vals, deleteData, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + drop_partition_call method_call = new drop_partition_call(db_name, tbl_name, part_vals, deleteData, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class drop_partition_call extends TAsyncMethodCall { + public static class drop_partition_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private List part_vals; private boolean deleteData; - public drop_partition_call(String db_name, String tbl_name, List part_vals, boolean deleteData, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public drop_partition_call(String db_name, String tbl_name, List part_vals, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -3794,8 +3006,8 @@ public class ThriftHiveMetastore { this.deleteData = deleteData; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("drop_partition", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("drop_partition", org.apache.thrift.protocol.TMessageType.CALL, 0)); drop_partition_args args = new drop_partition_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -3805,28 +3017,29 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public boolean getResult() throws NoSuchObjectException, MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public boolean getResult() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_drop_partition(); } } - public void drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData, AsyncMethodCallback resultHandler) throws TException { + public void drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - drop_partition_by_name_call method_call = new drop_partition_by_name_call(db_name, tbl_name, part_name, deleteData, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + drop_partition_by_name_call method_call = new drop_partition_by_name_call(db_name, tbl_name, part_name, deleteData, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class drop_partition_by_name_call extends TAsyncMethodCall { + public static class drop_partition_by_name_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private String part_name; private boolean deleteData; - public drop_partition_by_name_call(String db_name, String tbl_name, String part_name, boolean deleteData, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public drop_partition_by_name_call(String db_name, String tbl_name, String part_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -3834,8 +3047,8 @@ public class ThriftHiveMetastore { this.deleteData = deleteData; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("drop_partition_by_name", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("drop_partition_by_name", org.apache.thrift.protocol.TMessageType.CALL, 0)); drop_partition_by_name_args args = new drop_partition_by_name_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -3845,35 +3058,36 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public boolean getResult() throws NoSuchObjectException, MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public boolean getResult() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_drop_partition_by_name(); } } - public void get_partition(String db_name, String tbl_name, List part_vals, AsyncMethodCallback resultHandler) throws TException { + public void get_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_partition_call method_call = new get_partition_call(db_name, tbl_name, part_vals, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_partition_call method_call = new get_partition_call(db_name, tbl_name, part_vals, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_partition_call extends TAsyncMethodCall { + public static class get_partition_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private List part_vals; - public get_partition_call(String db_name, String tbl_name, List part_vals, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_partition_call(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; this.part_vals = part_vals; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_partition", TMessageType.CALL, 0)); + 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", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_partition_args args = new get_partition_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -3882,29 +3096,30 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public Partition getResult() throws MetaException, NoSuchObjectException, TException { - if (getState() != State.RESPONSE_READ) { + public Partition 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!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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(); } } - public void get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names, AsyncMethodCallback resultHandler) throws TException { + public void get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_partition_with_auth_call method_call = new get_partition_with_auth_call(db_name, tbl_name, part_vals, user_name, group_names, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_partition_with_auth_call method_call = new get_partition_with_auth_call(db_name, tbl_name, part_vals, user_name, group_names, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_partition_with_auth_call extends TAsyncMethodCall { + public static class get_partition_with_auth_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private List part_vals; private String user_name; private List group_names; - public get_partition_with_auth_call(String db_name, String tbl_name, List part_vals, String user_name, List group_names, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_partition_with_auth_call(String db_name, String tbl_name, List part_vals, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -3913,8 +3128,8 @@ public class ThriftHiveMetastore { this.group_names = group_names; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_partition_with_auth", TMessageType.CALL, 0)); + 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_with_auth", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_partition_with_auth_args args = new get_partition_with_auth_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -3925,35 +3140,36 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public Partition getResult() throws MetaException, NoSuchObjectException, TException { - if (getState() != State.RESPONSE_READ) { + public Partition 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!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_with_auth(); } } - public void get_partition_by_name(String db_name, String tbl_name, String part_name, AsyncMethodCallback resultHandler) throws TException { + public void get_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_partition_by_name_call method_call = new get_partition_by_name_call(db_name, tbl_name, part_name, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_partition_by_name_call method_call = new get_partition_by_name_call(db_name, tbl_name, part_name, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_partition_by_name_call extends TAsyncMethodCall { + public static class get_partition_by_name_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private String part_name; - public get_partition_by_name_call(String db_name, String tbl_name, String part_name, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_partition_by_name_call(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; this.part_name = part_name; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_partition_by_name", TMessageType.CALL, 0)); + 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_by_name", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_partition_by_name_args args = new get_partition_by_name_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -3962,35 +3178,36 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public Partition getResult() throws MetaException, NoSuchObjectException, TException { - if (getState() != State.RESPONSE_READ) { + public Partition 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!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_by_name(); } } - public void get_partitions(String db_name, String tbl_name, short max_parts, AsyncMethodCallback resultHandler) throws TException { + public void get_partitions(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_partitions_call method_call = new get_partitions_call(db_name, tbl_name, max_parts, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_partitions_call method_call = new get_partitions_call(db_name, tbl_name, max_parts, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_partitions_call extends TAsyncMethodCall { + public static class get_partitions_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private short max_parts; - public get_partitions_call(String db_name, String tbl_name, short max_parts, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_partitions_call(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; this.max_parts = max_parts; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_partitions", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_partitions", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_partitions_args args = new get_partitions_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -3999,29 +3216,30 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public List getResult() throws NoSuchObjectException, MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public List getResult() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_partitions(); } } - public void get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names, AsyncMethodCallback resultHandler) throws TException { + public void get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_partitions_with_auth_call method_call = new get_partitions_with_auth_call(db_name, tbl_name, max_parts, user_name, group_names, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_partitions_with_auth_call method_call = new get_partitions_with_auth_call(db_name, tbl_name, max_parts, user_name, group_names, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_partitions_with_auth_call extends TAsyncMethodCall { + public static class get_partitions_with_auth_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private short max_parts; private String user_name; private List group_names; - public get_partitions_with_auth_call(String db_name, String tbl_name, short max_parts, String user_name, List group_names, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_partitions_with_auth_call(String db_name, String tbl_name, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -4030,8 +3248,8 @@ public class ThriftHiveMetastore { this.group_names = group_names; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_partitions_with_auth", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_partitions_with_auth", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_partitions_with_auth_args args = new get_partitions_with_auth_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -4042,35 +3260,36 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public List getResult() throws NoSuchObjectException, MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public List getResult() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_partitions_with_auth(); } } - public void get_partition_names(String db_name, String tbl_name, short max_parts, AsyncMethodCallback resultHandler) throws TException { + public void get_partition_names(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_partition_names_call method_call = new get_partition_names_call(db_name, tbl_name, max_parts, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_partition_names_call method_call = new get_partition_names_call(db_name, tbl_name, max_parts, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_partition_names_call extends TAsyncMethodCall { + public static class get_partition_names_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private short max_parts; - public get_partition_names_call(String db_name, String tbl_name, short max_parts, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_partition_names_call(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; this.max_parts = max_parts; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_partition_names", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_partition_names", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_partition_names_args args = new get_partition_names_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -4079,28 +3298,29 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public List getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public List getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_get_partition_names(); } } - public void get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts, AsyncMethodCallback resultHandler) throws TException { + public void get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_partitions_ps_call method_call = new get_partitions_ps_call(db_name, tbl_name, part_vals, max_parts, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_partitions_ps_call method_call = new get_partitions_ps_call(db_name, tbl_name, part_vals, max_parts, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_partitions_ps_call extends TAsyncMethodCall { + public static class get_partitions_ps_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private List part_vals; private short max_parts; - public get_partitions_ps_call(String db_name, String tbl_name, List part_vals, short max_parts, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_partitions_ps_call(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -4108,8 +3328,8 @@ public class ThriftHiveMetastore { this.max_parts = max_parts; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_partitions_ps", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_partitions_ps", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_partitions_ps_args args = new get_partitions_ps_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -4119,30 +3339,31 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public List getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public List getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_partitions_ps(); } } - 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, AsyncMethodCallback resultHandler) throws TException { + public void get_partitions_ps_with_auth(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_partitions_ps_with_auth_call method_call = new get_partitions_ps_with_auth_call(db_name, tbl_name, part_vals, max_parts, user_name, group_names, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_partitions_ps_with_auth_call method_call = new get_partitions_ps_with_auth_call(db_name, tbl_name, part_vals, max_parts, user_name, group_names, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_partitions_ps_with_auth_call extends TAsyncMethodCall { + public static class get_partitions_ps_with_auth_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private List part_vals; private short max_parts; private String user_name; private List group_names; - public get_partitions_ps_with_auth_call(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_partitions_ps_with_auth_call(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -4152,8 +3373,8 @@ public class ThriftHiveMetastore { this.group_names = group_names; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_partitions_ps_with_auth", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_partitions_ps_with_auth", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_partitions_ps_with_auth_args args = new get_partitions_ps_with_auth_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -4165,28 +3386,29 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public List getResult() throws NoSuchObjectException, MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public List getResult() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_partitions_ps_with_auth(); } } - public void get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts, AsyncMethodCallback resultHandler) throws TException { + public void get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_partition_names_ps_call method_call = new get_partition_names_ps_call(db_name, tbl_name, part_vals, max_parts, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_partition_names_ps_call method_call = new get_partition_names_ps_call(db_name, tbl_name, part_vals, max_parts, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_partition_names_ps_call extends TAsyncMethodCall { + public static class get_partition_names_ps_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private List part_vals; private short max_parts; - public get_partition_names_ps_call(String db_name, String tbl_name, List part_vals, short max_parts, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_partition_names_ps_call(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -4194,8 +3416,8 @@ public class ThriftHiveMetastore { this.max_parts = max_parts; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_partition_names_ps", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_partition_names_ps", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_partition_names_ps_args args = new get_partition_names_ps_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -4205,28 +3427,29 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public List getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public List getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_get_partition_names_ps(); } } - public void get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts, AsyncMethodCallback resultHandler) throws TException { + public void get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_partitions_by_filter_call method_call = new get_partitions_by_filter_call(db_name, tbl_name, filter, max_parts, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_partitions_by_filter_call method_call = new get_partitions_by_filter_call(db_name, tbl_name, filter, max_parts, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_partitions_by_filter_call extends TAsyncMethodCall { + public static class get_partitions_by_filter_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private String filter; private short max_parts; - public get_partitions_by_filter_call(String db_name, String tbl_name, String filter, short max_parts, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_partitions_by_filter_call(String db_name, String tbl_name, String filter, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -4234,8 +3457,8 @@ public class ThriftHiveMetastore { this.max_parts = max_parts; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_partitions_by_filter", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_partitions_by_filter", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_partitions_by_filter_args args = new get_partitions_by_filter_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -4245,35 +3468,36 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public List getResult() throws MetaException, NoSuchObjectException, TException { - if (getState() != State.RESPONSE_READ) { + public List 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!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_partitions_by_filter(); } } - public void get_partitions_by_names(String db_name, String tbl_name, List names, AsyncMethodCallback resultHandler) throws TException { + public void get_partitions_by_names(String db_name, String tbl_name, List names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_partitions_by_names_call method_call = new get_partitions_by_names_call(db_name, tbl_name, names, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_partitions_by_names_call method_call = new get_partitions_by_names_call(db_name, tbl_name, names, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_partitions_by_names_call extends TAsyncMethodCall { + public static class get_partitions_by_names_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private List names; - public get_partitions_by_names_call(String db_name, String tbl_name, List names, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_partitions_by_names_call(String db_name, String tbl_name, List names, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; this.names = names; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_partitions_by_names", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_partitions_by_names", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_partitions_by_names_args args = new get_partitions_by_names_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -4282,35 +3506,36 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public List getResult() throws MetaException, NoSuchObjectException, TException { - if (getState() != State.RESPONSE_READ) { + public List 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!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_partitions_by_names(); } } - public void alter_partition(String db_name, String tbl_name, Partition new_part, AsyncMethodCallback resultHandler) throws TException { + public void alter_partition(String db_name, String tbl_name, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - alter_partition_call method_call = new alter_partition_call(db_name, tbl_name, new_part, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + alter_partition_call method_call = new alter_partition_call(db_name, tbl_name, new_part, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class alter_partition_call extends TAsyncMethodCall { + public static class alter_partition_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private Partition new_part; - public alter_partition_call(String db_name, String tbl_name, Partition new_part, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public alter_partition_call(String db_name, String tbl_name, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; this.new_part = new_part; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("alter_partition", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("alter_partition", org.apache.thrift.protocol.TMessageType.CALL, 0)); alter_partition_args args = new alter_partition_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -4319,33 +3544,34 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public void getResult() throws InvalidOperationException, MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public void getResult() throws InvalidOperationException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_alter_partition(); } } - public void get_config_value(String name, String defaultValue, AsyncMethodCallback resultHandler) throws TException { + public void get_config_value(String name, String defaultValue, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_config_value_call method_call = new get_config_value_call(name, defaultValue, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_config_value_call method_call = new get_config_value_call(name, defaultValue, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_config_value_call extends TAsyncMethodCall { + public static class get_config_value_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; private String defaultValue; - public get_config_value_call(String name, String defaultValue, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_config_value_call(String name, String defaultValue, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.name = name; this.defaultValue = defaultValue; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_config_value", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_config_value", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_config_value_args args = new get_config_value_args(); args.setName(name); args.setDefaultValue(defaultValue); @@ -4353,90 +3579,93 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public String getResult() throws ConfigValSecurityException, TException { - if (getState() != State.RESPONSE_READ) { + public String getResult() throws ConfigValSecurityException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_config_value(); } } - public void partition_name_to_vals(String part_name, AsyncMethodCallback resultHandler) throws TException { + public void partition_name_to_vals(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - partition_name_to_vals_call method_call = new partition_name_to_vals_call(part_name, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + partition_name_to_vals_call method_call = new partition_name_to_vals_call(part_name, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class partition_name_to_vals_call extends TAsyncMethodCall { + public static class partition_name_to_vals_call extends org.apache.thrift.async.TAsyncMethodCall { private String part_name; - public partition_name_to_vals_call(String part_name, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public partition_name_to_vals_call(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.part_name = part_name; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("partition_name_to_vals", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("partition_name_to_vals", org.apache.thrift.protocol.TMessageType.CALL, 0)); partition_name_to_vals_args args = new partition_name_to_vals_args(); args.setPart_name(part_name); args.write(prot); prot.writeMessageEnd(); } - public List getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public List getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_partition_name_to_vals(); } } - public void partition_name_to_spec(String part_name, AsyncMethodCallback resultHandler) throws TException { + public void partition_name_to_spec(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - partition_name_to_spec_call method_call = new partition_name_to_spec_call(part_name, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + partition_name_to_spec_call method_call = new partition_name_to_spec_call(part_name, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class partition_name_to_spec_call extends TAsyncMethodCall { + public static class partition_name_to_spec_call extends org.apache.thrift.async.TAsyncMethodCall { private String part_name; - public partition_name_to_spec_call(String part_name, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public partition_name_to_spec_call(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.part_name = part_name; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("partition_name_to_spec", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("partition_name_to_spec", org.apache.thrift.protocol.TMessageType.CALL, 0)); partition_name_to_spec_args args = new partition_name_to_spec_args(); args.setPart_name(part_name); args.write(prot); prot.writeMessageEnd(); } - public Map getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public Map getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_partition_name_to_spec(); } } - public void markPartitionForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, AsyncMethodCallback resultHandler) throws TException { + public void markPartitionForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - markPartitionForEvent_call method_call = new markPartitionForEvent_call(db_name, tbl_name, part_vals, eventType, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + markPartitionForEvent_call method_call = new markPartitionForEvent_call(db_name, tbl_name, part_vals, eventType, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class markPartitionForEvent_call extends TAsyncMethodCall { + public static class markPartitionForEvent_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private Map part_vals; private PartitionEventType eventType; - public markPartitionForEvent_call(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public markPartitionForEvent_call(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -4444,8 +3673,8 @@ public class ThriftHiveMetastore { this.eventType = eventType; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("markPartitionForEvent", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markPartitionForEvent", org.apache.thrift.protocol.TMessageType.CALL, 0)); markPartitionForEvent_args args = new markPartitionForEvent_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -4455,28 +3684,29 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public void getResult() throws MetaException, NoSuchObjectException, UnknownDBException, UnknownTableException, UnknownPartitionException, InvalidPartitionException, TException { - if (getState() != State.RESPONSE_READ) { + public void getResult() throws MetaException, NoSuchObjectException, UnknownDBException, UnknownTableException, UnknownPartitionException, InvalidPartitionException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_markPartitionForEvent(); } } - public void isPartitionMarkedForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, AsyncMethodCallback resultHandler) throws TException { + public void isPartitionMarkedForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - isPartitionMarkedForEvent_call method_call = new isPartitionMarkedForEvent_call(db_name, tbl_name, part_vals, eventType, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + isPartitionMarkedForEvent_call method_call = new isPartitionMarkedForEvent_call(db_name, tbl_name, part_vals, eventType, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class isPartitionMarkedForEvent_call extends TAsyncMethodCall { + public static class isPartitionMarkedForEvent_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private Map part_vals; private PartitionEventType eventType; - public isPartitionMarkedForEvent_call(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public isPartitionMarkedForEvent_call(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -4484,8 +3714,8 @@ public class ThriftHiveMetastore { this.eventType = eventType; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("isPartitionMarkedForEvent", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isPartitionMarkedForEvent", org.apache.thrift.protocol.TMessageType.CALL, 0)); isPartitionMarkedForEvent_args args = new isPartitionMarkedForEvent_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -4495,33 +3725,34 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public boolean getResult() throws MetaException, NoSuchObjectException, UnknownDBException, UnknownTableException, UnknownPartitionException, InvalidPartitionException, TException { - if (getState() != State.RESPONSE_READ) { + public boolean getResult() throws MetaException, NoSuchObjectException, UnknownDBException, UnknownTableException, UnknownPartitionException, InvalidPartitionException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_isPartitionMarkedForEvent(); } } - public void add_index(Index new_index, Table index_table, AsyncMethodCallback resultHandler) throws TException { + public void add_index(Index new_index, Table index_table, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - add_index_call method_call = new add_index_call(new_index, index_table, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + add_index_call method_call = new add_index_call(new_index, index_table, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class add_index_call extends TAsyncMethodCall { + public static class add_index_call extends org.apache.thrift.async.TAsyncMethodCall { private Index new_index; private Table index_table; - public add_index_call(Index new_index, Table index_table, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public add_index_call(Index new_index, Table index_table, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.new_index = new_index; this.index_table = index_table; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("add_index", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("add_index", org.apache.thrift.protocol.TMessageType.CALL, 0)); add_index_args args = new add_index_args(); args.setNew_index(new_index); args.setIndex_table(index_table); @@ -4529,28 +3760,29 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public Index getResult() throws InvalidObjectException, AlreadyExistsException, MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public Index getResult() throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_add_index(); } } - public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx, AsyncMethodCallback resultHandler) throws TException { + public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - alter_index_call method_call = new alter_index_call(dbname, base_tbl_name, idx_name, new_idx, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + alter_index_call method_call = new alter_index_call(dbname, base_tbl_name, idx_name, new_idx, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class alter_index_call extends TAsyncMethodCall { + public static class alter_index_call extends org.apache.thrift.async.TAsyncMethodCall { private String dbname; private String base_tbl_name; private String idx_name; private Index new_idx; - public alter_index_call(String dbname, String base_tbl_name, String idx_name, Index new_idx, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public alter_index_call(String dbname, String base_tbl_name, String idx_name, Index new_idx, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.dbname = dbname; this.base_tbl_name = base_tbl_name; @@ -4558,8 +3790,8 @@ public class ThriftHiveMetastore { this.new_idx = new_idx; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("alter_index", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("alter_index", org.apache.thrift.protocol.TMessageType.CALL, 0)); alter_index_args args = new alter_index_args(); args.setDbname(dbname); args.setBase_tbl_name(base_tbl_name); @@ -4569,28 +3801,29 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public void getResult() throws InvalidOperationException, MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public void getResult() throws InvalidOperationException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_alter_index(); } } - public void drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData, AsyncMethodCallback resultHandler) throws TException { + public void drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - drop_index_by_name_call method_call = new drop_index_by_name_call(db_name, tbl_name, index_name, deleteData, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + drop_index_by_name_call method_call = new drop_index_by_name_call(db_name, tbl_name, index_name, deleteData, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class drop_index_by_name_call extends TAsyncMethodCall { + public static class drop_index_by_name_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private String index_name; private boolean deleteData; - public drop_index_by_name_call(String db_name, String tbl_name, String index_name, boolean deleteData, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public drop_index_by_name_call(String db_name, String tbl_name, String index_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -4598,8 +3831,8 @@ public class ThriftHiveMetastore { this.deleteData = deleteData; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("drop_index_by_name", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("drop_index_by_name", org.apache.thrift.protocol.TMessageType.CALL, 0)); drop_index_by_name_args args = new drop_index_by_name_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -4609,35 +3842,36 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public boolean getResult() throws NoSuchObjectException, MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public boolean getResult() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_drop_index_by_name(); } } - public void get_index_by_name(String db_name, String tbl_name, String index_name, AsyncMethodCallback resultHandler) throws TException { + public void get_index_by_name(String db_name, String tbl_name, String index_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_index_by_name_call method_call = new get_index_by_name_call(db_name, tbl_name, index_name, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_index_by_name_call method_call = new get_index_by_name_call(db_name, tbl_name, index_name, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_index_by_name_call extends TAsyncMethodCall { + public static class get_index_by_name_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private String index_name; - public get_index_by_name_call(String db_name, String tbl_name, String index_name, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_index_by_name_call(String db_name, String tbl_name, String index_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; this.index_name = index_name; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_index_by_name", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_index_by_name", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_index_by_name_args args = new get_index_by_name_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -4646,35 +3880,36 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public Index getResult() throws MetaException, NoSuchObjectException, TException { - if (getState() != State.RESPONSE_READ) { + public Index 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!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_index_by_name(); } } - public void get_indexes(String db_name, String tbl_name, short max_indexes, AsyncMethodCallback resultHandler) throws TException { + public void get_indexes(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_indexes_call method_call = new get_indexes_call(db_name, tbl_name, max_indexes, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_indexes_call method_call = new get_indexes_call(db_name, tbl_name, max_indexes, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_indexes_call extends TAsyncMethodCall { + public static class get_indexes_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private short max_indexes; - public get_indexes_call(String db_name, String tbl_name, short max_indexes, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_indexes_call(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; this.max_indexes = max_indexes; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_indexes", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_indexes", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_indexes_args args = new get_indexes_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -4683,35 +3918,36 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public List getResult() throws NoSuchObjectException, MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public List getResult() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_indexes(); } } - public void get_index_names(String db_name, String tbl_name, short max_indexes, AsyncMethodCallback resultHandler) throws TException { + public void get_index_names(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_index_names_call method_call = new get_index_names_call(db_name, tbl_name, max_indexes, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_index_names_call method_call = new get_index_names_call(db_name, tbl_name, max_indexes, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_index_names_call extends TAsyncMethodCall { + public static class get_index_names_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private short max_indexes; - public get_index_names_call(String db_name, String tbl_name, short max_indexes, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_index_names_call(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; this.max_indexes = max_indexes; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_index_names", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_index_names", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_index_names_args args = new get_index_names_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); @@ -4720,120 +3956,124 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public List getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public List getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_index_names(); } } - public void create_role(Role role, AsyncMethodCallback resultHandler) throws TException { + public void create_role(Role role, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - create_role_call method_call = new create_role_call(role, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + create_role_call method_call = new create_role_call(role, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class create_role_call extends TAsyncMethodCall { + public static class create_role_call extends org.apache.thrift.async.TAsyncMethodCall { private Role role; - public create_role_call(Role role, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public create_role_call(Role role, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.role = role; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("create_role", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("create_role", org.apache.thrift.protocol.TMessageType.CALL, 0)); create_role_args args = new create_role_args(); args.setRole(role); args.write(prot); prot.writeMessageEnd(); } - public boolean getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public boolean getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_create_role(); } } - public void drop_role(String role_name, AsyncMethodCallback resultHandler) throws TException { + public void drop_role(String role_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - drop_role_call method_call = new drop_role_call(role_name, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + drop_role_call method_call = new drop_role_call(role_name, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class drop_role_call extends TAsyncMethodCall { + public static class drop_role_call extends org.apache.thrift.async.TAsyncMethodCall { private String role_name; - public drop_role_call(String role_name, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public drop_role_call(String role_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.role_name = role_name; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("drop_role", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("drop_role", org.apache.thrift.protocol.TMessageType.CALL, 0)); drop_role_args args = new drop_role_args(); args.setRole_name(role_name); args.write(prot); prot.writeMessageEnd(); } - public boolean getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public boolean getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_drop_role(); } } - public void get_role_names(AsyncMethodCallback resultHandler) throws TException { + public void get_role_names(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_role_names_call method_call = new get_role_names_call(resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_role_names_call method_call = new get_role_names_call(resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_role_names_call extends TAsyncMethodCall { - public get_role_names_call(AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public static class get_role_names_call extends org.apache.thrift.async.TAsyncMethodCall { + public get_role_names_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_role_names", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_role_names", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_role_names_args args = new get_role_names_args(); args.write(prot); prot.writeMessageEnd(); } - public List getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public List getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_role_names(); } } - public void grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option, AsyncMethodCallback resultHandler) throws TException { + public void grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - grant_role_call method_call = new grant_role_call(role_name, principal_name, principal_type, grantor, grantorType, grant_option, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + grant_role_call method_call = new grant_role_call(role_name, principal_name, principal_type, grantor, grantorType, grant_option, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class grant_role_call extends TAsyncMethodCall { + public static class grant_role_call extends org.apache.thrift.async.TAsyncMethodCall { private String role_name; private String principal_name; private PrincipalType principal_type; private String grantor; private PrincipalType grantorType; private boolean grant_option; - public grant_role_call(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public grant_role_call(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.role_name = role_name; this.principal_name = principal_name; @@ -4843,8 +4083,8 @@ public class ThriftHiveMetastore { this.grant_option = grant_option; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("grant_role", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("grant_role", org.apache.thrift.protocol.TMessageType.CALL, 0)); grant_role_args args = new grant_role_args(); args.setRole_name(role_name); args.setPrincipal_name(principal_name); @@ -4856,35 +4096,36 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public boolean getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public boolean getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_grant_role(); } } - public void revoke_role(String role_name, String principal_name, PrincipalType principal_type, AsyncMethodCallback resultHandler) throws TException { + public void revoke_role(String role_name, String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - revoke_role_call method_call = new revoke_role_call(role_name, principal_name, principal_type, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + revoke_role_call method_call = new revoke_role_call(role_name, principal_name, principal_type, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class revoke_role_call extends TAsyncMethodCall { + public static class revoke_role_call extends org.apache.thrift.async.TAsyncMethodCall { private String role_name; private String principal_name; private PrincipalType principal_type; - public revoke_role_call(String role_name, String principal_name, PrincipalType principal_type, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public revoke_role_call(String role_name, String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.role_name = role_name; this.principal_name = principal_name; this.principal_type = principal_type; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("revoke_role", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("revoke_role", org.apache.thrift.protocol.TMessageType.CALL, 0)); revoke_role_args args = new revoke_role_args(); args.setRole_name(role_name); args.setPrincipal_name(principal_name); @@ -4893,33 +4134,34 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public boolean getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public boolean getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_revoke_role(); } } - public void list_roles(String principal_name, PrincipalType principal_type, AsyncMethodCallback resultHandler) throws TException { + public void list_roles(String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - list_roles_call method_call = new list_roles_call(principal_name, principal_type, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + list_roles_call method_call = new list_roles_call(principal_name, principal_type, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class list_roles_call extends TAsyncMethodCall { + public static class list_roles_call extends org.apache.thrift.async.TAsyncMethodCall { private String principal_name; private PrincipalType principal_type; - public list_roles_call(String principal_name, PrincipalType principal_type, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public list_roles_call(String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.principal_name = principal_name; this.principal_type = principal_type; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("list_roles", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("list_roles", org.apache.thrift.protocol.TMessageType.CALL, 0)); list_roles_args args = new list_roles_args(); args.setPrincipal_name(principal_name); args.setPrincipal_type(principal_type); @@ -4927,35 +4169,36 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public List getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public List getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_list_roles(); } } - public void get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names, AsyncMethodCallback resultHandler) throws TException { + public void get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_privilege_set_call method_call = new get_privilege_set_call(hiveObject, user_name, group_names, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_privilege_set_call method_call = new get_privilege_set_call(hiveObject, user_name, group_names, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_privilege_set_call extends TAsyncMethodCall { + public static class get_privilege_set_call extends org.apache.thrift.async.TAsyncMethodCall { private HiveObjectRef hiveObject; private String user_name; private List group_names; - public get_privilege_set_call(HiveObjectRef hiveObject, String user_name, List group_names, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_privilege_set_call(HiveObjectRef hiveObject, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.hiveObject = hiveObject; this.user_name = user_name; this.group_names = group_names; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_privilege_set", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_privilege_set", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_privilege_set_args args = new get_privilege_set_args(); args.setHiveObject(hiveObject); args.setUser_name(user_name); @@ -4964,35 +4207,36 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public PrincipalPrivilegeSet getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public PrincipalPrivilegeSet getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_privilege_set(); } } - public void list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, AsyncMethodCallback resultHandler) throws TException { + public void list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - list_privileges_call method_call = new list_privileges_call(principal_name, principal_type, hiveObject, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + list_privileges_call method_call = new list_privileges_call(principal_name, principal_type, hiveObject, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class list_privileges_call extends TAsyncMethodCall { + public static class list_privileges_call extends org.apache.thrift.async.TAsyncMethodCall { private String principal_name; private PrincipalType principal_type; private HiveObjectRef hiveObject; - public list_privileges_call(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public list_privileges_call(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.principal_name = principal_name; this.principal_type = principal_type; this.hiveObject = hiveObject; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("list_privileges", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("list_privileges", org.apache.thrift.protocol.TMessageType.CALL, 0)); list_privileges_args args = new list_privileges_args(); args.setPrincipal_name(principal_name); args.setPrincipal_type(principal_type); @@ -5001,95 +4245,98 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public List getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public List getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_list_privileges(); } } - public void grant_privileges(PrivilegeBag privileges, AsyncMethodCallback resultHandler) throws TException { + public void grant_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - grant_privileges_call method_call = new grant_privileges_call(privileges, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + grant_privileges_call method_call = new grant_privileges_call(privileges, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class grant_privileges_call extends TAsyncMethodCall { + public static class grant_privileges_call extends org.apache.thrift.async.TAsyncMethodCall { private PrivilegeBag privileges; - public grant_privileges_call(PrivilegeBag privileges, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public grant_privileges_call(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.privileges = privileges; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("grant_privileges", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("grant_privileges", org.apache.thrift.protocol.TMessageType.CALL, 0)); grant_privileges_args args = new grant_privileges_args(); args.setPrivileges(privileges); args.write(prot); prot.writeMessageEnd(); } - public boolean getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public boolean getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_grant_privileges(); } } - public void revoke_privileges(PrivilegeBag privileges, AsyncMethodCallback resultHandler) throws TException { + public void revoke_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - revoke_privileges_call method_call = new revoke_privileges_call(privileges, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + revoke_privileges_call method_call = new revoke_privileges_call(privileges, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class revoke_privileges_call extends TAsyncMethodCall { + public static class revoke_privileges_call extends org.apache.thrift.async.TAsyncMethodCall { private PrivilegeBag privileges; - public revoke_privileges_call(PrivilegeBag privileges, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public revoke_privileges_call(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.privileges = privileges; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("revoke_privileges", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("revoke_privileges", org.apache.thrift.protocol.TMessageType.CALL, 0)); revoke_privileges_args args = new revoke_privileges_args(); args.setPrivileges(privileges); args.write(prot); prot.writeMessageEnd(); } - public boolean getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public boolean getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_revoke_privileges(); } } - public void get_delegation_token(String token_owner, String renewer_kerberos_principal_name, AsyncMethodCallback resultHandler) throws TException { + public void get_delegation_token(String token_owner, String renewer_kerberos_principal_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - get_delegation_token_call method_call = new get_delegation_token_call(token_owner, renewer_kerberos_principal_name, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + get_delegation_token_call method_call = new get_delegation_token_call(token_owner, renewer_kerberos_principal_name, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class get_delegation_token_call extends TAsyncMethodCall { + public static class get_delegation_token_call extends org.apache.thrift.async.TAsyncMethodCall { private String token_owner; private String renewer_kerberos_principal_name; - public get_delegation_token_call(String token_owner, String renewer_kerberos_principal_name, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public get_delegation_token_call(String token_owner, String renewer_kerberos_principal_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.token_owner = token_owner; this.renewer_kerberos_principal_name = renewer_kerberos_principal_name; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("get_delegation_token", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_delegation_token", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_delegation_token_args args = new get_delegation_token_args(); args.setToken_owner(token_owner); args.setRenewer_kerberos_principal_name(renewer_kerberos_principal_name); @@ -5097,469 +4344,325 @@ public class ThriftHiveMetastore { prot.writeMessageEnd(); } - public String getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public String getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_delegation_token(); } } - public void renew_delegation_token(String token_str_form, AsyncMethodCallback resultHandler) throws TException { + public void renew_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - renew_delegation_token_call method_call = new renew_delegation_token_call(token_str_form, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + renew_delegation_token_call method_call = new renew_delegation_token_call(token_str_form, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class renew_delegation_token_call extends TAsyncMethodCall { + public static class renew_delegation_token_call extends org.apache.thrift.async.TAsyncMethodCall { private String token_str_form; - public renew_delegation_token_call(String token_str_form, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public renew_delegation_token_call(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.token_str_form = token_str_form; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("renew_delegation_token", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("renew_delegation_token", org.apache.thrift.protocol.TMessageType.CALL, 0)); renew_delegation_token_args args = new renew_delegation_token_args(); args.setToken_str_form(token_str_form); args.write(prot); prot.writeMessageEnd(); } - public long getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public long getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_renew_delegation_token(); } } - public void cancel_delegation_token(String token_str_form, AsyncMethodCallback resultHandler) throws TException { + public void cancel_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - cancel_delegation_token_call method_call = new cancel_delegation_token_call(token_str_form, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + cancel_delegation_token_call method_call = new cancel_delegation_token_call(token_str_form, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class cancel_delegation_token_call extends TAsyncMethodCall { + public static class cancel_delegation_token_call extends org.apache.thrift.async.TAsyncMethodCall { private String token_str_form; - public cancel_delegation_token_call(String token_str_form, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public cancel_delegation_token_call(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.token_str_form = token_str_form; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("cancel_delegation_token", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("cancel_delegation_token", org.apache.thrift.protocol.TMessageType.CALL, 0)); cancel_delegation_token_args args = new cancel_delegation_token_args(); args.setToken_str_form(token_str_form); args.write(prot); prot.writeMessageEnd(); } - public void getResult() throws MetaException, TException { - if (getState() != State.RESPONSE_READ) { + public void getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_cancel_delegation_token(); } } } - public static class Processor extends com.facebook.fb303.FacebookService.Processor implements TProcessor { + public static class Processor extends com.facebook.fb303.FacebookService.Processor implements org.apache.thrift.TProcessor { private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName()); - public Processor(Iface iface) - { - super(iface); - iface_ = iface; - processMap_.put("create_database", new create_database()); - processMap_.put("get_database", new get_database()); - processMap_.put("drop_database", new drop_database()); - processMap_.put("get_databases", new get_databases()); - processMap_.put("get_all_databases", new get_all_databases()); - processMap_.put("alter_database", new alter_database()); - processMap_.put("get_type", new get_type()); - processMap_.put("create_type", new create_type()); - processMap_.put("drop_type", new drop_type()); - processMap_.put("get_type_all", new get_type_all()); - processMap_.put("get_fields", new get_fields()); - processMap_.put("get_schema", new get_schema()); - processMap_.put("create_table", new create_table()); - processMap_.put("drop_table", new drop_table()); - processMap_.put("get_tables", new get_tables()); - processMap_.put("get_all_tables", new get_all_tables()); - processMap_.put("get_table", new get_table()); - processMap_.put("get_table_objects_by_name", new get_table_objects_by_name()); - processMap_.put("get_table_names_by_filter", new get_table_names_by_filter()); - processMap_.put("alter_table", new alter_table()); - processMap_.put("add_partition", new add_partition()); - processMap_.put("add_partitions", new add_partitions()); - processMap_.put("append_partition", new append_partition()); - processMap_.put("append_partition_by_name", new append_partition_by_name()); - processMap_.put("drop_partition", new drop_partition()); - processMap_.put("drop_partition_by_name", new drop_partition_by_name()); - processMap_.put("get_partition", new get_partition()); - processMap_.put("get_partition_with_auth", new get_partition_with_auth()); - processMap_.put("get_partition_by_name", new get_partition_by_name()); - processMap_.put("get_partitions", new get_partitions()); - processMap_.put("get_partitions_with_auth", new get_partitions_with_auth()); - processMap_.put("get_partition_names", new get_partition_names()); - processMap_.put("get_partitions_ps", new get_partitions_ps()); - processMap_.put("get_partitions_ps_with_auth", new get_partitions_ps_with_auth()); - processMap_.put("get_partition_names_ps", new get_partition_names_ps()); - processMap_.put("get_partitions_by_filter", new get_partitions_by_filter()); - processMap_.put("get_partitions_by_names", new get_partitions_by_names()); - processMap_.put("alter_partition", new alter_partition()); - processMap_.put("get_config_value", new get_config_value()); - processMap_.put("partition_name_to_vals", new partition_name_to_vals()); - processMap_.put("partition_name_to_spec", new partition_name_to_spec()); - processMap_.put("markPartitionForEvent", new markPartitionForEvent()); - processMap_.put("isPartitionMarkedForEvent", new isPartitionMarkedForEvent()); - processMap_.put("add_index", new add_index()); - processMap_.put("alter_index", new alter_index()); - processMap_.put("drop_index_by_name", new drop_index_by_name()); - processMap_.put("get_index_by_name", new get_index_by_name()); - processMap_.put("get_indexes", new get_indexes()); - processMap_.put("get_index_names", new get_index_names()); - processMap_.put("create_role", new create_role()); - processMap_.put("drop_role", new drop_role()); - processMap_.put("get_role_names", new get_role_names()); - processMap_.put("grant_role", new grant_role()); - processMap_.put("revoke_role", new revoke_role()); - processMap_.put("list_roles", new list_roles()); - processMap_.put("get_privilege_set", new get_privilege_set()); - processMap_.put("list_privileges", new list_privileges()); - processMap_.put("grant_privileges", new grant_privileges()); - processMap_.put("revoke_privileges", new revoke_privileges()); - processMap_.put("get_delegation_token", new get_delegation_token()); - processMap_.put("renew_delegation_token", new renew_delegation_token()); - processMap_.put("cancel_delegation_token", new cancel_delegation_token()); - } - - private Iface iface_; - - public boolean process(TProtocol iprot, TProtocol oprot) throws TException - { - TMessage msg = iprot.readMessageBegin(); - ProcessFunction fn = processMap_.get(msg.name); - if (fn == null) { - TProtocolUtil.skip(iprot, TType.STRUCT); - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.UNKNOWN_METHOD, "Invalid method name: '"+msg.name+"'"); - oprot.writeMessageBegin(new TMessage(msg.name, TMessageType.EXCEPTION, msg.seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return true; - } - fn.process(msg.seqid, iprot, oprot); - return true; - } - - private class create_database implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - create_database_args args = new create_database_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("create_database", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + public Processor(I iface) { + super(iface, getProcessMap(new HashMap>())); + } + + protected Processor(I iface, Map> processMap) { + super(iface, getProcessMap(processMap)); + } + + private static Map> getProcessMap(Map> processMap) { + processMap.put("create_database", new create_database()); + processMap.put("get_database", new get_database()); + processMap.put("drop_database", new drop_database()); + processMap.put("get_databases", new get_databases()); + processMap.put("get_all_databases", new get_all_databases()); + processMap.put("alter_database", new alter_database()); + processMap.put("get_type", new get_type()); + processMap.put("create_type", new create_type()); + processMap.put("drop_type", new drop_type()); + processMap.put("get_type_all", new get_type_all()); + processMap.put("get_fields", new get_fields()); + processMap.put("get_schema", new get_schema()); + processMap.put("create_table", new create_table()); + processMap.put("drop_table", new drop_table()); + processMap.put("get_tables", new get_tables()); + processMap.put("get_all_tables", new get_all_tables()); + processMap.put("get_table", new get_table()); + processMap.put("get_table_objects_by_name", new get_table_objects_by_name()); + processMap.put("get_table_names_by_filter", new get_table_names_by_filter()); + processMap.put("alter_table", new alter_table()); + processMap.put("add_partition", new add_partition()); + processMap.put("add_partitions", new add_partitions()); + processMap.put("append_partition", new append_partition()); + processMap.put("append_partition_by_name", new append_partition_by_name()); + processMap.put("drop_partition", new drop_partition()); + processMap.put("drop_partition_by_name", new drop_partition_by_name()); + processMap.put("get_partition", new get_partition()); + processMap.put("get_partition_with_auth", new get_partition_with_auth()); + processMap.put("get_partition_by_name", new get_partition_by_name()); + processMap.put("get_partitions", new get_partitions()); + processMap.put("get_partitions_with_auth", new get_partitions_with_auth()); + processMap.put("get_partition_names", new get_partition_names()); + processMap.put("get_partitions_ps", new get_partitions_ps()); + processMap.put("get_partitions_ps_with_auth", new get_partitions_ps_with_auth()); + processMap.put("get_partition_names_ps", new get_partition_names_ps()); + processMap.put("get_partitions_by_filter", new get_partitions_by_filter()); + processMap.put("get_partitions_by_names", new get_partitions_by_names()); + processMap.put("alter_partition", new alter_partition()); + processMap.put("get_config_value", new get_config_value()); + processMap.put("partition_name_to_vals", new partition_name_to_vals()); + processMap.put("partition_name_to_spec", new partition_name_to_spec()); + processMap.put("markPartitionForEvent", new markPartitionForEvent()); + processMap.put("isPartitionMarkedForEvent", new isPartitionMarkedForEvent()); + processMap.put("add_index", new add_index()); + processMap.put("alter_index", new alter_index()); + processMap.put("drop_index_by_name", new drop_index_by_name()); + processMap.put("get_index_by_name", new get_index_by_name()); + processMap.put("get_indexes", new get_indexes()); + processMap.put("get_index_names", new get_index_names()); + processMap.put("create_role", new create_role()); + processMap.put("drop_role", new drop_role()); + processMap.put("get_role_names", new get_role_names()); + processMap.put("grant_role", new grant_role()); + processMap.put("revoke_role", new revoke_role()); + processMap.put("list_roles", new list_roles()); + processMap.put("get_privilege_set", new get_privilege_set()); + processMap.put("list_privileges", new list_privileges()); + processMap.put("grant_privileges", new grant_privileges()); + processMap.put("revoke_privileges", new revoke_privileges()); + processMap.put("get_delegation_token", new get_delegation_token()); + processMap.put("renew_delegation_token", new renew_delegation_token()); + processMap.put("cancel_delegation_token", new cancel_delegation_token()); + return processMap; + } + + private static class create_database extends org.apache.thrift.ProcessFunction { + public create_database() { + super("create_database"); + } + + protected create_database_args getEmptyArgsInstance() { + return new create_database_args(); + } + + protected create_database_result getResult(I iface, create_database_args args) throws org.apache.thrift.TException { create_database_result result = new create_database_result(); try { - iface_.create_database(args.database); + iface.create_database(args.database); } catch (AlreadyExistsException o1) { result.o1 = o1; } catch (InvalidObjectException o2) { result.o2 = o2; } catch (MetaException o3) { result.o3 = o3; - } catch (Throwable th) { - LOGGER.error("Internal error processing create_database", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing create_database"); - oprot.writeMessageBegin(new TMessage("create_database", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("create_database", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_database implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_database_args args = new get_database_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_database", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_database extends org.apache.thrift.ProcessFunction { + public get_database() { + super("get_database"); + } + + protected get_database_args getEmptyArgsInstance() { + return new get_database_args(); + } + + protected get_database_result getResult(I iface, get_database_args args) throws org.apache.thrift.TException { get_database_result result = new get_database_result(); try { - result.success = iface_.get_database(args.name); + result.success = iface.get_database(args.name); } catch (NoSuchObjectException o1) { result.o1 = o1; } catch (MetaException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_database", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_database"); - oprot.writeMessageBegin(new TMessage("get_database", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_database", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class drop_database implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - drop_database_args args = new drop_database_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("drop_database", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class drop_database extends org.apache.thrift.ProcessFunction { + public drop_database() { + super("drop_database"); + } + + protected drop_database_args getEmptyArgsInstance() { + return new drop_database_args(); + } + + protected drop_database_result getResult(I iface, drop_database_args args) throws org.apache.thrift.TException { drop_database_result result = new drop_database_result(); try { - iface_.drop_database(args.name, args.deleteData, args.cascade); + iface.drop_database(args.name, args.deleteData, args.cascade); } catch (NoSuchObjectException o1) { result.o1 = o1; } catch (InvalidOperationException o2) { result.o2 = o2; } catch (MetaException o3) { result.o3 = o3; - } catch (Throwable th) { - LOGGER.error("Internal error processing drop_database", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing drop_database"); - oprot.writeMessageBegin(new TMessage("drop_database", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("drop_database", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_databases implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_databases_args args = new get_databases_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_databases", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_databases extends org.apache.thrift.ProcessFunction { + public get_databases() { + super("get_databases"); + } + + protected get_databases_args getEmptyArgsInstance() { + return new get_databases_args(); + } + + protected get_databases_result getResult(I iface, get_databases_args args) throws org.apache.thrift.TException { get_databases_result result = new get_databases_result(); try { - result.success = iface_.get_databases(args.pattern); + result.success = iface.get_databases(args.pattern); } catch (MetaException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_databases", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_databases"); - oprot.writeMessageBegin(new TMessage("get_databases", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_databases", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_all_databases implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_all_databases_args args = new get_all_databases_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_all_databases", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_all_databases extends org.apache.thrift.ProcessFunction { + public get_all_databases() { + super("get_all_databases"); + } + + protected get_all_databases_args getEmptyArgsInstance() { + return new get_all_databases_args(); + } + + protected get_all_databases_result getResult(I iface, get_all_databases_args args) throws org.apache.thrift.TException { get_all_databases_result result = new get_all_databases_result(); try { - result.success = iface_.get_all_databases(); + result.success = iface.get_all_databases(); } catch (MetaException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_all_databases", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_all_databases"); - oprot.writeMessageBegin(new TMessage("get_all_databases", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_all_databases", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class alter_database implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - alter_database_args args = new alter_database_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("alter_database", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class alter_database extends org.apache.thrift.ProcessFunction { + public alter_database() { + super("alter_database"); + } + + protected alter_database_args getEmptyArgsInstance() { + return new alter_database_args(); + } + + protected alter_database_result getResult(I iface, alter_database_args args) throws org.apache.thrift.TException { alter_database_result result = new alter_database_result(); try { - iface_.alter_database(args.dbname, args.db); + iface.alter_database(args.dbname, args.db); } catch (MetaException o1) { result.o1 = o1; } catch (NoSuchObjectException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing alter_database", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing alter_database"); - oprot.writeMessageBegin(new TMessage("alter_database", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("alter_database", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_type implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_type_args args = new get_type_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_type", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_type extends org.apache.thrift.ProcessFunction { + public get_type() { + super("get_type"); + } + + protected get_type_args getEmptyArgsInstance() { + return new get_type_args(); + } + + protected get_type_result getResult(I iface, get_type_args args) throws org.apache.thrift.TException { get_type_result result = new get_type_result(); try { - result.success = iface_.get_type(args.name); + result.success = iface.get_type(args.name); } catch (MetaException o1) { result.o1 = o1; } catch (NoSuchObjectException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_type", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_type"); - oprot.writeMessageBegin(new TMessage("get_type", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_type", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class create_type implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - create_type_args args = new create_type_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("create_type", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class create_type extends org.apache.thrift.ProcessFunction { + public create_type() { + super("create_type"); + } + + protected create_type_args getEmptyArgsInstance() { + return new create_type_args(); + } + + protected create_type_result getResult(I iface, create_type_args args) throws org.apache.thrift.TException { create_type_result result = new create_type_result(); try { - result.success = iface_.create_type(args.type); + result.success = iface.create_type(args.type); result.setSuccessIsSet(true); } catch (AlreadyExistsException o1) { result.o1 = o1; @@ -5567,205 +4670,115 @@ public class ThriftHiveMetastore { result.o2 = o2; } catch (MetaException o3) { result.o3 = o3; - } catch (Throwable th) { - LOGGER.error("Internal error processing create_type", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing create_type"); - oprot.writeMessageBegin(new TMessage("create_type", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("create_type", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class drop_type implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - drop_type_args args = new drop_type_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("drop_type", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class drop_type extends org.apache.thrift.ProcessFunction { + public drop_type() { + super("drop_type"); + } + + protected drop_type_args getEmptyArgsInstance() { + return new drop_type_args(); + } + + protected drop_type_result getResult(I iface, drop_type_args args) throws org.apache.thrift.TException { drop_type_result result = new drop_type_result(); try { - result.success = iface_.drop_type(args.type); + result.success = iface.drop_type(args.type); result.setSuccessIsSet(true); } catch (MetaException o1) { result.o1 = o1; } catch (NoSuchObjectException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing drop_type", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing drop_type"); - oprot.writeMessageBegin(new TMessage("drop_type", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("drop_type", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_type_all implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_type_all_args args = new get_type_all_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_type_all", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_type_all extends org.apache.thrift.ProcessFunction { + public get_type_all() { + super("get_type_all"); + } + + protected get_type_all_args getEmptyArgsInstance() { + return new get_type_all_args(); + } + + protected get_type_all_result getResult(I iface, get_type_all_args args) throws org.apache.thrift.TException { get_type_all_result result = new get_type_all_result(); try { - result.success = iface_.get_type_all(args.name); + result.success = iface.get_type_all(args.name); } catch (MetaException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_type_all", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_type_all"); - oprot.writeMessageBegin(new TMessage("get_type_all", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_type_all", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_fields implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_fields_args args = new get_fields_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_fields", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_fields extends org.apache.thrift.ProcessFunction { + public get_fields() { + super("get_fields"); + } + + protected get_fields_args getEmptyArgsInstance() { + return new get_fields_args(); + } + + protected get_fields_result getResult(I iface, get_fields_args args) throws org.apache.thrift.TException { get_fields_result result = new get_fields_result(); try { - result.success = iface_.get_fields(args.db_name, args.table_name); + result.success = iface.get_fields(args.db_name, args.table_name); } catch (MetaException o1) { result.o1 = o1; } catch (UnknownTableException o2) { result.o2 = o2; } catch (UnknownDBException o3) { result.o3 = o3; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_fields", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_fields"); - oprot.writeMessageBegin(new TMessage("get_fields", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_fields", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_schema implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_schema_args args = new get_schema_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_schema", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_schema extends org.apache.thrift.ProcessFunction { + public get_schema() { + super("get_schema"); + } + + protected get_schema_args getEmptyArgsInstance() { + return new get_schema_args(); + } + + protected get_schema_result getResult(I iface, get_schema_args args) throws org.apache.thrift.TException { get_schema_result result = new get_schema_result(); try { - result.success = iface_.get_schema(args.db_name, args.table_name); + result.success = iface.get_schema(args.db_name, args.table_name); } catch (MetaException o1) { result.o1 = o1; } catch (UnknownTableException o2) { result.o2 = o2; } catch (UnknownDBException o3) { result.o3 = o3; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_schema", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_schema"); - oprot.writeMessageBegin(new TMessage("get_schema", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_schema", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class create_table implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - create_table_args args = new create_table_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("create_table", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class create_table extends org.apache.thrift.ProcessFunction { + public create_table() { + super("create_table"); + } + + protected create_table_args getEmptyArgsInstance() { + return new create_table_args(); + } + + protected create_table_result getResult(I iface, create_table_args args) throws org.apache.thrift.TException { create_table_result result = new create_table_result(); try { - iface_.create_table(args.tbl); + iface.create_table(args.tbl); } catch (AlreadyExistsException o1) { result.o1 = o1; } catch (InvalidObjectException o2) { @@ -5774,364 +4787,202 @@ public class ThriftHiveMetastore { result.o3 = o3; } catch (NoSuchObjectException o4) { result.o4 = o4; - } catch (Throwable th) { - LOGGER.error("Internal error processing create_table", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing create_table"); - oprot.writeMessageBegin(new TMessage("create_table", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("create_table", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class drop_table implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - drop_table_args args = new drop_table_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("drop_table", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class drop_table extends org.apache.thrift.ProcessFunction { + public drop_table() { + super("drop_table"); + } + + protected drop_table_args getEmptyArgsInstance() { + return new drop_table_args(); + } + + protected drop_table_result getResult(I iface, drop_table_args args) throws org.apache.thrift.TException { drop_table_result result = new drop_table_result(); try { - iface_.drop_table(args.dbname, args.name, args.deleteData); + iface.drop_table(args.dbname, args.name, args.deleteData); } catch (NoSuchObjectException o1) { result.o1 = o1; } catch (MetaException o3) { result.o3 = o3; - } catch (Throwable th) { - LOGGER.error("Internal error processing drop_table", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing drop_table"); - oprot.writeMessageBegin(new TMessage("drop_table", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("drop_table", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_tables implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_tables_args args = new get_tables_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_tables", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_tables extends org.apache.thrift.ProcessFunction { + public get_tables() { + super("get_tables"); + } + + protected get_tables_args getEmptyArgsInstance() { + return new get_tables_args(); + } + + protected get_tables_result getResult(I iface, get_tables_args args) throws org.apache.thrift.TException { get_tables_result result = new get_tables_result(); try { - result.success = iface_.get_tables(args.db_name, args.pattern); + result.success = iface.get_tables(args.db_name, args.pattern); } catch (MetaException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_tables", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_tables"); - oprot.writeMessageBegin(new TMessage("get_tables", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_tables", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_all_tables implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_all_tables_args args = new get_all_tables_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_all_tables", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_all_tables extends org.apache.thrift.ProcessFunction { + public get_all_tables() { + super("get_all_tables"); + } + + protected get_all_tables_args getEmptyArgsInstance() { + return new get_all_tables_args(); + } + + protected get_all_tables_result getResult(I iface, get_all_tables_args args) throws org.apache.thrift.TException { get_all_tables_result result = new get_all_tables_result(); try { - result.success = iface_.get_all_tables(args.db_name); + result.success = iface.get_all_tables(args.db_name); } catch (MetaException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_all_tables", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_all_tables"); - oprot.writeMessageBegin(new TMessage("get_all_tables", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_all_tables", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_table implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_table_args args = new get_table_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_table", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_table extends org.apache.thrift.ProcessFunction { + public get_table() { + super("get_table"); + } + + protected get_table_args getEmptyArgsInstance() { + return new get_table_args(); + } + + protected get_table_result getResult(I iface, get_table_args args) throws org.apache.thrift.TException { get_table_result result = new get_table_result(); try { - result.success = iface_.get_table(args.dbname, args.tbl_name); + result.success = iface.get_table(args.dbname, args.tbl_name); } catch (MetaException o1) { result.o1 = o1; } catch (NoSuchObjectException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_table", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_table"); - oprot.writeMessageBegin(new TMessage("get_table", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_table", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_table_objects_by_name implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_table_objects_by_name_args args = new get_table_objects_by_name_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_table_objects_by_name", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_table_objects_by_name extends org.apache.thrift.ProcessFunction { + public get_table_objects_by_name() { + super("get_table_objects_by_name"); + } + + protected get_table_objects_by_name_args getEmptyArgsInstance() { + return new get_table_objects_by_name_args(); + } + + protected get_table_objects_by_name_result getResult(I iface, get_table_objects_by_name_args args) throws org.apache.thrift.TException { get_table_objects_by_name_result result = new get_table_objects_by_name_result(); try { - result.success = iface_.get_table_objects_by_name(args.dbname, args.tbl_names); + result.success = iface.get_table_objects_by_name(args.dbname, args.tbl_names); } catch (MetaException o1) { result.o1 = o1; } catch (InvalidOperationException o2) { result.o2 = o2; } catch (UnknownDBException o3) { result.o3 = o3; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_table_objects_by_name", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_table_objects_by_name"); - oprot.writeMessageBegin(new TMessage("get_table_objects_by_name", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_table_objects_by_name", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_table_names_by_filter implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_table_names_by_filter_args args = new get_table_names_by_filter_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_table_names_by_filter", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_table_names_by_filter extends org.apache.thrift.ProcessFunction { + public get_table_names_by_filter() { + super("get_table_names_by_filter"); + } + + protected get_table_names_by_filter_args getEmptyArgsInstance() { + return new get_table_names_by_filter_args(); + } + + protected get_table_names_by_filter_result getResult(I iface, get_table_names_by_filter_args args) throws org.apache.thrift.TException { get_table_names_by_filter_result result = new get_table_names_by_filter_result(); try { - result.success = iface_.get_table_names_by_filter(args.dbname, args.filter, args.max_tables); + result.success = iface.get_table_names_by_filter(args.dbname, args.filter, args.max_tables); } catch (MetaException o1) { result.o1 = o1; } catch (InvalidOperationException o2) { result.o2 = o2; } catch (UnknownDBException o3) { result.o3 = o3; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_table_names_by_filter", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_table_names_by_filter"); - oprot.writeMessageBegin(new TMessage("get_table_names_by_filter", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_table_names_by_filter", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class alter_table implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - alter_table_args args = new alter_table_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("alter_table", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class alter_table extends org.apache.thrift.ProcessFunction { + public alter_table() { + super("alter_table"); + } + + protected alter_table_args getEmptyArgsInstance() { + return new alter_table_args(); + } + + protected alter_table_result getResult(I iface, alter_table_args args) throws org.apache.thrift.TException { alter_table_result result = new alter_table_result(); try { - iface_.alter_table(args.dbname, args.tbl_name, args.new_tbl); + iface.alter_table(args.dbname, args.tbl_name, args.new_tbl); } catch (InvalidOperationException o1) { result.o1 = o1; } catch (MetaException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing alter_table", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing alter_table"); - oprot.writeMessageBegin(new TMessage("alter_table", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("alter_table", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class add_partition implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - add_partition_args args = new add_partition_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("add_partition", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class add_partition extends org.apache.thrift.ProcessFunction { + public add_partition() { + super("add_partition"); + } + + protected add_partition_args getEmptyArgsInstance() { + return new add_partition_args(); + } + + protected add_partition_result getResult(I iface, add_partition_args args) throws org.apache.thrift.TException { add_partition_result result = new add_partition_result(); try { - result.success = iface_.add_partition(args.new_part); + result.success = iface.add_partition(args.new_part); } catch (InvalidObjectException o1) { result.o1 = o1; } catch (AlreadyExistsException o2) { result.o2 = o2; } catch (MetaException o3) { result.o3 = o3; - } catch (Throwable th) { - LOGGER.error("Internal error processing add_partition", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing add_partition"); - oprot.writeMessageBegin(new TMessage("add_partition", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("add_partition", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class add_partitions implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - add_partitions_args args = new add_partitions_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("add_partitions", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class add_partitions extends org.apache.thrift.ProcessFunction { + public add_partitions() { + super("add_partitions"); + } + + protected add_partitions_args getEmptyArgsInstance() { + return new add_partitions_args(); + } + + protected add_partitions_result getResult(I iface, add_partitions_args args) throws org.apache.thrift.TException { add_partitions_result result = new add_partitions_result(); try { - result.success = iface_.add_partitions(args.new_parts); + result.success = iface.add_partitions(args.new_parts); result.setSuccessIsSet(true); } catch (InvalidObjectException o1) { result.o1 = o1; @@ -6139,796 +4990,436 @@ public class ThriftHiveMetastore { result.o2 = o2; } catch (MetaException o3) { result.o3 = o3; - } catch (Throwable th) { - LOGGER.error("Internal error processing add_partitions", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing add_partitions"); - oprot.writeMessageBegin(new TMessage("add_partitions", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("add_partitions", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class append_partition implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - append_partition_args args = new append_partition_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("append_partition", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class append_partition extends org.apache.thrift.ProcessFunction { + public append_partition() { + super("append_partition"); + } + + protected append_partition_args getEmptyArgsInstance() { + return new append_partition_args(); + } + + protected append_partition_result getResult(I iface, append_partition_args args) throws org.apache.thrift.TException { append_partition_result result = new append_partition_result(); try { - result.success = iface_.append_partition(args.db_name, args.tbl_name, args.part_vals); + result.success = iface.append_partition(args.db_name, args.tbl_name, args.part_vals); } catch (InvalidObjectException o1) { result.o1 = o1; } catch (AlreadyExistsException o2) { result.o2 = o2; } catch (MetaException o3) { result.o3 = o3; - } catch (Throwable th) { - LOGGER.error("Internal error processing append_partition", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing append_partition"); - oprot.writeMessageBegin(new TMessage("append_partition", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("append_partition", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class append_partition_by_name implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - append_partition_by_name_args args = new append_partition_by_name_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("append_partition_by_name", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class append_partition_by_name extends org.apache.thrift.ProcessFunction { + public append_partition_by_name() { + super("append_partition_by_name"); + } + + protected append_partition_by_name_args getEmptyArgsInstance() { + return new append_partition_by_name_args(); + } + + protected append_partition_by_name_result getResult(I iface, append_partition_by_name_args args) throws org.apache.thrift.TException { append_partition_by_name_result result = new append_partition_by_name_result(); try { - result.success = iface_.append_partition_by_name(args.db_name, args.tbl_name, args.part_name); + result.success = iface.append_partition_by_name(args.db_name, args.tbl_name, args.part_name); } catch (InvalidObjectException o1) { result.o1 = o1; } catch (AlreadyExistsException o2) { result.o2 = o2; } catch (MetaException o3) { result.o3 = o3; - } catch (Throwable th) { - LOGGER.error("Internal error processing append_partition_by_name", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing append_partition_by_name"); - oprot.writeMessageBegin(new TMessage("append_partition_by_name", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("append_partition_by_name", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class drop_partition implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - drop_partition_args args = new drop_partition_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("drop_partition", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class drop_partition extends org.apache.thrift.ProcessFunction { + public drop_partition() { + super("drop_partition"); + } + + protected drop_partition_args getEmptyArgsInstance() { + return new drop_partition_args(); + } + + protected drop_partition_result getResult(I iface, drop_partition_args args) throws org.apache.thrift.TException { drop_partition_result result = new drop_partition_result(); try { - result.success = iface_.drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData); + result.success = iface.drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData); result.setSuccessIsSet(true); } catch (NoSuchObjectException o1) { result.o1 = o1; } catch (MetaException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing drop_partition", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing drop_partition"); - oprot.writeMessageBegin(new TMessage("drop_partition", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("drop_partition", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class drop_partition_by_name implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - drop_partition_by_name_args args = new drop_partition_by_name_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("drop_partition_by_name", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class drop_partition_by_name extends org.apache.thrift.ProcessFunction { + public drop_partition_by_name() { + super("drop_partition_by_name"); + } + + protected drop_partition_by_name_args getEmptyArgsInstance() { + return new drop_partition_by_name_args(); + } + + protected drop_partition_by_name_result getResult(I iface, drop_partition_by_name_args args) throws org.apache.thrift.TException { drop_partition_by_name_result result = new drop_partition_by_name_result(); try { - result.success = iface_.drop_partition_by_name(args.db_name, args.tbl_name, args.part_name, args.deleteData); + result.success = iface.drop_partition_by_name(args.db_name, args.tbl_name, args.part_name, args.deleteData); result.setSuccessIsSet(true); } catch (NoSuchObjectException o1) { result.o1 = o1; } catch (MetaException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing drop_partition_by_name", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing drop_partition_by_name"); - oprot.writeMessageBegin(new TMessage("drop_partition_by_name", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("drop_partition_by_name", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_partition implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_partition_args args = new get_partition_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_partition", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_partition extends org.apache.thrift.ProcessFunction { + public get_partition() { + super("get_partition"); + } + + protected get_partition_args getEmptyArgsInstance() { + return new get_partition_args(); + } + + protected get_partition_result getResult(I iface, get_partition_args args) throws org.apache.thrift.TException { get_partition_result result = new get_partition_result(); try { - result.success = iface_.get_partition(args.db_name, args.tbl_name, args.part_vals); + result.success = iface.get_partition(args.db_name, args.tbl_name, args.part_vals); } catch (MetaException o1) { result.o1 = o1; } catch (NoSuchObjectException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_partition", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_partition"); - oprot.writeMessageBegin(new TMessage("get_partition", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_partition", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_partition_with_auth implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_partition_with_auth_args args = new get_partition_with_auth_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_partition_with_auth", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_partition_with_auth extends org.apache.thrift.ProcessFunction { + public get_partition_with_auth() { + super("get_partition_with_auth"); + } + + protected get_partition_with_auth_args getEmptyArgsInstance() { + return new get_partition_with_auth_args(); + } + + protected get_partition_with_auth_result getResult(I iface, get_partition_with_auth_args args) throws org.apache.thrift.TException { get_partition_with_auth_result result = new get_partition_with_auth_result(); try { - result.success = iface_.get_partition_with_auth(args.db_name, args.tbl_name, args.part_vals, args.user_name, args.group_names); + result.success = iface.get_partition_with_auth(args.db_name, args.tbl_name, args.part_vals, args.user_name, args.group_names); } catch (MetaException o1) { result.o1 = o1; } catch (NoSuchObjectException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_partition_with_auth", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_partition_with_auth"); - oprot.writeMessageBegin(new TMessage("get_partition_with_auth", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_partition_with_auth", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_partition_by_name implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_partition_by_name_args args = new get_partition_by_name_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_partition_by_name", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_partition_by_name extends org.apache.thrift.ProcessFunction { + public get_partition_by_name() { + super("get_partition_by_name"); + } + + protected get_partition_by_name_args getEmptyArgsInstance() { + return new get_partition_by_name_args(); + } + + protected get_partition_by_name_result getResult(I iface, get_partition_by_name_args args) throws org.apache.thrift.TException { get_partition_by_name_result result = new get_partition_by_name_result(); try { - result.success = iface_.get_partition_by_name(args.db_name, args.tbl_name, args.part_name); + result.success = iface.get_partition_by_name(args.db_name, args.tbl_name, args.part_name); } catch (MetaException o1) { result.o1 = o1; } catch (NoSuchObjectException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_partition_by_name", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_partition_by_name"); - oprot.writeMessageBegin(new TMessage("get_partition_by_name", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_partition_by_name", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_partitions implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_partitions_args args = new get_partitions_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_partitions", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_partitions extends org.apache.thrift.ProcessFunction { + public get_partitions() { + super("get_partitions"); + } + + protected get_partitions_args getEmptyArgsInstance() { + return new get_partitions_args(); + } + + protected get_partitions_result getResult(I iface, get_partitions_args args) throws org.apache.thrift.TException { get_partitions_result result = new get_partitions_result(); try { - result.success = iface_.get_partitions(args.db_name, args.tbl_name, args.max_parts); + result.success = iface.get_partitions(args.db_name, args.tbl_name, args.max_parts); } catch (NoSuchObjectException o1) { result.o1 = o1; } catch (MetaException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_partitions", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_partitions"); - oprot.writeMessageBegin(new TMessage("get_partitions", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_partitions", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_partitions_with_auth implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_partitions_with_auth_args args = new get_partitions_with_auth_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_partitions_with_auth", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_partitions_with_auth extends org.apache.thrift.ProcessFunction { + public get_partitions_with_auth() { + super("get_partitions_with_auth"); + } + + protected get_partitions_with_auth_args getEmptyArgsInstance() { + return new get_partitions_with_auth_args(); + } + + protected get_partitions_with_auth_result getResult(I iface, get_partitions_with_auth_args args) throws org.apache.thrift.TException { get_partitions_with_auth_result result = new get_partitions_with_auth_result(); try { - result.success = iface_.get_partitions_with_auth(args.db_name, args.tbl_name, args.max_parts, args.user_name, args.group_names); + result.success = iface.get_partitions_with_auth(args.db_name, args.tbl_name, args.max_parts, args.user_name, args.group_names); } catch (NoSuchObjectException o1) { result.o1 = o1; } catch (MetaException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_partitions_with_auth", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_partitions_with_auth"); - oprot.writeMessageBegin(new TMessage("get_partitions_with_auth", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_partitions_with_auth", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_partition_names implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_partition_names_args args = new get_partition_names_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_partition_names", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_partition_names extends org.apache.thrift.ProcessFunction { + public get_partition_names() { + super("get_partition_names"); + } + + protected get_partition_names_args getEmptyArgsInstance() { + return new get_partition_names_args(); + } + + protected get_partition_names_result getResult(I iface, get_partition_names_args args) throws org.apache.thrift.TException { get_partition_names_result result = new get_partition_names_result(); try { - result.success = iface_.get_partition_names(args.db_name, args.tbl_name, args.max_parts); + result.success = iface.get_partition_names(args.db_name, args.tbl_name, args.max_parts); } catch (MetaException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_partition_names", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_partition_names"); - oprot.writeMessageBegin(new TMessage("get_partition_names", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_partition_names", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_partitions_ps implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_partitions_ps_args args = new get_partitions_ps_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_partitions_ps", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_partitions_ps extends org.apache.thrift.ProcessFunction { + public get_partitions_ps() { + super("get_partitions_ps"); + } + + protected get_partitions_ps_args getEmptyArgsInstance() { + return new get_partitions_ps_args(); + } + + protected get_partitions_ps_result getResult(I iface, get_partitions_ps_args args) throws org.apache.thrift.TException { get_partitions_ps_result result = new get_partitions_ps_result(); try { - result.success = iface_.get_partitions_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts); + result.success = iface.get_partitions_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts); } catch (MetaException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_partitions_ps", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_partitions_ps"); - oprot.writeMessageBegin(new TMessage("get_partitions_ps", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_partitions_ps", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_partitions_ps_with_auth implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_partitions_ps_with_auth_args args = new get_partitions_ps_with_auth_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_partitions_ps_with_auth", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_partitions_ps_with_auth extends org.apache.thrift.ProcessFunction { + public get_partitions_ps_with_auth() { + super("get_partitions_ps_with_auth"); + } + + protected get_partitions_ps_with_auth_args getEmptyArgsInstance() { + return new get_partitions_ps_with_auth_args(); + } + + protected get_partitions_ps_with_auth_result getResult(I iface, get_partitions_ps_with_auth_args args) throws org.apache.thrift.TException { get_partitions_ps_with_auth_result result = new get_partitions_ps_with_auth_result(); try { - result.success = iface_.get_partitions_ps_with_auth(args.db_name, args.tbl_name, args.part_vals, args.max_parts, args.user_name, args.group_names); + result.success = iface.get_partitions_ps_with_auth(args.db_name, args.tbl_name, args.part_vals, args.max_parts, args.user_name, args.group_names); } catch (NoSuchObjectException o1) { result.o1 = o1; } catch (MetaException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_partitions_ps_with_auth", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_partitions_ps_with_auth"); - oprot.writeMessageBegin(new TMessage("get_partitions_ps_with_auth", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_partitions_ps_with_auth", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_partition_names_ps implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_partition_names_ps_args args = new get_partition_names_ps_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_partition_names_ps", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_partition_names_ps extends org.apache.thrift.ProcessFunction { + public get_partition_names_ps() { + super("get_partition_names_ps"); + } + + protected get_partition_names_ps_args getEmptyArgsInstance() { + return new get_partition_names_ps_args(); + } + + protected get_partition_names_ps_result getResult(I iface, get_partition_names_ps_args args) throws org.apache.thrift.TException { get_partition_names_ps_result result = new get_partition_names_ps_result(); try { - result.success = iface_.get_partition_names_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts); + result.success = iface.get_partition_names_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts); } catch (MetaException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_partition_names_ps", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_partition_names_ps"); - oprot.writeMessageBegin(new TMessage("get_partition_names_ps", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_partition_names_ps", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_partitions_by_filter implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_partitions_by_filter_args args = new get_partitions_by_filter_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_partitions_by_filter", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_partitions_by_filter extends org.apache.thrift.ProcessFunction { + public get_partitions_by_filter() { + super("get_partitions_by_filter"); + } + + protected get_partitions_by_filter_args getEmptyArgsInstance() { + return new get_partitions_by_filter_args(); + } + + protected get_partitions_by_filter_result getResult(I iface, get_partitions_by_filter_args args) throws org.apache.thrift.TException { get_partitions_by_filter_result result = new get_partitions_by_filter_result(); try { - result.success = iface_.get_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts); + result.success = iface.get_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts); } catch (MetaException o1) { result.o1 = o1; } catch (NoSuchObjectException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_partitions_by_filter", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_partitions_by_filter"); - oprot.writeMessageBegin(new TMessage("get_partitions_by_filter", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_partitions_by_filter", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_partitions_by_names implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_partitions_by_names_args args = new get_partitions_by_names_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_partitions_by_names", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_partitions_by_names extends org.apache.thrift.ProcessFunction { + public get_partitions_by_names() { + super("get_partitions_by_names"); + } + + protected get_partitions_by_names_args getEmptyArgsInstance() { + return new get_partitions_by_names_args(); + } + + protected get_partitions_by_names_result getResult(I iface, get_partitions_by_names_args args) throws org.apache.thrift.TException { get_partitions_by_names_result result = new get_partitions_by_names_result(); try { - result.success = iface_.get_partitions_by_names(args.db_name, args.tbl_name, args.names); + result.success = iface.get_partitions_by_names(args.db_name, args.tbl_name, args.names); } catch (MetaException o1) { result.o1 = o1; } catch (NoSuchObjectException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_partitions_by_names", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_partitions_by_names"); - oprot.writeMessageBegin(new TMessage("get_partitions_by_names", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_partitions_by_names", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class alter_partition implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - alter_partition_args args = new alter_partition_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("alter_partition", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class alter_partition extends org.apache.thrift.ProcessFunction { + public alter_partition() { + super("alter_partition"); + } + + protected alter_partition_args getEmptyArgsInstance() { + return new alter_partition_args(); + } + + protected alter_partition_result getResult(I iface, alter_partition_args args) throws org.apache.thrift.TException { alter_partition_result result = new alter_partition_result(); try { - iface_.alter_partition(args.db_name, args.tbl_name, args.new_part); + iface.alter_partition(args.db_name, args.tbl_name, args.new_part); } catch (InvalidOperationException o1) { result.o1 = o1; } catch (MetaException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing alter_partition", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing alter_partition"); - oprot.writeMessageBegin(new TMessage("alter_partition", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("alter_partition", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_config_value implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_config_value_args args = new get_config_value_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_config_value", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_config_value extends org.apache.thrift.ProcessFunction { + public get_config_value() { + super("get_config_value"); + } + + protected get_config_value_args getEmptyArgsInstance() { + return new get_config_value_args(); + } + + protected get_config_value_result getResult(I iface, get_config_value_args args) throws org.apache.thrift.TException { get_config_value_result result = new get_config_value_result(); try { - result.success = iface_.get_config_value(args.name, args.defaultValue); + result.success = iface.get_config_value(args.name, args.defaultValue); } catch (ConfigValSecurityException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_config_value", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_config_value"); - oprot.writeMessageBegin(new TMessage("get_config_value", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_config_value", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class partition_name_to_vals implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - partition_name_to_vals_args args = new partition_name_to_vals_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("partition_name_to_vals", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class partition_name_to_vals extends org.apache.thrift.ProcessFunction { + public partition_name_to_vals() { + super("partition_name_to_vals"); + } + + protected partition_name_to_vals_args getEmptyArgsInstance() { + return new partition_name_to_vals_args(); + } + + protected partition_name_to_vals_result getResult(I iface, partition_name_to_vals_args args) throws org.apache.thrift.TException { partition_name_to_vals_result result = new partition_name_to_vals_result(); try { - result.success = iface_.partition_name_to_vals(args.part_name); + result.success = iface.partition_name_to_vals(args.part_name); } catch (MetaException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing partition_name_to_vals", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing partition_name_to_vals"); - oprot.writeMessageBegin(new TMessage("partition_name_to_vals", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("partition_name_to_vals", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class partition_name_to_spec implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - partition_name_to_spec_args args = new partition_name_to_spec_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("partition_name_to_spec", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class partition_name_to_spec extends org.apache.thrift.ProcessFunction { + public partition_name_to_spec() { + super("partition_name_to_spec"); + } + + protected partition_name_to_spec_args getEmptyArgsInstance() { + return new partition_name_to_spec_args(); + } + + protected partition_name_to_spec_result getResult(I iface, partition_name_to_spec_args args) throws org.apache.thrift.TException { partition_name_to_spec_result result = new partition_name_to_spec_result(); try { - result.success = iface_.partition_name_to_spec(args.part_name); + result.success = iface.partition_name_to_spec(args.part_name); } catch (MetaException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing partition_name_to_spec", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing partition_name_to_spec"); - oprot.writeMessageBegin(new TMessage("partition_name_to_spec", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("partition_name_to_spec", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class markPartitionForEvent implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - markPartitionForEvent_args args = new markPartitionForEvent_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("markPartitionForEvent", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class markPartitionForEvent extends org.apache.thrift.ProcessFunction { + public markPartitionForEvent() { + super("markPartitionForEvent"); + } + + protected markPartitionForEvent_args getEmptyArgsInstance() { + return new markPartitionForEvent_args(); + } + + protected markPartitionForEvent_result getResult(I iface, markPartitionForEvent_args args) throws org.apache.thrift.TException { markPartitionForEvent_result result = new markPartitionForEvent_result(); try { - iface_.markPartitionForEvent(args.db_name, args.tbl_name, args.part_vals, args.eventType); + iface.markPartitionForEvent(args.db_name, args.tbl_name, args.part_vals, args.eventType); } catch (MetaException o1) { result.o1 = o1; } catch (NoSuchObjectException o2) { @@ -6941,42 +5432,24 @@ public class ThriftHiveMetastore { result.o5 = o5; } catch (InvalidPartitionException o6) { result.o6 = o6; - } catch (Throwable th) { - LOGGER.error("Internal error processing markPartitionForEvent", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing markPartitionForEvent"); - oprot.writeMessageBegin(new TMessage("markPartitionForEvent", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("markPartitionForEvent", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class isPartitionMarkedForEvent implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - isPartitionMarkedForEvent_args args = new isPartitionMarkedForEvent_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("isPartitionMarkedForEvent", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class isPartitionMarkedForEvent extends org.apache.thrift.ProcessFunction { + public isPartitionMarkedForEvent() { + super("isPartitionMarkedForEvent"); + } + + protected isPartitionMarkedForEvent_args getEmptyArgsInstance() { + return new isPartitionMarkedForEvent_args(); + } + + protected isPartitionMarkedForEvent_result getResult(I iface, isPartitionMarkedForEvent_args args) throws org.apache.thrift.TException { isPartitionMarkedForEvent_result result = new isPartitionMarkedForEvent_result(); try { - result.success = iface_.isPartitionMarkedForEvent(args.db_name, args.tbl_name, args.part_vals, args.eventType); + result.success = iface.isPartitionMarkedForEvent(args.db_name, args.tbl_name, args.part_vals, args.eventType); result.setSuccessIsSet(true); } catch (MetaException o1) { result.o1 = o1; @@ -6990,776 +5463,422 @@ public class ThriftHiveMetastore { result.o5 = o5; } catch (InvalidPartitionException o6) { result.o6 = o6; - } catch (Throwable th) { - LOGGER.error("Internal error processing isPartitionMarkedForEvent", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing isPartitionMarkedForEvent"); - oprot.writeMessageBegin(new TMessage("isPartitionMarkedForEvent", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("isPartitionMarkedForEvent", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class add_index implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - add_index_args args = new add_index_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("add_index", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class add_index extends org.apache.thrift.ProcessFunction { + public add_index() { + super("add_index"); + } + + protected add_index_args getEmptyArgsInstance() { + return new add_index_args(); + } + + protected add_index_result getResult(I iface, add_index_args args) throws org.apache.thrift.TException { add_index_result result = new add_index_result(); try { - result.success = iface_.add_index(args.new_index, args.index_table); + result.success = iface.add_index(args.new_index, args.index_table); } catch (InvalidObjectException o1) { result.o1 = o1; } catch (AlreadyExistsException o2) { result.o2 = o2; } catch (MetaException o3) { result.o3 = o3; - } catch (Throwable th) { - LOGGER.error("Internal error processing add_index", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing add_index"); - oprot.writeMessageBegin(new TMessage("add_index", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("add_index", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class alter_index implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - alter_index_args args = new alter_index_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("alter_index", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class alter_index extends org.apache.thrift.ProcessFunction { + public alter_index() { + super("alter_index"); + } + + protected alter_index_args getEmptyArgsInstance() { + return new alter_index_args(); + } + + protected alter_index_result getResult(I iface, alter_index_args args) throws org.apache.thrift.TException { alter_index_result result = new alter_index_result(); try { - iface_.alter_index(args.dbname, args.base_tbl_name, args.idx_name, args.new_idx); + iface.alter_index(args.dbname, args.base_tbl_name, args.idx_name, args.new_idx); } catch (InvalidOperationException o1) { result.o1 = o1; } catch (MetaException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing alter_index", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing alter_index"); - oprot.writeMessageBegin(new TMessage("alter_index", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("alter_index", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class drop_index_by_name implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - drop_index_by_name_args args = new drop_index_by_name_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("drop_index_by_name", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class drop_index_by_name extends org.apache.thrift.ProcessFunction { + public drop_index_by_name() { + super("drop_index_by_name"); + } + + protected drop_index_by_name_args getEmptyArgsInstance() { + return new drop_index_by_name_args(); + } + + protected drop_index_by_name_result getResult(I iface, drop_index_by_name_args args) throws org.apache.thrift.TException { drop_index_by_name_result result = new drop_index_by_name_result(); try { - result.success = iface_.drop_index_by_name(args.db_name, args.tbl_name, args.index_name, args.deleteData); + result.success = iface.drop_index_by_name(args.db_name, args.tbl_name, args.index_name, args.deleteData); result.setSuccessIsSet(true); } catch (NoSuchObjectException o1) { result.o1 = o1; } catch (MetaException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing drop_index_by_name", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing drop_index_by_name"); - oprot.writeMessageBegin(new TMessage("drop_index_by_name", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("drop_index_by_name", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_index_by_name implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_index_by_name_args args = new get_index_by_name_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_index_by_name", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_index_by_name extends org.apache.thrift.ProcessFunction { + public get_index_by_name() { + super("get_index_by_name"); + } + + protected get_index_by_name_args getEmptyArgsInstance() { + return new get_index_by_name_args(); + } + + protected get_index_by_name_result getResult(I iface, get_index_by_name_args args) throws org.apache.thrift.TException { get_index_by_name_result result = new get_index_by_name_result(); try { - result.success = iface_.get_index_by_name(args.db_name, args.tbl_name, args.index_name); + result.success = iface.get_index_by_name(args.db_name, args.tbl_name, args.index_name); } catch (MetaException o1) { result.o1 = o1; } catch (NoSuchObjectException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_index_by_name", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_index_by_name"); - oprot.writeMessageBegin(new TMessage("get_index_by_name", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_index_by_name", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_indexes implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_indexes_args args = new get_indexes_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_indexes", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_indexes extends org.apache.thrift.ProcessFunction { + public get_indexes() { + super("get_indexes"); + } + + protected get_indexes_args getEmptyArgsInstance() { + return new get_indexes_args(); + } + + protected get_indexes_result getResult(I iface, get_indexes_args args) throws org.apache.thrift.TException { get_indexes_result result = new get_indexes_result(); try { - result.success = iface_.get_indexes(args.db_name, args.tbl_name, args.max_indexes); + result.success = iface.get_indexes(args.db_name, args.tbl_name, args.max_indexes); } catch (NoSuchObjectException o1) { result.o1 = o1; } catch (MetaException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_indexes", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_indexes"); - oprot.writeMessageBegin(new TMessage("get_indexes", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_indexes", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_index_names implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_index_names_args args = new get_index_names_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_index_names", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_index_names extends org.apache.thrift.ProcessFunction { + public get_index_names() { + super("get_index_names"); + } + + protected get_index_names_args getEmptyArgsInstance() { + return new get_index_names_args(); + } + + protected get_index_names_result getResult(I iface, get_index_names_args args) throws org.apache.thrift.TException { get_index_names_result result = new get_index_names_result(); try { - result.success = iface_.get_index_names(args.db_name, args.tbl_name, args.max_indexes); + result.success = iface.get_index_names(args.db_name, args.tbl_name, args.max_indexes); } catch (MetaException o2) { result.o2 = o2; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_index_names", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_index_names"); - oprot.writeMessageBegin(new TMessage("get_index_names", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_index_names", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class create_role implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - create_role_args args = new create_role_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("create_role", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class create_role extends org.apache.thrift.ProcessFunction { + public create_role() { + super("create_role"); + } + + protected create_role_args getEmptyArgsInstance() { + return new create_role_args(); + } + + protected create_role_result getResult(I iface, create_role_args args) throws org.apache.thrift.TException { create_role_result result = new create_role_result(); try { - result.success = iface_.create_role(args.role); + result.success = iface.create_role(args.role); result.setSuccessIsSet(true); } catch (MetaException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing create_role", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing create_role"); - oprot.writeMessageBegin(new TMessage("create_role", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("create_role", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class drop_role implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - drop_role_args args = new drop_role_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("drop_role", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class drop_role extends org.apache.thrift.ProcessFunction { + public drop_role() { + super("drop_role"); + } + + protected drop_role_args getEmptyArgsInstance() { + return new drop_role_args(); + } + + protected drop_role_result getResult(I iface, drop_role_args args) throws org.apache.thrift.TException { drop_role_result result = new drop_role_result(); try { - result.success = iface_.drop_role(args.role_name); + result.success = iface.drop_role(args.role_name); result.setSuccessIsSet(true); } catch (MetaException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing drop_role", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing drop_role"); - oprot.writeMessageBegin(new TMessage("drop_role", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("drop_role", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_role_names implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_role_names_args args = new get_role_names_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_role_names", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_role_names extends org.apache.thrift.ProcessFunction { + public get_role_names() { + super("get_role_names"); + } + + protected get_role_names_args getEmptyArgsInstance() { + return new get_role_names_args(); + } + + protected get_role_names_result getResult(I iface, get_role_names_args args) throws org.apache.thrift.TException { get_role_names_result result = new get_role_names_result(); try { - result.success = iface_.get_role_names(); + result.success = iface.get_role_names(); } catch (MetaException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_role_names", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_role_names"); - oprot.writeMessageBegin(new TMessage("get_role_names", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_role_names", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class grant_role implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - grant_role_args args = new grant_role_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("grant_role", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class grant_role extends org.apache.thrift.ProcessFunction { + public grant_role() { + super("grant_role"); + } + + protected grant_role_args getEmptyArgsInstance() { + return new grant_role_args(); + } + + protected grant_role_result getResult(I iface, grant_role_args args) throws org.apache.thrift.TException { grant_role_result result = new grant_role_result(); try { - result.success = iface_.grant_role(args.role_name, args.principal_name, args.principal_type, args.grantor, args.grantorType, args.grant_option); + result.success = iface.grant_role(args.role_name, args.principal_name, args.principal_type, args.grantor, args.grantorType, args.grant_option); result.setSuccessIsSet(true); } catch (MetaException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing grant_role", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing grant_role"); - oprot.writeMessageBegin(new TMessage("grant_role", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("grant_role", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class revoke_role implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - revoke_role_args args = new revoke_role_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("revoke_role", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class revoke_role extends org.apache.thrift.ProcessFunction { + public revoke_role() { + super("revoke_role"); + } + + protected revoke_role_args getEmptyArgsInstance() { + return new revoke_role_args(); + } + + protected revoke_role_result getResult(I iface, revoke_role_args args) throws org.apache.thrift.TException { revoke_role_result result = new revoke_role_result(); try { - result.success = iface_.revoke_role(args.role_name, args.principal_name, args.principal_type); + result.success = iface.revoke_role(args.role_name, args.principal_name, args.principal_type); result.setSuccessIsSet(true); } catch (MetaException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing revoke_role", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing revoke_role"); - oprot.writeMessageBegin(new TMessage("revoke_role", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("revoke_role", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class list_roles implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - list_roles_args args = new list_roles_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("list_roles", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class list_roles extends org.apache.thrift.ProcessFunction { + public list_roles() { + super("list_roles"); + } + + protected list_roles_args getEmptyArgsInstance() { + return new list_roles_args(); + } + + protected list_roles_result getResult(I iface, list_roles_args args) throws org.apache.thrift.TException { list_roles_result result = new list_roles_result(); try { - result.success = iface_.list_roles(args.principal_name, args.principal_type); + result.success = iface.list_roles(args.principal_name, args.principal_type); } catch (MetaException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing list_roles", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing list_roles"); - oprot.writeMessageBegin(new TMessage("list_roles", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("list_roles", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_privilege_set implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_privilege_set_args args = new get_privilege_set_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_privilege_set", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_privilege_set extends org.apache.thrift.ProcessFunction { + public get_privilege_set() { + super("get_privilege_set"); + } + + protected get_privilege_set_args getEmptyArgsInstance() { + return new get_privilege_set_args(); + } + + protected get_privilege_set_result getResult(I iface, get_privilege_set_args args) throws org.apache.thrift.TException { get_privilege_set_result result = new get_privilege_set_result(); try { - result.success = iface_.get_privilege_set(args.hiveObject, args.user_name, args.group_names); + result.success = iface.get_privilege_set(args.hiveObject, args.user_name, args.group_names); } catch (MetaException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_privilege_set", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_privilege_set"); - oprot.writeMessageBegin(new TMessage("get_privilege_set", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_privilege_set", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class list_privileges implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - list_privileges_args args = new list_privileges_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("list_privileges", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class list_privileges extends org.apache.thrift.ProcessFunction { + public list_privileges() { + super("list_privileges"); + } + + protected list_privileges_args getEmptyArgsInstance() { + return new list_privileges_args(); + } + + protected list_privileges_result getResult(I iface, list_privileges_args args) throws org.apache.thrift.TException { list_privileges_result result = new list_privileges_result(); try { - result.success = iface_.list_privileges(args.principal_name, args.principal_type, args.hiveObject); + result.success = iface.list_privileges(args.principal_name, args.principal_type, args.hiveObject); } catch (MetaException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing list_privileges", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing list_privileges"); - oprot.writeMessageBegin(new TMessage("list_privileges", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("list_privileges", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class grant_privileges implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - grant_privileges_args args = new grant_privileges_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("grant_privileges", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class grant_privileges extends org.apache.thrift.ProcessFunction { + public grant_privileges() { + super("grant_privileges"); + } + + protected grant_privileges_args getEmptyArgsInstance() { + return new grant_privileges_args(); + } + + protected grant_privileges_result getResult(I iface, grant_privileges_args args) throws org.apache.thrift.TException { grant_privileges_result result = new grant_privileges_result(); try { - result.success = iface_.grant_privileges(args.privileges); + result.success = iface.grant_privileges(args.privileges); result.setSuccessIsSet(true); } catch (MetaException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing grant_privileges", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing grant_privileges"); - oprot.writeMessageBegin(new TMessage("grant_privileges", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("grant_privileges", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class revoke_privileges implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - revoke_privileges_args args = new revoke_privileges_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("revoke_privileges", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class revoke_privileges extends org.apache.thrift.ProcessFunction { + public revoke_privileges() { + super("revoke_privileges"); + } + + protected revoke_privileges_args getEmptyArgsInstance() { + return new revoke_privileges_args(); + } + + protected revoke_privileges_result getResult(I iface, revoke_privileges_args args) throws org.apache.thrift.TException { revoke_privileges_result result = new revoke_privileges_result(); try { - result.success = iface_.revoke_privileges(args.privileges); + result.success = iface.revoke_privileges(args.privileges); result.setSuccessIsSet(true); } catch (MetaException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing revoke_privileges", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing revoke_privileges"); - oprot.writeMessageBegin(new TMessage("revoke_privileges", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("revoke_privileges", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class get_delegation_token implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - get_delegation_token_args args = new get_delegation_token_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("get_delegation_token", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class get_delegation_token extends org.apache.thrift.ProcessFunction { + public get_delegation_token() { + super("get_delegation_token"); + } + + protected get_delegation_token_args getEmptyArgsInstance() { + return new get_delegation_token_args(); + } + + protected get_delegation_token_result getResult(I iface, get_delegation_token_args args) throws org.apache.thrift.TException { get_delegation_token_result result = new get_delegation_token_result(); try { - result.success = iface_.get_delegation_token(args.token_owner, args.renewer_kerberos_principal_name); + result.success = iface.get_delegation_token(args.token_owner, args.renewer_kerberos_principal_name); } catch (MetaException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing get_delegation_token", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_delegation_token"); - oprot.writeMessageBegin(new TMessage("get_delegation_token", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("get_delegation_token", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class renew_delegation_token implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - renew_delegation_token_args args = new renew_delegation_token_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("renew_delegation_token", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class renew_delegation_token extends org.apache.thrift.ProcessFunction { + public renew_delegation_token() { + super("renew_delegation_token"); + } + + protected renew_delegation_token_args getEmptyArgsInstance() { + return new renew_delegation_token_args(); + } + + protected renew_delegation_token_result getResult(I iface, renew_delegation_token_args args) throws org.apache.thrift.TException { renew_delegation_token_result result = new renew_delegation_token_result(); try { - result.success = iface_.renew_delegation_token(args.token_str_form); + result.success = iface.renew_delegation_token(args.token_str_form); result.setSuccessIsSet(true); } catch (MetaException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing renew_delegation_token", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing renew_delegation_token"); - oprot.writeMessageBegin(new TMessage("renew_delegation_token", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("renew_delegation_token", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class cancel_delegation_token implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - cancel_delegation_token_args args = new cancel_delegation_token_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("cancel_delegation_token", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class cancel_delegation_token extends org.apache.thrift.ProcessFunction { + public cancel_delegation_token() { + super("cancel_delegation_token"); + } + + protected cancel_delegation_token_args getEmptyArgsInstance() { + return new cancel_delegation_token_args(); + } + + protected cancel_delegation_token_result getResult(I iface, cancel_delegation_token_args args) throws org.apache.thrift.TException { cancel_delegation_token_result result = new cancel_delegation_token_result(); try { - iface_.cancel_delegation_token(args.token_str_form); + iface.cancel_delegation_token(args.token_str_form); } catch (MetaException o1) { result.o1 = o1; - } catch (Throwable th) { - LOGGER.error("Internal error processing cancel_delegation_token", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing cancel_delegation_token"); - oprot.writeMessageBegin(new TMessage("cancel_delegation_token", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("cancel_delegation_token", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } } - public static class create_database_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("create_database_args"); + public static class create_database_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_database_args"); - private static final TField DATABASE_FIELD_DESC = new TField("database", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField DATABASE_FIELD_DESC = new org.apache.thrift.protocol.TField("database", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private Database database; + private Database database; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DATABASE((short)1, "database"); private static final Map byName = new HashMap(); @@ -7818,13 +5937,13 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DATABASE, new FieldMetaData("database", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Database.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DATABASE, new org.apache.thrift.meta_data.FieldMetaData("database", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Database.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(create_database_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_database_args.class, metaDataMap); } public create_database_args() { @@ -7867,7 +5986,7 @@ public class ThriftHiveMetastore { this.database = null; } - /** Returns true if field database is set (has been asigned a value) and false otherwise */ + /** Returns true if field database is set (has been assigned a value) and false otherwise */ public boolean isSetDatabase() { return this.database != null; } @@ -7900,7 +6019,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -7956,7 +6075,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDatabase()) { - lastComparison = TBaseHelper.compareTo(this.database, typedOther.database); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.database, typedOther.database); if (lastComparison != 0) { return lastComparison; } @@ -7968,26 +6087,26 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DATABASE - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.database = new Database(); this.database.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -7995,7 +6114,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -8024,25 +6143,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class create_database_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("create_database_result"); + public static class create_database_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_database_result"); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); - private static final TField O3_FIELD_DESC = new TField("o3", TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private AlreadyExistsException o1; - private InvalidObjectException o2; - private MetaException o3; + private AlreadyExistsException o1; // required + private InvalidObjectException o2; // required + private MetaException o3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { O1((short)1, "o1"), O2((short)2, "o2"), O3((short)3, "o3"); @@ -8107,17 +6242,17 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O3, new FieldMetaData("o3", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(create_database_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_database_result.class, metaDataMap); } public create_database_result() { @@ -8172,7 +6307,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -8195,7 +6330,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -8218,7 +6353,7 @@ public class ThriftHiveMetastore { this.o3 = null; } - /** Returns true if field o3 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ public boolean isSetO3() { return this.o3 != null; } @@ -8273,7 +6408,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -8351,7 +6486,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -8361,7 +6496,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -8371,7 +6506,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO3()) { - lastComparison = TBaseHelper.compareTo(this.o3, typedOther.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -8383,42 +6518,42 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new AlreadyExistsException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new InvalidObjectException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // O3 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o3 = new MetaException(); this.o3.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -8426,7 +6561,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetO1()) { @@ -8478,21 +6613,37 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_database_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_database_args"); + public static class get_database_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_database_args"); - private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); - private String name; + private String name; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { NAME((short)1, "name"); private static final Map byName = new HashMap(); @@ -8551,13 +6702,13 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_database_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_database_args.class, metaDataMap); } public get_database_args() { @@ -8600,7 +6751,7 @@ public class ThriftHiveMetastore { this.name = null; } - /** Returns true if field name is set (has been asigned a value) and false otherwise */ + /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } @@ -8633,7 +6784,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -8689,7 +6840,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetName()) { - lastComparison = TBaseHelper.compareTo(this.name, typedOther.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } @@ -8701,25 +6852,25 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -8727,7 +6878,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -8756,25 +6907,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_database_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_database_result"); + public static class get_database_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_database_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.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 Database success; - private NoSuchObjectException o1; - private MetaException o2; + private Database 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 TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"); @@ -8839,17 +7006,17 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Database.class))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + 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, Database.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); - FieldMetaData.addStructMetaDataMap(get_database_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_database_result.class, metaDataMap); } public get_database_result() { @@ -8904,7 +7071,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -8927,7 +7094,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -8950,7 +7117,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -9005,7 +7172,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -9083,7 +7250,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -9093,7 +7260,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -9103,7 +7270,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -9115,42 +7282,42 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new Database(); this.success.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new NoSuchObjectException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new MetaException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -9158,7 +7325,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -9210,25 +7377,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class drop_database_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("drop_database_args"); + public static class drop_database_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_database_args"); - private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1); - private static final TField DELETE_DATA_FIELD_DESC = new TField("deleteData", TType.BOOL, (short)2); - private static final TField CASCADE_FIELD_DESC = new TField("cascade", TType.BOOL, (short)3); + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)2); + private static final org.apache.thrift.protocol.TField CASCADE_FIELD_DESC = new org.apache.thrift.protocol.TField("cascade", org.apache.thrift.protocol.TType.BOOL, (short)3); - private String name; - private boolean deleteData; - private boolean cascade; + private String name; // required + private boolean deleteData; // required + private boolean cascade; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { NAME((short)1, "name"), DELETE_DATA((short)2, "deleteData"), CASCADE((short)3, "cascade"); @@ -9296,17 +7479,17 @@ public class ThriftHiveMetastore { private static final int __CASCADE_ISSET_ID = 1; private BitSet __isset_bit_vector = new BitSet(2); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.DELETE_DATA, new FieldMetaData("deleteData", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); - tmpMap.put(_Fields.CASCADE, new FieldMetaData("cascade", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.CASCADE, new org.apache.thrift.meta_data.FieldMetaData("cascade", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(drop_database_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_database_args.class, metaDataMap); } public drop_database_args() { @@ -9363,7 +7546,7 @@ public class ThriftHiveMetastore { this.name = null; } - /** Returns true if field name is set (has been asigned a value) and false otherwise */ + /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } @@ -9387,7 +7570,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__DELETEDATA_ISSET_ID); } - /** Returns true if field deleteData is set (has been asigned a value) and false otherwise */ + /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ public boolean isSetDeleteData() { return __isset_bit_vector.get(__DELETEDATA_ISSET_ID); } @@ -9409,7 +7592,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__CASCADE_ISSET_ID); } - /** Returns true if field cascade is set (has been asigned a value) and false otherwise */ + /** Returns true if field cascade is set (has been assigned a value) and false otherwise */ public boolean isSetCascade() { return __isset_bit_vector.get(__CASCADE_ISSET_ID); } @@ -9453,16 +7636,16 @@ public class ThriftHiveMetastore { return getName(); case DELETE_DATA: - return new Boolean(isDeleteData()); + return Boolean.valueOf(isDeleteData()); case CASCADE: - return new Boolean(isCascade()); + return Boolean.valueOf(isCascade()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -9540,7 +7723,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetName()) { - lastComparison = TBaseHelper.compareTo(this.name, typedOther.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } @@ -9550,7 +7733,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDeleteData()) { - lastComparison = TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); if (lastComparison != 0) { return lastComparison; } @@ -9560,7 +7743,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetCascade()) { - lastComparison = TBaseHelper.compareTo(this.cascade, typedOther.cascade); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cascade, typedOther.cascade); if (lastComparison != 0) { return lastComparison; } @@ -9572,41 +7755,41 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // DELETE_DATA - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.deleteData = iprot.readBool(); setDeleteDataIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // CASCADE - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.cascade = iprot.readBool(); setCascadeIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -9614,7 +7797,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -9657,25 +7840,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + } - public static class drop_database_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("drop_database_result"); + public static class drop_database_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_database_result"); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); - private static final TField O3_FIELD_DESC = new TField("o3", TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private NoSuchObjectException o1; - private InvalidOperationException o2; - private MetaException o3; + private NoSuchObjectException o1; // required + private InvalidOperationException o2; // required + private MetaException o3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { O1((short)1, "o1"), O2((short)2, "o2"), O3((short)3, "o3"); @@ -9740,17 +7941,17 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O3, new FieldMetaData("o3", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(drop_database_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_database_result.class, metaDataMap); } public drop_database_result() { @@ -9805,7 +8006,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -9828,7 +8029,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -9851,7 +8052,7 @@ public class ThriftHiveMetastore { this.o3 = null; } - /** Returns true if field o3 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ public boolean isSetO3() { return this.o3 != null; } @@ -9906,7 +8107,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -9984,7 +8185,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -9994,7 +8195,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -10004,7 +8205,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO3()) { - lastComparison = TBaseHelper.compareTo(this.o3, typedOther.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -10016,42 +8217,42 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new NoSuchObjectException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new InvalidOperationException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // O3 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o3 = new MetaException(); this.o3.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -10059,7 +8260,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetO1()) { @@ -10111,21 +8312,37 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_databases_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_databases_args"); + public static class get_databases_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_databases_args"); - private static final TField PATTERN_FIELD_DESC = new TField("pattern", TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pattern", org.apache.thrift.protocol.TType.STRING, (short)1); - private String pattern; + private String pattern; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { PATTERN((short)1, "pattern"); private static final Map byName = new HashMap(); @@ -10184,13 +8401,13 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.PATTERN, new FieldMetaData("pattern", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pattern", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_databases_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_databases_args.class, metaDataMap); } public get_databases_args() { @@ -10233,7 +8450,7 @@ public class ThriftHiveMetastore { this.pattern = null; } - /** Returns true if field pattern is set (has been asigned a value) and false otherwise */ + /** Returns true if field pattern is set (has been assigned a value) and false otherwise */ public boolean isSetPattern() { return this.pattern != null; } @@ -10266,7 +8483,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -10322,7 +8539,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPattern()) { - lastComparison = TBaseHelper.compareTo(this.pattern, typedOther.pattern); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, typedOther.pattern); if (lastComparison != 0) { return lastComparison; } @@ -10334,25 +8551,25 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // PATTERN - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.pattern = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -10360,7 +8577,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -10389,23 +8606,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_databases_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_databases_result"); + public static class get_databases_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_databases_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private List success; - private MetaException o1; + private List success; // required + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"); @@ -10467,16 +8700,16 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_databases_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_databases_result.class, metaDataMap); } public get_databases_result() { @@ -10544,7 +8777,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -10567,7 +8800,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -10611,7 +8844,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -10678,7 +8911,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -10688,7 +8921,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -10700,43 +8933,43 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list98 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list98 = iprot.readListBegin(); this.success = new ArrayList(_list98.size); for (int _i99 = 0; _i99 < _list98.size; ++_i99) { - String _elem100; + String _elem100; // required _elem100 = iprot.readString(); this.success.add(_elem100); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -10744,13 +8977,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size())); for (String _iter101 : this.success) { oprot.writeString(_iter101); @@ -10791,19 +9024,35 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_all_databases_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_all_databases_args"); + public static class get_all_databases_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_databases_args"); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map byName = new HashMap(); @@ -10857,11 +9106,11 @@ public class ThriftHiveMetastore { return _fieldName; } } - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_all_databases_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_databases_args.class, metaDataMap); } public get_all_databases_args() { @@ -10892,7 +9141,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -10939,18 +9188,18 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -10958,7 +9207,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -10975,23 +9224,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_all_databases_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_all_databases_result"); + public static class get_all_databases_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_databases_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private List success; - private MetaException o1; + private List success; // required + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"); @@ -11053,16 +9318,16 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_all_databases_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_databases_result.class, metaDataMap); } public get_all_databases_result() { @@ -11130,7 +9395,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -11153,7 +9418,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -11197,7 +9462,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -11264,7 +9529,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -11274,7 +9539,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -11286,43 +9551,43 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list102 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list102 = iprot.readListBegin(); this.success = new ArrayList(_list102.size); for (int _i103 = 0; _i103 < _list102.size; ++_i103) { - String _elem104; + String _elem104; // required _elem104 = iprot.readString(); this.success.add(_elem104); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -11330,13 +9595,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size())); for (String _iter105 : this.success) { oprot.writeString(_iter105); @@ -11377,23 +9642,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class alter_database_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("alter_database_args"); + public static class alter_database_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_database_args"); - private static final TField DBNAME_FIELD_DESC = new TField("dbname", TType.STRING, (short)1); - private static final TField DB_FIELD_DESC = new TField("db", TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField DB_FIELD_DESC = new org.apache.thrift.protocol.TField("db", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private String dbname; - private Database db; + private String dbname; // required + private Database db; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DBNAME((short)1, "dbname"), DB((short)2, "db"); @@ -11455,15 +9736,15 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DBNAME, new FieldMetaData("dbname", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.DB, new FieldMetaData("db", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Database.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DB, new org.apache.thrift.meta_data.FieldMetaData("db", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Database.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(alter_database_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_database_args.class, metaDataMap); } public alter_database_args() { @@ -11512,7 +9793,7 @@ public class ThriftHiveMetastore { this.dbname = null; } - /** Returns true if field dbname is set (has been asigned a value) and false otherwise */ + /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ public boolean isSetDbname() { return this.dbname != null; } @@ -11535,7 +9816,7 @@ public class ThriftHiveMetastore { this.db = null; } - /** Returns true if field db is set (has been asigned a value) and false otherwise */ + /** Returns true if field db is set (has been assigned a value) and false otherwise */ public boolean isSetDb() { return this.db != null; } @@ -11579,7 +9860,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -11646,7 +9927,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDbname()) { - lastComparison = TBaseHelper.compareTo(this.dbname, typedOther.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } @@ -11656,7 +9937,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb()) { - lastComparison = TBaseHelper.compareTo(this.db, typedOther.db); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db, typedOther.db); if (lastComparison != 0) { return lastComparison; } @@ -11668,33 +9949,33 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DBNAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.dbname = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // DB - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.db = new Database(); this.db.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -11702,7 +9983,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -11744,23 +10025,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class alter_database_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("alter_database_result"); + public static class alter_database_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_database_result"); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); + 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 MetaException o1; - private NoSuchObjectException o2; + 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 TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { O1((short)1, "o1"), O2((short)2, "o2"); @@ -11822,15 +10119,15 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(alter_database_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_database_result.class, metaDataMap); } public alter_database_result() { @@ -11879,7 +10176,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -11902,7 +10199,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -11946,7 +10243,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -12013,7 +10310,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -12023,7 +10320,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -12035,34 +10332,34 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new NoSuchObjectException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -12070,7 +10367,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetO1()) { @@ -12110,21 +10407,37 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_type_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_type_args"); + public static class get_type_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_type_args"); - private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); - private String name; + private String name; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { NAME((short)1, "name"); private static final Map byName = new HashMap(); @@ -12183,13 +10496,13 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_type_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_type_args.class, metaDataMap); } public get_type_args() { @@ -12232,7 +10545,7 @@ public class ThriftHiveMetastore { this.name = null; } - /** Returns true if field name is set (has been asigned a value) and false otherwise */ + /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } @@ -12265,7 +10578,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -12321,7 +10634,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetName()) { - lastComparison = TBaseHelper.compareTo(this.name, typedOther.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } @@ -12333,25 +10646,25 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -12359,7 +10672,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -12388,25 +10701,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_type_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_type_result"); + public static class get_type_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_type_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.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 Type success; - private MetaException o1; - private NoSuchObjectException o2; + private Type success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"); @@ -12471,17 +10800,17 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Type.class))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Type.class))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_type_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_type_result.class, metaDataMap); } public get_type_result() { @@ -12536,7 +10865,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -12559,7 +10888,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -12582,7 +10911,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -12637,7 +10966,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -12715,7 +11044,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -12725,7 +11054,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -12735,7 +11064,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -12747,42 +11076,42 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new Type(); this.success.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new NoSuchObjectException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -12790,7 +11119,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -12842,21 +11171,37 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class create_type_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("create_type_args"); + public static class create_type_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_type_args"); - private static final TField TYPE_FIELD_DESC = new TField("type", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private Type type; + private Type type; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { TYPE((short)1, "type"); private static final Map byName = new HashMap(); @@ -12915,13 +11260,13 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Type.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Type.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(create_type_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_type_args.class, metaDataMap); } public create_type_args() { @@ -12964,7 +11309,7 @@ public class ThriftHiveMetastore { this.type = null; } - /** Returns true if field type is set (has been asigned a value) and false otherwise */ + /** Returns true if field type is set (has been assigned a value) and false otherwise */ public boolean isSetType() { return this.type != null; } @@ -12997,7 +11342,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -13053,7 +11398,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetType()) { - lastComparison = TBaseHelper.compareTo(this.type, typedOther.type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } @@ -13065,26 +11410,26 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // TYPE - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.type = new Type(); this.type.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -13092,7 +11437,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -13121,27 +11466,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class create_type_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("create_type_result"); + public static class create_type_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_type_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); - private static final TField O3_FIELD_DESC = new TField("o3", TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private boolean success; - private AlreadyExistsException o1; - private InvalidObjectException o2; - private MetaException o3; + private boolean success; // required + private AlreadyExistsException o1; // required + private InvalidObjectException o2; // required + private MetaException o3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"), @@ -13211,19 +11572,19 @@ public class ThriftHiveMetastore { private static final int __SUCCESS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O3, new FieldMetaData("o3", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(create_type_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_type_result.class, metaDataMap); } public create_type_result() { @@ -13287,7 +11648,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__SUCCESS_ISSET_ID); } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return __isset_bit_vector.get(__SUCCESS_ISSET_ID); } @@ -13308,7 +11669,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -13331,7 +11692,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -13354,7 +11715,7 @@ public class ThriftHiveMetastore { this.o3 = null; } - /** Returns true if field o3 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ public boolean isSetO3() { return this.o3 != null; } @@ -13405,7 +11766,7 @@ public class ThriftHiveMetastore { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return new Boolean(isSuccess()); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -13420,7 +11781,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -13509,7 +11870,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -13519,7 +11880,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -13529,7 +11890,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -13539,7 +11900,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO3()) { - lastComparison = TBaseHelper.compareTo(this.o3, typedOther.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -13551,50 +11912,50 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.success = iprot.readBool(); setSuccessIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new AlreadyExistsException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new InvalidObjectException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // O3 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o3 = new MetaException(); this.o3.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -13602,7 +11963,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -13662,21 +12023,37 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class drop_type_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("drop_type_args"); + public static class drop_type_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_type_args"); - private static final TField TYPE_FIELD_DESC = new TField("type", TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.STRING, (short)1); - private String type; + private String type; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { TYPE((short)1, "type"); private static final Map byName = new HashMap(); @@ -13735,13 +12112,13 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(drop_type_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_type_args.class, metaDataMap); } public drop_type_args() { @@ -13784,7 +12161,7 @@ public class ThriftHiveMetastore { this.type = null; } - /** Returns true if field type is set (has been asigned a value) and false otherwise */ + /** Returns true if field type is set (has been assigned a value) and false otherwise */ public boolean isSetType() { return this.type != null; } @@ -13817,7 +12194,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -13873,7 +12250,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetType()) { - lastComparison = TBaseHelper.compareTo(this.type, typedOther.type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } @@ -13885,25 +12262,25 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // TYPE - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.type = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -13911,7 +12288,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -13940,25 +12317,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class drop_type_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("drop_type_result"); + public static class drop_type_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_type_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private boolean success; - private MetaException o1; - private NoSuchObjectException o2; + private boolean 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 TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"); @@ -14025,17 +12418,17 @@ public class ThriftHiveMetastore { private static final int __SUCCESS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + 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); - FieldMetaData.addStructMetaDataMap(drop_type_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_type_result.class, metaDataMap); } public drop_type_result() { @@ -14093,7 +12486,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__SUCCESS_ISSET_ID); } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return __isset_bit_vector.get(__SUCCESS_ISSET_ID); } @@ -14114,7 +12507,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -14137,7 +12530,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -14180,7 +12573,7 @@ public class ThriftHiveMetastore { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return new Boolean(isSuccess()); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -14192,7 +12585,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -14270,7 +12663,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -14280,7 +12673,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -14290,7 +12683,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -14302,42 +12695,42 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.success = iprot.readBool(); setSuccessIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new NoSuchObjectException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -14345,7 +12738,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -14393,21 +12786,37 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_type_all_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_type_all_args"); + public static class get_type_all_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_type_all_args"); - private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); - private String name; + private String name; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { NAME((short)1, "name"); private static final Map byName = new HashMap(); @@ -14466,13 +12875,13 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_type_all_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_type_all_args.class, metaDataMap); } public get_type_all_args() { @@ -14515,7 +12924,7 @@ public class ThriftHiveMetastore { this.name = null; } - /** Returns true if field name is set (has been asigned a value) and false otherwise */ + /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } @@ -14548,7 +12957,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -14604,7 +13013,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetName()) { - lastComparison = TBaseHelper.compareTo(this.name, typedOther.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } @@ -14616,25 +13025,25 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -14642,7 +13051,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -14671,23 +13080,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_type_all_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_type_all_result"); + public static class get_type_all_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_type_all_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.MAP, (short)0); - private static final TField O2_FIELD_DESC = new TField("o2", 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.MAP, (short)0); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private Map success; - private MetaException o2; + private Map success; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O2((short)1, "o2"); @@ -14749,17 +13174,17 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new StructMetaData(TType.STRUCT, Type.class)))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Type.class)))); + 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); - FieldMetaData.addStructMetaDataMap(get_type_all_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_type_all_result.class, metaDataMap); } public get_type_all_result() { @@ -14831,7 +13256,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -14854,7 +13279,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -14898,7 +13323,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -14965,7 +13390,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -14975,7 +13400,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -14987,25 +13412,25 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.MAP) { + if (field.type == org.apache.thrift.protocol.TType.MAP) { { - TMap _map106 = iprot.readMapBegin(); + org.apache.thrift.protocol.TMap _map106 = iprot.readMapBegin(); this.success = new HashMap(2*_map106.size); for (int _i107 = 0; _i107 < _map106.size; ++_i107) { - String _key108; - Type _val109; + String _key108; // required + Type _val109; // required _key108 = iprot.readString(); _val109 = new Type(); _val109.read(iprot); @@ -15014,19 +13439,19 @@ public class ThriftHiveMetastore { iprot.readMapEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new MetaException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -15034,13 +13459,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeMapBegin(new TMap(TType.STRING, TType.STRUCT, this.success.size())); + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, this.success.size())); for (Map.Entry _iter110 : this.success.entrySet()) { oprot.writeString(_iter110.getKey()); @@ -15082,23 +13507,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_fields_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_fields_args"); + public static class get_fields_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_fields_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TABLE_NAME_FIELD_DESC = new TField("table_name", TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("table_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private String db_name; - private String table_name; + private String db_name; // required + private String table_name; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TABLE_NAME((short)2, "table_name"); @@ -15160,15 +13601,15 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TABLE_NAME, new FieldMetaData("table_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_fields_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_fields_args.class, metaDataMap); } public get_fields_args() { @@ -15217,7 +13658,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -15240,7 +13681,7 @@ public class ThriftHiveMetastore { this.table_name = null; } - /** Returns true if field table_name is set (has been asigned a value) and false otherwise */ + /** Returns true if field table_name is set (has been assigned a value) and false otherwise */ public boolean isSetTable_name() { return this.table_name != null; } @@ -15284,7 +13725,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -15351,7 +13792,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -15361,7 +13802,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTable_name()) { - lastComparison = TBaseHelper.compareTo(this.table_name, typedOther.table_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_name, typedOther.table_name); if (lastComparison != 0) { return lastComparison; } @@ -15373,32 +13814,32 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TABLE_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.table_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -15406,7 +13847,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -15448,27 +13889,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_fields_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_fields_result"); + public static class get_fields_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_fields_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); - private static final TField O3_FIELD_DESC = new TField("o3", TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private List success; - private MetaException o1; - private UnknownTableException o2; - private UnknownDBException o3; + private List success; // required + private MetaException o1; // required + private UnknownTableException o2; // required + private UnknownDBException o3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"), @@ -15536,20 +13993,20 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, FieldSchema.class)))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O3, new FieldMetaData("o3", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FieldSchema.class)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_fields_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_fields_result.class, metaDataMap); } public get_fields_result() { @@ -15629,7 +14086,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -15652,7 +14109,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -15675,7 +14132,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -15698,7 +14155,7 @@ public class ThriftHiveMetastore { this.o3 = null; } - /** Returns true if field o3 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ public boolean isSetO3() { return this.o3 != null; } @@ -15764,7 +14221,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -15853,7 +14310,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -15863,7 +14320,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -15873,7 +14330,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -15883,7 +14340,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO3()) { - lastComparison = TBaseHelper.compareTo(this.o3, typedOther.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -15895,24 +14352,24 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list111 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list111 = iprot.readListBegin(); this.success = new ArrayList(_list111.size); for (int _i112 = 0; _i112 < _list111.size; ++_i112) { - FieldSchema _elem113; + FieldSchema _elem113; // required _elem113 = new FieldSchema(); _elem113.read(iprot); this.success.add(_elem113); @@ -15920,35 +14377,35 @@ public class ThriftHiveMetastore { iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new UnknownTableException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // O3 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o3 = new UnknownDBException(); this.o3.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -15956,13 +14413,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); for (FieldSchema _iter114 : this.success) { _iter114.write(oprot); @@ -16027,23 +14484,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_schema_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_schema_args"); + public static class get_schema_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_schema_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TABLE_NAME_FIELD_DESC = new TField("table_name", TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("table_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private String db_name; - private String table_name; + private String db_name; // required + private String table_name; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TABLE_NAME((short)2, "table_name"); @@ -16105,15 +14578,15 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TABLE_NAME, new FieldMetaData("table_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_schema_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_schema_args.class, metaDataMap); } public get_schema_args() { @@ -16162,7 +14635,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -16185,7 +14658,7 @@ public class ThriftHiveMetastore { this.table_name = null; } - /** Returns true if field table_name is set (has been asigned a value) and false otherwise */ + /** Returns true if field table_name is set (has been assigned a value) and false otherwise */ public boolean isSetTable_name() { return this.table_name != null; } @@ -16229,7 +14702,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -16296,7 +14769,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -16306,7 +14779,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTable_name()) { - lastComparison = TBaseHelper.compareTo(this.table_name, typedOther.table_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_name, typedOther.table_name); if (lastComparison != 0) { return lastComparison; } @@ -16318,32 +14791,32 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TABLE_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.table_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -16351,7 +14824,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -16393,27 +14866,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_schema_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_schema_result"); + public static class get_schema_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_schema_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); - private static final TField O3_FIELD_DESC = new TField("o3", TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private List success; - private MetaException o1; - private UnknownTableException o2; - private UnknownDBException o3; + private List success; // required + private MetaException o1; // required + private UnknownTableException o2; // required + private UnknownDBException o3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"), @@ -16481,20 +14970,20 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, FieldSchema.class)))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O3, new FieldMetaData("o3", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FieldSchema.class)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_schema_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_schema_result.class, metaDataMap); } public get_schema_result() { @@ -16574,7 +15063,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -16597,7 +15086,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -16620,7 +15109,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -16643,7 +15132,7 @@ public class ThriftHiveMetastore { this.o3 = null; } - /** Returns true if field o3 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ public boolean isSetO3() { return this.o3 != null; } @@ -16709,7 +15198,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -16798,7 +15287,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -16808,7 +15297,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -16818,7 +15307,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -16828,7 +15317,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO3()) { - lastComparison = TBaseHelper.compareTo(this.o3, typedOther.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -16840,24 +15329,24 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list115 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list115 = iprot.readListBegin(); this.success = new ArrayList(_list115.size); for (int _i116 = 0; _i116 < _list115.size; ++_i116) { - FieldSchema _elem117; + FieldSchema _elem117; // required _elem117 = new FieldSchema(); _elem117.read(iprot); this.success.add(_elem117); @@ -16865,35 +15354,35 @@ public class ThriftHiveMetastore { iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new UnknownTableException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // O3 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o3 = new UnknownDBException(); this.o3.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -16901,13 +15390,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); for (FieldSchema _iter118 : this.success) { _iter118.write(oprot); @@ -16972,21 +15461,37 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class create_table_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("create_table_args"); + public static class create_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_args"); - private static final TField TBL_FIELD_DESC = new TField("tbl", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private Table tbl; + private Table tbl; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { TBL((short)1, "tbl"); private static final Map byName = new HashMap(); @@ -17045,13 +15550,13 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.TBL, new FieldMetaData("tbl", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Table.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.TBL, new org.apache.thrift.meta_data.FieldMetaData("tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(create_table_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_args.class, metaDataMap); } public create_table_args() { @@ -17094,7 +15599,7 @@ public class ThriftHiveMetastore { this.tbl = null; } - /** Returns true if field tbl is set (has been asigned a value) and false otherwise */ + /** Returns true if field tbl is set (has been assigned a value) and false otherwise */ public boolean isSetTbl() { return this.tbl != null; } @@ -17127,7 +15632,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -17183,7 +15688,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl()) { - lastComparison = TBaseHelper.compareTo(this.tbl, typedOther.tbl); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl, typedOther.tbl); if (lastComparison != 0) { return lastComparison; } @@ -17195,26 +15700,26 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // TBL - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.tbl = new Table(); this.tbl.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -17222,7 +15727,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -17251,27 +15756,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class create_table_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("create_table_result"); + public static class create_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_result"); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); - private static final TField O3_FIELD_DESC = new TField("o3", TType.STRUCT, (short)3); - private static final TField O4_FIELD_DESC = new TField("o4", TType.STRUCT, (short)4); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); - private AlreadyExistsException o1; - private InvalidObjectException o2; - private MetaException o3; - private NoSuchObjectException o4; + private AlreadyExistsException o1; // required + private InvalidObjectException o2; // required + private MetaException o3; // required + private NoSuchObjectException o4; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { O1((short)1, "o1"), O2((short)2, "o2"), O3((short)3, "o3"), @@ -17339,19 +15860,19 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O3, new FieldMetaData("o3", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O4, new FieldMetaData("o4", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(create_table_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_result.class, metaDataMap); } public create_table_result() { @@ -17412,7 +15933,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -17435,7 +15956,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -17458,7 +15979,7 @@ public class ThriftHiveMetastore { this.o3 = null; } - /** Returns true if field o3 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ public boolean isSetO3() { return this.o3 != null; } @@ -17481,7 +16002,7 @@ public class ThriftHiveMetastore { this.o4 = null; } - /** Returns true if field o4 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ public boolean isSetO4() { return this.o4 != null; } @@ -17547,7 +16068,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -17636,7 +16157,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -17646,7 +16167,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -17656,7 +16177,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO3()) { - lastComparison = TBaseHelper.compareTo(this.o3, typedOther.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -17666,7 +16187,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO4()) { - lastComparison = TBaseHelper.compareTo(this.o4, typedOther.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -17678,50 +16199,50 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new AlreadyExistsException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new InvalidObjectException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // O3 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o3 = new MetaException(); this.o3.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // O4 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o4 = new NoSuchObjectException(); this.o4.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -17729,7 +16250,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetO1()) { @@ -17793,25 +16314,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class drop_table_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("drop_table_args"); + public static class drop_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_table_args"); - private static final TField DBNAME_FIELD_DESC = new TField("dbname", TType.STRING, (short)1); - private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)2); - private static final TField DELETE_DATA_FIELD_DESC = new TField("deleteData", TType.BOOL, (short)3); + private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)3); - private String dbname; - private String name; - private boolean deleteData; + private String dbname; // required + private String name; // required + private boolean deleteData; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DBNAME((short)1, "dbname"), NAME((short)2, "name"), DELETE_DATA((short)3, "deleteData"); @@ -17878,17 +16415,17 @@ public class ThriftHiveMetastore { private static final int __DELETEDATA_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DBNAME, new FieldMetaData("dbname", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.DELETE_DATA, new FieldMetaData("deleteData", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(drop_table_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_args.class, metaDataMap); } public drop_table_args() { @@ -17945,7 +16482,7 @@ public class ThriftHiveMetastore { this.dbname = null; } - /** Returns true if field dbname is set (has been asigned a value) and false otherwise */ + /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ public boolean isSetDbname() { return this.dbname != null; } @@ -17968,7 +16505,7 @@ public class ThriftHiveMetastore { this.name = null; } - /** Returns true if field name is set (has been asigned a value) and false otherwise */ + /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } @@ -17992,7 +16529,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__DELETEDATA_ISSET_ID); } - /** Returns true if field deleteData is set (has been asigned a value) and false otherwise */ + /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ public boolean isSetDeleteData() { return __isset_bit_vector.get(__DELETEDATA_ISSET_ID); } @@ -18039,13 +16576,13 @@ public class ThriftHiveMetastore { return getName(); case DELETE_DATA: - return new Boolean(isDeleteData()); + return Boolean.valueOf(isDeleteData()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -18123,7 +16660,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDbname()) { - lastComparison = TBaseHelper.compareTo(this.dbname, typedOther.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } @@ -18133,7 +16670,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetName()) { - lastComparison = TBaseHelper.compareTo(this.name, typedOther.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } @@ -18143,7 +16680,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDeleteData()) { - lastComparison = TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); if (lastComparison != 0) { return lastComparison; } @@ -18155,40 +16692,40 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DBNAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.dbname = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // DELETE_DATA - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.deleteData = iprot.readBool(); setDeleteDataIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -18196,7 +16733,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -18245,23 +16782,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + } - public static class drop_table_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("drop_table_result"); + public static class drop_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_table_result"); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O3_FIELD_DESC = new TField("o3", TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private NoSuchObjectException o1; - private MetaException o3; + private NoSuchObjectException o1; // required + private MetaException o3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { O1((short)1, "o1"), O3((short)2, "o3"); @@ -18323,15 +16878,15 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O3, new FieldMetaData("o3", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(drop_table_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_result.class, metaDataMap); } public drop_table_result() { @@ -18380,7 +16935,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -18403,7 +16958,7 @@ public class ThriftHiveMetastore { this.o3 = null; } - /** Returns true if field o3 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ public boolean isSetO3() { return this.o3 != null; } @@ -18447,7 +17002,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -18514,7 +17069,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -18524,7 +17079,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO3()) { - lastComparison = TBaseHelper.compareTo(this.o3, typedOther.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -18536,34 +17091,34 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new NoSuchObjectException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O3 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o3 = new MetaException(); this.o3.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -18571,7 +17126,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetO1()) { @@ -18611,23 +17166,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_tables_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_tables_args"); + public static class get_tables_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField PATTERN_FIELD_DESC = new TField("pattern", TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pattern", org.apache.thrift.protocol.TType.STRING, (short)2); - private String db_name; - private String pattern; + private String db_name; // required + private String pattern; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), PATTERN((short)2, "pattern"); @@ -18689,15 +17260,15 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PATTERN, new FieldMetaData("pattern", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pattern", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_tables_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_args.class, metaDataMap); } public get_tables_args() { @@ -18746,7 +17317,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -18769,7 +17340,7 @@ public class ThriftHiveMetastore { this.pattern = null; } - /** Returns true if field pattern is set (has been asigned a value) and false otherwise */ + /** Returns true if field pattern is set (has been assigned a value) and false otherwise */ public boolean isSetPattern() { return this.pattern != null; } @@ -18813,7 +17384,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -18880,7 +17451,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -18890,7 +17461,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPattern()) { - lastComparison = TBaseHelper.compareTo(this.pattern, typedOther.pattern); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, typedOther.pattern); if (lastComparison != 0) { return lastComparison; } @@ -18902,32 +17473,32 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // PATTERN - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.pattern = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -18935,7 +17506,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -18977,23 +17548,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_tables_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_tables_result"); + public static class get_tables_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private List success; - private MetaException o1; + private List success; // required + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"); @@ -19055,16 +17642,16 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_tables_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_result.class, metaDataMap); } public get_tables_result() { @@ -19132,7 +17719,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -19155,7 +17742,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -19199,7 +17786,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -19266,7 +17853,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -19276,7 +17863,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -19288,43 +17875,43 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list119 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list119 = iprot.readListBegin(); this.success = new ArrayList(_list119.size); for (int _i120 = 0; _i120 < _list119.size; ++_i120) { - String _elem121; + String _elem121; // required _elem121 = iprot.readString(); this.success.add(_elem121); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -19332,13 +17919,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size())); for (String _iter122 : this.success) { oprot.writeString(_iter122); @@ -19379,21 +17966,37 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_all_tables_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_all_tables_args"); + public static class get_all_tables_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_tables_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private String db_name; + private String db_name; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"); private static final Map byName = new HashMap(); @@ -19452,13 +18055,13 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + 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))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_all_tables_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_tables_args.class, metaDataMap); } public get_all_tables_args() { @@ -19501,7 +18104,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -19534,7 +18137,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -19590,7 +18193,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -19602,25 +18205,25 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -19628,7 +18231,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -19657,23 +18260,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_all_tables_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_all_tables_result"); + public static class get_all_tables_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_tables_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private List success; - private MetaException o1; + private List success; // required + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"); @@ -19735,16 +18354,16 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_all_tables_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_tables_result.class, metaDataMap); } public get_all_tables_result() { @@ -19812,7 +18431,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -19835,7 +18454,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -19879,7 +18498,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -19946,7 +18565,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -19956,7 +18575,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -19968,43 +18587,43 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list123 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list123 = iprot.readListBegin(); this.success = new ArrayList(_list123.size); for (int _i124 = 0; _i124 < _list123.size; ++_i124) { - String _elem125; + String _elem125; // required _elem125 = iprot.readString(); this.success.add(_elem125); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -20012,13 +18631,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size())); for (String _iter126 : this.success) { oprot.writeString(_iter126); @@ -20059,23 +18678,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_table_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_table_args"); + public static class get_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_args"); - private static final TField DBNAME_FIELD_DESC = new TField("dbname", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private String dbname; - private String tbl_name; + private String dbname; // required + private String tbl_name; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DBNAME((short)1, "dbname"), TBL_NAME((short)2, "tbl_name"); @@ -20137,15 +18772,15 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DBNAME, new FieldMetaData("dbname", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_table_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_args.class, metaDataMap); } public get_table_args() { @@ -20194,7 +18829,7 @@ public class ThriftHiveMetastore { this.dbname = null; } - /** Returns true if field dbname is set (has been asigned a value) and false otherwise */ + /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ public boolean isSetDbname() { return this.dbname != null; } @@ -20217,7 +18852,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -20261,7 +18896,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -20328,7 +18963,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDbname()) { - lastComparison = TBaseHelper.compareTo(this.dbname, typedOther.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } @@ -20338,7 +18973,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -20350,32 +18985,32 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DBNAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.dbname = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -20383,7 +19018,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -20425,25 +19060,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_table_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_table_result"); + public static class get_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.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 Table success; - private MetaException o1; - private NoSuchObjectException o2; + private Table success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"); @@ -20508,17 +19159,17 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Table.class))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); + 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); - FieldMetaData.addStructMetaDataMap(get_table_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_result.class, metaDataMap); } public get_table_result() { @@ -20573,7 +19224,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -20596,7 +19247,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -20619,7 +19270,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -20674,7 +19325,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -20752,7 +19403,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -20762,7 +19413,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -20772,7 +19423,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -20784,42 +19435,42 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new Table(); this.success.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new NoSuchObjectException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -20827,7 +19478,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -20879,23 +19530,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_table_objects_by_name_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_table_objects_by_name_args"); + public static class get_table_objects_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_args"); - private static final TField DBNAME_FIELD_DESC = new TField("dbname", TType.STRING, (short)1); - private static final TField TBL_NAMES_FIELD_DESC = new TField("tbl_names", TType.LIST, (short)2); + private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_names", org.apache.thrift.protocol.TType.LIST, (short)2); - private String dbname; - private List tbl_names; + private String dbname; // required + private List tbl_names; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DBNAME((short)1, "dbname"), TBL_NAMES((short)2, "tbl_names"); @@ -20957,16 +19624,16 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DBNAME, new FieldMetaData("dbname", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAMES, new FieldMetaData("tbl_names", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAMES, new org.apache.thrift.meta_data.FieldMetaData("tbl_names", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_args.class, metaDataMap); } public get_table_objects_by_name_args() { @@ -21019,7 +19686,7 @@ public class ThriftHiveMetastore { this.dbname = null; } - /** Returns true if field dbname is set (has been asigned a value) and false otherwise */ + /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ public boolean isSetDbname() { return this.dbname != null; } @@ -21057,7 +19724,7 @@ public class ThriftHiveMetastore { this.tbl_names = null; } - /** Returns true if field tbl_names is set (has been asigned a value) and false otherwise */ + /** Returns true if field tbl_names is set (has been assigned a value) and false otherwise */ public boolean isSetTbl_names() { return this.tbl_names != null; } @@ -21101,7 +19768,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -21168,7 +19835,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDbname()) { - lastComparison = TBaseHelper.compareTo(this.dbname, typedOther.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } @@ -21178,7 +19845,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_names()) { - lastComparison = TBaseHelper.compareTo(this.tbl_names, typedOther.tbl_names); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_names, typedOther.tbl_names); if (lastComparison != 0) { return lastComparison; } @@ -21190,42 +19857,42 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DBNAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.dbname = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAMES - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list127 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list127 = iprot.readListBegin(); this.tbl_names = new ArrayList(_list127.size); for (int _i128 = 0; _i128 < _list127.size; ++_i128) { - String _elem129; + String _elem129; // required _elem129 = iprot.readString(); this.tbl_names.add(_elem129); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -21233,7 +19900,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -21245,7 +19912,7 @@ public class ThriftHiveMetastore { if (this.tbl_names != null) { oprot.writeFieldBegin(TBL_NAMES_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.tbl_names.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.tbl_names.size())); for (String _iter130 : this.tbl_names) { oprot.writeString(_iter130); @@ -21282,27 +19949,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_table_objects_by_name_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_table_objects_by_name_result"); + public static class get_table_objects_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); - private static final TField O3_FIELD_DESC = new TField("o3", TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private List
success; - private MetaException o1; - private InvalidOperationException o2; - private UnknownDBException o3; + private List
success; // required + private MetaException o1; // required + private InvalidOperationException o2; // required + private UnknownDBException o3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"), @@ -21370,20 +20053,20 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Table.class)))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O3, new FieldMetaData("o3", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_result.class, metaDataMap); } public get_table_objects_by_name_result() { @@ -21463,7 +20146,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -21486,7 +20169,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -21509,7 +20192,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -21532,7 +20215,7 @@ public class ThriftHiveMetastore { this.o3 = null; } - /** Returns true if field o3 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ public boolean isSetO3() { return this.o3 != null; } @@ -21598,7 +20281,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -21687,7 +20370,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -21697,7 +20380,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -21707,7 +20390,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -21717,7 +20400,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO3()) { - lastComparison = TBaseHelper.compareTo(this.o3, typedOther.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -21729,24 +20412,24 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list131 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list131 = iprot.readListBegin(); this.success = new ArrayList
(_list131.size); for (int _i132 = 0; _i132 < _list131.size; ++_i132) { - Table _elem133; + Table _elem133; // required _elem133 = new Table(); _elem133.read(iprot); this.success.add(_elem133); @@ -21754,35 +20437,35 @@ public class ThriftHiveMetastore { iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new InvalidOperationException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // O3 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o3 = new UnknownDBException(); this.o3.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -21790,13 +20473,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); for (Table _iter134 : this.success) { _iter134.write(oprot); @@ -21861,25 +20544,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_table_names_by_filter_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_table_names_by_filter_args"); + public static class get_table_names_by_filter_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_names_by_filter_args"); - private static final TField DBNAME_FIELD_DESC = new TField("dbname", TType.STRING, (short)1); - private static final TField FILTER_FIELD_DESC = new TField("filter", TType.STRING, (short)2); - private static final TField MAX_TABLES_FIELD_DESC = new TField("max_tables", TType.I16, (short)3); + private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("filter", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField MAX_TABLES_FIELD_DESC = new org.apache.thrift.protocol.TField("max_tables", org.apache.thrift.protocol.TType.I16, (short)3); - private String dbname; - private String filter; - private short max_tables; + private String dbname; // required + private String filter; // required + private short max_tables; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DBNAME((short)1, "dbname"), FILTER((short)2, "filter"), MAX_TABLES((short)3, "max_tables"); @@ -21946,17 +20645,17 @@ public class ThriftHiveMetastore { private static final int __MAX_TABLES_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DBNAME, new FieldMetaData("dbname", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.FILTER, new FieldMetaData("filter", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.MAX_TABLES, new FieldMetaData("max_tables", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I16))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FILTER, new org.apache.thrift.meta_data.FieldMetaData("filter", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.MAX_TABLES, new org.apache.thrift.meta_data.FieldMetaData("max_tables", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_table_names_by_filter_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_names_by_filter_args.class, metaDataMap); } public get_table_names_by_filter_args() { @@ -22015,7 +20714,7 @@ public class ThriftHiveMetastore { this.dbname = null; } - /** Returns true if field dbname is set (has been asigned a value) and false otherwise */ + /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ public boolean isSetDbname() { return this.dbname != null; } @@ -22038,7 +20737,7 @@ public class ThriftHiveMetastore { this.filter = null; } - /** Returns true if field filter is set (has been asigned a value) and false otherwise */ + /** Returns true if field filter is set (has been assigned a value) and false otherwise */ public boolean isSetFilter() { return this.filter != null; } @@ -22062,7 +20761,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__MAX_TABLES_ISSET_ID); } - /** Returns true if field max_tables is set (has been asigned a value) and false otherwise */ + /** Returns true if field max_tables is set (has been assigned a value) and false otherwise */ public boolean isSetMax_tables() { return __isset_bit_vector.get(__MAX_TABLES_ISSET_ID); } @@ -22109,13 +20808,13 @@ public class ThriftHiveMetastore { return getFilter(); case MAX_TABLES: - return new Short(getMax_tables()); + return Short.valueOf(getMax_tables()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -22193,7 +20892,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDbname()) { - lastComparison = TBaseHelper.compareTo(this.dbname, typedOther.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } @@ -22203,7 +20902,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetFilter()) { - lastComparison = TBaseHelper.compareTo(this.filter, typedOther.filter); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, typedOther.filter); if (lastComparison != 0) { return lastComparison; } @@ -22213,7 +20912,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetMax_tables()) { - lastComparison = TBaseHelper.compareTo(this.max_tables, typedOther.max_tables); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_tables, typedOther.max_tables); if (lastComparison != 0) { return lastComparison; } @@ -22225,40 +20924,40 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DBNAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.dbname = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // FILTER - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.filter = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // MAX_TABLES - if (field.type == TType.I16) { + if (field.type == org.apache.thrift.protocol.TType.I16) { this.max_tables = iprot.readI16(); setMax_tablesIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -22266,7 +20965,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -22315,27 +21014,45 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + } - public static class get_table_names_by_filter_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_table_names_by_filter_result"); + public static class get_table_names_by_filter_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_names_by_filter_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); - private static final TField O3_FIELD_DESC = new TField("o3", TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private List success; - private MetaException o1; - private InvalidOperationException o2; - private UnknownDBException o3; + private List success; // required + private MetaException o1; // required + private InvalidOperationException o2; // required + private UnknownDBException o3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"), @@ -22403,20 +21120,20 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O3, new FieldMetaData("o3", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_table_names_by_filter_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_names_by_filter_result.class, metaDataMap); } public get_table_names_by_filter_result() { @@ -22496,7 +21213,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -22519,7 +21236,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -22542,7 +21259,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -22565,7 +21282,7 @@ public class ThriftHiveMetastore { this.o3 = null; } - /** Returns true if field o3 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ public boolean isSetO3() { return this.o3 != null; } @@ -22631,7 +21348,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -22720,7 +21437,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -22730,7 +21447,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -22740,7 +21457,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -22750,7 +21467,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO3()) { - lastComparison = TBaseHelper.compareTo(this.o3, typedOther.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -22762,59 +21479,59 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list135 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list135 = iprot.readListBegin(); this.success = new ArrayList(_list135.size); for (int _i136 = 0; _i136 < _list135.size; ++_i136) { - String _elem137; + String _elem137; // required _elem137 = iprot.readString(); this.success.add(_elem137); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new InvalidOperationException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // O3 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o3 = new UnknownDBException(); this.o3.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -22822,13 +21539,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size())); for (String _iter138 : this.success) { oprot.writeString(_iter138); @@ -22893,25 +21610,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class alter_table_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("alter_table_args"); + public static class alter_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_args"); - private static final TField DBNAME_FIELD_DESC = new TField("dbname", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField NEW_TBL_FIELD_DESC = new TField("new_tbl", TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField NEW_TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("new_tbl", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private String dbname; - private String tbl_name; - private Table new_tbl; + private String dbname; // required + private String tbl_name; // required + private Table new_tbl; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DBNAME((short)1, "dbname"), TBL_NAME((short)2, "tbl_name"), NEW_TBL((short)3, "new_tbl"); @@ -22976,17 +21709,17 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DBNAME, new FieldMetaData("dbname", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.NEW_TBL, new FieldMetaData("new_tbl", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Table.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.NEW_TBL, new org.apache.thrift.meta_data.FieldMetaData("new_tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(alter_table_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_args.class, metaDataMap); } public alter_table_args() { @@ -23041,7 +21774,7 @@ public class ThriftHiveMetastore { this.dbname = null; } - /** Returns true if field dbname is set (has been asigned a value) and false otherwise */ + /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ public boolean isSetDbname() { return this.dbname != null; } @@ -23064,7 +21797,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -23087,7 +21820,7 @@ public class ThriftHiveMetastore { this.new_tbl = null; } - /** Returns true if field new_tbl is set (has been asigned a value) and false otherwise */ + /** Returns true if field new_tbl is set (has been assigned a value) and false otherwise */ public boolean isSetNew_tbl() { return this.new_tbl != null; } @@ -23142,7 +21875,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -23220,7 +21953,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDbname()) { - lastComparison = TBaseHelper.compareTo(this.dbname, typedOther.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } @@ -23230,7 +21963,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -23240,7 +21973,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetNew_tbl()) { - lastComparison = TBaseHelper.compareTo(this.new_tbl, typedOther.new_tbl); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, typedOther.new_tbl); if (lastComparison != 0) { return lastComparison; } @@ -23252,40 +21985,40 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DBNAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.dbname = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // NEW_TBL - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.new_tbl = new Table(); this.new_tbl.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -23293,7 +22026,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -23348,23 +22081,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class alter_table_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("alter_table_result"); + public static class alter_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_result"); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); + 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 InvalidOperationException o1; - private MetaException o2; + private InvalidOperationException o1; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { O1((short)1, "o1"), O2((short)2, "o2"); @@ -23426,15 +22175,15 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(alter_table_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_result.class, metaDataMap); } public alter_table_result() { @@ -23483,7 +22232,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -23506,7 +22255,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -23550,7 +22299,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -23617,7 +22366,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -23627,7 +22376,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -23639,34 +22388,34 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new InvalidOperationException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new MetaException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -23674,7 +22423,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetO1()) { @@ -23714,21 +22463,37 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class add_partition_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("add_partition_args"); + public static class add_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_args"); - private static final TField NEW_PART_FIELD_DESC = new TField("new_part", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private Partition new_part; + private Partition new_part; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { NEW_PART((short)1, "new_part"); private static final Map byName = new HashMap(); @@ -23787,13 +22552,13 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NEW_PART, new FieldMetaData("new_part", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Partition.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(add_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_args.class, metaDataMap); } public add_partition_args() { @@ -23836,7 +22601,7 @@ public class ThriftHiveMetastore { this.new_part = null; } - /** Returns true if field new_part is set (has been asigned a value) and false otherwise */ + /** Returns true if field new_part is set (has been assigned a value) and false otherwise */ public boolean isSetNew_part() { return this.new_part != null; } @@ -23869,7 +22634,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -23925,7 +22690,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetNew_part()) { - lastComparison = TBaseHelper.compareTo(this.new_part, typedOther.new_part); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, typedOther.new_part); if (lastComparison != 0) { return lastComparison; } @@ -23937,26 +22702,26 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // NEW_PART - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.new_part = new Partition(); this.new_part.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -23964,7 +22729,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -23993,27 +22758,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class add_partition_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("add_partition_result"); + public static class add_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); - private static final TField O3_FIELD_DESC = new TField("o3", TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private Partition success; - private InvalidObjectException o1; - private AlreadyExistsException o2; - private MetaException o3; + private Partition success; // required + private InvalidObjectException o1; // required + private AlreadyExistsException o2; // required + private MetaException o3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"), @@ -24081,19 +22862,19 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Partition.class))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O3, new FieldMetaData("o3", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(add_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_result.class, metaDataMap); } public add_partition_result() { @@ -24154,7 +22935,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -24177,7 +22958,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -24200,7 +22981,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -24223,7 +23004,7 @@ public class ThriftHiveMetastore { this.o3 = null; } - /** Returns true if field o3 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ public boolean isSetO3() { return this.o3 != null; } @@ -24289,7 +23070,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -24378,7 +23159,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -24388,7 +23169,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -24398,7 +23179,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -24408,7 +23189,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO3()) { - lastComparison = TBaseHelper.compareTo(this.o3, typedOther.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -24420,50 +23201,50 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new Partition(); this.success.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new InvalidObjectException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new AlreadyExistsException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // O3 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o3 = new MetaException(); this.o3.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -24471,7 +23252,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -24535,21 +23316,37 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class add_partitions_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("add_partitions_args"); + public static class add_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_args"); - private static final TField NEW_PARTS_FIELD_DESC = new TField("new_parts", TType.LIST, (short)1); + private static final org.apache.thrift.protocol.TField NEW_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("new_parts", org.apache.thrift.protocol.TType.LIST, (short)1); - private List new_parts; + private List new_parts; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { NEW_PARTS((short)1, "new_parts"); private static final Map byName = new HashMap(); @@ -24608,14 +23405,14 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NEW_PARTS, new FieldMetaData("new_parts", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Partition.class)))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.NEW_PARTS, new org.apache.thrift.meta_data.FieldMetaData("new_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(add_partitions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_args.class, metaDataMap); } public add_partitions_args() { @@ -24677,7 +23474,7 @@ public class ThriftHiveMetastore { this.new_parts = null; } - /** Returns true if field new_parts is set (has been asigned a value) and false otherwise */ + /** Returns true if field new_parts is set (has been assigned a value) and false otherwise */ public boolean isSetNew_parts() { return this.new_parts != null; } @@ -24710,7 +23507,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -24766,7 +23563,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetNew_parts()) { - lastComparison = TBaseHelper.compareTo(this.new_parts, typedOther.new_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, typedOther.new_parts); if (lastComparison != 0) { return lastComparison; } @@ -24778,24 +23575,24 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // NEW_PARTS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list139 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list139 = iprot.readListBegin(); this.new_parts = new ArrayList(_list139.size); for (int _i140 = 0; _i140 < _list139.size; ++_i140) { - Partition _elem141; + Partition _elem141; // required _elem141 = new Partition(); _elem141.read(iprot); this.new_parts.add(_elem141); @@ -24803,11 +23600,11 @@ public class ThriftHiveMetastore { iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -24815,14 +23612,14 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.new_parts != null) { oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.new_parts.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.new_parts.size())); for (Partition _iter142 : this.new_parts) { _iter142.write(oprot); @@ -24851,27 +23648,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class add_partitions_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("add_partitions_result"); + public static class add_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); - private static final TField O3_FIELD_DESC = new TField("o3", TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private int success; - private InvalidObjectException o1; - private AlreadyExistsException o2; - private MetaException o3; + private int success; // required + private InvalidObjectException o1; // required + private AlreadyExistsException o2; // required + private MetaException o3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"), @@ -24941,19 +23754,19 @@ public class ThriftHiveMetastore { private static final int __SUCCESS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O3, new FieldMetaData("o3", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(add_partitions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_result.class, metaDataMap); } public add_partitions_result() { @@ -25017,7 +23830,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__SUCCESS_ISSET_ID); } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return __isset_bit_vector.get(__SUCCESS_ISSET_ID); } @@ -25038,7 +23851,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -25061,7 +23874,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -25084,7 +23897,7 @@ public class ThriftHiveMetastore { this.o3 = null; } - /** Returns true if field o3 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ public boolean isSetO3() { return this.o3 != null; } @@ -25135,7 +23948,7 @@ public class ThriftHiveMetastore { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return new Integer(getSuccess()); + return Integer.valueOf(getSuccess()); case O1: return getO1(); @@ -25150,7 +23963,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -25239,7 +24052,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -25249,7 +24062,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -25259,7 +24072,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -25269,7 +24082,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO3()) { - lastComparison = TBaseHelper.compareTo(this.o3, typedOther.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -25281,50 +24094,50 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.success = iprot.readI32(); setSuccessIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new InvalidObjectException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new AlreadyExistsException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // O3 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o3 = new MetaException(); this.o3.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -25332,7 +24145,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -25392,25 +24205,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class append_partition_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("append_partition_args"); + public static class append_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField PART_VALS_FIELD_DESC = new TField("part_vals", TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); - private String db_name; - private String tbl_name; - private List part_vals; + private String db_name; // required + private String tbl_name; // required + private List part_vals; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), PART_VALS((short)3, "part_vals"); @@ -25475,18 +24304,18 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new FieldMetaData("part_vals", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(append_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_args.class, metaDataMap); } public append_partition_args() { @@ -25545,7 +24374,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -25568,7 +24397,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -25606,7 +24435,7 @@ public class ThriftHiveMetastore { this.part_vals = null; } - /** Returns true if field part_vals is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -25661,7 +24490,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -25739,7 +24568,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -25749,7 +24578,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -25759,7 +24588,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPart_vals()) { - lastComparison = TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } @@ -25771,49 +24600,49 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // PART_VALS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list143 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list143 = iprot.readListBegin(); this.part_vals = new ArrayList(_list143.size); for (int _i144 = 0; _i144 < _list143.size; ++_i144) { - String _elem145; + String _elem145; // required _elem145 = iprot.readString(); this.part_vals.add(_elem145); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -25821,7 +24650,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -25838,7 +24667,7 @@ public class ThriftHiveMetastore { if (this.part_vals != null) { oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.part_vals.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.part_vals.size())); for (String _iter146 : this.part_vals) { oprot.writeString(_iter146); @@ -25883,27 +24712,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class append_partition_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("append_partition_result"); + public static class append_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); - private static final TField O3_FIELD_DESC = new TField("o3", TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private Partition success; - private InvalidObjectException o1; - private AlreadyExistsException o2; - private MetaException o3; + private Partition success; // required + private InvalidObjectException o1; // required + private AlreadyExistsException o2; // required + private MetaException o3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"), @@ -25971,19 +24816,19 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Partition.class))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O3, new FieldMetaData("o3", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(append_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_result.class, metaDataMap); } public append_partition_result() { @@ -26044,7 +24889,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -26067,7 +24912,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -26090,7 +24935,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -26113,7 +24958,7 @@ public class ThriftHiveMetastore { this.o3 = null; } - /** Returns true if field o3 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ public boolean isSetO3() { return this.o3 != null; } @@ -26179,7 +25024,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -26268,7 +25113,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -26278,7 +25123,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -26288,7 +25133,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -26298,7 +25143,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO3()) { - lastComparison = TBaseHelper.compareTo(this.o3, typedOther.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -26310,50 +25155,50 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new Partition(); this.success.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new InvalidObjectException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new AlreadyExistsException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // O3 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o3 = new MetaException(); this.o3.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -26361,7 +25206,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -26425,25 +25270,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class append_partition_by_name_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("append_partition_by_name_args"); + public static class append_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_by_name_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField PART_NAME_FIELD_DESC = new TField("part_name", TType.STRING, (short)3); + 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 String db_name; - private String tbl_name; - private String part_name; + 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 TFieldIdEnum { + 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"); @@ -26508,17 +25369,17 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PART_NAME, new FieldMetaData("part_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + 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); - FieldMetaData.addStructMetaDataMap(append_partition_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_args.class, metaDataMap); } public append_partition_by_name_args() { @@ -26573,7 +25434,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -26596,7 +25457,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -26619,7 +25480,7 @@ public class ThriftHiveMetastore { this.part_name = null; } - /** Returns true if field part_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -26674,7 +25535,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -26752,7 +25613,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -26762,7 +25623,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -26772,7 +25633,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPart_name()) { - lastComparison = TBaseHelper.compareTo(this.part_name, typedOther.part_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } @@ -26784,39 +25645,39 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // PART_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.part_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -26824,7 +25685,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -26879,27 +25740,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class append_partition_by_name_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("append_partition_by_name_result"); + public static class append_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_by_name_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); - private static final TField O3_FIELD_DESC = new TField("o3", TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private Partition success; - private InvalidObjectException o1; - private AlreadyExistsException o2; - private MetaException o3; + private Partition success; // required + private InvalidObjectException o1; // required + private AlreadyExistsException o2; // required + private MetaException o3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"), @@ -26967,19 +25844,19 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Partition.class))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O3, new FieldMetaData("o3", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(append_partition_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_result.class, metaDataMap); } public append_partition_by_name_result() { @@ -27040,7 +25917,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -27063,7 +25940,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -27086,7 +25963,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -27109,7 +25986,7 @@ public class ThriftHiveMetastore { this.o3 = null; } - /** Returns true if field o3 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ public boolean isSetO3() { return this.o3 != null; } @@ -27175,7 +26052,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -27264,7 +26141,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -27274,7 +26151,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -27284,7 +26161,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -27294,7 +26171,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO3()) { - lastComparison = TBaseHelper.compareTo(this.o3, typedOther.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -27306,50 +26183,50 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new Partition(); this.success.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new InvalidObjectException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new AlreadyExistsException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // O3 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o3 = new MetaException(); this.o3.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -27357,7 +26234,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -27421,27 +26298,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class drop_partition_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("drop_partition_args"); + public static class drop_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField PART_VALS_FIELD_DESC = new TField("part_vals", TType.LIST, (short)3); - private static final TField DELETE_DATA_FIELD_DESC = new TField("deleteData", TType.BOOL, (short)4); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); - private String db_name; - private String tbl_name; - private List part_vals; - private boolean deleteData; + private String db_name; // required + private String tbl_name; // required + private List part_vals; // required + private boolean deleteData; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), PART_VALS((short)3, "part_vals"), @@ -27511,20 +26404,20 @@ public class ThriftHiveMetastore { private static final int __DELETEDATA_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new FieldMetaData("part_vals", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.DELETE_DATA, new FieldMetaData("deleteData", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(drop_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_args.class, metaDataMap); } public drop_partition_args() { @@ -27591,7 +26484,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -27614,7 +26507,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -27652,7 +26545,7 @@ public class ThriftHiveMetastore { this.part_vals = null; } - /** Returns true if field part_vals is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -27676,7 +26569,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__DELETEDATA_ISSET_ID); } - /** Returns true if field deleteData is set (has been asigned a value) and false otherwise */ + /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ public boolean isSetDeleteData() { return __isset_bit_vector.get(__DELETEDATA_ISSET_ID); } @@ -27734,13 +26627,13 @@ public class ThriftHiveMetastore { return getPart_vals(); case DELETE_DATA: - return new Boolean(isDeleteData()); + return Boolean.valueOf(isDeleteData()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -27829,7 +26722,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -27839,7 +26732,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -27849,7 +26742,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPart_vals()) { - lastComparison = TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } @@ -27859,7 +26752,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDeleteData()) { - lastComparison = TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); if (lastComparison != 0) { return lastComparison; } @@ -27871,57 +26764,57 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // PART_VALS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list147 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list147 = iprot.readListBegin(); this.part_vals = new ArrayList(_list147.size); for (int _i148 = 0; _i148 < _list147.size; ++_i148) { - String _elem149; + String _elem149; // required _elem149 = iprot.readString(); this.part_vals.add(_elem149); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // DELETE_DATA - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.deleteData = iprot.readBool(); setDeleteDataIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -27929,7 +26822,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -27946,7 +26839,7 @@ public class ThriftHiveMetastore { if (this.part_vals != null) { oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.part_vals.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.part_vals.size())); for (String _iter150 : this.part_vals) { oprot.writeString(_iter150); @@ -27998,25 +26891,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + } - public static class drop_partition_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("drop_partition_result"); + public static class drop_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private boolean success; - private NoSuchObjectException o1; - private MetaException o2; + private boolean success; // required + private NoSuchObjectException o1; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"); @@ -28083,17 +26994,17 @@ public class ThriftHiveMetastore { private static final int __SUCCESS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + 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); - FieldMetaData.addStructMetaDataMap(drop_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_result.class, metaDataMap); } public drop_partition_result() { @@ -28151,7 +27062,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__SUCCESS_ISSET_ID); } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return __isset_bit_vector.get(__SUCCESS_ISSET_ID); } @@ -28172,7 +27083,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -28195,7 +27106,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -28238,7 +27149,7 @@ public class ThriftHiveMetastore { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return new Boolean(isSuccess()); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -28250,7 +27161,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -28328,7 +27239,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -28338,7 +27249,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -28348,7 +27259,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -28360,42 +27271,42 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.success = iprot.readBool(); setSuccessIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new NoSuchObjectException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new MetaException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -28403,7 +27314,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -28451,27 +27362,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class drop_partition_by_name_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("drop_partition_by_name_args"); + public static class drop_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_by_name_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField PART_NAME_FIELD_DESC = new TField("part_name", TType.STRING, (short)3); - private static final TField DELETE_DATA_FIELD_DESC = new TField("deleteData", TType.BOOL, (short)4); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); - private String db_name; - private String tbl_name; - private String part_name; - private boolean deleteData; + private String db_name; // required + private String tbl_name; // required + private String part_name; // required + private boolean deleteData; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + 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"), @@ -28541,19 +27468,19 @@ public class ThriftHiveMetastore { private static final int __DELETEDATA_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PART_NAME, new FieldMetaData("part_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.DELETE_DATA, new FieldMetaData("deleteData", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(drop_partition_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_args.class, metaDataMap); } public drop_partition_by_name_args() { @@ -28616,7 +27543,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -28639,7 +27566,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -28662,7 +27589,7 @@ public class ThriftHiveMetastore { this.part_name = null; } - /** Returns true if field part_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -28686,7 +27613,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__DELETEDATA_ISSET_ID); } - /** Returns true if field deleteData is set (has been asigned a value) and false otherwise */ + /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ public boolean isSetDeleteData() { return __isset_bit_vector.get(__DELETEDATA_ISSET_ID); } @@ -28744,13 +27671,13 @@ public class ThriftHiveMetastore { return getPart_name(); case DELETE_DATA: - return new Boolean(isDeleteData()); + return Boolean.valueOf(isDeleteData()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -28839,7 +27766,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -28849,7 +27776,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -28859,7 +27786,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPart_name()) { - lastComparison = TBaseHelper.compareTo(this.part_name, typedOther.part_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } @@ -28869,7 +27796,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDeleteData()) { - lastComparison = TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); if (lastComparison != 0) { return lastComparison; } @@ -28881,47 +27808,47 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // PART_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.part_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // DELETE_DATA - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.deleteData = iprot.readBool(); setDeleteDataIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -28929,7 +27856,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -28991,25 +27918,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + } - public static class drop_partition_by_name_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("drop_partition_by_name_result"); + public static class drop_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_by_name_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private boolean success; - private NoSuchObjectException o1; - private MetaException o2; + private boolean success; // required + private NoSuchObjectException o1; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"); @@ -29076,17 +28021,17 @@ public class ThriftHiveMetastore { private static final int __SUCCESS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + 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); - FieldMetaData.addStructMetaDataMap(drop_partition_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_result.class, metaDataMap); } public drop_partition_by_name_result() { @@ -29144,7 +28089,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__SUCCESS_ISSET_ID); } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return __isset_bit_vector.get(__SUCCESS_ISSET_ID); } @@ -29165,7 +28110,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -29188,7 +28133,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -29231,7 +28176,7 @@ public class ThriftHiveMetastore { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return new Boolean(isSuccess()); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -29243,7 +28188,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -29321,7 +28266,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -29331,7 +28276,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -29341,7 +28286,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -29353,42 +28298,42 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.success = iprot.readBool(); setSuccessIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new NoSuchObjectException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new MetaException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -29396,7 +28341,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -29444,25 +28389,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_partition_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partition_args"); + public static class get_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField PART_VALS_FIELD_DESC = new TField("part_vals", TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); - private String db_name; - private String tbl_name; - private List part_vals; + private String db_name; // required + private String tbl_name; // required + private List part_vals; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), PART_VALS((short)3, "part_vals"); @@ -29527,18 +28488,18 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new FieldMetaData("part_vals", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_args.class, metaDataMap); } public get_partition_args() { @@ -29597,7 +28558,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -29620,7 +28581,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -29658,7 +28619,7 @@ public class ThriftHiveMetastore { this.part_vals = null; } - /** Returns true if field part_vals is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -29713,7 +28674,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -29791,7 +28752,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -29801,7 +28762,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -29811,7 +28772,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPart_vals()) { - lastComparison = TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } @@ -29823,49 +28784,49 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // PART_VALS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list151 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list151 = iprot.readListBegin(); this.part_vals = new ArrayList(_list151.size); for (int _i152 = 0; _i152 < _list151.size; ++_i152) { - String _elem153; + String _elem153; // required _elem153 = iprot.readString(); this.part_vals.add(_elem153); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -29873,7 +28834,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -29890,7 +28851,7 @@ public class ThriftHiveMetastore { if (this.part_vals != null) { oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.part_vals.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.part_vals.size())); for (String _iter154 : this.part_vals) { oprot.writeString(_iter154); @@ -29935,25 +28896,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_partition_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partition_result"); + public static class get_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.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 Partition success; - private MetaException o1; - private NoSuchObjectException o2; + 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 TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"); @@ -30018,17 +28995,17 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Partition.class))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + 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); - FieldMetaData.addStructMetaDataMap(get_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_result.class, metaDataMap); } public get_partition_result() { @@ -30083,7 +29060,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -30106,7 +29083,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -30129,7 +29106,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -30184,7 +29161,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -30262,7 +29239,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -30272,7 +29249,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -30282,7 +29259,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -30294,42 +29271,42 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new Partition(); this.success.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new NoSuchObjectException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -30337,7 +29314,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -30389,29 +29366,45 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_partition_with_auth_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partition_with_auth_args"); + public static class get_partition_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_with_auth_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField PART_VALS_FIELD_DESC = new TField("part_vals", TType.LIST, (short)3); - private static final TField USER_NAME_FIELD_DESC = new TField("user_name", TType.STRING, (short)4); - private static final TField GROUP_NAMES_FIELD_DESC = new TField("group_names", TType.LIST, (short)5); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)5); - private String db_name; - private String tbl_name; - private List part_vals; - private String user_name; - private List group_names; + private String db_name; // required + private String tbl_name; // required + private List part_vals; // required + private String user_name; // required + private List group_names; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), PART_VALS((short)3, "part_vals"), @@ -30482,23 +29475,23 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new FieldMetaData("part_vals", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.USER_NAME, new FieldMetaData("user_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.GROUP_NAMES, new FieldMetaData("group_names", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.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); - FieldMetaData.addStructMetaDataMap(get_partition_with_auth_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_with_auth_args.class, metaDataMap); } public get_partition_with_auth_args() { @@ -30573,7 +29566,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -30596,7 +29589,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -30634,7 +29627,7 @@ public class ThriftHiveMetastore { this.part_vals = null; } - /** Returns true if field part_vals is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -30657,7 +29650,7 @@ public class ThriftHiveMetastore { this.user_name = null; } - /** Returns true if field user_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -30695,7 +29688,7 @@ public class ThriftHiveMetastore { this.group_names = null; } - /** Returns true if field group_names is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -30772,7 +29765,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -30872,7 +29865,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -30882,7 +29875,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -30892,7 +29885,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPart_vals()) { - lastComparison = TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } @@ -30902,7 +29895,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetUser_name()) { - lastComparison = TBaseHelper.compareTo(this.user_name, typedOther.user_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, typedOther.user_name); if (lastComparison != 0) { return lastComparison; } @@ -30912,7 +29905,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetGroup_names()) { - lastComparison = TBaseHelper.compareTo(this.group_names, typedOther.group_names); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, typedOther.group_names); if (lastComparison != 0) { return lastComparison; } @@ -30924,73 +29917,73 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // PART_VALS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list155 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list155 = iprot.readListBegin(); this.part_vals = new ArrayList(_list155.size); for (int _i156 = 0; _i156 < _list155.size; ++_i156) { - String _elem157; + String _elem157; // required _elem157 = iprot.readString(); this.part_vals.add(_elem157); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // USER_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.user_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 5: // GROUP_NAMES - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list158 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list158 = iprot.readListBegin(); this.group_names = new ArrayList(_list158.size); for (int _i159 = 0; _i159 < _list158.size; ++_i159) { - String _elem160; + String _elem160; // required _elem160 = iprot.readString(); this.group_names.add(_elem160); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -30998,7 +29991,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -31015,7 +30008,7 @@ public class ThriftHiveMetastore { if (this.part_vals != null) { oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.part_vals.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.part_vals.size())); for (String _iter161 : this.part_vals) { oprot.writeString(_iter161); @@ -31032,7 +30025,7 @@ public class ThriftHiveMetastore { if (this.group_names != null) { oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.group_names.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.group_names.size())); for (String _iter162 : this.group_names) { oprot.writeString(_iter162); @@ -31093,25 +30086,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_partition_with_auth_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partition_with_auth_result"); + public static class get_partition_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_with_auth_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.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 Partition success; - private MetaException o1; - private NoSuchObjectException o2; + 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 TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"); @@ -31176,17 +30185,17 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Partition.class))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + 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); - FieldMetaData.addStructMetaDataMap(get_partition_with_auth_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_with_auth_result.class, metaDataMap); } public get_partition_with_auth_result() { @@ -31241,7 +30250,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -31264,7 +30273,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -31287,7 +30296,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -31342,7 +30351,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -31420,7 +30429,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -31430,7 +30439,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -31440,7 +30449,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -31452,42 +30461,42 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new Partition(); this.success.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new NoSuchObjectException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -31495,7 +30504,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -31547,25 +30556,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_partition_by_name_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partition_by_name_args"); + public static class get_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_by_name_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField PART_NAME_FIELD_DESC = new TField("part_name", TType.STRING, (short)3); + 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 String db_name; - private String tbl_name; - private String part_name; + 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 TFieldIdEnum { + 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"); @@ -31630,17 +30655,17 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PART_NAME, new FieldMetaData("part_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + 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); - FieldMetaData.addStructMetaDataMap(get_partition_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_by_name_args.class, metaDataMap); } public get_partition_by_name_args() { @@ -31695,7 +30720,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -31718,7 +30743,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -31741,7 +30766,7 @@ public class ThriftHiveMetastore { this.part_name = null; } - /** Returns true if field part_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -31796,7 +30821,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -31874,7 +30899,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -31884,7 +30909,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -31894,7 +30919,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPart_name()) { - lastComparison = TBaseHelper.compareTo(this.part_name, typedOther.part_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } @@ -31906,39 +30931,39 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // PART_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.part_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -31946,7 +30971,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -32001,25 +31026,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_partition_by_name_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partition_by_name_result"); + public static class get_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_by_name_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.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 Partition success; - private MetaException o1; - private NoSuchObjectException o2; + 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 TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"); @@ -32084,17 +31125,17 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Partition.class))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + 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); - FieldMetaData.addStructMetaDataMap(get_partition_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_by_name_result.class, metaDataMap); } public get_partition_by_name_result() { @@ -32149,7 +31190,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -32172,7 +31213,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -32195,7 +31236,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -32250,7 +31291,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -32328,7 +31369,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -32338,7 +31379,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -32348,7 +31389,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -32360,42 +31401,42 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new Partition(); this.success.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new NoSuchObjectException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -32403,7 +31444,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -32455,25 +31496,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_partitions_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partitions_args"); + public static class get_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField MAX_PARTS_FIELD_DESC = new TField("max_parts", TType.I16, (short)3); + 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 String db_name; - private String tbl_name; - private short max_parts; + private String db_name; // required + private String tbl_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 TFieldIdEnum { + 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"); @@ -32540,17 +31597,17 @@ public class ThriftHiveMetastore { private static final int __MAX_PARTS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.MAX_PARTS, new FieldMetaData("max_parts", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I16))); + 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))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_partitions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_args.class, metaDataMap); } public get_partitions_args() { @@ -32609,7 +31666,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -32632,7 +31689,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -32656,7 +31713,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__MAX_PARTS_ISSET_ID); } - /** Returns true if field max_parts is set (has been asigned a value) and false otherwise */ + /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ public boolean isSetMax_parts() { return __isset_bit_vector.get(__MAX_PARTS_ISSET_ID); } @@ -32703,13 +31760,13 @@ public class ThriftHiveMetastore { return getTbl_name(); case MAX_PARTS: - return new Short(getMax_parts()); + return Short.valueOf(getMax_parts()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -32787,7 +31844,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -32797,7 +31854,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -32807,7 +31864,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetMax_parts()) { - lastComparison = TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -32819,40 +31876,40 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // MAX_PARTS - if (field.type == TType.I16) { + if (field.type == org.apache.thrift.protocol.TType.I16) { this.max_parts = iprot.readI16(); setMax_partsIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -32860,7 +31917,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -32909,25 +31966,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + } - public static class get_partitions_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partitions_result"); + public static class get_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.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 List success; - private NoSuchObjectException o1; - private MetaException o2; + 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 TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"); @@ -32992,18 +32067,18 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Partition.class)))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_partitions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_result.class, metaDataMap); } public get_partitions_result() { @@ -33077,7 +32152,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -33100,7 +32175,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -33123,7 +32198,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -33178,7 +32253,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -33256,7 +32331,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -33266,7 +32341,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -33276,7 +32351,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -33288,24 +32363,24 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list163 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list163 = iprot.readListBegin(); this.success = new ArrayList(_list163.size); for (int _i164 = 0; _i164 < _list163.size; ++_i164) { - Partition _elem165; + Partition _elem165; // required _elem165 = new Partition(); _elem165.read(iprot); this.success.add(_elem165); @@ -33313,27 +32388,27 @@ public class ThriftHiveMetastore { iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new NoSuchObjectException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new MetaException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -33341,13 +32416,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); for (Partition _iter166 : this.success) { _iter166.write(oprot); @@ -33400,29 +32475,45 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_partitions_with_auth_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partitions_with_auth_args"); + public static class get_partitions_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_with_auth_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField MAX_PARTS_FIELD_DESC = new TField("max_parts", TType.I16, (short)3); - private static final TField USER_NAME_FIELD_DESC = new TField("user_name", TType.STRING, (short)4); - private static final TField GROUP_NAMES_FIELD_DESC = new TField("group_names", TType.LIST, (short)5); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField 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 String db_name; - private String tbl_name; - private short max_parts; - private String user_name; - private List group_names; + 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 TFieldIdEnum { + 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"), @@ -33495,22 +32586,22 @@ public class ThriftHiveMetastore { private static final int __MAX_PARTS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.MAX_PARTS, new FieldMetaData("max_parts", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I16))); - tmpMap.put(_Fields.USER_NAME, new FieldMetaData("user_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.GROUP_NAMES, new FieldMetaData("group_names", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); + 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.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); - FieldMetaData.addStructMetaDataMap(get_partitions_with_auth_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_with_auth_args.class, metaDataMap); } public get_partitions_with_auth_args() { @@ -33585,7 +32676,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -33608,7 +32699,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -33632,7 +32723,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__MAX_PARTS_ISSET_ID); } - /** Returns true if field max_parts is set (has been asigned a value) and false otherwise */ + /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ public boolean isSetMax_parts() { return __isset_bit_vector.get(__MAX_PARTS_ISSET_ID); } @@ -33653,7 +32744,7 @@ public class ThriftHiveMetastore { this.user_name = null; } - /** Returns true if field user_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -33691,7 +32782,7 @@ public class ThriftHiveMetastore { this.group_names = null; } - /** Returns true if field group_names is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -33756,7 +32847,7 @@ public class ThriftHiveMetastore { return getTbl_name(); case MAX_PARTS: - return new Short(getMax_parts()); + return Short.valueOf(getMax_parts()); case USER_NAME: return getUser_name(); @@ -33768,7 +32859,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -33868,7 +32959,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -33878,7 +32969,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -33888,7 +32979,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetMax_parts()) { - lastComparison = TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -33898,7 +32989,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetUser_name()) { - lastComparison = TBaseHelper.compareTo(this.user_name, typedOther.user_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, typedOther.user_name); if (lastComparison != 0) { return lastComparison; } @@ -33908,7 +32999,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetGroup_names()) { - lastComparison = TBaseHelper.compareTo(this.group_names, typedOther.group_names); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, typedOther.group_names); if (lastComparison != 0) { return lastComparison; } @@ -33920,64 +33011,64 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // MAX_PARTS - if (field.type == TType.I16) { + if (field.type == org.apache.thrift.protocol.TType.I16) { this.max_parts = iprot.readI16(); setMax_partsIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // USER_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.user_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 5: // GROUP_NAMES - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list167 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list167 = iprot.readListBegin(); this.group_names = new ArrayList(_list167.size); for (int _i168 = 0; _i168 < _list167.size; ++_i168) { - String _elem169; + String _elem169; // required _elem169 = iprot.readString(); this.group_names.add(_elem169); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -33985,7 +33076,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -34010,7 +33101,7 @@ public class ThriftHiveMetastore { if (this.group_names != null) { oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.group_names.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.group_names.size())); for (String _iter170 : this.group_names) { oprot.writeString(_iter170); @@ -34067,25 +33158,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + } - public static class get_partitions_with_auth_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partitions_with_auth_result"); + public static class get_partitions_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_with_auth_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.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 List success; - private NoSuchObjectException o1; - private MetaException o2; + 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 TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"); @@ -34150,18 +33259,18 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Partition.class)))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_partitions_with_auth_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_with_auth_result.class, metaDataMap); } public get_partitions_with_auth_result() { @@ -34235,7 +33344,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -34258,7 +33367,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -34281,7 +33390,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -34336,7 +33445,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -34414,7 +33523,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -34424,7 +33533,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -34434,7 +33543,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -34446,24 +33555,24 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list171 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list171 = iprot.readListBegin(); this.success = new ArrayList(_list171.size); for (int _i172 = 0; _i172 < _list171.size; ++_i172) { - Partition _elem173; + Partition _elem173; // required _elem173 = new Partition(); _elem173.read(iprot); this.success.add(_elem173); @@ -34471,27 +33580,27 @@ public class ThriftHiveMetastore { iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new NoSuchObjectException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new MetaException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -34499,13 +33608,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); for (Partition _iter174 : this.success) { _iter174.write(oprot); @@ -34558,25 +33667,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_partition_names_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partition_names_args"); + public static class get_partition_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField MAX_PARTS_FIELD_DESC = new TField("max_parts", TType.I16, (short)3); + 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 String db_name; - private String tbl_name; - private short max_parts; + private String db_name; // required + private String tbl_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 TFieldIdEnum { + 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"); @@ -34643,17 +33768,17 @@ public class ThriftHiveMetastore { private static final int __MAX_PARTS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.MAX_PARTS, new FieldMetaData("max_parts", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I16))); + 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))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_partition_names_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_args.class, metaDataMap); } public get_partition_names_args() { @@ -34712,7 +33837,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -34735,7 +33860,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -34759,7 +33884,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__MAX_PARTS_ISSET_ID); } - /** Returns true if field max_parts is set (has been asigned a value) and false otherwise */ + /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ public boolean isSetMax_parts() { return __isset_bit_vector.get(__MAX_PARTS_ISSET_ID); } @@ -34806,13 +33931,13 @@ public class ThriftHiveMetastore { return getTbl_name(); case MAX_PARTS: - return new Short(getMax_parts()); + return Short.valueOf(getMax_parts()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -34890,7 +34015,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -34900,7 +34025,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -34910,7 +34035,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetMax_parts()) { - lastComparison = TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -34922,40 +34047,40 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // MAX_PARTS - if (field.type == TType.I16) { + if (field.type == org.apache.thrift.protocol.TType.I16) { this.max_parts = iprot.readI16(); setMax_partsIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -34963,7 +34088,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -35012,23 +34137,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + } - public static class get_partition_names_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partition_names_result"); + public static class get_partition_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private List success; - private MetaException o2; + 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 TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O2((short)1, "o2"); @@ -35090,16 +34233,16 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_partition_names_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_result.class, metaDataMap); } public get_partition_names_result() { @@ -35167,7 +34310,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -35190,7 +34333,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -35234,7 +34377,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -35301,7 +34444,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -35311,7 +34454,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -35323,43 +34466,43 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list175 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list175 = iprot.readListBegin(); this.success = new ArrayList(_list175.size); for (int _i176 = 0; _i176 < _list175.size; ++_i176) { - String _elem177; + String _elem177; // required _elem177 = iprot.readString(); this.success.add(_elem177); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new MetaException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -35367,13 +34510,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size())); for (String _iter178 : this.success) { oprot.writeString(_iter178); @@ -35414,27 +34557,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_partitions_ps_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partitions_ps_args"); + public static class get_partitions_ps_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField PART_VALS_FIELD_DESC = new TField("part_vals", TType.LIST, (short)3); - private static final TField MAX_PARTS_FIELD_DESC = new TField("max_parts", TType.I16, (short)4); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); - private String db_name; - private String tbl_name; - private List part_vals; - private short max_parts; + private String db_name; // required + private String tbl_name; // required + private List part_vals; // required + private short max_parts; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), PART_VALS((short)3, "part_vals"), @@ -35504,20 +34663,20 @@ public class ThriftHiveMetastore { private static final int __MAX_PARTS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new FieldMetaData("part_vals", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.MAX_PARTS, new FieldMetaData("max_parts", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I16))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_partitions_ps_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_args.class, metaDataMap); } public get_partitions_ps_args() { @@ -35586,7 +34745,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -35609,7 +34768,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -35647,7 +34806,7 @@ public class ThriftHiveMetastore { this.part_vals = null; } - /** Returns true if field part_vals is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -35671,7 +34830,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__MAX_PARTS_ISSET_ID); } - /** Returns true if field max_parts is set (has been asigned a value) and false otherwise */ + /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ public boolean isSetMax_parts() { return __isset_bit_vector.get(__MAX_PARTS_ISSET_ID); } @@ -35729,13 +34888,13 @@ public class ThriftHiveMetastore { return getPart_vals(); case MAX_PARTS: - return new Short(getMax_parts()); + return Short.valueOf(getMax_parts()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -35824,7 +34983,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -35834,7 +34993,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -35844,7 +35003,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPart_vals()) { - lastComparison = TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } @@ -35854,7 +35013,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetMax_parts()) { - lastComparison = TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -35866,57 +35025,57 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // PART_VALS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list179 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list179 = iprot.readListBegin(); this.part_vals = new ArrayList(_list179.size); for (int _i180 = 0; _i180 < _list179.size; ++_i180) { - String _elem181; + String _elem181; // required _elem181 = iprot.readString(); this.part_vals.add(_elem181); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // MAX_PARTS - if (field.type == TType.I16) { + if (field.type == org.apache.thrift.protocol.TType.I16) { this.max_parts = iprot.readI16(); setMax_partsIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -35924,7 +35083,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -35941,7 +35100,7 @@ public class ThriftHiveMetastore { if (this.part_vals != null) { oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.part_vals.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.part_vals.size())); for (String _iter182 : this.part_vals) { oprot.writeString(_iter182); @@ -35993,23 +35152,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + } - public static class get_partitions_ps_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partitions_ps_result"); + public static class get_partitions_ps_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private List success; - private MetaException o1; + private List success; // required + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"); @@ -36071,16 +35248,16 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Partition.class)))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_partitions_ps_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_result.class, metaDataMap); } public get_partitions_ps_result() { @@ -36148,7 +35325,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -36171,7 +35348,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -36215,7 +35392,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -36282,7 +35459,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -36292,7 +35469,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -36304,24 +35481,24 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list183 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list183 = iprot.readListBegin(); this.success = new ArrayList(_list183.size); for (int _i184 = 0; _i184 < _list183.size; ++_i184) { - Partition _elem185; + Partition _elem185; // required _elem185 = new Partition(); _elem185.read(iprot); this.success.add(_elem185); @@ -36329,19 +35506,19 @@ public class ThriftHiveMetastore { iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -36349,13 +35526,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); for (Partition _iter186 : this.success) { _iter186.write(oprot); @@ -36396,31 +35573,47 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_partitions_ps_with_auth_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partitions_ps_with_auth_args"); + public static class get_partitions_ps_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_with_auth_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField PART_VALS_FIELD_DESC = new TField("part_vals", TType.LIST, (short)3); - private static final TField MAX_PARTS_FIELD_DESC = new TField("max_parts", TType.I16, (short)4); - private static final TField USER_NAME_FIELD_DESC = new TField("user_name", TType.STRING, (short)5); - private static final TField GROUP_NAMES_FIELD_DESC = new TField("group_names", TType.LIST, (short)6); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)6); - private String db_name; - private String tbl_name; - private List part_vals; - private short max_parts; - private String user_name; - private List group_names; + private String db_name; // required + private String tbl_name; // required + private List part_vals; // required + private short max_parts; // required + private String user_name; // required + private List group_names; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), PART_VALS((short)3, "part_vals"), @@ -36496,25 +35689,25 @@ public class ThriftHiveMetastore { private static final int __MAX_PARTS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new FieldMetaData("part_vals", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.MAX_PARTS, new FieldMetaData("max_parts", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I16))); - tmpMap.put(_Fields.USER_NAME, new FieldMetaData("user_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.GROUP_NAMES, new FieldMetaData("group_names", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + 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); - FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_args.class, metaDataMap); } public get_partitions_ps_with_auth_args() { @@ -36599,7 +35792,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -36622,7 +35815,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -36660,7 +35853,7 @@ public class ThriftHiveMetastore { this.part_vals = null; } - /** Returns true if field part_vals is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -36684,7 +35877,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__MAX_PARTS_ISSET_ID); } - /** Returns true if field max_parts is set (has been asigned a value) and false otherwise */ + /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ public boolean isSetMax_parts() { return __isset_bit_vector.get(__MAX_PARTS_ISSET_ID); } @@ -36705,7 +35898,7 @@ public class ThriftHiveMetastore { this.user_name = null; } - /** Returns true if field user_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -36743,7 +35936,7 @@ public class ThriftHiveMetastore { this.group_names = null; } - /** Returns true if field group_names is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -36819,7 +36012,7 @@ public class ThriftHiveMetastore { return getPart_vals(); case MAX_PARTS: - return new Short(getMax_parts()); + return Short.valueOf(getMax_parts()); case USER_NAME: return getUser_name(); @@ -36831,7 +36024,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -36942,7 +36135,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -36952,7 +36145,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -36962,7 +36155,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPart_vals()) { - lastComparison = TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } @@ -36972,7 +36165,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetMax_parts()) { - lastComparison = TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -36982,7 +36175,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetUser_name()) { - lastComparison = TBaseHelper.compareTo(this.user_name, typedOther.user_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, typedOther.user_name); if (lastComparison != 0) { return lastComparison; } @@ -36992,7 +36185,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetGroup_names()) { - lastComparison = TBaseHelper.compareTo(this.group_names, typedOther.group_names); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, typedOther.group_names); if (lastComparison != 0) { return lastComparison; } @@ -37004,81 +36197,81 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // PART_VALS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list187 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list187 = iprot.readListBegin(); this.part_vals = new ArrayList(_list187.size); for (int _i188 = 0; _i188 < _list187.size; ++_i188) { - String _elem189; + String _elem189; // required _elem189 = iprot.readString(); this.part_vals.add(_elem189); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // MAX_PARTS - if (field.type == TType.I16) { + if (field.type == org.apache.thrift.protocol.TType.I16) { this.max_parts = iprot.readI16(); setMax_partsIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 5: // USER_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.user_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 6: // GROUP_NAMES - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list190 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list190 = iprot.readListBegin(); this.group_names = new ArrayList(_list190.size); for (int _i191 = 0; _i191 < _list190.size; ++_i191) { - String _elem192; + String _elem192; // required _elem192 = iprot.readString(); this.group_names.add(_elem192); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -37086,7 +36279,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -37103,7 +36296,7 @@ public class ThriftHiveMetastore { if (this.part_vals != null) { oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.part_vals.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.part_vals.size())); for (String _iter193 : this.part_vals) { oprot.writeString(_iter193); @@ -37123,7 +36316,7 @@ public class ThriftHiveMetastore { if (this.group_names != null) { oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.group_names.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.group_names.size())); for (String _iter194 : this.group_names) { oprot.writeString(_iter194); @@ -37188,25 +36381,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + } - public static class get_partitions_ps_with_auth_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partitions_ps_with_auth_result"); + public static class get_partitions_ps_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_with_auth_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.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 List success; - private NoSuchObjectException o1; - private MetaException o2; + 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 TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"); @@ -37271,18 +36482,18 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Partition.class)))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_result.class, metaDataMap); } public get_partitions_ps_with_auth_result() { @@ -37356,7 +36567,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -37379,7 +36590,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -37402,7 +36613,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -37457,7 +36668,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -37535,7 +36746,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -37545,7 +36756,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -37555,7 +36766,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -37567,24 +36778,24 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list195 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list195 = iprot.readListBegin(); this.success = new ArrayList(_list195.size); for (int _i196 = 0; _i196 < _list195.size; ++_i196) { - Partition _elem197; + Partition _elem197; // required _elem197 = new Partition(); _elem197.read(iprot); this.success.add(_elem197); @@ -37592,27 +36803,27 @@ public class ThriftHiveMetastore { iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new NoSuchObjectException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new MetaException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -37620,13 +36831,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); for (Partition _iter198 : this.success) { _iter198.write(oprot); @@ -37679,27 +36890,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_partition_names_ps_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partition_names_ps_args"); + public static class get_partition_names_ps_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_ps_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField PART_VALS_FIELD_DESC = new TField("part_vals", TType.LIST, (short)3); - private static final TField MAX_PARTS_FIELD_DESC = new TField("max_parts", TType.I16, (short)4); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); - private String db_name; - private String tbl_name; - private List part_vals; - private short max_parts; + private String db_name; // required + private String tbl_name; // required + private List part_vals; // required + private short max_parts; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), PART_VALS((short)3, "part_vals"), @@ -37769,20 +36996,20 @@ public class ThriftHiveMetastore { private static final int __MAX_PARTS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new FieldMetaData("part_vals", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.MAX_PARTS, new FieldMetaData("max_parts", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I16))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_partition_names_ps_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_ps_args.class, metaDataMap); } public get_partition_names_ps_args() { @@ -37851,7 +37078,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -37874,7 +37101,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -37912,7 +37139,7 @@ public class ThriftHiveMetastore { this.part_vals = null; } - /** Returns true if field part_vals is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -37936,7 +37163,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__MAX_PARTS_ISSET_ID); } - /** Returns true if field max_parts is set (has been asigned a value) and false otherwise */ + /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ public boolean isSetMax_parts() { return __isset_bit_vector.get(__MAX_PARTS_ISSET_ID); } @@ -37994,13 +37221,13 @@ public class ThriftHiveMetastore { return getPart_vals(); case MAX_PARTS: - return new Short(getMax_parts()); + return Short.valueOf(getMax_parts()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -38089,7 +37316,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -38099,7 +37326,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -38109,7 +37336,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPart_vals()) { - lastComparison = TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } @@ -38119,7 +37346,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetMax_parts()) { - lastComparison = TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -38131,57 +37358,57 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // PART_VALS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list199 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list199 = iprot.readListBegin(); this.part_vals = new ArrayList(_list199.size); for (int _i200 = 0; _i200 < _list199.size; ++_i200) { - String _elem201; + String _elem201; // required _elem201 = iprot.readString(); this.part_vals.add(_elem201); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // MAX_PARTS - if (field.type == TType.I16) { + if (field.type == org.apache.thrift.protocol.TType.I16) { this.max_parts = iprot.readI16(); setMax_partsIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -38189,7 +37416,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -38206,7 +37433,7 @@ public class ThriftHiveMetastore { if (this.part_vals != null) { oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.part_vals.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.part_vals.size())); for (String _iter202 : this.part_vals) { oprot.writeString(_iter202); @@ -38258,23 +37485,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + } - public static class get_partition_names_ps_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partition_names_ps_result"); + public static class get_partition_names_ps_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_ps_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private List success; - private MetaException o1; + private List success; // required + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"); @@ -38336,16 +37581,16 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_partition_names_ps_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_ps_result.class, metaDataMap); } public get_partition_names_ps_result() { @@ -38413,7 +37658,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -38436,7 +37681,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -38480,7 +37725,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -38547,7 +37792,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -38557,7 +37802,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -38569,43 +37814,43 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list203 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list203 = iprot.readListBegin(); this.success = new ArrayList(_list203.size); for (int _i204 = 0; _i204 < _list203.size; ++_i204) { - String _elem205; + String _elem205; // required _elem205 = iprot.readString(); this.success.add(_elem205); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -38613,13 +37858,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size())); for (String _iter206 : this.success) { oprot.writeString(_iter206); @@ -38660,27 +37905,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_partitions_by_filter_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partitions_by_filter_args"); + public static class get_partitions_by_filter_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_filter_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField FILTER_FIELD_DESC = new TField("filter", TType.STRING, (short)3); - private static final TField MAX_PARTS_FIELD_DESC = new TField("max_parts", TType.I16, (short)4); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("filter", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); - private String db_name; - private String tbl_name; - private String filter; - private short max_parts; + private String db_name; // required + private String tbl_name; // required + private String filter; // required + private short max_parts; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), FILTER((short)3, "filter"), @@ -38750,19 +38011,19 @@ public class ThriftHiveMetastore { private static final int __MAX_PARTS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.FILTER, new FieldMetaData("filter", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.MAX_PARTS, new FieldMetaData("max_parts", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I16))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FILTER, new org.apache.thrift.meta_data.FieldMetaData("filter", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_partitions_by_filter_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_filter_args.class, metaDataMap); } public get_partitions_by_filter_args() { @@ -38827,7 +38088,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -38850,7 +38111,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -38873,7 +38134,7 @@ public class ThriftHiveMetastore { this.filter = null; } - /** Returns true if field filter is set (has been asigned a value) and false otherwise */ + /** Returns true if field filter is set (has been assigned a value) and false otherwise */ public boolean isSetFilter() { return this.filter != null; } @@ -38897,7 +38158,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__MAX_PARTS_ISSET_ID); } - /** Returns true if field max_parts is set (has been asigned a value) and false otherwise */ + /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ public boolean isSetMax_parts() { return __isset_bit_vector.get(__MAX_PARTS_ISSET_ID); } @@ -38955,13 +38216,13 @@ public class ThriftHiveMetastore { return getFilter(); case MAX_PARTS: - return new Short(getMax_parts()); + return Short.valueOf(getMax_parts()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -39050,7 +38311,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -39060,7 +38321,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -39070,7 +38331,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetFilter()) { - lastComparison = TBaseHelper.compareTo(this.filter, typedOther.filter); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, typedOther.filter); if (lastComparison != 0) { return lastComparison; } @@ -39080,7 +38341,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetMax_parts()) { - lastComparison = TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -39092,47 +38353,47 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // FILTER - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.filter = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // MAX_PARTS - if (field.type == TType.I16) { + if (field.type == org.apache.thrift.protocol.TType.I16) { this.max_parts = iprot.readI16(); setMax_partsIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -39140,7 +38401,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -39202,25 +38463,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + } - public static class get_partitions_by_filter_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partitions_by_filter_result"); + public static class get_partitions_by_filter_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_filter_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.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 List success; - private MetaException o1; - private NoSuchObjectException o2; + private List success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"); @@ -39285,18 +38564,18 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Partition.class)))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_partitions_by_filter_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_filter_result.class, metaDataMap); } public get_partitions_by_filter_result() { @@ -39370,7 +38649,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -39393,7 +38672,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -39416,7 +38695,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -39471,7 +38750,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -39549,7 +38828,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -39559,7 +38838,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -39569,7 +38848,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -39581,24 +38860,24 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list207 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list207 = iprot.readListBegin(); this.success = new ArrayList(_list207.size); for (int _i208 = 0; _i208 < _list207.size; ++_i208) { - Partition _elem209; + Partition _elem209; // required _elem209 = new Partition(); _elem209.read(iprot); this.success.add(_elem209); @@ -39606,27 +38885,27 @@ public class ThriftHiveMetastore { iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new NoSuchObjectException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -39634,13 +38913,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); for (Partition _iter210 : this.success) { _iter210.write(oprot); @@ -39693,25 +38972,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_partitions_by_names_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partitions_by_names_args"); + public static class get_partitions_by_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_names_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField NAMES_FIELD_DESC = new TField("names", TType.LIST, (short)3); + 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 NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("names", org.apache.thrift.protocol.TType.LIST, (short)3); - private String db_name; - private String tbl_name; - private List names; + private String db_name; // required + private String tbl_name; // required + private List names; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), NAMES((short)3, "names"); @@ -39776,18 +39071,18 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.NAMES, new FieldMetaData("names", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); + 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.NAMES, new org.apache.thrift.meta_data.FieldMetaData("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); - FieldMetaData.addStructMetaDataMap(get_partitions_by_names_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_names_args.class, metaDataMap); } public get_partitions_by_names_args() { @@ -39846,7 +39141,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -39869,7 +39164,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -39907,7 +39202,7 @@ public class ThriftHiveMetastore { this.names = null; } - /** Returns true if field names is set (has been asigned a value) and false otherwise */ + /** Returns true if field names is set (has been assigned a value) and false otherwise */ public boolean isSetNames() { return this.names != null; } @@ -39962,7 +39257,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -40040,7 +39335,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -40050,7 +39345,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -40060,7 +39355,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetNames()) { - lastComparison = TBaseHelper.compareTo(this.names, typedOther.names); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.names, typedOther.names); if (lastComparison != 0) { return lastComparison; } @@ -40072,49 +39367,49 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // NAMES - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list211 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list211 = iprot.readListBegin(); this.names = new ArrayList(_list211.size); for (int _i212 = 0; _i212 < _list211.size; ++_i212) { - String _elem213; + String _elem213; // required _elem213 = iprot.readString(); this.names.add(_elem213); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -40122,7 +39417,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -40139,7 +39434,7 @@ public class ThriftHiveMetastore { if (this.names != null) { oprot.writeFieldBegin(NAMES_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.names.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.names.size())); for (String _iter214 : this.names) { oprot.writeString(_iter214); @@ -40184,25 +39479,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_partitions_by_names_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_partitions_by_names_result"); + public static class get_partitions_by_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_names_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.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 List success; - private MetaException o1; - private NoSuchObjectException o2; + private List success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"); @@ -40267,18 +39578,18 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Partition.class)))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_partitions_by_names_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_names_result.class, metaDataMap); } public get_partitions_by_names_result() { @@ -40352,7 +39663,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -40375,7 +39686,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -40398,7 +39709,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -40453,7 +39764,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -40531,7 +39842,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -40541,7 +39852,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -40551,7 +39862,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -40563,24 +39874,24 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list215 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list215 = iprot.readListBegin(); this.success = new ArrayList(_list215.size); for (int _i216 = 0; _i216 < _list215.size; ++_i216) { - Partition _elem217; + Partition _elem217; // required _elem217 = new Partition(); _elem217.read(iprot); this.success.add(_elem217); @@ -40588,27 +39899,27 @@ public class ThriftHiveMetastore { iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new NoSuchObjectException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -40616,13 +39927,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); for (Partition _iter218 : this.success) { _iter218.write(oprot); @@ -40675,25 +39986,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class alter_partition_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("alter_partition_args"); + public static class alter_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partition_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField NEW_PART_FIELD_DESC = new TField("new_part", TType.STRUCT, (short)3); + 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 NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private String db_name; - private String tbl_name; - private Partition new_part; + private String db_name; // required + private String tbl_name; // required + private Partition new_part; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), NEW_PART((short)3, "new_part"); @@ -40758,17 +40085,17 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.NEW_PART, new FieldMetaData("new_part", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Partition.class))); + 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.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(alter_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partition_args.class, metaDataMap); } public alter_partition_args() { @@ -40823,7 +40150,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -40846,7 +40173,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -40869,7 +40196,7 @@ public class ThriftHiveMetastore { this.new_part = null; } - /** Returns true if field new_part is set (has been asigned a value) and false otherwise */ + /** Returns true if field new_part is set (has been assigned a value) and false otherwise */ public boolean isSetNew_part() { return this.new_part != null; } @@ -40924,7 +40251,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -41002,7 +40329,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -41012,7 +40339,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -41022,7 +40349,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetNew_part()) { - lastComparison = TBaseHelper.compareTo(this.new_part, typedOther.new_part); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, typedOther.new_part); if (lastComparison != 0) { return lastComparison; } @@ -41034,40 +40361,40 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // NEW_PART - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.new_part = new Partition(); this.new_part.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -41075,7 +40402,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -41130,23 +40457,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class alter_partition_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("alter_partition_result"); + public static class alter_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partition_result"); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); + 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 InvalidOperationException o1; - private MetaException o2; + private InvalidOperationException o1; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { O1((short)1, "o1"), O2((short)2, "o2"); @@ -41208,15 +40551,15 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(alter_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partition_result.class, metaDataMap); } public alter_partition_result() { @@ -41265,7 +40608,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -41288,7 +40631,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -41332,7 +40675,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -41399,7 +40742,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -41409,7 +40752,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -41421,34 +40764,34 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new InvalidOperationException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new MetaException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -41456,7 +40799,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetO1()) { @@ -41496,23 +40839,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_config_value_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_config_value_args"); + public static class get_config_value_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_config_value_args"); - private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1); - private static final TField DEFAULT_VALUE_FIELD_DESC = new TField("defaultValue", TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField DEFAULT_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultValue", org.apache.thrift.protocol.TType.STRING, (short)2); - private String name; - private String defaultValue; + private String name; // required + private String defaultValue; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { NAME((short)1, "name"), DEFAULT_VALUE((short)2, "defaultValue"); @@ -41574,15 +40933,15 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.DEFAULT_VALUE, new FieldMetaData("defaultValue", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DEFAULT_VALUE, new org.apache.thrift.meta_data.FieldMetaData("defaultValue", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_config_value_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_config_value_args.class, metaDataMap); } public get_config_value_args() { @@ -41631,7 +40990,7 @@ public class ThriftHiveMetastore { this.name = null; } - /** Returns true if field name is set (has been asigned a value) and false otherwise */ + /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } @@ -41654,7 +41013,7 @@ public class ThriftHiveMetastore { this.defaultValue = null; } - /** Returns true if field defaultValue is set (has been asigned a value) and false otherwise */ + /** Returns true if field defaultValue is set (has been assigned a value) and false otherwise */ public boolean isSetDefaultValue() { return this.defaultValue != null; } @@ -41698,7 +41057,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -41765,7 +41124,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetName()) { - lastComparison = TBaseHelper.compareTo(this.name, typedOther.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } @@ -41775,7 +41134,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDefaultValue()) { - lastComparison = TBaseHelper.compareTo(this.defaultValue, typedOther.defaultValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultValue, typedOther.defaultValue); if (lastComparison != 0) { return lastComparison; } @@ -41787,32 +41146,32 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // DEFAULT_VALUE - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.defaultValue = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -41820,7 +41179,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -41862,23 +41221,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_config_value_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_config_value_result"); + public static class get_config_value_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_config_value_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRING, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", 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.STRING, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private String success; - private ConfigValSecurityException o1; + private String success; // required + private ConfigValSecurityException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"); @@ -41940,15 +41315,15 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_config_value_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_config_value_result.class, metaDataMap); } public get_config_value_result() { @@ -41997,7 +41372,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -42020,7 +41395,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -42064,7 +41439,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -42131,7 +41506,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -42141,7 +41516,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -42153,33 +41528,33 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.success = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new ConfigValSecurityException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -42187,7 +41562,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -42227,21 +41602,37 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class partition_name_to_vals_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("partition_name_to_vals_args"); + public static class partition_name_to_vals_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partition_name_to_vals_args"); - private static final TField PART_NAME_FIELD_DESC = new TField("part_name", TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private String part_name; + 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 TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { PART_NAME((short)1, "part_name"); private static final Map byName = new HashMap(); @@ -42300,13 +41691,13 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.PART_NAME, new FieldMetaData("part_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(partition_name_to_vals_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partition_name_to_vals_args.class, metaDataMap); } public partition_name_to_vals_args() { @@ -42349,7 +41740,7 @@ public class ThriftHiveMetastore { this.part_name = null; } - /** Returns true if field part_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -42382,7 +41773,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -42438,7 +41829,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPart_name()) { - lastComparison = TBaseHelper.compareTo(this.part_name, typedOther.part_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } @@ -42450,25 +41841,25 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // PART_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.part_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -42476,7 +41867,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -42505,23 +41896,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class partition_name_to_vals_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("partition_name_to_vals_result"); + public static class partition_name_to_vals_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partition_name_to_vals_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private List success; - private MetaException o1; + private List success; // required + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"); @@ -42583,16 +41990,16 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(partition_name_to_vals_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partition_name_to_vals_result.class, metaDataMap); } public partition_name_to_vals_result() { @@ -42660,7 +42067,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -42683,7 +42090,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -42727,7 +42134,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -42794,7 +42201,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -42804,7 +42211,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -42816,43 +42223,43 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list219 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list219 = iprot.readListBegin(); this.success = new ArrayList(_list219.size); for (int _i220 = 0; _i220 < _list219.size; ++_i220) { - String _elem221; + String _elem221; // required _elem221 = iprot.readString(); this.success.add(_elem221); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -42860,13 +42267,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size())); for (String _iter222 : this.success) { oprot.writeString(_iter222); @@ -42907,21 +42314,37 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class partition_name_to_spec_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("partition_name_to_spec_args"); + public static class partition_name_to_spec_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partition_name_to_spec_args"); - private static final TField PART_NAME_FIELD_DESC = new TField("part_name", TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private String part_name; + 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 TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { PART_NAME((short)1, "part_name"); private static final Map byName = new HashMap(); @@ -42980,13 +42403,13 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.PART_NAME, new FieldMetaData("part_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(partition_name_to_spec_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partition_name_to_spec_args.class, metaDataMap); } public partition_name_to_spec_args() { @@ -43029,7 +42452,7 @@ public class ThriftHiveMetastore { this.part_name = null; } - /** Returns true if field part_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -43062,7 +42485,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -43118,7 +42541,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPart_name()) { - lastComparison = TBaseHelper.compareTo(this.part_name, typedOther.part_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } @@ -43130,25 +42553,25 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // PART_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.part_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -43156,7 +42579,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -43185,23 +42608,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class partition_name_to_spec_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("partition_name_to_spec_result"); + public static class partition_name_to_spec_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partition_name_to_spec_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.MAP, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", 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.MAP, (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 Map success; - private MetaException o1; + private Map success; // required + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"); @@ -43263,17 +42702,17 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(partition_name_to_spec_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partition_name_to_spec_result.class, metaDataMap); } public partition_name_to_spec_result() { @@ -43345,7 +42784,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -43368,7 +42807,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -43412,7 +42851,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -43479,7 +42918,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -43489,7 +42928,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -43501,25 +42940,25 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.MAP) { + if (field.type == org.apache.thrift.protocol.TType.MAP) { { - TMap _map223 = iprot.readMapBegin(); + org.apache.thrift.protocol.TMap _map223 = iprot.readMapBegin(); this.success = new HashMap(2*_map223.size); for (int _i224 = 0; _i224 < _map223.size; ++_i224) { - String _key225; - String _val226; + String _key225; // required + String _val226; // required _key225 = iprot.readString(); _val226 = iprot.readString(); this.success.put(_key225, _val226); @@ -43527,19 +42966,19 @@ public class ThriftHiveMetastore { iprot.readMapEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -43547,13 +42986,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.success.size())); + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size())); for (Map.Entry _iter227 : this.success.entrySet()) { oprot.writeString(_iter227.getKey()); @@ -43595,27 +43034,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class markPartitionForEvent_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("markPartitionForEvent_args"); + public static class markPartitionForEvent_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPartitionForEvent_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField PART_VALS_FIELD_DESC = new TField("part_vals", TType.MAP, (short)3); - private static final TField EVENT_TYPE_FIELD_DESC = new TField("eventType", TType.I32, (short)4); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.MAP, (short)3); + private static final org.apache.thrift.protocol.TField EVENT_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("eventType", org.apache.thrift.protocol.TType.I32, (short)4); - private String db_name; - private String tbl_name; - private Map part_vals; - private PartitionEventType eventType; + private String db_name; // required + private String tbl_name; // required + private Map part_vals; // required + private PartitionEventType eventType; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), PART_VALS((short)3, "part_vals"), @@ -43687,21 +43142,21 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new FieldMetaData("part_vals", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.EVENT_TYPE, new FieldMetaData("eventType", TFieldRequirementType.DEFAULT, - new EnumMetaData(TType.ENUM, PartitionEventType.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.EVENT_TYPE, new org.apache.thrift.meta_data.FieldMetaData("eventType", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PartitionEventType.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(markPartitionForEvent_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPartitionForEvent_args.class, metaDataMap); } public markPartitionForEvent_args() { @@ -43774,7 +43229,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -43797,7 +43252,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -43831,7 +43286,7 @@ public class ThriftHiveMetastore { this.part_vals = null; } - /** Returns true if field part_vals is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -43862,7 +43317,7 @@ public class ThriftHiveMetastore { this.eventType = null; } - /** Returns true if field eventType is set (has been asigned a value) and false otherwise */ + /** Returns true if field eventType is set (has been assigned a value) and false otherwise */ public boolean isSetEventType() { return this.eventType != null; } @@ -43928,7 +43383,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -44017,7 +43472,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -44027,7 +43482,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -44037,7 +43492,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPart_vals()) { - lastComparison = TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } @@ -44047,7 +43502,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetEventType()) { - lastComparison = TBaseHelper.compareTo(this.eventType, typedOther.eventType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventType, typedOther.eventType); if (lastComparison != 0) { return lastComparison; } @@ -44059,39 +43514,39 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // PART_VALS - if (field.type == TType.MAP) { + if (field.type == org.apache.thrift.protocol.TType.MAP) { { - TMap _map228 = iprot.readMapBegin(); + org.apache.thrift.protocol.TMap _map228 = iprot.readMapBegin(); this.part_vals = new HashMap(2*_map228.size); for (int _i229 = 0; _i229 < _map228.size; ++_i229) { - String _key230; - String _val231; + String _key230; // required + String _val231; // required _key230 = iprot.readString(); _val231 = iprot.readString(); this.part_vals.put(_key230, _val231); @@ -44099,18 +43554,18 @@ public class ThriftHiveMetastore { iprot.readMapEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // EVENT_TYPE - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.eventType = PartitionEventType.findByValue(iprot.readI32()); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -44118,7 +43573,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -44135,7 +43590,7 @@ public class ThriftHiveMetastore { if (this.part_vals != null) { oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { - oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.part_vals.size())); + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.part_vals.size())); for (Map.Entry _iter232 : this.part_vals.entrySet()) { oprot.writeString(_iter232.getKey()); @@ -44194,31 +43649,47 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class markPartitionForEvent_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("markPartitionForEvent_result"); + public static class markPartitionForEvent_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPartitionForEvent_result"); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); - private static final TField O3_FIELD_DESC = new TField("o3", TType.STRUCT, (short)3); - private static final TField O4_FIELD_DESC = new TField("o4", TType.STRUCT, (short)4); - private static final TField O5_FIELD_DESC = new TField("o5", TType.STRUCT, (short)5); - private static final TField O6_FIELD_DESC = new TField("o6", TType.STRUCT, (short)6); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); + private static final org.apache.thrift.protocol.TField O5_FIELD_DESC = new org.apache.thrift.protocol.TField("o5", org.apache.thrift.protocol.TType.STRUCT, (short)5); + private static final org.apache.thrift.protocol.TField O6_FIELD_DESC = new org.apache.thrift.protocol.TField("o6", org.apache.thrift.protocol.TType.STRUCT, (short)6); - private MetaException o1; - private NoSuchObjectException o2; - private UnknownDBException o3; - private UnknownTableException o4; - private UnknownPartitionException o5; - private InvalidPartitionException o6; + private MetaException o1; // required + private NoSuchObjectException o2; // required + private UnknownDBException o3; // required + private UnknownTableException o4; // required + private UnknownPartitionException o5; // required + private InvalidPartitionException o6; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { O1((short)1, "o1"), O2((short)2, "o2"), O3((short)3, "o3"), @@ -44292,23 +43763,23 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O3, new FieldMetaData("o3", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O4, new FieldMetaData("o4", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O5, new FieldMetaData("o5", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O6, new FieldMetaData("o6", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O5, new org.apache.thrift.meta_data.FieldMetaData("o5", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O6, new org.apache.thrift.meta_data.FieldMetaData("o6", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(markPartitionForEvent_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPartitionForEvent_result.class, metaDataMap); } public markPartitionForEvent_result() { @@ -44381,7 +43852,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -44404,7 +43875,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -44427,7 +43898,7 @@ public class ThriftHiveMetastore { this.o3 = null; } - /** Returns true if field o3 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ public boolean isSetO3() { return this.o3 != null; } @@ -44450,7 +43921,7 @@ public class ThriftHiveMetastore { this.o4 = null; } - /** Returns true if field o4 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ public boolean isSetO4() { return this.o4 != null; } @@ -44473,7 +43944,7 @@ public class ThriftHiveMetastore { this.o5 = null; } - /** Returns true if field o5 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o5 is set (has been assigned a value) and false otherwise */ public boolean isSetO5() { return this.o5 != null; } @@ -44496,7 +43967,7 @@ public class ThriftHiveMetastore { this.o6 = null; } - /** Returns true if field o6 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o6 is set (has been assigned a value) and false otherwise */ public boolean isSetO6() { return this.o6 != null; } @@ -44584,7 +44055,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -44695,7 +44166,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -44705,7 +44176,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -44715,7 +44186,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO3()) { - lastComparison = TBaseHelper.compareTo(this.o3, typedOther.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -44725,7 +44196,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO4()) { - lastComparison = TBaseHelper.compareTo(this.o4, typedOther.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -44735,7 +44206,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO5()) { - lastComparison = TBaseHelper.compareTo(this.o5, typedOther.o5); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o5, typedOther.o5); if (lastComparison != 0) { return lastComparison; } @@ -44745,7 +44216,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO6()) { - lastComparison = TBaseHelper.compareTo(this.o6, typedOther.o6); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o6, typedOther.o6); if (lastComparison != 0) { return lastComparison; } @@ -44757,66 +44228,66 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new NoSuchObjectException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // O3 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o3 = new UnknownDBException(); this.o3.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // O4 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o4 = new UnknownTableException(); this.o4.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 5: // O5 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o5 = new UnknownPartitionException(); this.o5.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 6: // O6 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o6 = new InvalidPartitionException(); this.o6.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -44824,7 +44295,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetO1()) { @@ -44912,27 +44383,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class isPartitionMarkedForEvent_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("isPartitionMarkedForEvent_args"); + public static class isPartitionMarkedForEvent_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isPartitionMarkedForEvent_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField PART_VALS_FIELD_DESC = new TField("part_vals", TType.MAP, (short)3); - private static final TField EVENT_TYPE_FIELD_DESC = new TField("eventType", TType.I32, (short)4); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.MAP, (short)3); + private static final org.apache.thrift.protocol.TField EVENT_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("eventType", org.apache.thrift.protocol.TType.I32, (short)4); - private String db_name; - private String tbl_name; - private Map part_vals; - private PartitionEventType eventType; + private String db_name; // required + private String tbl_name; // required + private Map part_vals; // required + private PartitionEventType eventType; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), PART_VALS((short)3, "part_vals"), @@ -45004,21 +44491,21 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new FieldMetaData("part_vals", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.EVENT_TYPE, new FieldMetaData("eventType", TFieldRequirementType.DEFAULT, - new EnumMetaData(TType.ENUM, PartitionEventType.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.EVENT_TYPE, new org.apache.thrift.meta_data.FieldMetaData("eventType", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PartitionEventType.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(isPartitionMarkedForEvent_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isPartitionMarkedForEvent_args.class, metaDataMap); } public isPartitionMarkedForEvent_args() { @@ -45091,7 +44578,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -45114,7 +44601,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -45148,7 +44635,7 @@ public class ThriftHiveMetastore { this.part_vals = null; } - /** Returns true if field part_vals is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -45179,7 +44666,7 @@ public class ThriftHiveMetastore { this.eventType = null; } - /** Returns true if field eventType is set (has been asigned a value) and false otherwise */ + /** Returns true if field eventType is set (has been assigned a value) and false otherwise */ public boolean isSetEventType() { return this.eventType != null; } @@ -45245,7 +44732,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -45334,7 +44821,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -45344,7 +44831,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -45354,7 +44841,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPart_vals()) { - lastComparison = TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } @@ -45364,7 +44851,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetEventType()) { - lastComparison = TBaseHelper.compareTo(this.eventType, typedOther.eventType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventType, typedOther.eventType); if (lastComparison != 0) { return lastComparison; } @@ -45376,39 +44863,39 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // PART_VALS - if (field.type == TType.MAP) { + if (field.type == org.apache.thrift.protocol.TType.MAP) { { - TMap _map233 = iprot.readMapBegin(); + org.apache.thrift.protocol.TMap _map233 = iprot.readMapBegin(); this.part_vals = new HashMap(2*_map233.size); for (int _i234 = 0; _i234 < _map233.size; ++_i234) { - String _key235; - String _val236; + String _key235; // required + String _val236; // required _key235 = iprot.readString(); _val236 = iprot.readString(); this.part_vals.put(_key235, _val236); @@ -45416,18 +44903,18 @@ public class ThriftHiveMetastore { iprot.readMapEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // EVENT_TYPE - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.eventType = PartitionEventType.findByValue(iprot.readI32()); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -45435,7 +44922,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -45452,7 +44939,7 @@ public class ThriftHiveMetastore { if (this.part_vals != null) { oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { - oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.part_vals.size())); + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.part_vals.size())); for (Map.Entry _iter237 : this.part_vals.entrySet()) { oprot.writeString(_iter237.getKey()); @@ -45511,33 +44998,49 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class isPartitionMarkedForEvent_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("isPartitionMarkedForEvent_result"); - - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); - private static final TField O3_FIELD_DESC = new TField("o3", TType.STRUCT, (short)3); - private static final TField O4_FIELD_DESC = new TField("o4", TType.STRUCT, (short)4); - private static final TField O5_FIELD_DESC = new TField("o5", TType.STRUCT, (short)5); - private static final TField O6_FIELD_DESC = new TField("o6", TType.STRUCT, (short)6); - - private boolean success; - private MetaException o1; - private NoSuchObjectException o2; - private UnknownDBException o3; - private UnknownTableException o4; - private UnknownPartitionException o5; - private InvalidPartitionException o6; + public static class isPartitionMarkedForEvent_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isPartitionMarkedForEvent_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); + private static final org.apache.thrift.protocol.TField O5_FIELD_DESC = new org.apache.thrift.protocol.TField("o5", org.apache.thrift.protocol.TType.STRUCT, (short)5); + private static final org.apache.thrift.protocol.TField O6_FIELD_DESC = new org.apache.thrift.protocol.TField("o6", org.apache.thrift.protocol.TType.STRUCT, (short)6); + + private boolean success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // required + private UnknownDBException o3; // required + private UnknownTableException o4; // required + private UnknownPartitionException o5; // required + private InvalidPartitionException o6; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"), @@ -45616,25 +45119,25 @@ public class ThriftHiveMetastore { private static final int __SUCCESS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O3, new FieldMetaData("o3", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O4, new FieldMetaData("o4", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O5, new FieldMetaData("o5", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O6, new FieldMetaData("o6", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O5, new org.apache.thrift.meta_data.FieldMetaData("o5", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O6, new org.apache.thrift.meta_data.FieldMetaData("o6", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(isPartitionMarkedForEvent_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isPartitionMarkedForEvent_result.class, metaDataMap); } public isPartitionMarkedForEvent_result() { @@ -45716,7 +45219,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__SUCCESS_ISSET_ID); } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return __isset_bit_vector.get(__SUCCESS_ISSET_ID); } @@ -45737,7 +45240,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -45760,7 +45263,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -45783,7 +45286,7 @@ public class ThriftHiveMetastore { this.o3 = null; } - /** Returns true if field o3 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ public boolean isSetO3() { return this.o3 != null; } @@ -45806,7 +45309,7 @@ public class ThriftHiveMetastore { this.o4 = null; } - /** Returns true if field o4 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ public boolean isSetO4() { return this.o4 != null; } @@ -45829,7 +45332,7 @@ public class ThriftHiveMetastore { this.o5 = null; } - /** Returns true if field o5 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o5 is set (has been assigned a value) and false otherwise */ public boolean isSetO5() { return this.o5 != null; } @@ -45852,7 +45355,7 @@ public class ThriftHiveMetastore { this.o6 = null; } - /** Returns true if field o6 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o6 is set (has been assigned a value) and false otherwise */ public boolean isSetO6() { return this.o6 != null; } @@ -45927,7 +45430,7 @@ public class ThriftHiveMetastore { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return new Boolean(isSuccess()); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -45951,7 +45454,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -46073,7 +45576,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -46083,7 +45586,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -46093,7 +45596,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -46103,7 +45606,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO3()) { - lastComparison = TBaseHelper.compareTo(this.o3, typedOther.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -46113,7 +45616,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO4()) { - lastComparison = TBaseHelper.compareTo(this.o4, typedOther.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -46123,7 +45626,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO5()) { - lastComparison = TBaseHelper.compareTo(this.o5, typedOther.o5); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o5, typedOther.o5); if (lastComparison != 0) { return lastComparison; } @@ -46133,7 +45636,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO6()) { - lastComparison = TBaseHelper.compareTo(this.o6, typedOther.o6); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o6, typedOther.o6); if (lastComparison != 0) { return lastComparison; } @@ -46145,74 +45648,74 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.success = iprot.readBool(); setSuccessIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new NoSuchObjectException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // O3 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o3 = new UnknownDBException(); this.o3.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // O4 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o4 = new UnknownTableException(); this.o4.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 5: // O5 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o5 = new UnknownPartitionException(); this.o5.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 6: // O6 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o6 = new InvalidPartitionException(); this.o6.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -46220,7 +45723,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -46316,23 +45819,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class add_index_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("add_index_args"); + public static class add_index_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_index_args"); - private static final TField NEW_INDEX_FIELD_DESC = new TField("new_index", TType.STRUCT, (short)1); - private static final TField INDEX_TABLE_FIELD_DESC = new TField("index_table", TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField NEW_INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("new_index", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField INDEX_TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("index_table", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private Index new_index; - private Table index_table; + private Index new_index; // required + private Table index_table; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { NEW_INDEX((short)1, "new_index"), INDEX_TABLE((short)2, "index_table"); @@ -46394,15 +45913,15 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NEW_INDEX, new FieldMetaData("new_index", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Index.class))); - tmpMap.put(_Fields.INDEX_TABLE, new FieldMetaData("index_table", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Table.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.NEW_INDEX, new org.apache.thrift.meta_data.FieldMetaData("new_index", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Index.class))); + tmpMap.put(_Fields.INDEX_TABLE, new org.apache.thrift.meta_data.FieldMetaData("index_table", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(add_index_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_index_args.class, metaDataMap); } public add_index_args() { @@ -46451,7 +45970,7 @@ public class ThriftHiveMetastore { this.new_index = null; } - /** Returns true if field new_index is set (has been asigned a value) and false otherwise */ + /** Returns true if field new_index is set (has been assigned a value) and false otherwise */ public boolean isSetNew_index() { return this.new_index != null; } @@ -46474,7 +45993,7 @@ public class ThriftHiveMetastore { this.index_table = null; } - /** Returns true if field index_table is set (has been asigned a value) and false otherwise */ + /** Returns true if field index_table is set (has been assigned a value) and false otherwise */ public boolean isSetIndex_table() { return this.index_table != null; } @@ -46518,7 +46037,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -46585,7 +46104,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetNew_index()) { - lastComparison = TBaseHelper.compareTo(this.new_index, typedOther.new_index); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_index, typedOther.new_index); if (lastComparison != 0) { return lastComparison; } @@ -46595,7 +46114,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetIndex_table()) { - lastComparison = TBaseHelper.compareTo(this.index_table, typedOther.index_table); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_table, typedOther.index_table); if (lastComparison != 0) { return lastComparison; } @@ -46607,34 +46126,34 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // NEW_INDEX - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.new_index = new Index(); this.new_index.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // INDEX_TABLE - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.index_table = new Table(); this.index_table.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -46642,7 +46161,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -46684,27 +46203,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class add_index_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("add_index_result"); + public static class add_index_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_index_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); - private static final TField O3_FIELD_DESC = new TField("o3", TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private Index success; - private InvalidObjectException o1; - private AlreadyExistsException o2; - private MetaException o3; + private Index success; // required + private InvalidObjectException o1; // required + private AlreadyExistsException o2; // required + private MetaException o3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"), @@ -46772,19 +46307,19 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Index.class))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O3, new FieldMetaData("o3", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + 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, Index.class))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(add_index_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_index_result.class, metaDataMap); } public add_index_result() { @@ -46845,7 +46380,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -46868,7 +46403,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -46891,7 +46426,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -46914,7 +46449,7 @@ public class ThriftHiveMetastore { this.o3 = null; } - /** Returns true if field o3 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ public boolean isSetO3() { return this.o3 != null; } @@ -46980,7 +46515,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -47069,7 +46604,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -47079,7 +46614,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -47089,7 +46624,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -47099,7 +46634,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO3()) { - lastComparison = TBaseHelper.compareTo(this.o3, typedOther.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -47111,50 +46646,50 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new Index(); this.success.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new InvalidObjectException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new AlreadyExistsException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // O3 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o3 = new MetaException(); this.o3.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -47162,7 +46697,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -47226,27 +46761,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class alter_index_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("alter_index_args"); + public static class alter_index_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_index_args"); - private static final TField DBNAME_FIELD_DESC = new TField("dbname", TType.STRING, (short)1); - private static final TField BASE_TBL_NAME_FIELD_DESC = new TField("base_tbl_name", TType.STRING, (short)2); - private static final TField IDX_NAME_FIELD_DESC = new TField("idx_name", TType.STRING, (short)3); - private static final TField NEW_IDX_FIELD_DESC = new TField("new_idx", TType.STRUCT, (short)4); + private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField BASE_TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("base_tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField IDX_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("idx_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField NEW_IDX_FIELD_DESC = new org.apache.thrift.protocol.TField("new_idx", org.apache.thrift.protocol.TType.STRUCT, (short)4); - private String dbname; - private String base_tbl_name; - private String idx_name; - private Index new_idx; + private String dbname; // required + private String base_tbl_name; // required + private String idx_name; // required + private Index new_idx; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DBNAME((short)1, "dbname"), BASE_TBL_NAME((short)2, "base_tbl_name"), IDX_NAME((short)3, "idx_name"), @@ -47314,19 +46865,19 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DBNAME, new FieldMetaData("dbname", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.BASE_TBL_NAME, new FieldMetaData("base_tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.IDX_NAME, new FieldMetaData("idx_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.NEW_IDX, new FieldMetaData("new_idx", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Index.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.BASE_TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("base_tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.IDX_NAME, new org.apache.thrift.meta_data.FieldMetaData("idx_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.NEW_IDX, new org.apache.thrift.meta_data.FieldMetaData("new_idx", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Index.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(alter_index_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_index_args.class, metaDataMap); } public alter_index_args() { @@ -47387,7 +46938,7 @@ public class ThriftHiveMetastore { this.dbname = null; } - /** Returns true if field dbname is set (has been asigned a value) and false otherwise */ + /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ public boolean isSetDbname() { return this.dbname != null; } @@ -47410,7 +46961,7 @@ public class ThriftHiveMetastore { this.base_tbl_name = null; } - /** Returns true if field base_tbl_name is set (has been asigned a value) and false otherwise */ + /** Returns true if field base_tbl_name is set (has been assigned a value) and false otherwise */ public boolean isSetBase_tbl_name() { return this.base_tbl_name != null; } @@ -47433,7 +46984,7 @@ public class ThriftHiveMetastore { this.idx_name = null; } - /** Returns true if field idx_name is set (has been asigned a value) and false otherwise */ + /** Returns true if field idx_name is set (has been assigned a value) and false otherwise */ public boolean isSetIdx_name() { return this.idx_name != null; } @@ -47456,7 +47007,7 @@ public class ThriftHiveMetastore { this.new_idx = null; } - /** Returns true if field new_idx is set (has been asigned a value) and false otherwise */ + /** Returns true if field new_idx is set (has been assigned a value) and false otherwise */ public boolean isSetNew_idx() { return this.new_idx != null; } @@ -47522,7 +47073,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -47611,7 +47162,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDbname()) { - lastComparison = TBaseHelper.compareTo(this.dbname, typedOther.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } @@ -47621,7 +47172,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetBase_tbl_name()) { - lastComparison = TBaseHelper.compareTo(this.base_tbl_name, typedOther.base_tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.base_tbl_name, typedOther.base_tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -47631,7 +47182,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetIdx_name()) { - lastComparison = TBaseHelper.compareTo(this.idx_name, typedOther.idx_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.idx_name, typedOther.idx_name); if (lastComparison != 0) { return lastComparison; } @@ -47641,7 +47192,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetNew_idx()) { - lastComparison = TBaseHelper.compareTo(this.new_idx, typedOther.new_idx); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_idx, typedOther.new_idx); if (lastComparison != 0) { return lastComparison; } @@ -47653,47 +47204,47 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DBNAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.dbname = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // BASE_TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.base_tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // IDX_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.idx_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // NEW_IDX - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.new_idx = new Index(); this.new_idx.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -47701,7 +47252,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -47769,23 +47320,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class alter_index_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("alter_index_result"); + public static class alter_index_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_index_result"); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); + 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 InvalidOperationException o1; - private MetaException o2; + private InvalidOperationException o1; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { O1((short)1, "o1"), O2((short)2, "o2"); @@ -47847,15 +47414,15 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(alter_index_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_index_result.class, metaDataMap); } public alter_index_result() { @@ -47904,7 +47471,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -47927,7 +47494,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -47971,7 +47538,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -48038,7 +47605,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -48048,7 +47615,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -48060,34 +47627,34 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new InvalidOperationException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new MetaException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -48095,7 +47662,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetO1()) { @@ -48135,27 +47702,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class drop_index_by_name_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("drop_index_by_name_args"); + public static class drop_index_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_index_by_name_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField INDEX_NAME_FIELD_DESC = new TField("index_name", TType.STRING, (short)3); - private static final TField DELETE_DATA_FIELD_DESC = new TField("deleteData", TType.BOOL, (short)4); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField 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 INDEX_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("index_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); - private String db_name; - private String tbl_name; - private String index_name; - private boolean deleteData; + private String db_name; // required + private String tbl_name; // required + private String index_name; // required + private boolean deleteData; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), INDEX_NAME((short)3, "index_name"), @@ -48225,19 +47808,19 @@ public class ThriftHiveMetastore { private static final int __DELETEDATA_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.INDEX_NAME, new FieldMetaData("index_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.DELETE_DATA, new FieldMetaData("deleteData", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); + 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.INDEX_NAME, new org.apache.thrift.meta_data.FieldMetaData("index_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(drop_index_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_index_by_name_args.class, metaDataMap); } public drop_index_by_name_args() { @@ -48300,7 +47883,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -48323,7 +47906,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -48346,7 +47929,7 @@ public class ThriftHiveMetastore { this.index_name = null; } - /** Returns true if field index_name is set (has been asigned a value) and false otherwise */ + /** Returns true if field index_name is set (has been assigned a value) and false otherwise */ public boolean isSetIndex_name() { return this.index_name != null; } @@ -48370,7 +47953,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__DELETEDATA_ISSET_ID); } - /** Returns true if field deleteData is set (has been asigned a value) and false otherwise */ + /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ public boolean isSetDeleteData() { return __isset_bit_vector.get(__DELETEDATA_ISSET_ID); } @@ -48428,13 +48011,13 @@ public class ThriftHiveMetastore { return getIndex_name(); case DELETE_DATA: - return new Boolean(isDeleteData()); + return Boolean.valueOf(isDeleteData()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -48523,7 +48106,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -48533,7 +48116,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -48543,7 +48126,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetIndex_name()) { - lastComparison = TBaseHelper.compareTo(this.index_name, typedOther.index_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_name, typedOther.index_name); if (lastComparison != 0) { return lastComparison; } @@ -48553,7 +48136,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDeleteData()) { - lastComparison = TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); if (lastComparison != 0) { return lastComparison; } @@ -48565,47 +48148,47 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // INDEX_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.index_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // DELETE_DATA - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.deleteData = iprot.readBool(); setDeleteDataIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -48613,7 +48196,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -48675,25 +48258,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + } - public static class drop_index_by_name_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("drop_index_by_name_result"); + public static class drop_index_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_index_by_name_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private boolean success; - private NoSuchObjectException o1; - private MetaException o2; + private boolean success; // required + private NoSuchObjectException o1; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"); @@ -48760,17 +48361,17 @@ public class ThriftHiveMetastore { private static final int __SUCCESS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + 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); - FieldMetaData.addStructMetaDataMap(drop_index_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_index_by_name_result.class, metaDataMap); } public drop_index_by_name_result() { @@ -48828,7 +48429,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__SUCCESS_ISSET_ID); } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return __isset_bit_vector.get(__SUCCESS_ISSET_ID); } @@ -48849,7 +48450,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -48872,7 +48473,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -48915,7 +48516,7 @@ public class ThriftHiveMetastore { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return new Boolean(isSuccess()); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -48927,7 +48528,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -49005,7 +48606,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -49015,7 +48616,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -49025,7 +48626,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -49037,42 +48638,42 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.success = iprot.readBool(); setSuccessIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new NoSuchObjectException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new MetaException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -49080,7 +48681,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -49128,25 +48729,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_index_by_name_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_index_by_name_args"); + public static class get_index_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_index_by_name_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField INDEX_NAME_FIELD_DESC = new TField("index_name", TType.STRING, (short)3); + 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 INDEX_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("index_name", org.apache.thrift.protocol.TType.STRING, (short)3); - private String db_name; - private String tbl_name; - private String index_name; + private String db_name; // required + private String tbl_name; // required + private String index_name; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), INDEX_NAME((short)3, "index_name"); @@ -49211,17 +48828,17 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.INDEX_NAME, new FieldMetaData("index_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + 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.INDEX_NAME, new org.apache.thrift.meta_data.FieldMetaData("index_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_index_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_by_name_args.class, metaDataMap); } public get_index_by_name_args() { @@ -49276,7 +48893,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -49299,7 +48916,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -49322,7 +48939,7 @@ public class ThriftHiveMetastore { this.index_name = null; } - /** Returns true if field index_name is set (has been asigned a value) and false otherwise */ + /** Returns true if field index_name is set (has been assigned a value) and false otherwise */ public boolean isSetIndex_name() { return this.index_name != null; } @@ -49377,7 +48994,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -49455,7 +49072,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -49465,7 +49082,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -49475,7 +49092,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetIndex_name()) { - lastComparison = TBaseHelper.compareTo(this.index_name, typedOther.index_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_name, typedOther.index_name); if (lastComparison != 0) { return lastComparison; } @@ -49487,39 +49104,39 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // INDEX_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.index_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -49527,7 +49144,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -49582,25 +49199,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_index_by_name_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_index_by_name_result"); + public static class get_index_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_index_by_name_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.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 Index success; - private MetaException o1; - private NoSuchObjectException o2; + private Index 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 TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"); @@ -49665,17 +49298,17 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Index.class))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + 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, Index.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); - FieldMetaData.addStructMetaDataMap(get_index_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_by_name_result.class, metaDataMap); } public get_index_by_name_result() { @@ -49730,7 +49363,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -49753,7 +49386,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -49776,7 +49409,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -49831,7 +49464,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -49909,7 +49542,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -49919,7 +49552,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -49929,7 +49562,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -49941,42 +49574,42 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new Index(); this.success.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new NoSuchObjectException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -49984,7 +49617,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -50036,25 +49669,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_indexes_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_indexes_args"); + public static class get_indexes_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_indexes_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField MAX_INDEXES_FIELD_DESC = new TField("max_indexes", TType.I16, (short)3); + 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_INDEXES_FIELD_DESC = new org.apache.thrift.protocol.TField("max_indexes", org.apache.thrift.protocol.TType.I16, (short)3); - private String db_name; - private String tbl_name; - private short max_indexes; + private String db_name; // required + private String tbl_name; // required + private short max_indexes; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), MAX_INDEXES((short)3, "max_indexes"); @@ -50121,17 +49770,17 @@ public class ThriftHiveMetastore { private static final int __MAX_INDEXES_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.MAX_INDEXES, new FieldMetaData("max_indexes", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I16))); + 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_INDEXES, new org.apache.thrift.meta_data.FieldMetaData("max_indexes", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_indexes_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_indexes_args.class, metaDataMap); } public get_indexes_args() { @@ -50190,7 +49839,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -50213,7 +49862,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -50237,7 +49886,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__MAX_INDEXES_ISSET_ID); } - /** Returns true if field max_indexes is set (has been asigned a value) and false otherwise */ + /** Returns true if field max_indexes is set (has been assigned a value) and false otherwise */ public boolean isSetMax_indexes() { return __isset_bit_vector.get(__MAX_INDEXES_ISSET_ID); } @@ -50284,13 +49933,13 @@ public class ThriftHiveMetastore { return getTbl_name(); case MAX_INDEXES: - return new Short(getMax_indexes()); + return Short.valueOf(getMax_indexes()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -50368,7 +50017,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -50378,7 +50027,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -50388,7 +50037,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetMax_indexes()) { - lastComparison = TBaseHelper.compareTo(this.max_indexes, typedOther.max_indexes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_indexes, typedOther.max_indexes); if (lastComparison != 0) { return lastComparison; } @@ -50400,40 +50049,40 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // MAX_INDEXES - if (field.type == TType.I16) { + if (field.type == org.apache.thrift.protocol.TType.I16) { this.max_indexes = iprot.readI16(); setMax_indexesIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -50441,7 +50090,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -50490,25 +50139,43 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + } - public static class get_indexes_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_indexes_result"); + public static class get_indexes_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_indexes_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.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 List success; - private NoSuchObjectException o1; - private MetaException o2; + 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 TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"); @@ -50573,18 +50240,18 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Index.class)))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + 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, Index.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); - FieldMetaData.addStructMetaDataMap(get_indexes_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_indexes_result.class, metaDataMap); } public get_indexes_result() { @@ -50658,7 +50325,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -50681,7 +50348,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -50704,7 +50371,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -50759,7 +50426,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -50837,7 +50504,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -50847,7 +50514,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -50857,7 +50524,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -50869,24 +50536,24 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list238 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list238 = iprot.readListBegin(); this.success = new ArrayList(_list238.size); for (int _i239 = 0; _i239 < _list238.size; ++_i239) { - Index _elem240; + Index _elem240; // required _elem240 = new Index(); _elem240.read(iprot); this.success.add(_elem240); @@ -50894,27 +50561,27 @@ public class ThriftHiveMetastore { iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new NoSuchObjectException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new MetaException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -50922,13 +50589,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); for (Index _iter241 : this.success) { _iter241.write(oprot); @@ -50981,25 +50648,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_index_names_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_index_names_args"); + public static class get_index_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_index_names_args"); - private static final TField DB_NAME_FIELD_DESC = new TField("db_name", TType.STRING, (short)1); - private static final TField TBL_NAME_FIELD_DESC = new TField("tbl_name", TType.STRING, (short)2); - private static final TField MAX_INDEXES_FIELD_DESC = new TField("max_indexes", TType.I16, (short)3); + 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_INDEXES_FIELD_DESC = new org.apache.thrift.protocol.TField("max_indexes", org.apache.thrift.protocol.TType.I16, (short)3); - private String db_name; - private String tbl_name; - private short max_indexes; + private String db_name; // required + private String tbl_name; // required + private short max_indexes; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), MAX_INDEXES((short)3, "max_indexes"); @@ -51066,17 +50749,17 @@ public class ThriftHiveMetastore { private static final int __MAX_INDEXES_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new FieldMetaData("db_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new FieldMetaData("tbl_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.MAX_INDEXES, new FieldMetaData("max_indexes", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I16))); + 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_INDEXES, new org.apache.thrift.meta_data.FieldMetaData("max_indexes", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_index_names_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_names_args.class, metaDataMap); } public get_index_names_args() { @@ -51135,7 +50818,7 @@ public class ThriftHiveMetastore { this.db_name = null; } - /** Returns true if field db_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -51158,7 +50841,7 @@ public class ThriftHiveMetastore { this.tbl_name = null; } - /** Returns true if field tbl_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -51182,7 +50865,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__MAX_INDEXES_ISSET_ID); } - /** Returns true if field max_indexes is set (has been asigned a value) and false otherwise */ + /** Returns true if field max_indexes is set (has been assigned a value) and false otherwise */ public boolean isSetMax_indexes() { return __isset_bit_vector.get(__MAX_INDEXES_ISSET_ID); } @@ -51229,13 +50912,13 @@ public class ThriftHiveMetastore { return getTbl_name(); case MAX_INDEXES: - return new Short(getMax_indexes()); + return Short.valueOf(getMax_indexes()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -51313,7 +50996,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetDb_name()) { - lastComparison = TBaseHelper.compareTo(this.db_name, typedOther.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -51323,7 +51006,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetTbl_name()) { - lastComparison = TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -51333,7 +51016,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetMax_indexes()) { - lastComparison = TBaseHelper.compareTo(this.max_indexes, typedOther.max_indexes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_indexes, typedOther.max_indexes); if (lastComparison != 0) { return lastComparison; } @@ -51345,40 +51028,40 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // DB_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.db_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TBL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.tbl_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // MAX_INDEXES - if (field.type == TType.I16) { + if (field.type == org.apache.thrift.protocol.TType.I16) { this.max_indexes = iprot.readI16(); setMax_indexesIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -51386,7 +51069,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -51435,23 +51118,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + } - public static class get_index_names_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_index_names_result"); + public static class get_index_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_index_names_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private List success; - private MetaException o2; + 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 TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O2((short)1, "o2"); @@ -51513,16 +51214,16 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_index_names_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_names_result.class, metaDataMap); } public get_index_names_result() { @@ -51590,7 +51291,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -51613,7 +51314,7 @@ public class ThriftHiveMetastore { this.o2 = null; } - /** Returns true if field o2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ public boolean isSetO2() { return this.o2 != null; } @@ -51657,7 +51358,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -51724,7 +51425,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -51734,7 +51435,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO2()) { - lastComparison = TBaseHelper.compareTo(this.o2, typedOther.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -51746,43 +51447,43 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list242 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list242 = iprot.readListBegin(); this.success = new ArrayList(_list242.size); for (int _i243 = 0; _i243 < _list242.size; ++_i243) { - String _elem244; + String _elem244; // required _elem244 = iprot.readString(); this.success.add(_elem244); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O2 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o2 = new MetaException(); this.o2.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -51790,13 +51491,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size())); for (String _iter245 : this.success) { oprot.writeString(_iter245); @@ -51837,21 +51538,37 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class create_role_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("create_role_args"); + public static class create_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_role_args"); - private static final TField ROLE_FIELD_DESC = new TField("role", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField ROLE_FIELD_DESC = new org.apache.thrift.protocol.TField("role", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private Role role; + private Role role; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { ROLE((short)1, "role"); private static final Map byName = new HashMap(); @@ -51910,13 +51627,13 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.ROLE, new FieldMetaData("role", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Role.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Role.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(create_role_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_role_args.class, metaDataMap); } public create_role_args() { @@ -51959,7 +51676,7 @@ public class ThriftHiveMetastore { this.role = null; } - /** Returns true if field role is set (has been asigned a value) and false otherwise */ + /** Returns true if field role is set (has been assigned a value) and false otherwise */ public boolean isSetRole() { return this.role != null; } @@ -51992,7 +51709,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -52048,7 +51765,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetRole()) { - lastComparison = TBaseHelper.compareTo(this.role, typedOther.role); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role); if (lastComparison != 0) { return lastComparison; } @@ -52060,26 +51777,26 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // ROLE - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.role = new Role(); this.role.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -52087,7 +51804,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -52116,23 +51833,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class create_role_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("create_role_result"); + public static class create_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_role_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", 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.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private boolean success; - private MetaException o1; + private boolean success; // required + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"); @@ -52196,15 +51929,15 @@ public class ThriftHiveMetastore { private static final int __SUCCESS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(create_role_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_role_result.class, metaDataMap); } public create_role_result() { @@ -52256,7 +51989,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__SUCCESS_ISSET_ID); } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return __isset_bit_vector.get(__SUCCESS_ISSET_ID); } @@ -52277,7 +52010,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -52312,7 +52045,7 @@ public class ThriftHiveMetastore { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return new Boolean(isSuccess()); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -52321,7 +52054,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -52388,7 +52121,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -52398,7 +52131,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -52410,34 +52143,34 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.success = iprot.readBool(); setSuccessIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -52445,7 +52178,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -52481,21 +52214,37 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class drop_role_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("drop_role_args"); + public static class drop_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_role_args"); - private static final TField ROLE_NAME_FIELD_DESC = new TField("role_name", TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("role_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private String role_name; + private String role_name; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { ROLE_NAME((short)1, "role_name"); private static final Map byName = new HashMap(); @@ -52554,13 +52303,13 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.ROLE_NAME, new FieldMetaData("role_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("role_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(drop_role_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_role_args.class, metaDataMap); } public drop_role_args() { @@ -52603,7 +52352,7 @@ public class ThriftHiveMetastore { this.role_name = null; } - /** Returns true if field role_name is set (has been asigned a value) and false otherwise */ + /** Returns true if field role_name is set (has been assigned a value) and false otherwise */ public boolean isSetRole_name() { return this.role_name != null; } @@ -52636,7 +52385,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -52692,7 +52441,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetRole_name()) { - lastComparison = TBaseHelper.compareTo(this.role_name, typedOther.role_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role_name, typedOther.role_name); if (lastComparison != 0) { return lastComparison; } @@ -52704,25 +52453,25 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // ROLE_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.role_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -52730,7 +52479,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -52759,23 +52508,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class drop_role_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("drop_role_result"); + public static class drop_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_role_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", 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.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private boolean success; - private MetaException o1; + private boolean success; // required + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"); @@ -52839,15 +52604,15 @@ public class ThriftHiveMetastore { private static final int __SUCCESS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(drop_role_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_role_result.class, metaDataMap); } public drop_role_result() { @@ -52899,7 +52664,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__SUCCESS_ISSET_ID); } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return __isset_bit_vector.get(__SUCCESS_ISSET_ID); } @@ -52920,7 +52685,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -52955,7 +52720,7 @@ public class ThriftHiveMetastore { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return new Boolean(isSuccess()); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -52964,7 +52729,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -53031,7 +52796,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -53041,7 +52806,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -53053,34 +52818,34 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.success = iprot.readBool(); setSuccessIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -53088,7 +52853,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -53124,19 +52889,35 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_role_names_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_role_names_args"); + public static class get_role_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_role_names_args"); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map byName = new HashMap(); @@ -53190,11 +52971,11 @@ public class ThriftHiveMetastore { return _fieldName; } } - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_role_names_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_role_names_args.class, metaDataMap); } public get_role_names_args() { @@ -53225,7 +53006,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -53272,18 +53053,18 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -53291,7 +53072,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -53308,23 +53089,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_role_names_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_role_names_result"); + public static class get_role_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_role_names_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private List success; - private MetaException o1; + private List success; // required + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"); @@ -53386,16 +53183,16 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_role_names_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_role_names_result.class, metaDataMap); } public get_role_names_result() { @@ -53463,7 +53260,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -53486,7 +53283,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -53530,7 +53327,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -53597,7 +53394,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -53607,7 +53404,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -53619,43 +53416,43 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list246 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list246 = iprot.readListBegin(); this.success = new ArrayList(_list246.size); for (int _i247 = 0; _i247 < _list246.size; ++_i247) { - String _elem248; + String _elem248; // required _elem248 = iprot.readString(); this.success.add(_elem248); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -53663,13 +53460,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size())); for (String _iter249 : this.success) { oprot.writeString(_iter249); @@ -53710,31 +53507,47 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class grant_role_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("grant_role_args"); + public static class grant_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_role_args"); - private static final TField ROLE_NAME_FIELD_DESC = new TField("role_name", TType.STRING, (short)1); - private static final TField PRINCIPAL_NAME_FIELD_DESC = new TField("principal_name", TType.STRING, (short)2); - private static final TField PRINCIPAL_TYPE_FIELD_DESC = new TField("principal_type", TType.I32, (short)3); - private static final TField GRANTOR_FIELD_DESC = new TField("grantor", TType.STRING, (short)4); - private static final TField GRANTOR_TYPE_FIELD_DESC = new TField("grantorType", TType.I32, (short)5); - private static final TField GRANT_OPTION_FIELD_DESC = new TField("grant_option", TType.BOOL, (short)6); + private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("role_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField PRINCIPAL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PRINCIPAL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_type", org.apache.thrift.protocol.TType.I32, (short)3); + private static final org.apache.thrift.protocol.TField GRANTOR_FIELD_DESC = new org.apache.thrift.protocol.TField("grantor", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField GRANTOR_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("grantorType", org.apache.thrift.protocol.TType.I32, (short)5); + private static final org.apache.thrift.protocol.TField GRANT_OPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("grant_option", org.apache.thrift.protocol.TType.BOOL, (short)6); - private String role_name; - private String principal_name; - private PrincipalType principal_type; - private String grantor; - private PrincipalType grantorType; - private boolean grant_option; + private String role_name; // required + private String principal_name; // required + private PrincipalType principal_type; // required + private String grantor; // required + private PrincipalType grantorType; // required + private boolean grant_option; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { ROLE_NAME((short)1, "role_name"), PRINCIPAL_NAME((short)2, "principal_name"), /** @@ -53818,23 +53631,23 @@ public class ThriftHiveMetastore { private static final int __GRANT_OPTION_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.ROLE_NAME, new FieldMetaData("role_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PRINCIPAL_NAME, new FieldMetaData("principal_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PRINCIPAL_TYPE, new FieldMetaData("principal_type", TFieldRequirementType.DEFAULT, - new EnumMetaData(TType.ENUM, PrincipalType.class))); - tmpMap.put(_Fields.GRANTOR, new FieldMetaData("grantor", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.GRANTOR_TYPE, new FieldMetaData("grantorType", TFieldRequirementType.DEFAULT, - new EnumMetaData(TType.ENUM, PrincipalType.class))); - tmpMap.put(_Fields.GRANT_OPTION, new FieldMetaData("grant_option", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("role_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PRINCIPAL_NAME, new org.apache.thrift.meta_data.FieldMetaData("principal_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PRINCIPAL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("principal_type", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PrincipalType.class))); + tmpMap.put(_Fields.GRANTOR, new org.apache.thrift.meta_data.FieldMetaData("grantor", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.GRANTOR_TYPE, new org.apache.thrift.meta_data.FieldMetaData("grantorType", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PrincipalType.class))); + tmpMap.put(_Fields.GRANT_OPTION, new org.apache.thrift.meta_data.FieldMetaData("grant_option", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(grant_role_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(grant_role_args.class, metaDataMap); } public grant_role_args() { @@ -53909,7 +53722,7 @@ public class ThriftHiveMetastore { this.role_name = null; } - /** Returns true if field role_name is set (has been asigned a value) and false otherwise */ + /** Returns true if field role_name is set (has been assigned a value) and false otherwise */ public boolean isSetRole_name() { return this.role_name != null; } @@ -53932,7 +53745,7 @@ public class ThriftHiveMetastore { this.principal_name = null; } - /** Returns true if field principal_name is set (has been asigned a value) and false otherwise */ + /** Returns true if field principal_name is set (has been assigned a value) and false otherwise */ public boolean isSetPrincipal_name() { return this.principal_name != null; } @@ -53963,7 +53776,7 @@ public class ThriftHiveMetastore { this.principal_type = null; } - /** Returns true if field principal_type is set (has been asigned a value) and false otherwise */ + /** Returns true if field principal_type is set (has been assigned a value) and false otherwise */ public boolean isSetPrincipal_type() { return this.principal_type != null; } @@ -53986,7 +53799,7 @@ public class ThriftHiveMetastore { this.grantor = null; } - /** Returns true if field grantor is set (has been asigned a value) and false otherwise */ + /** Returns true if field grantor is set (has been assigned a value) and false otherwise */ public boolean isSetGrantor() { return this.grantor != null; } @@ -54017,7 +53830,7 @@ public class ThriftHiveMetastore { this.grantorType = null; } - /** Returns true if field grantorType is set (has been asigned a value) and false otherwise */ + /** Returns true if field grantorType is set (has been assigned a value) and false otherwise */ public boolean isSetGrantorType() { return this.grantorType != null; } @@ -54041,7 +53854,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__GRANT_OPTION_ISSET_ID); } - /** Returns true if field grant_option is set (has been asigned a value) and false otherwise */ + /** Returns true if field grant_option is set (has been assigned a value) and false otherwise */ public boolean isSetGrant_option() { return __isset_bit_vector.get(__GRANT_OPTION_ISSET_ID); } @@ -54121,13 +53934,13 @@ public class ThriftHiveMetastore { return getGrantorType(); case GRANT_OPTION: - return new Boolean(isGrant_option()); + return Boolean.valueOf(isGrant_option()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -54238,7 +54051,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetRole_name()) { - lastComparison = TBaseHelper.compareTo(this.role_name, typedOther.role_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role_name, typedOther.role_name); if (lastComparison != 0) { return lastComparison; } @@ -54248,7 +54061,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPrincipal_name()) { - lastComparison = TBaseHelper.compareTo(this.principal_name, typedOther.principal_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, typedOther.principal_name); if (lastComparison != 0) { return lastComparison; } @@ -54258,7 +54071,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPrincipal_type()) { - lastComparison = TBaseHelper.compareTo(this.principal_type, typedOther.principal_type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, typedOther.principal_type); if (lastComparison != 0) { return lastComparison; } @@ -54268,7 +54081,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetGrantor()) { - lastComparison = TBaseHelper.compareTo(this.grantor, typedOther.grantor); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantor, typedOther.grantor); if (lastComparison != 0) { return lastComparison; } @@ -54278,7 +54091,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetGrantorType()) { - lastComparison = TBaseHelper.compareTo(this.grantorType, typedOther.grantorType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorType, typedOther.grantorType); if (lastComparison != 0) { return lastComparison; } @@ -54288,7 +54101,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetGrant_option()) { - lastComparison = TBaseHelper.compareTo(this.grant_option, typedOther.grant_option); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grant_option, typedOther.grant_option); if (lastComparison != 0) { return lastComparison; } @@ -54300,61 +54113,61 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // ROLE_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.role_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // PRINCIPAL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.principal_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // PRINCIPAL_TYPE - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.principal_type = PrincipalType.findByValue(iprot.readI32()); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // GRANTOR - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.grantor = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 5: // GRANTOR_TYPE - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.grantorType = PrincipalType.findByValue(iprot.readI32()); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 6: // GRANT_OPTION - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.grant_option = iprot.readBool(); setGrant_optionIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -54362,7 +54175,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -54450,23 +54263,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + } - public static class grant_role_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("grant_role_result"); + public static class grant_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_role_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", 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.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private boolean success; - private MetaException o1; + private boolean success; // required + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"); @@ -54530,15 +54361,15 @@ public class ThriftHiveMetastore { private static final int __SUCCESS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(grant_role_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(grant_role_result.class, metaDataMap); } public grant_role_result() { @@ -54590,7 +54421,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__SUCCESS_ISSET_ID); } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return __isset_bit_vector.get(__SUCCESS_ISSET_ID); } @@ -54611,7 +54442,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -54646,7 +54477,7 @@ public class ThriftHiveMetastore { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return new Boolean(isSuccess()); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -54655,7 +54486,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -54722,7 +54553,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -54732,7 +54563,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -54744,34 +54575,34 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.success = iprot.readBool(); setSuccessIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -54779,7 +54610,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -54815,25 +54646,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class revoke_role_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("revoke_role_args"); + public static class revoke_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("revoke_role_args"); - private static final TField ROLE_NAME_FIELD_DESC = new TField("role_name", TType.STRING, (short)1); - private static final TField PRINCIPAL_NAME_FIELD_DESC = new TField("principal_name", TType.STRING, (short)2); - private static final TField PRINCIPAL_TYPE_FIELD_DESC = new TField("principal_type", TType.I32, (short)3); + private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("role_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField PRINCIPAL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PRINCIPAL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_type", org.apache.thrift.protocol.TType.I32, (short)3); - private String role_name; - private String principal_name; - private PrincipalType principal_type; + private String role_name; // required + private String principal_name; // required + private PrincipalType principal_type; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { ROLE_NAME((short)1, "role_name"), PRINCIPAL_NAME((short)2, "principal_name"), /** @@ -54902,17 +54749,17 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.ROLE_NAME, new FieldMetaData("role_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PRINCIPAL_NAME, new FieldMetaData("principal_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PRINCIPAL_TYPE, new FieldMetaData("principal_type", TFieldRequirementType.DEFAULT, - new EnumMetaData(TType.ENUM, PrincipalType.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("role_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PRINCIPAL_NAME, new org.apache.thrift.meta_data.FieldMetaData("principal_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PRINCIPAL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("principal_type", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PrincipalType.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(revoke_role_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(revoke_role_args.class, metaDataMap); } public revoke_role_args() { @@ -54967,7 +54814,7 @@ public class ThriftHiveMetastore { this.role_name = null; } - /** Returns true if field role_name is set (has been asigned a value) and false otherwise */ + /** Returns true if field role_name is set (has been assigned a value) and false otherwise */ public boolean isSetRole_name() { return this.role_name != null; } @@ -54990,7 +54837,7 @@ public class ThriftHiveMetastore { this.principal_name = null; } - /** Returns true if field principal_name is set (has been asigned a value) and false otherwise */ + /** Returns true if field principal_name is set (has been assigned a value) and false otherwise */ public boolean isSetPrincipal_name() { return this.principal_name != null; } @@ -55021,7 +54868,7 @@ public class ThriftHiveMetastore { this.principal_type = null; } - /** Returns true if field principal_type is set (has been asigned a value) and false otherwise */ + /** Returns true if field principal_type is set (has been assigned a value) and false otherwise */ public boolean isSetPrincipal_type() { return this.principal_type != null; } @@ -55076,7 +54923,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -55154,7 +55001,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetRole_name()) { - lastComparison = TBaseHelper.compareTo(this.role_name, typedOther.role_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role_name, typedOther.role_name); if (lastComparison != 0) { return lastComparison; } @@ -55164,7 +55011,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPrincipal_name()) { - lastComparison = TBaseHelper.compareTo(this.principal_name, typedOther.principal_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, typedOther.principal_name); if (lastComparison != 0) { return lastComparison; } @@ -55174,7 +55021,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPrincipal_type()) { - lastComparison = TBaseHelper.compareTo(this.principal_type, typedOther.principal_type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, typedOther.principal_type); if (lastComparison != 0) { return lastComparison; } @@ -55186,39 +55033,39 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // ROLE_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.role_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // PRINCIPAL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.principal_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // PRINCIPAL_TYPE - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.principal_type = PrincipalType.findByValue(iprot.readI32()); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -55226,7 +55073,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -55281,23 +55128,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class revoke_role_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("revoke_role_result"); + public static class revoke_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("revoke_role_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", 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.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private boolean success; - private MetaException o1; + private boolean success; // required + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"); @@ -55361,15 +55224,15 @@ public class ThriftHiveMetastore { private static final int __SUCCESS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(revoke_role_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(revoke_role_result.class, metaDataMap); } public revoke_role_result() { @@ -55421,7 +55284,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__SUCCESS_ISSET_ID); } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return __isset_bit_vector.get(__SUCCESS_ISSET_ID); } @@ -55442,7 +55305,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -55477,7 +55340,7 @@ public class ThriftHiveMetastore { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return new Boolean(isSuccess()); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -55486,7 +55349,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -55553,7 +55416,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -55563,7 +55426,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -55575,34 +55438,34 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.success = iprot.readBool(); setSuccessIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -55610,7 +55473,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -55646,23 +55509,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class list_roles_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("list_roles_args"); + public static class list_roles_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("list_roles_args"); - private static final TField PRINCIPAL_NAME_FIELD_DESC = new TField("principal_name", TType.STRING, (short)1); - private static final TField PRINCIPAL_TYPE_FIELD_DESC = new TField("principal_type", TType.I32, (short)2); + private static final org.apache.thrift.protocol.TField PRINCIPAL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField PRINCIPAL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_type", org.apache.thrift.protocol.TType.I32, (short)2); - private String principal_name; - private PrincipalType principal_type; + private String principal_name; // required + private PrincipalType principal_type; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { PRINCIPAL_NAME((short)1, "principal_name"), /** * @@ -55728,15 +55607,15 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.PRINCIPAL_NAME, new FieldMetaData("principal_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PRINCIPAL_TYPE, new FieldMetaData("principal_type", TFieldRequirementType.DEFAULT, - new EnumMetaData(TType.ENUM, PrincipalType.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.PRINCIPAL_NAME, new org.apache.thrift.meta_data.FieldMetaData("principal_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PRINCIPAL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("principal_type", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PrincipalType.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(list_roles_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(list_roles_args.class, metaDataMap); } public list_roles_args() { @@ -55785,7 +55664,7 @@ public class ThriftHiveMetastore { this.principal_name = null; } - /** Returns true if field principal_name is set (has been asigned a value) and false otherwise */ + /** Returns true if field principal_name is set (has been assigned a value) and false otherwise */ public boolean isSetPrincipal_name() { return this.principal_name != null; } @@ -55816,7 +55695,7 @@ public class ThriftHiveMetastore { this.principal_type = null; } - /** Returns true if field principal_type is set (has been asigned a value) and false otherwise */ + /** Returns true if field principal_type is set (has been assigned a value) and false otherwise */ public boolean isSetPrincipal_type() { return this.principal_type != null; } @@ -55860,7 +55739,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -55927,7 +55806,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPrincipal_name()) { - lastComparison = TBaseHelper.compareTo(this.principal_name, typedOther.principal_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, typedOther.principal_name); if (lastComparison != 0) { return lastComparison; } @@ -55937,7 +55816,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPrincipal_type()) { - lastComparison = TBaseHelper.compareTo(this.principal_type, typedOther.principal_type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, typedOther.principal_type); if (lastComparison != 0) { return lastComparison; } @@ -55949,32 +55828,32 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // PRINCIPAL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.principal_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // PRINCIPAL_TYPE - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.principal_type = PrincipalType.findByValue(iprot.readI32()); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -55982,7 +55861,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -56024,23 +55903,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class list_roles_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("list_roles_result"); + public static class list_roles_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("list_roles_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private List success; - private MetaException o1; + private List success; // required + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"); @@ -56102,16 +55997,16 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Role.class)))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + 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, Role.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))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(list_roles_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(list_roles_result.class, metaDataMap); } public list_roles_result() { @@ -56179,7 +56074,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -56202,7 +56097,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -56246,7 +56141,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -56313,7 +56208,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -56323,7 +56218,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -56335,24 +56230,24 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list250 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list250 = iprot.readListBegin(); this.success = new ArrayList(_list250.size); for (int _i251 = 0; _i251 < _list250.size; ++_i251) { - Role _elem252; + Role _elem252; // required _elem252 = new Role(); _elem252.read(iprot); this.success.add(_elem252); @@ -56360,19 +56255,19 @@ public class ThriftHiveMetastore { iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -56380,13 +56275,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); for (Role _iter253 : this.success) { _iter253.write(oprot); @@ -56427,25 +56322,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_privilege_set_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_privilege_set_args"); + public static class get_privilege_set_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_privilege_set_args"); - private static final TField HIVE_OBJECT_FIELD_DESC = new TField("hiveObject", TType.STRUCT, (short)1); - private static final TField USER_NAME_FIELD_DESC = new TField("user_name", TType.STRING, (short)2); - private static final TField GROUP_NAMES_FIELD_DESC = new TField("group_names", TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField HIVE_OBJECT_FIELD_DESC = new org.apache.thrift.protocol.TField("hiveObject", org.apache.thrift.protocol.TType.STRUCT, (short)1); + 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)2); + 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)3); - private HiveObjectRef hiveObject; - private String user_name; - private List group_names; + private HiveObjectRef hiveObject; // 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 TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { HIVE_OBJECT((short)1, "hiveObject"), USER_NAME((short)2, "user_name"), GROUP_NAMES((short)3, "group_names"); @@ -56510,18 +56421,18 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.HIVE_OBJECT, new FieldMetaData("hiveObject", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, HiveObjectRef.class))); - tmpMap.put(_Fields.USER_NAME, new FieldMetaData("user_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.GROUP_NAMES, new FieldMetaData("group_names", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.HIVE_OBJECT, new org.apache.thrift.meta_data.FieldMetaData("hiveObject", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HiveObjectRef.class))); + 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); - FieldMetaData.addStructMetaDataMap(get_privilege_set_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_privilege_set_args.class, metaDataMap); } public get_privilege_set_args() { @@ -56580,7 +56491,7 @@ public class ThriftHiveMetastore { this.hiveObject = null; } - /** Returns true if field hiveObject is set (has been asigned a value) and false otherwise */ + /** Returns true if field hiveObject is set (has been assigned a value) and false otherwise */ public boolean isSetHiveObject() { return this.hiveObject != null; } @@ -56603,7 +56514,7 @@ public class ThriftHiveMetastore { this.user_name = null; } - /** Returns true if field user_name is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -56641,7 +56552,7 @@ public class ThriftHiveMetastore { this.group_names = null; } - /** Returns true if field group_names is set (has been asigned a value) and false otherwise */ + /** 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; } @@ -56696,7 +56607,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -56774,7 +56685,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetHiveObject()) { - lastComparison = TBaseHelper.compareTo(this.hiveObject, typedOther.hiveObject); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hiveObject, typedOther.hiveObject); if (lastComparison != 0) { return lastComparison; } @@ -56784,7 +56695,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetUser_name()) { - lastComparison = TBaseHelper.compareTo(this.user_name, typedOther.user_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, typedOther.user_name); if (lastComparison != 0) { return lastComparison; } @@ -56794,7 +56705,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetGroup_names()) { - lastComparison = TBaseHelper.compareTo(this.group_names, typedOther.group_names); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, typedOther.group_names); if (lastComparison != 0) { return lastComparison; } @@ -56806,50 +56717,50 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // HIVE_OBJECT - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.hiveObject = new HiveObjectRef(); this.hiveObject.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // USER_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.user_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // GROUP_NAMES - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list254 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list254 = iprot.readListBegin(); this.group_names = new ArrayList(_list254.size); for (int _i255 = 0; _i255 < _list254.size; ++_i255) { - String _elem256; + String _elem256; // required _elem256 = iprot.readString(); this.group_names.add(_elem256); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -56857,7 +56768,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -56874,7 +56785,7 @@ public class ThriftHiveMetastore { if (this.group_names != null) { oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.group_names.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.group_names.size())); for (String _iter257 : this.group_names) { oprot.writeString(_iter257); @@ -56919,23 +56830,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_privilege_set_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_privilege_set_result"); + public static class get_privilege_set_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_privilege_set_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", 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 PrincipalPrivilegeSet success; - private MetaException o1; + private PrincipalPrivilegeSet success; // required + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"); @@ -56997,15 +56924,15 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, PrincipalPrivilegeSet.class))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + 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, PrincipalPrivilegeSet.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))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_privilege_set_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_privilege_set_result.class, metaDataMap); } public get_privilege_set_result() { @@ -57054,7 +56981,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -57077,7 +57004,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -57121,7 +57048,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -57188,7 +57115,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -57198,7 +57125,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -57210,34 +57137,34 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new PrincipalPrivilegeSet(); this.success.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -57245,7 +57172,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -57285,25 +57212,41 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class list_privileges_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("list_privileges_args"); + public static class list_privileges_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("list_privileges_args"); - private static final TField PRINCIPAL_NAME_FIELD_DESC = new TField("principal_name", TType.STRING, (short)1); - private static final TField PRINCIPAL_TYPE_FIELD_DESC = new TField("principal_type", TType.I32, (short)2); - private static final TField HIVE_OBJECT_FIELD_DESC = new TField("hiveObject", TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField PRINCIPAL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField PRINCIPAL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_type", org.apache.thrift.protocol.TType.I32, (short)2); + private static final org.apache.thrift.protocol.TField HIVE_OBJECT_FIELD_DESC = new org.apache.thrift.protocol.TField("hiveObject", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private String principal_name; - private PrincipalType principal_type; - private HiveObjectRef hiveObject; + private String principal_name; // required + private PrincipalType principal_type; // required + private HiveObjectRef hiveObject; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { PRINCIPAL_NAME((short)1, "principal_name"), /** * @@ -57372,17 +57315,17 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.PRINCIPAL_NAME, new FieldMetaData("principal_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.PRINCIPAL_TYPE, new FieldMetaData("principal_type", TFieldRequirementType.DEFAULT, - new EnumMetaData(TType.ENUM, PrincipalType.class))); - tmpMap.put(_Fields.HIVE_OBJECT, new FieldMetaData("hiveObject", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, HiveObjectRef.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.PRINCIPAL_NAME, new org.apache.thrift.meta_data.FieldMetaData("principal_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PRINCIPAL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("principal_type", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PrincipalType.class))); + tmpMap.put(_Fields.HIVE_OBJECT, new org.apache.thrift.meta_data.FieldMetaData("hiveObject", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HiveObjectRef.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(list_privileges_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(list_privileges_args.class, metaDataMap); } public list_privileges_args() { @@ -57437,7 +57380,7 @@ public class ThriftHiveMetastore { this.principal_name = null; } - /** Returns true if field principal_name is set (has been asigned a value) and false otherwise */ + /** Returns true if field principal_name is set (has been assigned a value) and false otherwise */ public boolean isSetPrincipal_name() { return this.principal_name != null; } @@ -57468,7 +57411,7 @@ public class ThriftHiveMetastore { this.principal_type = null; } - /** Returns true if field principal_type is set (has been asigned a value) and false otherwise */ + /** Returns true if field principal_type is set (has been assigned a value) and false otherwise */ public boolean isSetPrincipal_type() { return this.principal_type != null; } @@ -57491,7 +57434,7 @@ public class ThriftHiveMetastore { this.hiveObject = null; } - /** Returns true if field hiveObject is set (has been asigned a value) and false otherwise */ + /** Returns true if field hiveObject is set (has been assigned a value) and false otherwise */ public boolean isSetHiveObject() { return this.hiveObject != null; } @@ -57546,7 +57489,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -57624,7 +57567,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPrincipal_name()) { - lastComparison = TBaseHelper.compareTo(this.principal_name, typedOther.principal_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, typedOther.principal_name); if (lastComparison != 0) { return lastComparison; } @@ -57634,7 +57577,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPrincipal_type()) { - lastComparison = TBaseHelper.compareTo(this.principal_type, typedOther.principal_type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, typedOther.principal_type); if (lastComparison != 0) { return lastComparison; } @@ -57644,7 +57587,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetHiveObject()) { - lastComparison = TBaseHelper.compareTo(this.hiveObject, typedOther.hiveObject); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hiveObject, typedOther.hiveObject); if (lastComparison != 0) { return lastComparison; } @@ -57656,40 +57599,40 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // PRINCIPAL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.principal_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // PRINCIPAL_TYPE - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.principal_type = PrincipalType.findByValue(iprot.readI32()); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // HIVE_OBJECT - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.hiveObject = new HiveObjectRef(); this.hiveObject.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -57697,7 +57640,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -57752,23 +57695,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class list_privileges_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("list_privileges_result"); + public static class list_privileges_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("list_privileges_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private List success; - private MetaException o1; + private List success; // required + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"); @@ -57830,16 +57789,16 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, HiveObjectPrivilege.class)))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + 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, HiveObjectPrivilege.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))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(list_privileges_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(list_privileges_result.class, metaDataMap); } public list_privileges_result() { @@ -57907,7 +57866,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -57930,7 +57889,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -57974,7 +57933,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -58041,7 +58000,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -58051,7 +58010,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -58063,24 +58022,24 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list258 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list258 = iprot.readListBegin(); this.success = new ArrayList(_list258.size); for (int _i259 = 0; _i259 < _list258.size; ++_i259) { - HiveObjectPrivilege _elem260; + HiveObjectPrivilege _elem260; // required _elem260 = new HiveObjectPrivilege(); _elem260.read(iprot); this.success.add(_elem260); @@ -58088,19 +58047,19 @@ public class ThriftHiveMetastore { iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -58108,13 +58067,13 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); for (HiveObjectPrivilege _iter261 : this.success) { _iter261.write(oprot); @@ -58155,21 +58114,37 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class grant_privileges_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("grant_privileges_args"); + public static class grant_privileges_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_privileges_args"); - private static final TField PRIVILEGES_FIELD_DESC = new TField("privileges", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField PRIVILEGES_FIELD_DESC = new org.apache.thrift.protocol.TField("privileges", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private PrivilegeBag privileges; + private PrivilegeBag privileges; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { PRIVILEGES((short)1, "privileges"); private static final Map byName = new HashMap(); @@ -58228,13 +58203,13 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.PRIVILEGES, new FieldMetaData("privileges", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, PrivilegeBag.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.PRIVILEGES, new org.apache.thrift.meta_data.FieldMetaData("privileges", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrivilegeBag.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(grant_privileges_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(grant_privileges_args.class, metaDataMap); } public grant_privileges_args() { @@ -58277,7 +58252,7 @@ public class ThriftHiveMetastore { this.privileges = null; } - /** Returns true if field privileges is set (has been asigned a value) and false otherwise */ + /** Returns true if field privileges is set (has been assigned a value) and false otherwise */ public boolean isSetPrivileges() { return this.privileges != null; } @@ -58310,7 +58285,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -58366,7 +58341,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPrivileges()) { - lastComparison = TBaseHelper.compareTo(this.privileges, typedOther.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } @@ -58378,26 +58353,26 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // PRIVILEGES - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.privileges = new PrivilegeBag(); this.privileges.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -58405,7 +58380,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -58434,23 +58409,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class grant_privileges_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("grant_privileges_result"); + public static class grant_privileges_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_privileges_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", 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.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private boolean success; - private MetaException o1; + private boolean success; // required + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"); @@ -58514,15 +58505,15 @@ public class ThriftHiveMetastore { private static final int __SUCCESS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(grant_privileges_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(grant_privileges_result.class, metaDataMap); } public grant_privileges_result() { @@ -58574,7 +58565,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__SUCCESS_ISSET_ID); } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return __isset_bit_vector.get(__SUCCESS_ISSET_ID); } @@ -58595,7 +58586,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -58630,7 +58621,7 @@ public class ThriftHiveMetastore { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return new Boolean(isSuccess()); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -58639,7 +58630,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -58706,7 +58697,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -58716,7 +58707,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -58728,34 +58719,34 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.success = iprot.readBool(); setSuccessIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -58763,7 +58754,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -58799,21 +58790,37 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class revoke_privileges_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("revoke_privileges_args"); + public static class revoke_privileges_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("revoke_privileges_args"); - private static final TField PRIVILEGES_FIELD_DESC = new TField("privileges", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField PRIVILEGES_FIELD_DESC = new org.apache.thrift.protocol.TField("privileges", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private PrivilegeBag privileges; + private PrivilegeBag privileges; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { PRIVILEGES((short)1, "privileges"); private static final Map byName = new HashMap(); @@ -58872,13 +58879,13 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.PRIVILEGES, new FieldMetaData("privileges", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, PrivilegeBag.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.PRIVILEGES, new org.apache.thrift.meta_data.FieldMetaData("privileges", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrivilegeBag.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(revoke_privileges_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(revoke_privileges_args.class, metaDataMap); } public revoke_privileges_args() { @@ -58921,7 +58928,7 @@ public class ThriftHiveMetastore { this.privileges = null; } - /** Returns true if field privileges is set (has been asigned a value) and false otherwise */ + /** Returns true if field privileges is set (has been assigned a value) and false otherwise */ public boolean isSetPrivileges() { return this.privileges != null; } @@ -58954,7 +58961,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -59010,7 +59017,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetPrivileges()) { - lastComparison = TBaseHelper.compareTo(this.privileges, typedOther.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } @@ -59022,26 +59029,26 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // PRIVILEGES - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.privileges = new PrivilegeBag(); this.privileges.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -59049,7 +59056,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -59078,23 +59085,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class revoke_privileges_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("revoke_privileges_result"); + public static class revoke_privileges_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("revoke_privileges_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", 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.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private boolean success; - private MetaException o1; + private boolean success; // required + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"); @@ -59158,15 +59181,15 @@ public class ThriftHiveMetastore { private static final int __SUCCESS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(revoke_privileges_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(revoke_privileges_result.class, metaDataMap); } public revoke_privileges_result() { @@ -59218,7 +59241,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__SUCCESS_ISSET_ID); } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return __isset_bit_vector.get(__SUCCESS_ISSET_ID); } @@ -59239,7 +59262,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -59274,7 +59297,7 @@ public class ThriftHiveMetastore { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return new Boolean(isSuccess()); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -59283,7 +59306,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -59350,7 +59373,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -59360,7 +59383,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -59372,34 +59395,34 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.success = iprot.readBool(); setSuccessIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -59407,7 +59430,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -59443,23 +59466,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_delegation_token_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_delegation_token_args"); + public static class get_delegation_token_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_delegation_token_args"); - private static final TField TOKEN_OWNER_FIELD_DESC = new TField("token_owner", TType.STRING, (short)1); - private static final TField RENEWER_KERBEROS_PRINCIPAL_NAME_FIELD_DESC = new TField("renewer_kerberos_principal_name", TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TOKEN_OWNER_FIELD_DESC = new org.apache.thrift.protocol.TField("token_owner", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField RENEWER_KERBEROS_PRINCIPAL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("renewer_kerberos_principal_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private String token_owner; - private String renewer_kerberos_principal_name; + private String token_owner; // required + private String renewer_kerberos_principal_name; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { TOKEN_OWNER((short)1, "token_owner"), RENEWER_KERBEROS_PRINCIPAL_NAME((short)2, "renewer_kerberos_principal_name"); @@ -59521,15 +59560,15 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.TOKEN_OWNER, new FieldMetaData("token_owner", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.RENEWER_KERBEROS_PRINCIPAL_NAME, new FieldMetaData("renewer_kerberos_principal_name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.TOKEN_OWNER, new org.apache.thrift.meta_data.FieldMetaData("token_owner", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.RENEWER_KERBEROS_PRINCIPAL_NAME, new org.apache.thrift.meta_data.FieldMetaData("renewer_kerberos_principal_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_delegation_token_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_delegation_token_args.class, metaDataMap); } public get_delegation_token_args() { @@ -59578,7 +59617,7 @@ public class ThriftHiveMetastore { this.token_owner = null; } - /** Returns true if field token_owner is set (has been asigned a value) and false otherwise */ + /** Returns true if field token_owner is set (has been assigned a value) and false otherwise */ public boolean isSetToken_owner() { return this.token_owner != null; } @@ -59601,7 +59640,7 @@ public class ThriftHiveMetastore { this.renewer_kerberos_principal_name = null; } - /** Returns true if field renewer_kerberos_principal_name is set (has been asigned a value) and false otherwise */ + /** Returns true if field renewer_kerberos_principal_name is set (has been assigned a value) and false otherwise */ public boolean isSetRenewer_kerberos_principal_name() { return this.renewer_kerberos_principal_name != null; } @@ -59645,7 +59684,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -59712,7 +59751,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetToken_owner()) { - lastComparison = TBaseHelper.compareTo(this.token_owner, typedOther.token_owner); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token_owner, typedOther.token_owner); if (lastComparison != 0) { return lastComparison; } @@ -59722,7 +59761,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetRenewer_kerberos_principal_name()) { - lastComparison = TBaseHelper.compareTo(this.renewer_kerberos_principal_name, typedOther.renewer_kerberos_principal_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.renewer_kerberos_principal_name, typedOther.renewer_kerberos_principal_name); if (lastComparison != 0) { return lastComparison; } @@ -59734,32 +59773,32 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // TOKEN_OWNER - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.token_owner = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // RENEWER_KERBEROS_PRINCIPAL_NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.renewer_kerberos_principal_name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -59767,7 +59806,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -59809,23 +59848,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class get_delegation_token_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("get_delegation_token_result"); + public static class get_delegation_token_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_delegation_token_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRING, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", 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.STRING, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private String success; - private MetaException o1; + private String success; // required + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"); @@ -59887,15 +59942,15 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(get_delegation_token_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_delegation_token_result.class, metaDataMap); } public get_delegation_token_result() { @@ -59944,7 +59999,7 @@ public class ThriftHiveMetastore { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -59967,7 +60022,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -60011,7 +60066,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -60078,7 +60133,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -60088,7 +60143,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -60100,33 +60155,33 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.success = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -60134,7 +60189,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -60174,21 +60229,37 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class renew_delegation_token_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("renew_delegation_token_args"); + public static class renew_delegation_token_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("renew_delegation_token_args"); - private static final TField TOKEN_STR_FORM_FIELD_DESC = new TField("token_str_form", TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TOKEN_STR_FORM_FIELD_DESC = new org.apache.thrift.protocol.TField("token_str_form", org.apache.thrift.protocol.TType.STRING, (short)1); - private String token_str_form; + private String token_str_form; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { TOKEN_STR_FORM((short)1, "token_str_form"); private static final Map byName = new HashMap(); @@ -60247,13 +60318,13 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.TOKEN_STR_FORM, new FieldMetaData("token_str_form", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.TOKEN_STR_FORM, new org.apache.thrift.meta_data.FieldMetaData("token_str_form", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(renew_delegation_token_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(renew_delegation_token_args.class, metaDataMap); } public renew_delegation_token_args() { @@ -60296,7 +60367,7 @@ public class ThriftHiveMetastore { this.token_str_form = null; } - /** Returns true if field token_str_form is set (has been asigned a value) and false otherwise */ + /** Returns true if field token_str_form is set (has been assigned a value) and false otherwise */ public boolean isSetToken_str_form() { return this.token_str_form != null; } @@ -60329,7 +60400,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -60385,7 +60456,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetToken_str_form()) { - lastComparison = TBaseHelper.compareTo(this.token_str_form, typedOther.token_str_form); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token_str_form, typedOther.token_str_form); if (lastComparison != 0) { return lastComparison; } @@ -60397,25 +60468,25 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // TOKEN_STR_FORM - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.token_str_form = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -60423,7 +60494,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -60452,23 +60523,39 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class renew_delegation_token_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("renew_delegation_token_result"); + public static class renew_delegation_token_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("renew_delegation_token_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0); - private static final TField O1_FIELD_DESC = new TField("o1", 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.I64, (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 long success; - private MetaException o1; + private long success; // required + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"); @@ -60532,15 +60619,15 @@ public class ThriftHiveMetastore { private static final int __SUCCESS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I64))); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(renew_delegation_token_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(renew_delegation_token_result.class, metaDataMap); } public renew_delegation_token_result() { @@ -60592,7 +60679,7 @@ public class ThriftHiveMetastore { __isset_bit_vector.clear(__SUCCESS_ISSET_ID); } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return __isset_bit_vector.get(__SUCCESS_ISSET_ID); } @@ -60613,7 +60700,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -60648,7 +60735,7 @@ public class ThriftHiveMetastore { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return new Long(getSuccess()); + return Long.valueOf(getSuccess()); case O1: return getO1(); @@ -60657,7 +60744,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -60724,7 +60811,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -60734,7 +60821,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -60746,34 +60833,34 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.I64) { + if (field.type == org.apache.thrift.protocol.TType.I64) { this.success = iprot.readI64(); setSuccessIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -60781,7 +60868,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -60817,21 +60904,37 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class cancel_delegation_token_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("cancel_delegation_token_args"); + public static class cancel_delegation_token_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("cancel_delegation_token_args"); - private static final TField TOKEN_STR_FORM_FIELD_DESC = new TField("token_str_form", TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TOKEN_STR_FORM_FIELD_DESC = new org.apache.thrift.protocol.TField("token_str_form", org.apache.thrift.protocol.TType.STRING, (short)1); - private String token_str_form; + private String token_str_form; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { TOKEN_STR_FORM((short)1, "token_str_form"); private static final Map byName = new HashMap(); @@ -60890,13 +60993,13 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.TOKEN_STR_FORM, new FieldMetaData("token_str_form", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.TOKEN_STR_FORM, new org.apache.thrift.meta_data.FieldMetaData("token_str_form", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(cancel_delegation_token_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cancel_delegation_token_args.class, metaDataMap); } public cancel_delegation_token_args() { @@ -60939,7 +61042,7 @@ public class ThriftHiveMetastore { this.token_str_form = null; } - /** Returns true if field token_str_form is set (has been asigned a value) and false otherwise */ + /** Returns true if field token_str_form is set (has been assigned a value) and false otherwise */ public boolean isSetToken_str_form() { return this.token_str_form != null; } @@ -60972,7 +61075,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -61028,7 +61131,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetToken_str_form()) { - lastComparison = TBaseHelper.compareTo(this.token_str_form, typedOther.token_str_form); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token_str_form, typedOther.token_str_form); if (lastComparison != 0) { return lastComparison; } @@ -61040,25 +61143,25 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // TOKEN_STR_FORM - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.token_str_form = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -61066,7 +61169,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -61095,21 +61198,37 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class cancel_delegation_token_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("cancel_delegation_token_result"); + public static class cancel_delegation_token_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("cancel_delegation_token_result"); - private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private MetaException o1; + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { O1((short)1, "o1"); private static final Map byName = new HashMap(); @@ -61168,13 +61287,13 @@ public class ThriftHiveMetastore { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(cancel_delegation_token_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cancel_delegation_token_result.class, metaDataMap); } public cancel_delegation_token_result() { @@ -61217,7 +61336,7 @@ public class ThriftHiveMetastore { this.o1 = null; } - /** Returns true if field o1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ public boolean isSetO1() { return this.o1 != null; } @@ -61250,7 +61369,7 @@ public class ThriftHiveMetastore { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -61306,7 +61425,7 @@ public class ThriftHiveMetastore { return lastComparison; } if (isSetO1()) { - lastComparison = TBaseHelper.compareTo(this.o1, typedOther.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -61318,26 +61437,26 @@ public class ThriftHiveMetastore { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // O1 - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.o1 = new MetaException(); this.o1.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -61345,7 +61464,7 @@ public class ThriftHiveMetastore { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetO1()) { @@ -61373,10 +61492,26 @@ public class ThriftHiveMetastore { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } } diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java index 26d684a..fb9aa1f 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,27 +20,21 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; +public class Type implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Type"); -public class Type implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("Type"); + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TYPE1_FIELD_DESC = new org.apache.thrift.protocol.TField("type1", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TYPE2_FIELD_DESC = new org.apache.thrift.protocol.TField("type2", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField FIELDS_FIELD_DESC = new org.apache.thrift.protocol.TField("fields", org.apache.thrift.protocol.TType.LIST, (short)4); - private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1); - private static final TField TYPE1_FIELD_DESC = new TField("type1", TType.STRING, (short)2); - private static final TField TYPE2_FIELD_DESC = new TField("type2", TType.STRING, (short)3); - private static final TField FIELDS_FIELD_DESC = new TField("fields", TType.LIST, (short)4); - - private String name; - private String type1; - private String type2; - private List fields; + private String name; // required + private String type1; // required + private String type2; // required + private List fields; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { NAME((short)1, "name"), TYPE1((short)2, "type1"), TYPE2((short)3, "type2"), @@ -108,20 +102,20 @@ public class Type implements TBase, java.io.Serializable, Cl // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TYPE1, new FieldMetaData("type1", TFieldRequirementType.OPTIONAL, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TYPE2, new FieldMetaData("type2", TFieldRequirementType.OPTIONAL, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.FIELDS, new FieldMetaData("fields", TFieldRequirementType.OPTIONAL, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, FieldSchema.class)))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TYPE1, new org.apache.thrift.meta_data.FieldMetaData("type1", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TYPE2, new org.apache.thrift.meta_data.FieldMetaData("type2", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FIELDS, new org.apache.thrift.meta_data.FieldMetaData("fields", 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)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(Type.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Type.class, metaDataMap); } public Type() { @@ -180,7 +174,7 @@ public class Type implements TBase, java.io.Serializable, Cl this.name = null; } - /** Returns true if field name is set (has been asigned a value) and false otherwise */ + /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } @@ -203,7 +197,7 @@ public class Type implements TBase, java.io.Serializable, Cl this.type1 = null; } - /** Returns true if field type1 is set (has been asigned a value) and false otherwise */ + /** Returns true if field type1 is set (has been assigned a value) and false otherwise */ public boolean isSetType1() { return this.type1 != null; } @@ -226,7 +220,7 @@ public class Type implements TBase, java.io.Serializable, Cl this.type2 = null; } - /** Returns true if field type2 is set (has been asigned a value) and false otherwise */ + /** Returns true if field type2 is set (has been assigned a value) and false otherwise */ public boolean isSetType2() { return this.type2 != null; } @@ -264,7 +258,7 @@ public class Type implements TBase, java.io.Serializable, Cl this.fields = null; } - /** Returns true if field fields is set (has been asigned a value) and false otherwise */ + /** Returns true if field fields is set (has been assigned a value) and false otherwise */ public boolean isSetFields() { return this.fields != null; } @@ -330,7 +324,7 @@ public class Type implements TBase, java.io.Serializable, Cl throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -419,7 +413,7 @@ public class Type implements TBase, java.io.Serializable, Cl return lastComparison; } if (isSetName()) { - lastComparison = TBaseHelper.compareTo(this.name, typedOther.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } @@ -429,7 +423,7 @@ public class Type implements TBase, java.io.Serializable, Cl return lastComparison; } if (isSetType1()) { - lastComparison = TBaseHelper.compareTo(this.type1, typedOther.type1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type1, typedOther.type1); if (lastComparison != 0) { return lastComparison; } @@ -439,7 +433,7 @@ public class Type implements TBase, java.io.Serializable, Cl return lastComparison; } if (isSetType2()) { - lastComparison = TBaseHelper.compareTo(this.type2, typedOther.type2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type2, typedOther.type2); if (lastComparison != 0) { return lastComparison; } @@ -449,7 +443,7 @@ public class Type implements TBase, java.io.Serializable, Cl return lastComparison; } if (isSetFields()) { - lastComparison = TBaseHelper.compareTo(this.fields, typedOther.fields); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fields, typedOther.fields); if (lastComparison != 0) { return lastComparison; } @@ -461,45 +455,45 @@ public class Type implements TBase, java.io.Serializable, Cl return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // NAME - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.name = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TYPE1 - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.type1 = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // TYPE2 - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.type2 = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // FIELDS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list0 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); this.fields = new ArrayList(_list0.size); for (int _i1 = 0; _i1 < _list0.size; ++_i1) { - FieldSchema _elem2; + FieldSchema _elem2; // required _elem2 = new FieldSchema(); _elem2.read(iprot); this.fields.add(_elem2); @@ -507,11 +501,11 @@ public class Type implements TBase, java.io.Serializable, Cl iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -519,7 +513,7 @@ public class Type implements TBase, java.io.Serializable, Cl validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -546,7 +540,7 @@ public class Type implements TBase, java.io.Serializable, Cl if (isSetFields()) { oprot.writeFieldBegin(FIELDS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.fields.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.fields.size())); for (FieldSchema _iter3 : this.fields) { _iter3.write(oprot); @@ -606,9 +600,25 @@ public class Type implements TBase, java.io.Serializable, Cl return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownDBException.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownDBException.java index 3422215..b33670a 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownDBException.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownDBException.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,21 +20,15 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; +public class UnknownDBException extends Exception implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UnknownDBException"); -public class UnknownDBException extends Exception implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("UnknownDBException"); + private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)1); - - private String message; + private String message; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { MESSAGE((short)1, "message"); private static final Map byName = new HashMap(); @@ -93,13 +87,13 @@ public class UnknownDBException extends Exception implements TBase metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(UnknownDBException.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UnknownDBException.class, metaDataMap); } public UnknownDBException() { @@ -142,7 +136,7 @@ public class UnknownDBException extends Exception implements TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UnknownPartitionException"); -public class UnknownPartitionException extends Exception implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("UnknownPartitionException"); + private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)1); - - private String message; + private String message; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { MESSAGE((short)1, "message"); private static final Map byName = new HashMap(); @@ -93,13 +87,13 @@ public class UnknownPartitionException extends Exception implements TBase metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(UnknownPartitionException.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UnknownPartitionException.class, metaDataMap); } public UnknownPartitionException() { @@ -142,7 +136,7 @@ public class UnknownPartitionException extends Exception implements TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UnknownTableException"); -public class UnknownTableException extends Exception implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("UnknownTableException"); + private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)1); - - private String message; + private String message; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { MESSAGE((short)1, "message"); private static final Map byName = new HashMap(); @@ -93,13 +87,13 @@ public class UnknownTableException extends Exception implements TBase metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(UnknownTableException.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UnknownTableException.class, metaDataMap); } public UnknownTableException() { @@ -142,7 +136,7 @@ public class UnknownTableException extends Exception implements TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Version"); -public class Version implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("Version"); + private static final org.apache.thrift.protocol.TField VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("version", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField COMMENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("comments", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final TField VERSION_FIELD_DESC = new TField("version", TType.STRING, (short)1); - private static final TField COMMENTS_FIELD_DESC = new TField("comments", TType.STRING, (short)2); - - private String version; - private String comments; + private String version; // required + private String comments; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { VERSION((short)1, "version"), COMMENTS((short)2, "comments"); @@ -98,15 +92,15 @@ public class Version implements TBase, java.io.Seriali // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.VERSION, new FieldMetaData("version", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.COMMENTS, new FieldMetaData("comments", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.VERSION, new org.apache.thrift.meta_data.FieldMetaData("version", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.COMMENTS, new org.apache.thrift.meta_data.FieldMetaData("comments", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(Version.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Version.class, metaDataMap); } public Version() { @@ -155,7 +149,7 @@ public class Version implements TBase, java.io.Seriali this.version = null; } - /** Returns true if field version is set (has been asigned a value) and false otherwise */ + /** Returns true if field version is set (has been assigned a value) and false otherwise */ public boolean isSetVersion() { return this.version != null; } @@ -178,7 +172,7 @@ public class Version implements TBase, java.io.Seriali this.comments = null; } - /** Returns true if field comments is set (has been asigned a value) and false otherwise */ + /** Returns true if field comments is set (has been assigned a value) and false otherwise */ public boolean isSetComments() { return this.comments != null; } @@ -222,7 +216,7 @@ public class Version implements TBase, java.io.Seriali throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -289,7 +283,7 @@ public class Version implements TBase, java.io.Seriali return lastComparison; } if (isSetVersion()) { - lastComparison = TBaseHelper.compareTo(this.version, typedOther.version); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, typedOther.version); if (lastComparison != 0) { return lastComparison; } @@ -299,7 +293,7 @@ public class Version implements TBase, java.io.Seriali return lastComparison; } if (isSetComments()) { - lastComparison = TBaseHelper.compareTo(this.comments, typedOther.comments); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comments, typedOther.comments); if (lastComparison != 0) { return lastComparison; } @@ -311,32 +305,32 @@ public class Version implements TBase, java.io.Seriali return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // VERSION - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.version = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // COMMENTS - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.comments = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -344,7 +338,7 @@ public class Version implements TBase, java.io.Seriali validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -386,9 +380,25 @@ public class Version implements TBase, java.io.Seriali return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } diff --git metastore/src/gen/thrift/gen-php/hive_metastore/ThriftHiveMetastore.php metastore/src/gen/thrift/gen-php/hive_metastore/ThriftHiveMetastore.php index ef34061..ae053cb 100644 --- metastore/src/gen/thrift/gen-php/hive_metastore/ThriftHiveMetastore.php +++ metastore/src/gen/thrift/gen-php/hive_metastore/ThriftHiveMetastore.php @@ -1,6 +1,6 @@ database = $database; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -106,7 +106,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_create_database() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_create_database_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_create_database_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -120,7 +120,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_create_database_result(); + $result = new ThriftHiveMetastore_create_database_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -144,7 +144,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_database($name) { - $args = new metastore_ThriftHiveMetastore_get_database_args(); + $args = new ThriftHiveMetastore_get_database_args(); $args->name = $name; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -163,7 +163,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_database() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_database_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_database_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -177,7 +177,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_database_result(); + $result = new ThriftHiveMetastore_get_database_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -201,7 +201,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_drop_database($name, $deleteData, $cascade) { - $args = new metastore_ThriftHiveMetastore_drop_database_args(); + $args = new ThriftHiveMetastore_drop_database_args(); $args->name = $name; $args->deleteData = $deleteData; $args->cascade = $cascade; @@ -222,7 +222,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_drop_database() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_drop_database_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_drop_database_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -236,7 +236,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_drop_database_result(); + $result = new ThriftHiveMetastore_drop_database_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -260,7 +260,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_databases($pattern) { - $args = new metastore_ThriftHiveMetastore_get_databases_args(); + $args = new ThriftHiveMetastore_get_databases_args(); $args->pattern = $pattern; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -279,7 +279,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_databases() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_databases_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_databases_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -293,7 +293,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_databases_result(); + $result = new ThriftHiveMetastore_get_databases_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -314,7 +314,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_all_databases() { - $args = new metastore_ThriftHiveMetastore_get_all_databases_args(); + $args = new ThriftHiveMetastore_get_all_databases_args(); $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { @@ -332,7 +332,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_all_databases() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_all_databases_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_all_databases_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -346,7 +346,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_all_databases_result(); + $result = new ThriftHiveMetastore_get_all_databases_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -367,7 +367,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_alter_database($dbname, $db) { - $args = new metastore_ThriftHiveMetastore_alter_database_args(); + $args = new ThriftHiveMetastore_alter_database_args(); $args->dbname = $dbname; $args->db = $db; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); @@ -387,7 +387,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_alter_database() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_alter_database_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_alter_database_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -401,7 +401,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_alter_database_result(); + $result = new ThriftHiveMetastore_alter_database_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -422,7 +422,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_type($name) { - $args = new metastore_ThriftHiveMetastore_get_type_args(); + $args = new ThriftHiveMetastore_get_type_args(); $args->name = $name; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -441,7 +441,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_type() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_type_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_type_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -455,7 +455,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_type_result(); + $result = new ThriftHiveMetastore_get_type_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -479,7 +479,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_create_type($type) { - $args = new metastore_ThriftHiveMetastore_create_type_args(); + $args = new ThriftHiveMetastore_create_type_args(); $args->type = $type; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -498,7 +498,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_create_type() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_create_type_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_create_type_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -512,7 +512,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_create_type_result(); + $result = new ThriftHiveMetastore_create_type_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -539,7 +539,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_drop_type($type) { - $args = new metastore_ThriftHiveMetastore_drop_type_args(); + $args = new ThriftHiveMetastore_drop_type_args(); $args->type = $type; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -558,7 +558,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_drop_type() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_drop_type_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_drop_type_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -572,7 +572,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_drop_type_result(); + $result = new ThriftHiveMetastore_drop_type_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -596,7 +596,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_type_all($name) { - $args = new metastore_ThriftHiveMetastore_get_type_all_args(); + $args = new ThriftHiveMetastore_get_type_all_args(); $args->name = $name; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -615,7 +615,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_type_all() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_type_all_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_type_all_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -629,7 +629,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_type_all_result(); + $result = new ThriftHiveMetastore_get_type_all_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -650,7 +650,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_fields($db_name, $table_name) { - $args = new metastore_ThriftHiveMetastore_get_fields_args(); + $args = new ThriftHiveMetastore_get_fields_args(); $args->db_name = $db_name; $args->table_name = $table_name; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); @@ -670,7 +670,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_fields() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_fields_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_fields_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -684,7 +684,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_fields_result(); + $result = new ThriftHiveMetastore_get_fields_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -711,7 +711,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_schema($db_name, $table_name) { - $args = new metastore_ThriftHiveMetastore_get_schema_args(); + $args = new ThriftHiveMetastore_get_schema_args(); $args->db_name = $db_name; $args->table_name = $table_name; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); @@ -731,7 +731,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_schema() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_schema_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_schema_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -745,7 +745,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_schema_result(); + $result = new ThriftHiveMetastore_get_schema_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -772,7 +772,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_create_table($tbl) { - $args = new metastore_ThriftHiveMetastore_create_table_args(); + $args = new ThriftHiveMetastore_create_table_args(); $args->tbl = $tbl; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -791,7 +791,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_create_table() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_create_table_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_create_table_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -805,7 +805,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_create_table_result(); + $result = new ThriftHiveMetastore_create_table_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -832,7 +832,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_drop_table($dbname, $name, $deleteData) { - $args = new metastore_ThriftHiveMetastore_drop_table_args(); + $args = new ThriftHiveMetastore_drop_table_args(); $args->dbname = $dbname; $args->name = $name; $args->deleteData = $deleteData; @@ -853,7 +853,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_drop_table() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_drop_table_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_drop_table_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -867,7 +867,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_drop_table_result(); + $result = new ThriftHiveMetastore_drop_table_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -888,7 +888,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_tables($db_name, $pattern) { - $args = new metastore_ThriftHiveMetastore_get_tables_args(); + $args = new ThriftHiveMetastore_get_tables_args(); $args->db_name = $db_name; $args->pattern = $pattern; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); @@ -908,7 +908,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_tables() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_tables_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_tables_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -922,7 +922,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_tables_result(); + $result = new ThriftHiveMetastore_get_tables_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -943,7 +943,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_all_tables($db_name) { - $args = new metastore_ThriftHiveMetastore_get_all_tables_args(); + $args = new ThriftHiveMetastore_get_all_tables_args(); $args->db_name = $db_name; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -962,7 +962,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_all_tables() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_all_tables_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_all_tables_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -976,7 +976,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_all_tables_result(); + $result = new ThriftHiveMetastore_get_all_tables_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -997,7 +997,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_table($dbname, $tbl_name) { - $args = new metastore_ThriftHiveMetastore_get_table_args(); + $args = new ThriftHiveMetastore_get_table_args(); $args->dbname = $dbname; $args->tbl_name = $tbl_name; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); @@ -1017,7 +1017,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_table() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_table_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_table_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -1031,7 +1031,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_table_result(); + $result = new ThriftHiveMetastore_get_table_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -1055,7 +1055,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_table_objects_by_name($dbname, $tbl_names) { - $args = new metastore_ThriftHiveMetastore_get_table_objects_by_name_args(); + $args = new ThriftHiveMetastore_get_table_objects_by_name_args(); $args->dbname = $dbname; $args->tbl_names = $tbl_names; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); @@ -1075,7 +1075,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_table_objects_by_name() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_table_objects_by_name_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_table_objects_by_name_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -1089,7 +1089,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_table_objects_by_name_result(); + $result = new ThriftHiveMetastore_get_table_objects_by_name_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -1116,7 +1116,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_table_names_by_filter($dbname, $filter, $max_tables) { - $args = new metastore_ThriftHiveMetastore_get_table_names_by_filter_args(); + $args = new ThriftHiveMetastore_get_table_names_by_filter_args(); $args->dbname = $dbname; $args->filter = $filter; $args->max_tables = $max_tables; @@ -1137,7 +1137,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_table_names_by_filter() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_table_names_by_filter_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_table_names_by_filter_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -1151,7 +1151,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_table_names_by_filter_result(); + $result = new ThriftHiveMetastore_get_table_names_by_filter_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -1178,7 +1178,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_alter_table($dbname, $tbl_name, $new_tbl) { - $args = new metastore_ThriftHiveMetastore_alter_table_args(); + $args = new ThriftHiveMetastore_alter_table_args(); $args->dbname = $dbname; $args->tbl_name = $tbl_name; $args->new_tbl = $new_tbl; @@ -1199,7 +1199,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_alter_table() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_alter_table_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_alter_table_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -1213,7 +1213,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_alter_table_result(); + $result = new ThriftHiveMetastore_alter_table_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -1234,7 +1234,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_add_partition($new_part) { - $args = new metastore_ThriftHiveMetastore_add_partition_args(); + $args = new ThriftHiveMetastore_add_partition_args(); $args->new_part = $new_part; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -1253,7 +1253,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_add_partition() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_add_partition_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_add_partition_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -1267,7 +1267,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_add_partition_result(); + $result = new ThriftHiveMetastore_add_partition_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -1294,7 +1294,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_add_partitions($new_parts) { - $args = new metastore_ThriftHiveMetastore_add_partitions_args(); + $args = new ThriftHiveMetastore_add_partitions_args(); $args->new_parts = $new_parts; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -1313,7 +1313,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_add_partitions() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_add_partitions_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_add_partitions_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -1327,7 +1327,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_add_partitions_result(); + $result = new ThriftHiveMetastore_add_partitions_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -1354,7 +1354,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_append_partition($db_name, $tbl_name, $part_vals) { - $args = new metastore_ThriftHiveMetastore_append_partition_args(); + $args = new ThriftHiveMetastore_append_partition_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; @@ -1375,7 +1375,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_append_partition() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_append_partition_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_append_partition_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -1389,7 +1389,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_append_partition_result(); + $result = new ThriftHiveMetastore_append_partition_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -1416,7 +1416,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_append_partition_by_name($db_name, $tbl_name, $part_name) { - $args = new metastore_ThriftHiveMetastore_append_partition_by_name_args(); + $args = new ThriftHiveMetastore_append_partition_by_name_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_name = $part_name; @@ -1437,7 +1437,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_append_partition_by_name() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_append_partition_by_name_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_append_partition_by_name_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -1451,7 +1451,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_append_partition_by_name_result(); + $result = new ThriftHiveMetastore_append_partition_by_name_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -1478,7 +1478,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_drop_partition($db_name, $tbl_name, $part_vals, $deleteData) { - $args = new metastore_ThriftHiveMetastore_drop_partition_args(); + $args = new ThriftHiveMetastore_drop_partition_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; @@ -1500,7 +1500,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_drop_partition() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_drop_partition_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_drop_partition_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -1514,7 +1514,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_drop_partition_result(); + $result = new ThriftHiveMetastore_drop_partition_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -1538,7 +1538,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_drop_partition_by_name($db_name, $tbl_name, $part_name, $deleteData) { - $args = new metastore_ThriftHiveMetastore_drop_partition_by_name_args(); + $args = new ThriftHiveMetastore_drop_partition_by_name_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_name = $part_name; @@ -1560,7 +1560,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_drop_partition_by_name() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_drop_partition_by_name_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_drop_partition_by_name_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -1574,7 +1574,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_drop_partition_by_name_result(); + $result = new ThriftHiveMetastore_drop_partition_by_name_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -1598,7 +1598,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_partition($db_name, $tbl_name, $part_vals) { - $args = new metastore_ThriftHiveMetastore_get_partition_args(); + $args = new ThriftHiveMetastore_get_partition_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; @@ -1619,7 +1619,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_partition() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partition_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_partition_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -1633,7 +1633,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_partition_result(); + $result = new ThriftHiveMetastore_get_partition_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -1657,7 +1657,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_partition_with_auth($db_name, $tbl_name, $part_vals, $user_name, $group_names) { - $args = new metastore_ThriftHiveMetastore_get_partition_with_auth_args(); + $args = new ThriftHiveMetastore_get_partition_with_auth_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; @@ -1680,7 +1680,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_partition_with_auth() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partition_with_auth_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_partition_with_auth_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -1694,7 +1694,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_partition_with_auth_result(); + $result = new ThriftHiveMetastore_get_partition_with_auth_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -1718,7 +1718,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_partition_by_name($db_name, $tbl_name, $part_name) { - $args = new metastore_ThriftHiveMetastore_get_partition_by_name_args(); + $args = new ThriftHiveMetastore_get_partition_by_name_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_name = $part_name; @@ -1739,7 +1739,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_partition_by_name() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partition_by_name_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_partition_by_name_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -1753,7 +1753,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_partition_by_name_result(); + $result = new ThriftHiveMetastore_get_partition_by_name_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -1777,7 +1777,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_partitions($db_name, $tbl_name, $max_parts) { - $args = new metastore_ThriftHiveMetastore_get_partitions_args(); + $args = new ThriftHiveMetastore_get_partitions_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->max_parts = $max_parts; @@ -1798,7 +1798,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_partitions() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partitions_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_partitions_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -1812,7 +1812,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_partitions_result(); + $result = new ThriftHiveMetastore_get_partitions_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -1836,7 +1836,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, $group_names) { - $args = new metastore_ThriftHiveMetastore_get_partitions_with_auth_args(); + $args = new ThriftHiveMetastore_get_partitions_with_auth_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->max_parts = $max_parts; @@ -1859,7 +1859,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_partitions_with_auth() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partitions_with_auth_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_partitions_with_auth_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -1873,7 +1873,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_partitions_with_auth_result(); + $result = new ThriftHiveMetastore_get_partitions_with_auth_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -1897,7 +1897,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_partition_names($db_name, $tbl_name, $max_parts) { - $args = new metastore_ThriftHiveMetastore_get_partition_names_args(); + $args = new ThriftHiveMetastore_get_partition_names_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->max_parts = $max_parts; @@ -1918,7 +1918,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_partition_names() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partition_names_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_partition_names_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -1932,7 +1932,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_partition_names_result(); + $result = new ThriftHiveMetastore_get_partition_names_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -1953,7 +1953,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_partitions_ps($db_name, $tbl_name, $part_vals, $max_parts) { - $args = new metastore_ThriftHiveMetastore_get_partitions_ps_args(); + $args = new ThriftHiveMetastore_get_partitions_ps_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; @@ -1975,7 +1975,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_partitions_ps() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partitions_ps_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_partitions_ps_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -1989,7 +1989,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_partitions_ps_result(); + $result = new ThriftHiveMetastore_get_partitions_ps_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -2010,7 +2010,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_partitions_ps_with_auth($db_name, $tbl_name, $part_vals, $max_parts, $user_name, $group_names) { - $args = new metastore_ThriftHiveMetastore_get_partitions_ps_with_auth_args(); + $args = new ThriftHiveMetastore_get_partitions_ps_with_auth_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; @@ -2034,7 +2034,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_partitions_ps_with_auth() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partitions_ps_with_auth_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_partitions_ps_with_auth_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -2048,7 +2048,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_partitions_ps_with_auth_result(); + $result = new ThriftHiveMetastore_get_partitions_ps_with_auth_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -2072,7 +2072,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_partition_names_ps($db_name, $tbl_name, $part_vals, $max_parts) { - $args = new metastore_ThriftHiveMetastore_get_partition_names_ps_args(); + $args = new ThriftHiveMetastore_get_partition_names_ps_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; @@ -2094,7 +2094,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_partition_names_ps() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partition_names_ps_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_partition_names_ps_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -2108,7 +2108,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_partition_names_ps_result(); + $result = new ThriftHiveMetastore_get_partition_names_ps_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -2129,7 +2129,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_partitions_by_filter($db_name, $tbl_name, $filter, $max_parts) { - $args = new metastore_ThriftHiveMetastore_get_partitions_by_filter_args(); + $args = new ThriftHiveMetastore_get_partitions_by_filter_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->filter = $filter; @@ -2151,7 +2151,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_partitions_by_filter() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partitions_by_filter_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_partitions_by_filter_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -2165,7 +2165,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_partitions_by_filter_result(); + $result = new ThriftHiveMetastore_get_partitions_by_filter_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -2189,7 +2189,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_partitions_by_names($db_name, $tbl_name, $names) { - $args = new metastore_ThriftHiveMetastore_get_partitions_by_names_args(); + $args = new ThriftHiveMetastore_get_partitions_by_names_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->names = $names; @@ -2210,7 +2210,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_partitions_by_names() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partitions_by_names_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_partitions_by_names_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -2224,7 +2224,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_partitions_by_names_result(); + $result = new ThriftHiveMetastore_get_partitions_by_names_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -2248,7 +2248,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_alter_partition($db_name, $tbl_name, $new_part) { - $args = new metastore_ThriftHiveMetastore_alter_partition_args(); + $args = new ThriftHiveMetastore_alter_partition_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->new_part = $new_part; @@ -2269,7 +2269,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_alter_partition() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_alter_partition_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_alter_partition_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -2283,7 +2283,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_alter_partition_result(); + $result = new ThriftHiveMetastore_alter_partition_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -2304,7 +2304,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_config_value($name, $defaultValue) { - $args = new metastore_ThriftHiveMetastore_get_config_value_args(); + $args = new ThriftHiveMetastore_get_config_value_args(); $args->name = $name; $args->defaultValue = $defaultValue; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); @@ -2324,7 +2324,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_config_value() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_config_value_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_config_value_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -2338,7 +2338,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_config_value_result(); + $result = new ThriftHiveMetastore_get_config_value_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -2359,7 +2359,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_partition_name_to_vals($part_name) { - $args = new metastore_ThriftHiveMetastore_partition_name_to_vals_args(); + $args = new ThriftHiveMetastore_partition_name_to_vals_args(); $args->part_name = $part_name; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -2378,7 +2378,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_partition_name_to_vals() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_partition_name_to_vals_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_partition_name_to_vals_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -2392,7 +2392,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_partition_name_to_vals_result(); + $result = new ThriftHiveMetastore_partition_name_to_vals_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -2413,7 +2413,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_partition_name_to_spec($part_name) { - $args = new metastore_ThriftHiveMetastore_partition_name_to_spec_args(); + $args = new ThriftHiveMetastore_partition_name_to_spec_args(); $args->part_name = $part_name; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -2432,7 +2432,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_partition_name_to_spec() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_partition_name_to_spec_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_partition_name_to_spec_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -2446,7 +2446,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_partition_name_to_spec_result(); + $result = new ThriftHiveMetastore_partition_name_to_spec_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -2467,7 +2467,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_markPartitionForEvent($db_name, $tbl_name, $part_vals, $eventType) { - $args = new metastore_ThriftHiveMetastore_markPartitionForEvent_args(); + $args = new ThriftHiveMetastore_markPartitionForEvent_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; @@ -2489,7 +2489,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_markPartitionForEvent() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_markPartitionForEvent_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_markPartitionForEvent_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -2503,7 +2503,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_markPartitionForEvent_result(); + $result = new ThriftHiveMetastore_markPartitionForEvent_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -2536,7 +2536,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_isPartitionMarkedForEvent($db_name, $tbl_name, $part_vals, $eventType) { - $args = new metastore_ThriftHiveMetastore_isPartitionMarkedForEvent_args(); + $args = new ThriftHiveMetastore_isPartitionMarkedForEvent_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; @@ -2558,7 +2558,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_isPartitionMarkedForEvent() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_isPartitionMarkedForEvent_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_isPartitionMarkedForEvent_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -2572,7 +2572,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_isPartitionMarkedForEvent_result(); + $result = new ThriftHiveMetastore_isPartitionMarkedForEvent_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -2608,7 +2608,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_add_index($new_index, $index_table) { - $args = new metastore_ThriftHiveMetastore_add_index_args(); + $args = new ThriftHiveMetastore_add_index_args(); $args->new_index = $new_index; $args->index_table = $index_table; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); @@ -2628,7 +2628,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_add_index() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_add_index_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_add_index_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -2642,7 +2642,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_add_index_result(); + $result = new ThriftHiveMetastore_add_index_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -2669,7 +2669,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_alter_index($dbname, $base_tbl_name, $idx_name, $new_idx) { - $args = new metastore_ThriftHiveMetastore_alter_index_args(); + $args = new ThriftHiveMetastore_alter_index_args(); $args->dbname = $dbname; $args->base_tbl_name = $base_tbl_name; $args->idx_name = $idx_name; @@ -2691,7 +2691,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_alter_index() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_alter_index_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_alter_index_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -2705,7 +2705,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_alter_index_result(); + $result = new ThriftHiveMetastore_alter_index_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -2726,7 +2726,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_drop_index_by_name($db_name, $tbl_name, $index_name, $deleteData) { - $args = new metastore_ThriftHiveMetastore_drop_index_by_name_args(); + $args = new ThriftHiveMetastore_drop_index_by_name_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->index_name = $index_name; @@ -2748,7 +2748,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_drop_index_by_name() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_drop_index_by_name_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_drop_index_by_name_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -2762,7 +2762,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_drop_index_by_name_result(); + $result = new ThriftHiveMetastore_drop_index_by_name_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -2786,7 +2786,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_index_by_name($db_name, $tbl_name, $index_name) { - $args = new metastore_ThriftHiveMetastore_get_index_by_name_args(); + $args = new ThriftHiveMetastore_get_index_by_name_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->index_name = $index_name; @@ -2807,7 +2807,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_index_by_name() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_index_by_name_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_index_by_name_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -2821,7 +2821,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_index_by_name_result(); + $result = new ThriftHiveMetastore_get_index_by_name_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -2845,7 +2845,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_indexes($db_name, $tbl_name, $max_indexes) { - $args = new metastore_ThriftHiveMetastore_get_indexes_args(); + $args = new ThriftHiveMetastore_get_indexes_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->max_indexes = $max_indexes; @@ -2866,7 +2866,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_indexes() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_indexes_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_indexes_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -2880,7 +2880,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_indexes_result(); + $result = new ThriftHiveMetastore_get_indexes_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -2904,7 +2904,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_index_names($db_name, $tbl_name, $max_indexes) { - $args = new metastore_ThriftHiveMetastore_get_index_names_args(); + $args = new ThriftHiveMetastore_get_index_names_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->max_indexes = $max_indexes; @@ -2925,7 +2925,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_index_names() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_index_names_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_index_names_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -2939,7 +2939,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_index_names_result(); + $result = new ThriftHiveMetastore_get_index_names_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -2960,7 +2960,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_create_role($role) { - $args = new metastore_ThriftHiveMetastore_create_role_args(); + $args = new ThriftHiveMetastore_create_role_args(); $args->role = $role; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -2979,7 +2979,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_create_role() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_create_role_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_create_role_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -2993,7 +2993,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_create_role_result(); + $result = new ThriftHiveMetastore_create_role_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -3014,7 +3014,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_drop_role($role_name) { - $args = new metastore_ThriftHiveMetastore_drop_role_args(); + $args = new ThriftHiveMetastore_drop_role_args(); $args->role_name = $role_name; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -3033,7 +3033,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_drop_role() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_drop_role_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_drop_role_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -3047,7 +3047,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_drop_role_result(); + $result = new ThriftHiveMetastore_drop_role_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -3068,7 +3068,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_role_names() { - $args = new metastore_ThriftHiveMetastore_get_role_names_args(); + $args = new ThriftHiveMetastore_get_role_names_args(); $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { @@ -3086,7 +3086,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_role_names() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_role_names_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_role_names_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -3100,7 +3100,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_role_names_result(); + $result = new ThriftHiveMetastore_get_role_names_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -3121,7 +3121,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_grant_role($role_name, $principal_name, $principal_type, $grantor, $grantorType, $grant_option) { - $args = new metastore_ThriftHiveMetastore_grant_role_args(); + $args = new ThriftHiveMetastore_grant_role_args(); $args->role_name = $role_name; $args->principal_name = $principal_name; $args->principal_type = $principal_type; @@ -3145,7 +3145,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_grant_role() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_grant_role_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_grant_role_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -3159,7 +3159,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_grant_role_result(); + $result = new ThriftHiveMetastore_grant_role_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -3180,7 +3180,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_revoke_role($role_name, $principal_name, $principal_type) { - $args = new metastore_ThriftHiveMetastore_revoke_role_args(); + $args = new ThriftHiveMetastore_revoke_role_args(); $args->role_name = $role_name; $args->principal_name = $principal_name; $args->principal_type = $principal_type; @@ -3201,7 +3201,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_revoke_role() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_revoke_role_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_revoke_role_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -3215,7 +3215,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_revoke_role_result(); + $result = new ThriftHiveMetastore_revoke_role_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -3236,7 +3236,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_list_roles($principal_name, $principal_type) { - $args = new metastore_ThriftHiveMetastore_list_roles_args(); + $args = new ThriftHiveMetastore_list_roles_args(); $args->principal_name = $principal_name; $args->principal_type = $principal_type; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); @@ -3256,7 +3256,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_list_roles() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_list_roles_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_list_roles_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -3270,7 +3270,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_list_roles_result(); + $result = new ThriftHiveMetastore_list_roles_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -3291,7 +3291,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_privilege_set($hiveObject, $user_name, $group_names) { - $args = new metastore_ThriftHiveMetastore_get_privilege_set_args(); + $args = new ThriftHiveMetastore_get_privilege_set_args(); $args->hiveObject = $hiveObject; $args->user_name = $user_name; $args->group_names = $group_names; @@ -3312,7 +3312,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_privilege_set() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_privilege_set_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_privilege_set_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -3326,7 +3326,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_privilege_set_result(); + $result = new ThriftHiveMetastore_get_privilege_set_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -3347,7 +3347,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_list_privileges($principal_name, $principal_type, $hiveObject) { - $args = new metastore_ThriftHiveMetastore_list_privileges_args(); + $args = new ThriftHiveMetastore_list_privileges_args(); $args->principal_name = $principal_name; $args->principal_type = $principal_type; $args->hiveObject = $hiveObject; @@ -3368,7 +3368,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_list_privileges() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_list_privileges_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_list_privileges_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -3382,7 +3382,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_list_privileges_result(); + $result = new ThriftHiveMetastore_list_privileges_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -3403,7 +3403,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_grant_privileges($privileges) { - $args = new metastore_ThriftHiveMetastore_grant_privileges_args(); + $args = new ThriftHiveMetastore_grant_privileges_args(); $args->privileges = $privileges; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -3422,7 +3422,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_grant_privileges() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_grant_privileges_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_grant_privileges_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -3436,7 +3436,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_grant_privileges_result(); + $result = new ThriftHiveMetastore_grant_privileges_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -3457,7 +3457,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_revoke_privileges($privileges) { - $args = new metastore_ThriftHiveMetastore_revoke_privileges_args(); + $args = new ThriftHiveMetastore_revoke_privileges_args(); $args->privileges = $privileges; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -3476,7 +3476,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_revoke_privileges() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_revoke_privileges_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_revoke_privileges_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -3490,7 +3490,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_revoke_privileges_result(); + $result = new ThriftHiveMetastore_revoke_privileges_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -3511,7 +3511,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_get_delegation_token($token_owner, $renewer_kerberos_principal_name) { - $args = new metastore_ThriftHiveMetastore_get_delegation_token_args(); + $args = new ThriftHiveMetastore_get_delegation_token_args(); $args->token_owner = $token_owner; $args->renewer_kerberos_principal_name = $renewer_kerberos_principal_name; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); @@ -3531,7 +3531,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_get_delegation_token() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_delegation_token_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_delegation_token_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -3545,7 +3545,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_get_delegation_token_result(); + $result = new ThriftHiveMetastore_get_delegation_token_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -3566,7 +3566,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_renew_delegation_token($token_str_form) { - $args = new metastore_ThriftHiveMetastore_renew_delegation_token_args(); + $args = new ThriftHiveMetastore_renew_delegation_token_args(); $args->token_str_form = $token_str_form; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -3585,7 +3585,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_renew_delegation_token() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_renew_delegation_token_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_renew_delegation_token_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -3599,7 +3599,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_renew_delegation_token_result(); + $result = new ThriftHiveMetastore_renew_delegation_token_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -3620,7 +3620,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function send_cancel_delegation_token($token_str_form) { - $args = new metastore_ThriftHiveMetastore_cancel_delegation_token_args(); + $args = new ThriftHiveMetastore_cancel_delegation_token_args(); $args->token_str_form = $token_str_form; $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -3639,7 +3639,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH public function recv_cancel_delegation_token() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_cancel_delegation_token_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_cancel_delegation_token_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -3653,7 +3653,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH $this->input_->readMessageEnd(); throw $x; } - $result = new metastore_ThriftHiveMetastore_cancel_delegation_token_result(); + $result = new ThriftHiveMetastore_cancel_delegation_token_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -3667,7 +3667,7 @@ class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftH // HELPER FUNCTIONS AND STRUCTURES -class metastore_ThriftHiveMetastore_create_database_args { +class ThriftHiveMetastore_create_database_args { static $_TSPEC; public $database = null; @@ -3678,7 +3678,7 @@ class metastore_ThriftHiveMetastore_create_database_args { 1 => array( 'var' => 'database', 'type' => TType::STRUCT, - 'class' => 'metastore_Database', + 'class' => 'Database', ), ); } @@ -3710,7 +3710,7 @@ class metastore_ThriftHiveMetastore_create_database_args { { case 1: if ($ftype == TType::STRUCT) { - $this->database = new metastore_Database(); + $this->database = new Database(); $xfer += $this->database->read($input); } else { $xfer += $input->skip($ftype); @@ -3744,7 +3744,7 @@ class metastore_ThriftHiveMetastore_create_database_args { } -class metastore_ThriftHiveMetastore_create_database_result { +class ThriftHiveMetastore_create_database_result { static $_TSPEC; public $o1 = null; @@ -3757,17 +3757,17 @@ class metastore_ThriftHiveMetastore_create_database_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_AlreadyExistsException', + 'class' => 'AlreadyExistsException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_InvalidObjectException', + 'class' => 'InvalidObjectException', ), 3 => array( 'var' => 'o3', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -3805,7 +3805,7 @@ class metastore_ThriftHiveMetastore_create_database_result { { case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_AlreadyExistsException(); + $this->o1 = new AlreadyExistsException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -3813,7 +3813,7 @@ class metastore_ThriftHiveMetastore_create_database_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_InvalidObjectException(); + $this->o2 = new InvalidObjectException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -3821,7 +3821,7 @@ class metastore_ThriftHiveMetastore_create_database_result { break; case 3: if ($ftype == TType::STRUCT) { - $this->o3 = new metastore_MetaException(); + $this->o3 = new MetaException(); $xfer += $this->o3->read($input); } else { $xfer += $input->skip($ftype); @@ -3862,7 +3862,7 @@ class metastore_ThriftHiveMetastore_create_database_result { } -class metastore_ThriftHiveMetastore_get_database_args { +class ThriftHiveMetastore_get_database_args { static $_TSPEC; public $name = null; @@ -3934,7 +3934,7 @@ class metastore_ThriftHiveMetastore_get_database_args { } -class metastore_ThriftHiveMetastore_get_database_result { +class ThriftHiveMetastore_get_database_result { static $_TSPEC; public $success = null; @@ -3947,17 +3947,17 @@ class metastore_ThriftHiveMetastore_get_database_result { 0 => array( 'var' => 'success', 'type' => TType::STRUCT, - 'class' => 'metastore_Database', + 'class' => 'Database', ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -3995,7 +3995,7 @@ class metastore_ThriftHiveMetastore_get_database_result { { case 0: if ($ftype == TType::STRUCT) { - $this->success = new metastore_Database(); + $this->success = new Database(); $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); @@ -4003,7 +4003,7 @@ class metastore_ThriftHiveMetastore_get_database_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_NoSuchObjectException(); + $this->o1 = new NoSuchObjectException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -4011,7 +4011,7 @@ class metastore_ThriftHiveMetastore_get_database_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_MetaException(); + $this->o2 = new MetaException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -4055,7 +4055,7 @@ class metastore_ThriftHiveMetastore_get_database_result { } -class metastore_ThriftHiveMetastore_drop_database_args { +class ThriftHiveMetastore_drop_database_args { static $_TSPEC; public $name = null; @@ -4167,7 +4167,7 @@ class metastore_ThriftHiveMetastore_drop_database_args { } -class metastore_ThriftHiveMetastore_drop_database_result { +class ThriftHiveMetastore_drop_database_result { static $_TSPEC; public $o1 = null; @@ -4180,17 +4180,17 @@ class metastore_ThriftHiveMetastore_drop_database_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_InvalidOperationException', + 'class' => 'InvalidOperationException', ), 3 => array( 'var' => 'o3', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -4228,7 +4228,7 @@ class metastore_ThriftHiveMetastore_drop_database_result { { case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_NoSuchObjectException(); + $this->o1 = new NoSuchObjectException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -4236,7 +4236,7 @@ class metastore_ThriftHiveMetastore_drop_database_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_InvalidOperationException(); + $this->o2 = new InvalidOperationException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -4244,7 +4244,7 @@ class metastore_ThriftHiveMetastore_drop_database_result { break; case 3: if ($ftype == TType::STRUCT) { - $this->o3 = new metastore_MetaException(); + $this->o3 = new MetaException(); $xfer += $this->o3->read($input); } else { $xfer += $input->skip($ftype); @@ -4285,7 +4285,7 @@ class metastore_ThriftHiveMetastore_drop_database_result { } -class metastore_ThriftHiveMetastore_get_databases_args { +class ThriftHiveMetastore_get_databases_args { static $_TSPEC; public $pattern = null; @@ -4357,7 +4357,7 @@ class metastore_ThriftHiveMetastore_get_databases_args { } -class metastore_ThriftHiveMetastore_get_databases_result { +class ThriftHiveMetastore_get_databases_result { static $_TSPEC; public $success = null; @@ -4377,7 +4377,7 @@ class metastore_ThriftHiveMetastore_get_databases_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -4429,7 +4429,7 @@ class metastore_ThriftHiveMetastore_get_databases_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -4477,7 +4477,7 @@ class metastore_ThriftHiveMetastore_get_databases_result { } -class metastore_ThriftHiveMetastore_get_all_databases_args { +class ThriftHiveMetastore_get_all_databases_args { static $_TSPEC; @@ -4527,7 +4527,7 @@ class metastore_ThriftHiveMetastore_get_all_databases_args { } -class metastore_ThriftHiveMetastore_get_all_databases_result { +class ThriftHiveMetastore_get_all_databases_result { static $_TSPEC; public $success = null; @@ -4547,7 +4547,7 @@ class metastore_ThriftHiveMetastore_get_all_databases_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -4599,7 +4599,7 @@ class metastore_ThriftHiveMetastore_get_all_databases_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -4647,7 +4647,7 @@ class metastore_ThriftHiveMetastore_get_all_databases_result { } -class metastore_ThriftHiveMetastore_alter_database_args { +class ThriftHiveMetastore_alter_database_args { static $_TSPEC; public $dbname = null; @@ -4663,7 +4663,7 @@ class metastore_ThriftHiveMetastore_alter_database_args { 2 => array( 'var' => 'db', 'type' => TType::STRUCT, - 'class' => 'metastore_Database', + 'class' => 'Database', ), ); } @@ -4705,7 +4705,7 @@ class metastore_ThriftHiveMetastore_alter_database_args { break; case 2: if ($ftype == TType::STRUCT) { - $this->db = new metastore_Database(); + $this->db = new Database(); $xfer += $this->db->read($input); } else { $xfer += $input->skip($ftype); @@ -4744,7 +4744,7 @@ class metastore_ThriftHiveMetastore_alter_database_args { } -class metastore_ThriftHiveMetastore_alter_database_result { +class ThriftHiveMetastore_alter_database_result { static $_TSPEC; public $o1 = null; @@ -4756,12 +4756,12 @@ class metastore_ThriftHiveMetastore_alter_database_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), ); } @@ -4796,7 +4796,7 @@ class metastore_ThriftHiveMetastore_alter_database_result { { case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -4804,7 +4804,7 @@ class metastore_ThriftHiveMetastore_alter_database_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_NoSuchObjectException(); + $this->o2 = new NoSuchObjectException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -4840,7 +4840,7 @@ class metastore_ThriftHiveMetastore_alter_database_result { } -class metastore_ThriftHiveMetastore_get_type_args { +class ThriftHiveMetastore_get_type_args { static $_TSPEC; public $name = null; @@ -4912,7 +4912,7 @@ class metastore_ThriftHiveMetastore_get_type_args { } -class metastore_ThriftHiveMetastore_get_type_result { +class ThriftHiveMetastore_get_type_result { static $_TSPEC; public $success = null; @@ -4925,17 +4925,17 @@ class metastore_ThriftHiveMetastore_get_type_result { 0 => array( 'var' => 'success', 'type' => TType::STRUCT, - 'class' => 'metastore_Type', + 'class' => 'Type', ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), ); } @@ -4973,7 +4973,7 @@ class metastore_ThriftHiveMetastore_get_type_result { { case 0: if ($ftype == TType::STRUCT) { - $this->success = new metastore_Type(); + $this->success = new Type(); $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); @@ -4981,7 +4981,7 @@ class metastore_ThriftHiveMetastore_get_type_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -4989,7 +4989,7 @@ class metastore_ThriftHiveMetastore_get_type_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_NoSuchObjectException(); + $this->o2 = new NoSuchObjectException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -5033,7 +5033,7 @@ class metastore_ThriftHiveMetastore_get_type_result { } -class metastore_ThriftHiveMetastore_create_type_args { +class ThriftHiveMetastore_create_type_args { static $_TSPEC; public $type = null; @@ -5044,7 +5044,7 @@ class metastore_ThriftHiveMetastore_create_type_args { 1 => array( 'var' => 'type', 'type' => TType::STRUCT, - 'class' => 'metastore_Type', + 'class' => 'Type', ), ); } @@ -5076,7 +5076,7 @@ class metastore_ThriftHiveMetastore_create_type_args { { case 1: if ($ftype == TType::STRUCT) { - $this->type = new metastore_Type(); + $this->type = new Type(); $xfer += $this->type->read($input); } else { $xfer += $input->skip($ftype); @@ -5110,7 +5110,7 @@ class metastore_ThriftHiveMetastore_create_type_args { } -class metastore_ThriftHiveMetastore_create_type_result { +class ThriftHiveMetastore_create_type_result { static $_TSPEC; public $success = null; @@ -5128,17 +5128,17 @@ class metastore_ThriftHiveMetastore_create_type_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_AlreadyExistsException', + 'class' => 'AlreadyExistsException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_InvalidObjectException', + 'class' => 'InvalidObjectException', ), 3 => array( 'var' => 'o3', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -5186,7 +5186,7 @@ class metastore_ThriftHiveMetastore_create_type_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_AlreadyExistsException(); + $this->o1 = new AlreadyExistsException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -5194,7 +5194,7 @@ class metastore_ThriftHiveMetastore_create_type_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_InvalidObjectException(); + $this->o2 = new InvalidObjectException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -5202,7 +5202,7 @@ class metastore_ThriftHiveMetastore_create_type_result { break; case 3: if ($ftype == TType::STRUCT) { - $this->o3 = new metastore_MetaException(); + $this->o3 = new MetaException(); $xfer += $this->o3->read($input); } else { $xfer += $input->skip($ftype); @@ -5248,7 +5248,7 @@ class metastore_ThriftHiveMetastore_create_type_result { } -class metastore_ThriftHiveMetastore_drop_type_args { +class ThriftHiveMetastore_drop_type_args { static $_TSPEC; public $type = null; @@ -5320,7 +5320,7 @@ class metastore_ThriftHiveMetastore_drop_type_args { } -class metastore_ThriftHiveMetastore_drop_type_result { +class ThriftHiveMetastore_drop_type_result { static $_TSPEC; public $success = null; @@ -5337,12 +5337,12 @@ class metastore_ThriftHiveMetastore_drop_type_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), ); } @@ -5387,7 +5387,7 @@ class metastore_ThriftHiveMetastore_drop_type_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -5395,7 +5395,7 @@ class metastore_ThriftHiveMetastore_drop_type_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_NoSuchObjectException(); + $this->o2 = new NoSuchObjectException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -5436,7 +5436,7 @@ class metastore_ThriftHiveMetastore_drop_type_result { } -class metastore_ThriftHiveMetastore_get_type_all_args { +class ThriftHiveMetastore_get_type_all_args { static $_TSPEC; public $name = null; @@ -5508,7 +5508,7 @@ class metastore_ThriftHiveMetastore_get_type_all_args { } -class metastore_ThriftHiveMetastore_get_type_all_result { +class ThriftHiveMetastore_get_type_all_result { static $_TSPEC; public $success = null; @@ -5527,13 +5527,13 @@ class metastore_ThriftHiveMetastore_get_type_all_result { ), 'val' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_Type', + 'class' => 'Type', ), ), 1 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -5576,9 +5576,9 @@ class metastore_ThriftHiveMetastore_get_type_all_result { for ($_i192 = 0; $_i192 < $_size188; ++$_i192) { $key193 = ''; - $val194 = new metastore_Type(); + $val194 = new Type(); $xfer += $input->readString($key193); - $val194 = new metastore_Type(); + $val194 = new Type(); $xfer += $val194->read($input); $this->success[$key193] = $val194; } @@ -5589,7 +5589,7 @@ class metastore_ThriftHiveMetastore_get_type_all_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_MetaException(); + $this->o2 = new MetaException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -5638,7 +5638,7 @@ class metastore_ThriftHiveMetastore_get_type_all_result { } -class metastore_ThriftHiveMetastore_get_fields_args { +class ThriftHiveMetastore_get_fields_args { static $_TSPEC; public $db_name = null; @@ -5730,7 +5730,7 @@ class metastore_ThriftHiveMetastore_get_fields_args { } -class metastore_ThriftHiveMetastore_get_fields_result { +class ThriftHiveMetastore_get_fields_result { static $_TSPEC; public $success = null; @@ -5747,23 +5747,23 @@ class metastore_ThriftHiveMetastore_get_fields_result { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_FieldSchema', + 'class' => 'FieldSchema', ), ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_UnknownTableException', + 'class' => 'UnknownTableException', ), 3 => array( 'var' => 'o3', 'type' => TType::STRUCT, - 'class' => 'metastore_UnknownDBException', + 'class' => 'UnknownDBException', ), ); } @@ -5811,7 +5811,7 @@ class metastore_ThriftHiveMetastore_get_fields_result { for ($_i201 = 0; $_i201 < $_size197; ++$_i201) { $elem202 = null; - $elem202 = new metastore_FieldSchema(); + $elem202 = new FieldSchema(); $xfer += $elem202->read($input); $this->success []= $elem202; } @@ -5822,7 +5822,7 @@ class metastore_ThriftHiveMetastore_get_fields_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -5830,7 +5830,7 @@ class metastore_ThriftHiveMetastore_get_fields_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_UnknownTableException(); + $this->o2 = new UnknownTableException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -5838,7 +5838,7 @@ class metastore_ThriftHiveMetastore_get_fields_result { break; case 3: if ($ftype == TType::STRUCT) { - $this->o3 = new metastore_UnknownDBException(); + $this->o3 = new UnknownDBException(); $xfer += $this->o3->read($input); } else { $xfer += $input->skip($ftype); @@ -5896,7 +5896,7 @@ class metastore_ThriftHiveMetastore_get_fields_result { } -class metastore_ThriftHiveMetastore_get_schema_args { +class ThriftHiveMetastore_get_schema_args { static $_TSPEC; public $db_name = null; @@ -5988,7 +5988,7 @@ class metastore_ThriftHiveMetastore_get_schema_args { } -class metastore_ThriftHiveMetastore_get_schema_result { +class ThriftHiveMetastore_get_schema_result { static $_TSPEC; public $success = null; @@ -6005,23 +6005,23 @@ class metastore_ThriftHiveMetastore_get_schema_result { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_FieldSchema', + 'class' => 'FieldSchema', ), ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_UnknownTableException', + 'class' => 'UnknownTableException', ), 3 => array( 'var' => 'o3', 'type' => TType::STRUCT, - 'class' => 'metastore_UnknownDBException', + 'class' => 'UnknownDBException', ), ); } @@ -6069,7 +6069,7 @@ class metastore_ThriftHiveMetastore_get_schema_result { for ($_i208 = 0; $_i208 < $_size204; ++$_i208) { $elem209 = null; - $elem209 = new metastore_FieldSchema(); + $elem209 = new FieldSchema(); $xfer += $elem209->read($input); $this->success []= $elem209; } @@ -6080,7 +6080,7 @@ class metastore_ThriftHiveMetastore_get_schema_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -6088,7 +6088,7 @@ class metastore_ThriftHiveMetastore_get_schema_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_UnknownTableException(); + $this->o2 = new UnknownTableException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -6096,7 +6096,7 @@ class metastore_ThriftHiveMetastore_get_schema_result { break; case 3: if ($ftype == TType::STRUCT) { - $this->o3 = new metastore_UnknownDBException(); + $this->o3 = new UnknownDBException(); $xfer += $this->o3->read($input); } else { $xfer += $input->skip($ftype); @@ -6154,7 +6154,7 @@ class metastore_ThriftHiveMetastore_get_schema_result { } -class metastore_ThriftHiveMetastore_create_table_args { +class ThriftHiveMetastore_create_table_args { static $_TSPEC; public $tbl = null; @@ -6165,7 +6165,7 @@ class metastore_ThriftHiveMetastore_create_table_args { 1 => array( 'var' => 'tbl', 'type' => TType::STRUCT, - 'class' => 'metastore_Table', + 'class' => 'Table', ), ); } @@ -6197,7 +6197,7 @@ class metastore_ThriftHiveMetastore_create_table_args { { case 1: if ($ftype == TType::STRUCT) { - $this->tbl = new metastore_Table(); + $this->tbl = new Table(); $xfer += $this->tbl->read($input); } else { $xfer += $input->skip($ftype); @@ -6231,7 +6231,7 @@ class metastore_ThriftHiveMetastore_create_table_args { } -class metastore_ThriftHiveMetastore_create_table_result { +class ThriftHiveMetastore_create_table_result { static $_TSPEC; public $o1 = null; @@ -6245,22 +6245,22 @@ class metastore_ThriftHiveMetastore_create_table_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_AlreadyExistsException', + 'class' => 'AlreadyExistsException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_InvalidObjectException', + 'class' => 'InvalidObjectException', ), 3 => array( 'var' => 'o3', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), 4 => array( 'var' => 'o4', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), ); } @@ -6301,7 +6301,7 @@ class metastore_ThriftHiveMetastore_create_table_result { { case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_AlreadyExistsException(); + $this->o1 = new AlreadyExistsException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -6309,7 +6309,7 @@ class metastore_ThriftHiveMetastore_create_table_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_InvalidObjectException(); + $this->o2 = new InvalidObjectException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -6317,7 +6317,7 @@ class metastore_ThriftHiveMetastore_create_table_result { break; case 3: if ($ftype == TType::STRUCT) { - $this->o3 = new metastore_MetaException(); + $this->o3 = new MetaException(); $xfer += $this->o3->read($input); } else { $xfer += $input->skip($ftype); @@ -6325,7 +6325,7 @@ class metastore_ThriftHiveMetastore_create_table_result { break; case 4: if ($ftype == TType::STRUCT) { - $this->o4 = new metastore_NoSuchObjectException(); + $this->o4 = new NoSuchObjectException(); $xfer += $this->o4->read($input); } else { $xfer += $input->skip($ftype); @@ -6371,7 +6371,7 @@ class metastore_ThriftHiveMetastore_create_table_result { } -class metastore_ThriftHiveMetastore_drop_table_args { +class ThriftHiveMetastore_drop_table_args { static $_TSPEC; public $dbname = null; @@ -6483,7 +6483,7 @@ class metastore_ThriftHiveMetastore_drop_table_args { } -class metastore_ThriftHiveMetastore_drop_table_result { +class ThriftHiveMetastore_drop_table_result { static $_TSPEC; public $o1 = null; @@ -6495,12 +6495,12 @@ class metastore_ThriftHiveMetastore_drop_table_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), 2 => array( 'var' => 'o3', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -6535,7 +6535,7 @@ class metastore_ThriftHiveMetastore_drop_table_result { { case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_NoSuchObjectException(); + $this->o1 = new NoSuchObjectException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -6543,7 +6543,7 @@ class metastore_ThriftHiveMetastore_drop_table_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o3 = new metastore_MetaException(); + $this->o3 = new MetaException(); $xfer += $this->o3->read($input); } else { $xfer += $input->skip($ftype); @@ -6579,7 +6579,7 @@ class metastore_ThriftHiveMetastore_drop_table_result { } -class metastore_ThriftHiveMetastore_get_tables_args { +class ThriftHiveMetastore_get_tables_args { static $_TSPEC; public $db_name = null; @@ -6671,7 +6671,7 @@ class metastore_ThriftHiveMetastore_get_tables_args { } -class metastore_ThriftHiveMetastore_get_tables_result { +class ThriftHiveMetastore_get_tables_result { static $_TSPEC; public $success = null; @@ -6691,7 +6691,7 @@ class metastore_ThriftHiveMetastore_get_tables_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -6743,7 +6743,7 @@ class metastore_ThriftHiveMetastore_get_tables_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -6791,7 +6791,7 @@ class metastore_ThriftHiveMetastore_get_tables_result { } -class metastore_ThriftHiveMetastore_get_all_tables_args { +class ThriftHiveMetastore_get_all_tables_args { static $_TSPEC; public $db_name = null; @@ -6863,7 +6863,7 @@ class metastore_ThriftHiveMetastore_get_all_tables_args { } -class metastore_ThriftHiveMetastore_get_all_tables_result { +class ThriftHiveMetastore_get_all_tables_result { static $_TSPEC; public $success = null; @@ -6883,7 +6883,7 @@ class metastore_ThriftHiveMetastore_get_all_tables_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -6935,7 +6935,7 @@ class metastore_ThriftHiveMetastore_get_all_tables_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -6983,7 +6983,7 @@ class metastore_ThriftHiveMetastore_get_all_tables_result { } -class metastore_ThriftHiveMetastore_get_table_args { +class ThriftHiveMetastore_get_table_args { static $_TSPEC; public $dbname = null; @@ -7075,7 +7075,7 @@ class metastore_ThriftHiveMetastore_get_table_args { } -class metastore_ThriftHiveMetastore_get_table_result { +class ThriftHiveMetastore_get_table_result { static $_TSPEC; public $success = null; @@ -7088,17 +7088,17 @@ class metastore_ThriftHiveMetastore_get_table_result { 0 => array( 'var' => 'success', 'type' => TType::STRUCT, - 'class' => 'metastore_Table', + 'class' => 'Table', ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), ); } @@ -7136,7 +7136,7 @@ class metastore_ThriftHiveMetastore_get_table_result { { case 0: if ($ftype == TType::STRUCT) { - $this->success = new metastore_Table(); + $this->success = new Table(); $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); @@ -7144,7 +7144,7 @@ class metastore_ThriftHiveMetastore_get_table_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -7152,7 +7152,7 @@ class metastore_ThriftHiveMetastore_get_table_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_NoSuchObjectException(); + $this->o2 = new NoSuchObjectException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -7196,7 +7196,7 @@ class metastore_ThriftHiveMetastore_get_table_result { } -class metastore_ThriftHiveMetastore_get_table_objects_by_name_args { +class ThriftHiveMetastore_get_table_objects_by_name_args { static $_TSPEC; public $dbname = null; @@ -7314,7 +7314,7 @@ class metastore_ThriftHiveMetastore_get_table_objects_by_name_args { } -class metastore_ThriftHiveMetastore_get_table_objects_by_name_result { +class ThriftHiveMetastore_get_table_objects_by_name_result { static $_TSPEC; public $success = null; @@ -7331,23 +7331,23 @@ class metastore_ThriftHiveMetastore_get_table_objects_by_name_result { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_Table', + 'class' => 'Table', ), ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_InvalidOperationException', + 'class' => 'InvalidOperationException', ), 3 => array( 'var' => 'o3', 'type' => TType::STRUCT, - 'class' => 'metastore_UnknownDBException', + 'class' => 'UnknownDBException', ), ); } @@ -7395,7 +7395,7 @@ class metastore_ThriftHiveMetastore_get_table_objects_by_name_result { for ($_i236 = 0; $_i236 < $_size232; ++$_i236) { $elem237 = null; - $elem237 = new metastore_Table(); + $elem237 = new Table(); $xfer += $elem237->read($input); $this->success []= $elem237; } @@ -7406,7 +7406,7 @@ class metastore_ThriftHiveMetastore_get_table_objects_by_name_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -7414,7 +7414,7 @@ class metastore_ThriftHiveMetastore_get_table_objects_by_name_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_InvalidOperationException(); + $this->o2 = new InvalidOperationException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -7422,7 +7422,7 @@ class metastore_ThriftHiveMetastore_get_table_objects_by_name_result { break; case 3: if ($ftype == TType::STRUCT) { - $this->o3 = new metastore_UnknownDBException(); + $this->o3 = new UnknownDBException(); $xfer += $this->o3->read($input); } else { $xfer += $input->skip($ftype); @@ -7480,7 +7480,7 @@ class metastore_ThriftHiveMetastore_get_table_objects_by_name_result { } -class metastore_ThriftHiveMetastore_get_table_names_by_filter_args { +class ThriftHiveMetastore_get_table_names_by_filter_args { static $_TSPEC; public $dbname = null; @@ -7592,7 +7592,7 @@ class metastore_ThriftHiveMetastore_get_table_names_by_filter_args { } -class metastore_ThriftHiveMetastore_get_table_names_by_filter_result { +class ThriftHiveMetastore_get_table_names_by_filter_result { static $_TSPEC; public $success = null; @@ -7614,17 +7614,17 @@ class metastore_ThriftHiveMetastore_get_table_names_by_filter_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_InvalidOperationException', + 'class' => 'InvalidOperationException', ), 3 => array( 'var' => 'o3', 'type' => TType::STRUCT, - 'class' => 'metastore_UnknownDBException', + 'class' => 'UnknownDBException', ), ); } @@ -7682,7 +7682,7 @@ class metastore_ThriftHiveMetastore_get_table_names_by_filter_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -7690,7 +7690,7 @@ class metastore_ThriftHiveMetastore_get_table_names_by_filter_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_InvalidOperationException(); + $this->o2 = new InvalidOperationException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -7698,7 +7698,7 @@ class metastore_ThriftHiveMetastore_get_table_names_by_filter_result { break; case 3: if ($ftype == TType::STRUCT) { - $this->o3 = new metastore_UnknownDBException(); + $this->o3 = new UnknownDBException(); $xfer += $this->o3->read($input); } else { $xfer += $input->skip($ftype); @@ -7756,7 +7756,7 @@ class metastore_ThriftHiveMetastore_get_table_names_by_filter_result { } -class metastore_ThriftHiveMetastore_alter_table_args { +class ThriftHiveMetastore_alter_table_args { static $_TSPEC; public $dbname = null; @@ -7777,7 +7777,7 @@ class metastore_ThriftHiveMetastore_alter_table_args { 3 => array( 'var' => 'new_tbl', 'type' => TType::STRUCT, - 'class' => 'metastore_Table', + 'class' => 'Table', ), ); } @@ -7829,7 +7829,7 @@ class metastore_ThriftHiveMetastore_alter_table_args { break; case 3: if ($ftype == TType::STRUCT) { - $this->new_tbl = new metastore_Table(); + $this->new_tbl = new Table(); $xfer += $this->new_tbl->read($input); } else { $xfer += $input->skip($ftype); @@ -7873,7 +7873,7 @@ class metastore_ThriftHiveMetastore_alter_table_args { } -class metastore_ThriftHiveMetastore_alter_table_result { +class ThriftHiveMetastore_alter_table_result { static $_TSPEC; public $o1 = null; @@ -7885,12 +7885,12 @@ class metastore_ThriftHiveMetastore_alter_table_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_InvalidOperationException', + 'class' => 'InvalidOperationException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -7925,7 +7925,7 @@ class metastore_ThriftHiveMetastore_alter_table_result { { case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_InvalidOperationException(); + $this->o1 = new InvalidOperationException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -7933,7 +7933,7 @@ class metastore_ThriftHiveMetastore_alter_table_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_MetaException(); + $this->o2 = new MetaException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -7969,7 +7969,7 @@ class metastore_ThriftHiveMetastore_alter_table_result { } -class metastore_ThriftHiveMetastore_add_partition_args { +class ThriftHiveMetastore_add_partition_args { static $_TSPEC; public $new_part = null; @@ -7980,7 +7980,7 @@ class metastore_ThriftHiveMetastore_add_partition_args { 1 => array( 'var' => 'new_part', 'type' => TType::STRUCT, - 'class' => 'metastore_Partition', + 'class' => 'Partition', ), ); } @@ -8012,7 +8012,7 @@ class metastore_ThriftHiveMetastore_add_partition_args { { case 1: if ($ftype == TType::STRUCT) { - $this->new_part = new metastore_Partition(); + $this->new_part = new Partition(); $xfer += $this->new_part->read($input); } else { $xfer += $input->skip($ftype); @@ -8046,7 +8046,7 @@ class metastore_ThriftHiveMetastore_add_partition_args { } -class metastore_ThriftHiveMetastore_add_partition_result { +class ThriftHiveMetastore_add_partition_result { static $_TSPEC; public $success = null; @@ -8060,22 +8060,22 @@ class metastore_ThriftHiveMetastore_add_partition_result { 0 => array( 'var' => 'success', 'type' => TType::STRUCT, - 'class' => 'metastore_Partition', + 'class' => 'Partition', ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_InvalidObjectException', + 'class' => 'InvalidObjectException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_AlreadyExistsException', + 'class' => 'AlreadyExistsException', ), 3 => array( 'var' => 'o3', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -8116,7 +8116,7 @@ class metastore_ThriftHiveMetastore_add_partition_result { { case 0: if ($ftype == TType::STRUCT) { - $this->success = new metastore_Partition(); + $this->success = new Partition(); $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); @@ -8124,7 +8124,7 @@ class metastore_ThriftHiveMetastore_add_partition_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_InvalidObjectException(); + $this->o1 = new InvalidObjectException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -8132,7 +8132,7 @@ class metastore_ThriftHiveMetastore_add_partition_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_AlreadyExistsException(); + $this->o2 = new AlreadyExistsException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -8140,7 +8140,7 @@ class metastore_ThriftHiveMetastore_add_partition_result { break; case 3: if ($ftype == TType::STRUCT) { - $this->o3 = new metastore_MetaException(); + $this->o3 = new MetaException(); $xfer += $this->o3->read($input); } else { $xfer += $input->skip($ftype); @@ -8189,7 +8189,7 @@ class metastore_ThriftHiveMetastore_add_partition_result { } -class metastore_ThriftHiveMetastore_add_partitions_args { +class ThriftHiveMetastore_add_partitions_args { static $_TSPEC; public $new_parts = null; @@ -8203,7 +8203,7 @@ class metastore_ThriftHiveMetastore_add_partitions_args { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_Partition', + 'class' => 'Partition', ), ), ); @@ -8243,7 +8243,7 @@ class metastore_ThriftHiveMetastore_add_partitions_args { for ($_i250 = 0; $_i250 < $_size246; ++$_i250) { $elem251 = null; - $elem251 = new metastore_Partition(); + $elem251 = new Partition(); $xfer += $elem251->read($input); $this->new_parts []= $elem251; } @@ -8289,7 +8289,7 @@ class metastore_ThriftHiveMetastore_add_partitions_args { } -class metastore_ThriftHiveMetastore_add_partitions_result { +class ThriftHiveMetastore_add_partitions_result { static $_TSPEC; public $success = null; @@ -8307,17 +8307,17 @@ class metastore_ThriftHiveMetastore_add_partitions_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_InvalidObjectException', + 'class' => 'InvalidObjectException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_AlreadyExistsException', + 'class' => 'AlreadyExistsException', ), 3 => array( 'var' => 'o3', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -8365,7 +8365,7 @@ class metastore_ThriftHiveMetastore_add_partitions_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_InvalidObjectException(); + $this->o1 = new InvalidObjectException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -8373,7 +8373,7 @@ class metastore_ThriftHiveMetastore_add_partitions_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_AlreadyExistsException(); + $this->o2 = new AlreadyExistsException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -8381,7 +8381,7 @@ class metastore_ThriftHiveMetastore_add_partitions_result { break; case 3: if ($ftype == TType::STRUCT) { - $this->o3 = new metastore_MetaException(); + $this->o3 = new MetaException(); $xfer += $this->o3->read($input); } else { $xfer += $input->skip($ftype); @@ -8427,7 +8427,7 @@ class metastore_ThriftHiveMetastore_add_partitions_result { } -class metastore_ThriftHiveMetastore_append_partition_args { +class ThriftHiveMetastore_append_partition_args { static $_TSPEC; public $db_name = null; @@ -8565,7 +8565,7 @@ class metastore_ThriftHiveMetastore_append_partition_args { } -class metastore_ThriftHiveMetastore_append_partition_result { +class ThriftHiveMetastore_append_partition_result { static $_TSPEC; public $success = null; @@ -8579,22 +8579,22 @@ class metastore_ThriftHiveMetastore_append_partition_result { 0 => array( 'var' => 'success', 'type' => TType::STRUCT, - 'class' => 'metastore_Partition', + 'class' => 'Partition', ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_InvalidObjectException', + 'class' => 'InvalidObjectException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_AlreadyExistsException', + 'class' => 'AlreadyExistsException', ), 3 => array( 'var' => 'o3', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -8635,7 +8635,7 @@ class metastore_ThriftHiveMetastore_append_partition_result { { case 0: if ($ftype == TType::STRUCT) { - $this->success = new metastore_Partition(); + $this->success = new Partition(); $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); @@ -8643,7 +8643,7 @@ class metastore_ThriftHiveMetastore_append_partition_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_InvalidObjectException(); + $this->o1 = new InvalidObjectException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -8651,7 +8651,7 @@ class metastore_ThriftHiveMetastore_append_partition_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_AlreadyExistsException(); + $this->o2 = new AlreadyExistsException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -8659,7 +8659,7 @@ class metastore_ThriftHiveMetastore_append_partition_result { break; case 3: if ($ftype == TType::STRUCT) { - $this->o3 = new metastore_MetaException(); + $this->o3 = new MetaException(); $xfer += $this->o3->read($input); } else { $xfer += $input->skip($ftype); @@ -8708,7 +8708,7 @@ class metastore_ThriftHiveMetastore_append_partition_result { } -class metastore_ThriftHiveMetastore_append_partition_by_name_args { +class ThriftHiveMetastore_append_partition_by_name_args { static $_TSPEC; public $db_name = null; @@ -8820,7 +8820,7 @@ class metastore_ThriftHiveMetastore_append_partition_by_name_args { } -class metastore_ThriftHiveMetastore_append_partition_by_name_result { +class ThriftHiveMetastore_append_partition_by_name_result { static $_TSPEC; public $success = null; @@ -8834,22 +8834,22 @@ class metastore_ThriftHiveMetastore_append_partition_by_name_result { 0 => array( 'var' => 'success', 'type' => TType::STRUCT, - 'class' => 'metastore_Partition', + 'class' => 'Partition', ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_InvalidObjectException', + 'class' => 'InvalidObjectException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_AlreadyExistsException', + 'class' => 'AlreadyExistsException', ), 3 => array( 'var' => 'o3', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -8890,7 +8890,7 @@ class metastore_ThriftHiveMetastore_append_partition_by_name_result { { case 0: if ($ftype == TType::STRUCT) { - $this->success = new metastore_Partition(); + $this->success = new Partition(); $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); @@ -8898,7 +8898,7 @@ class metastore_ThriftHiveMetastore_append_partition_by_name_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_InvalidObjectException(); + $this->o1 = new InvalidObjectException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -8906,7 +8906,7 @@ class metastore_ThriftHiveMetastore_append_partition_by_name_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_AlreadyExistsException(); + $this->o2 = new AlreadyExistsException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -8914,7 +8914,7 @@ class metastore_ThriftHiveMetastore_append_partition_by_name_result { break; case 3: if ($ftype == TType::STRUCT) { - $this->o3 = new metastore_MetaException(); + $this->o3 = new MetaException(); $xfer += $this->o3->read($input); } else { $xfer += $input->skip($ftype); @@ -8963,7 +8963,7 @@ class metastore_ThriftHiveMetastore_append_partition_by_name_result { } -class metastore_ThriftHiveMetastore_drop_partition_args { +class ThriftHiveMetastore_drop_partition_args { static $_TSPEC; public $db_name = null; @@ -9121,7 +9121,7 @@ class metastore_ThriftHiveMetastore_drop_partition_args { } -class metastore_ThriftHiveMetastore_drop_partition_result { +class ThriftHiveMetastore_drop_partition_result { static $_TSPEC; public $success = null; @@ -9138,12 +9138,12 @@ class metastore_ThriftHiveMetastore_drop_partition_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -9188,7 +9188,7 @@ class metastore_ThriftHiveMetastore_drop_partition_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_NoSuchObjectException(); + $this->o1 = new NoSuchObjectException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -9196,7 +9196,7 @@ class metastore_ThriftHiveMetastore_drop_partition_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_MetaException(); + $this->o2 = new MetaException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -9237,7 +9237,7 @@ class metastore_ThriftHiveMetastore_drop_partition_result { } -class metastore_ThriftHiveMetastore_drop_partition_by_name_args { +class ThriftHiveMetastore_drop_partition_by_name_args { static $_TSPEC; public $db_name = null; @@ -9369,7 +9369,7 @@ class metastore_ThriftHiveMetastore_drop_partition_by_name_args { } -class metastore_ThriftHiveMetastore_drop_partition_by_name_result { +class ThriftHiveMetastore_drop_partition_by_name_result { static $_TSPEC; public $success = null; @@ -9386,12 +9386,12 @@ class metastore_ThriftHiveMetastore_drop_partition_by_name_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -9436,7 +9436,7 @@ class metastore_ThriftHiveMetastore_drop_partition_by_name_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_NoSuchObjectException(); + $this->o1 = new NoSuchObjectException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -9444,7 +9444,7 @@ class metastore_ThriftHiveMetastore_drop_partition_by_name_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_MetaException(); + $this->o2 = new MetaException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -9485,7 +9485,7 @@ class metastore_ThriftHiveMetastore_drop_partition_by_name_result { } -class metastore_ThriftHiveMetastore_get_partition_args { +class ThriftHiveMetastore_get_partition_args { static $_TSPEC; public $db_name = null; @@ -9623,7 +9623,7 @@ class metastore_ThriftHiveMetastore_get_partition_args { } -class metastore_ThriftHiveMetastore_get_partition_result { +class ThriftHiveMetastore_get_partition_result { static $_TSPEC; public $success = null; @@ -9636,17 +9636,17 @@ class metastore_ThriftHiveMetastore_get_partition_result { 0 => array( 'var' => 'success', 'type' => TType::STRUCT, - 'class' => 'metastore_Partition', + 'class' => 'Partition', ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), ); } @@ -9684,7 +9684,7 @@ class metastore_ThriftHiveMetastore_get_partition_result { { case 0: if ($ftype == TType::STRUCT) { - $this->success = new metastore_Partition(); + $this->success = new Partition(); $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); @@ -9692,7 +9692,7 @@ class metastore_ThriftHiveMetastore_get_partition_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -9700,7 +9700,7 @@ class metastore_ThriftHiveMetastore_get_partition_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_NoSuchObjectException(); + $this->o2 = new NoSuchObjectException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -9744,7 +9744,7 @@ class metastore_ThriftHiveMetastore_get_partition_result { } -class metastore_ThriftHiveMetastore_get_partition_with_auth_args { +class ThriftHiveMetastore_get_partition_with_auth_args { static $_TSPEC; public $db_name = null; @@ -9948,7 +9948,7 @@ class metastore_ThriftHiveMetastore_get_partition_with_auth_args { } -class metastore_ThriftHiveMetastore_get_partition_with_auth_result { +class ThriftHiveMetastore_get_partition_with_auth_result { static $_TSPEC; public $success = null; @@ -9961,17 +9961,17 @@ class metastore_ThriftHiveMetastore_get_partition_with_auth_result { 0 => array( 'var' => 'success', 'type' => TType::STRUCT, - 'class' => 'metastore_Partition', + 'class' => 'Partition', ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), ); } @@ -10009,7 +10009,7 @@ class metastore_ThriftHiveMetastore_get_partition_with_auth_result { { case 0: if ($ftype == TType::STRUCT) { - $this->success = new metastore_Partition(); + $this->success = new Partition(); $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); @@ -10017,7 +10017,7 @@ class metastore_ThriftHiveMetastore_get_partition_with_auth_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -10025,7 +10025,7 @@ class metastore_ThriftHiveMetastore_get_partition_with_auth_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_NoSuchObjectException(); + $this->o2 = new NoSuchObjectException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -10069,7 +10069,7 @@ class metastore_ThriftHiveMetastore_get_partition_with_auth_result { } -class metastore_ThriftHiveMetastore_get_partition_by_name_args { +class ThriftHiveMetastore_get_partition_by_name_args { static $_TSPEC; public $db_name = null; @@ -10181,7 +10181,7 @@ class metastore_ThriftHiveMetastore_get_partition_by_name_args { } -class metastore_ThriftHiveMetastore_get_partition_by_name_result { +class ThriftHiveMetastore_get_partition_by_name_result { static $_TSPEC; public $success = null; @@ -10194,17 +10194,17 @@ class metastore_ThriftHiveMetastore_get_partition_by_name_result { 0 => array( 'var' => 'success', 'type' => TType::STRUCT, - 'class' => 'metastore_Partition', + 'class' => 'Partition', ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), ); } @@ -10242,7 +10242,7 @@ class metastore_ThriftHiveMetastore_get_partition_by_name_result { { case 0: if ($ftype == TType::STRUCT) { - $this->success = new metastore_Partition(); + $this->success = new Partition(); $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); @@ -10250,7 +10250,7 @@ class metastore_ThriftHiveMetastore_get_partition_by_name_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -10258,7 +10258,7 @@ class metastore_ThriftHiveMetastore_get_partition_by_name_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_NoSuchObjectException(); + $this->o2 = new NoSuchObjectException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -10302,7 +10302,7 @@ class metastore_ThriftHiveMetastore_get_partition_by_name_result { } -class metastore_ThriftHiveMetastore_get_partitions_args { +class ThriftHiveMetastore_get_partitions_args { static $_TSPEC; public $db_name = null; @@ -10414,7 +10414,7 @@ class metastore_ThriftHiveMetastore_get_partitions_args { } -class metastore_ThriftHiveMetastore_get_partitions_result { +class ThriftHiveMetastore_get_partitions_result { static $_TSPEC; public $success = null; @@ -10430,18 +10430,18 @@ class metastore_ThriftHiveMetastore_get_partitions_result { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_Partition', + 'class' => 'Partition', ), ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -10486,7 +10486,7 @@ class metastore_ThriftHiveMetastore_get_partitions_result { for ($_i292 = 0; $_i292 < $_size288; ++$_i292) { $elem293 = null; - $elem293 = new metastore_Partition(); + $elem293 = new Partition(); $xfer += $elem293->read($input); $this->success []= $elem293; } @@ -10497,7 +10497,7 @@ class metastore_ThriftHiveMetastore_get_partitions_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_NoSuchObjectException(); + $this->o1 = new NoSuchObjectException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -10505,7 +10505,7 @@ class metastore_ThriftHiveMetastore_get_partitions_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_MetaException(); + $this->o2 = new MetaException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -10558,7 +10558,7 @@ class metastore_ThriftHiveMetastore_get_partitions_result { } -class metastore_ThriftHiveMetastore_get_partitions_with_auth_args { +class ThriftHiveMetastore_get_partitions_with_auth_args { static $_TSPEC; public $db_name = null; @@ -10736,7 +10736,7 @@ class metastore_ThriftHiveMetastore_get_partitions_with_auth_args { } -class metastore_ThriftHiveMetastore_get_partitions_with_auth_result { +class ThriftHiveMetastore_get_partitions_with_auth_result { static $_TSPEC; public $success = null; @@ -10752,18 +10752,18 @@ class metastore_ThriftHiveMetastore_get_partitions_with_auth_result { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_Partition', + 'class' => 'Partition', ), ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -10808,7 +10808,7 @@ class metastore_ThriftHiveMetastore_get_partitions_with_auth_result { for ($_i306 = 0; $_i306 < $_size302; ++$_i306) { $elem307 = null; - $elem307 = new metastore_Partition(); + $elem307 = new Partition(); $xfer += $elem307->read($input); $this->success []= $elem307; } @@ -10819,7 +10819,7 @@ class metastore_ThriftHiveMetastore_get_partitions_with_auth_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_NoSuchObjectException(); + $this->o1 = new NoSuchObjectException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -10827,7 +10827,7 @@ class metastore_ThriftHiveMetastore_get_partitions_with_auth_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_MetaException(); + $this->o2 = new MetaException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -10880,7 +10880,7 @@ class metastore_ThriftHiveMetastore_get_partitions_with_auth_result { } -class metastore_ThriftHiveMetastore_get_partition_names_args { +class ThriftHiveMetastore_get_partition_names_args { static $_TSPEC; public $db_name = null; @@ -10992,7 +10992,7 @@ class metastore_ThriftHiveMetastore_get_partition_names_args { } -class metastore_ThriftHiveMetastore_get_partition_names_result { +class ThriftHiveMetastore_get_partition_names_result { static $_TSPEC; public $success = null; @@ -11012,7 +11012,7 @@ class metastore_ThriftHiveMetastore_get_partition_names_result { 1 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -11064,7 +11064,7 @@ class metastore_ThriftHiveMetastore_get_partition_names_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_MetaException(); + $this->o2 = new MetaException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -11112,7 +11112,7 @@ class metastore_ThriftHiveMetastore_get_partition_names_result { } -class metastore_ThriftHiveMetastore_get_partitions_ps_args { +class ThriftHiveMetastore_get_partitions_ps_args { static $_TSPEC; public $db_name = null; @@ -11270,7 +11270,7 @@ class metastore_ThriftHiveMetastore_get_partitions_ps_args { } -class metastore_ThriftHiveMetastore_get_partitions_ps_result { +class ThriftHiveMetastore_get_partitions_ps_result { static $_TSPEC; public $success = null; @@ -11285,13 +11285,13 @@ class metastore_ThriftHiveMetastore_get_partitions_ps_result { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_Partition', + 'class' => 'Partition', ), ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -11333,7 +11333,7 @@ class metastore_ThriftHiveMetastore_get_partitions_ps_result { for ($_i327 = 0; $_i327 < $_size323; ++$_i327) { $elem328 = null; - $elem328 = new metastore_Partition(); + $elem328 = new Partition(); $xfer += $elem328->read($input); $this->success []= $elem328; } @@ -11344,7 +11344,7 @@ class metastore_ThriftHiveMetastore_get_partitions_ps_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -11392,7 +11392,7 @@ class metastore_ThriftHiveMetastore_get_partitions_ps_result { } -class metastore_ThriftHiveMetastore_get_partitions_ps_with_auth_args { +class ThriftHiveMetastore_get_partitions_ps_with_auth_args { static $_TSPEC; public $db_name = null; @@ -11616,7 +11616,7 @@ class metastore_ThriftHiveMetastore_get_partitions_ps_with_auth_args { } -class metastore_ThriftHiveMetastore_get_partitions_ps_with_auth_result { +class ThriftHiveMetastore_get_partitions_ps_with_auth_result { static $_TSPEC; public $success = null; @@ -11632,18 +11632,18 @@ class metastore_ThriftHiveMetastore_get_partitions_ps_with_auth_result { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_Partition', + 'class' => 'Partition', ), ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -11688,7 +11688,7 @@ class metastore_ThriftHiveMetastore_get_partitions_ps_with_auth_result { for ($_i348 = 0; $_i348 < $_size344; ++$_i348) { $elem349 = null; - $elem349 = new metastore_Partition(); + $elem349 = new Partition(); $xfer += $elem349->read($input); $this->success []= $elem349; } @@ -11699,7 +11699,7 @@ class metastore_ThriftHiveMetastore_get_partitions_ps_with_auth_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_NoSuchObjectException(); + $this->o1 = new NoSuchObjectException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -11707,7 +11707,7 @@ class metastore_ThriftHiveMetastore_get_partitions_ps_with_auth_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_MetaException(); + $this->o2 = new MetaException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -11760,7 +11760,7 @@ class metastore_ThriftHiveMetastore_get_partitions_ps_with_auth_result { } -class metastore_ThriftHiveMetastore_get_partition_names_ps_args { +class ThriftHiveMetastore_get_partition_names_ps_args { static $_TSPEC; public $db_name = null; @@ -11918,7 +11918,7 @@ class metastore_ThriftHiveMetastore_get_partition_names_ps_args { } -class metastore_ThriftHiveMetastore_get_partition_names_ps_result { +class ThriftHiveMetastore_get_partition_names_ps_result { static $_TSPEC; public $success = null; @@ -11938,7 +11938,7 @@ class metastore_ThriftHiveMetastore_get_partition_names_ps_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -11990,7 +11990,7 @@ class metastore_ThriftHiveMetastore_get_partition_names_ps_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -12038,7 +12038,7 @@ class metastore_ThriftHiveMetastore_get_partition_names_ps_result { } -class metastore_ThriftHiveMetastore_get_partitions_by_filter_args { +class ThriftHiveMetastore_get_partitions_by_filter_args { static $_TSPEC; public $db_name = null; @@ -12170,7 +12170,7 @@ class metastore_ThriftHiveMetastore_get_partitions_by_filter_args { } -class metastore_ThriftHiveMetastore_get_partitions_by_filter_result { +class ThriftHiveMetastore_get_partitions_by_filter_result { static $_TSPEC; public $success = null; @@ -12186,18 +12186,18 @@ class metastore_ThriftHiveMetastore_get_partitions_by_filter_result { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_Partition', + 'class' => 'Partition', ), ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), ); } @@ -12242,7 +12242,7 @@ class metastore_ThriftHiveMetastore_get_partitions_by_filter_result { for ($_i369 = 0; $_i369 < $_size365; ++$_i369) { $elem370 = null; - $elem370 = new metastore_Partition(); + $elem370 = new Partition(); $xfer += $elem370->read($input); $this->success []= $elem370; } @@ -12253,7 +12253,7 @@ class metastore_ThriftHiveMetastore_get_partitions_by_filter_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -12261,7 +12261,7 @@ class metastore_ThriftHiveMetastore_get_partitions_by_filter_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_NoSuchObjectException(); + $this->o2 = new NoSuchObjectException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -12314,7 +12314,7 @@ class metastore_ThriftHiveMetastore_get_partitions_by_filter_result { } -class metastore_ThriftHiveMetastore_get_partitions_by_names_args { +class ThriftHiveMetastore_get_partitions_by_names_args { static $_TSPEC; public $db_name = null; @@ -12452,7 +12452,7 @@ class metastore_ThriftHiveMetastore_get_partitions_by_names_args { } -class metastore_ThriftHiveMetastore_get_partitions_by_names_result { +class ThriftHiveMetastore_get_partitions_by_names_result { static $_TSPEC; public $success = null; @@ -12468,18 +12468,18 @@ class metastore_ThriftHiveMetastore_get_partitions_by_names_result { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_Partition', + 'class' => 'Partition', ), ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), ); } @@ -12524,7 +12524,7 @@ class metastore_ThriftHiveMetastore_get_partitions_by_names_result { for ($_i383 = 0; $_i383 < $_size379; ++$_i383) { $elem384 = null; - $elem384 = new metastore_Partition(); + $elem384 = new Partition(); $xfer += $elem384->read($input); $this->success []= $elem384; } @@ -12535,7 +12535,7 @@ class metastore_ThriftHiveMetastore_get_partitions_by_names_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -12543,7 +12543,7 @@ class metastore_ThriftHiveMetastore_get_partitions_by_names_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_NoSuchObjectException(); + $this->o2 = new NoSuchObjectException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -12596,7 +12596,7 @@ class metastore_ThriftHiveMetastore_get_partitions_by_names_result { } -class metastore_ThriftHiveMetastore_alter_partition_args { +class ThriftHiveMetastore_alter_partition_args { static $_TSPEC; public $db_name = null; @@ -12617,7 +12617,7 @@ class metastore_ThriftHiveMetastore_alter_partition_args { 3 => array( 'var' => 'new_part', 'type' => TType::STRUCT, - 'class' => 'metastore_Partition', + 'class' => 'Partition', ), ); } @@ -12669,7 +12669,7 @@ class metastore_ThriftHiveMetastore_alter_partition_args { break; case 3: if ($ftype == TType::STRUCT) { - $this->new_part = new metastore_Partition(); + $this->new_part = new Partition(); $xfer += $this->new_part->read($input); } else { $xfer += $input->skip($ftype); @@ -12713,7 +12713,7 @@ class metastore_ThriftHiveMetastore_alter_partition_args { } -class metastore_ThriftHiveMetastore_alter_partition_result { +class ThriftHiveMetastore_alter_partition_result { static $_TSPEC; public $o1 = null; @@ -12725,12 +12725,12 @@ class metastore_ThriftHiveMetastore_alter_partition_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_InvalidOperationException', + 'class' => 'InvalidOperationException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -12765,7 +12765,7 @@ class metastore_ThriftHiveMetastore_alter_partition_result { { case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_InvalidOperationException(); + $this->o1 = new InvalidOperationException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -12773,7 +12773,7 @@ class metastore_ThriftHiveMetastore_alter_partition_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_MetaException(); + $this->o2 = new MetaException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -12809,7 +12809,7 @@ class metastore_ThriftHiveMetastore_alter_partition_result { } -class metastore_ThriftHiveMetastore_get_config_value_args { +class ThriftHiveMetastore_get_config_value_args { static $_TSPEC; public $name = null; @@ -12901,7 +12901,7 @@ class metastore_ThriftHiveMetastore_get_config_value_args { } -class metastore_ThriftHiveMetastore_get_config_value_result { +class ThriftHiveMetastore_get_config_value_result { static $_TSPEC; public $success = null; @@ -12917,7 +12917,7 @@ class metastore_ThriftHiveMetastore_get_config_value_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_ConfigValSecurityException', + 'class' => 'ConfigValSecurityException', ), ); } @@ -12959,7 +12959,7 @@ class metastore_ThriftHiveMetastore_get_config_value_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_ConfigValSecurityException(); + $this->o1 = new ConfigValSecurityException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -12995,7 +12995,7 @@ class metastore_ThriftHiveMetastore_get_config_value_result { } -class metastore_ThriftHiveMetastore_partition_name_to_vals_args { +class ThriftHiveMetastore_partition_name_to_vals_args { static $_TSPEC; public $part_name = null; @@ -13067,7 +13067,7 @@ class metastore_ThriftHiveMetastore_partition_name_to_vals_args { } -class metastore_ThriftHiveMetastore_partition_name_to_vals_result { +class ThriftHiveMetastore_partition_name_to_vals_result { static $_TSPEC; public $success = null; @@ -13087,7 +13087,7 @@ class metastore_ThriftHiveMetastore_partition_name_to_vals_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -13139,7 +13139,7 @@ class metastore_ThriftHiveMetastore_partition_name_to_vals_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -13187,7 +13187,7 @@ class metastore_ThriftHiveMetastore_partition_name_to_vals_result { } -class metastore_ThriftHiveMetastore_partition_name_to_spec_args { +class ThriftHiveMetastore_partition_name_to_spec_args { static $_TSPEC; public $part_name = null; @@ -13259,7 +13259,7 @@ class metastore_ThriftHiveMetastore_partition_name_to_spec_args { } -class metastore_ThriftHiveMetastore_partition_name_to_spec_result { +class ThriftHiveMetastore_partition_name_to_spec_result { static $_TSPEC; public $success = null; @@ -13283,7 +13283,7 @@ class metastore_ThriftHiveMetastore_partition_name_to_spec_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -13338,7 +13338,7 @@ class metastore_ThriftHiveMetastore_partition_name_to_spec_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -13387,7 +13387,7 @@ class metastore_ThriftHiveMetastore_partition_name_to_spec_result { } -class metastore_ThriftHiveMetastore_markPartitionForEvent_args { +class ThriftHiveMetastore_markPartitionForEvent_args { static $_TSPEC; public $db_name = null; @@ -13553,7 +13553,7 @@ class metastore_ThriftHiveMetastore_markPartitionForEvent_args { } -class metastore_ThriftHiveMetastore_markPartitionForEvent_result { +class ThriftHiveMetastore_markPartitionForEvent_result { static $_TSPEC; public $o1 = null; @@ -13569,32 +13569,32 @@ class metastore_ThriftHiveMetastore_markPartitionForEvent_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), 3 => array( 'var' => 'o3', 'type' => TType::STRUCT, - 'class' => 'metastore_UnknownDBException', + 'class' => 'UnknownDBException', ), 4 => array( 'var' => 'o4', 'type' => TType::STRUCT, - 'class' => 'metastore_UnknownTableException', + 'class' => 'UnknownTableException', ), 5 => array( 'var' => 'o5', 'type' => TType::STRUCT, - 'class' => 'metastore_UnknownPartitionException', + 'class' => 'UnknownPartitionException', ), 6 => array( 'var' => 'o6', 'type' => TType::STRUCT, - 'class' => 'metastore_InvalidPartitionException', + 'class' => 'InvalidPartitionException', ), ); } @@ -13641,7 +13641,7 @@ class metastore_ThriftHiveMetastore_markPartitionForEvent_result { { case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -13649,7 +13649,7 @@ class metastore_ThriftHiveMetastore_markPartitionForEvent_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_NoSuchObjectException(); + $this->o2 = new NoSuchObjectException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -13657,7 +13657,7 @@ class metastore_ThriftHiveMetastore_markPartitionForEvent_result { break; case 3: if ($ftype == TType::STRUCT) { - $this->o3 = new metastore_UnknownDBException(); + $this->o3 = new UnknownDBException(); $xfer += $this->o3->read($input); } else { $xfer += $input->skip($ftype); @@ -13665,7 +13665,7 @@ class metastore_ThriftHiveMetastore_markPartitionForEvent_result { break; case 4: if ($ftype == TType::STRUCT) { - $this->o4 = new metastore_UnknownTableException(); + $this->o4 = new UnknownTableException(); $xfer += $this->o4->read($input); } else { $xfer += $input->skip($ftype); @@ -13673,7 +13673,7 @@ class metastore_ThriftHiveMetastore_markPartitionForEvent_result { break; case 5: if ($ftype == TType::STRUCT) { - $this->o5 = new metastore_UnknownPartitionException(); + $this->o5 = new UnknownPartitionException(); $xfer += $this->o5->read($input); } else { $xfer += $input->skip($ftype); @@ -13681,7 +13681,7 @@ class metastore_ThriftHiveMetastore_markPartitionForEvent_result { break; case 6: if ($ftype == TType::STRUCT) { - $this->o6 = new metastore_InvalidPartitionException(); + $this->o6 = new InvalidPartitionException(); $xfer += $this->o6->read($input); } else { $xfer += $input->skip($ftype); @@ -13737,7 +13737,7 @@ class metastore_ThriftHiveMetastore_markPartitionForEvent_result { } -class metastore_ThriftHiveMetastore_isPartitionMarkedForEvent_args { +class ThriftHiveMetastore_isPartitionMarkedForEvent_args { static $_TSPEC; public $db_name = null; @@ -13903,7 +13903,7 @@ class metastore_ThriftHiveMetastore_isPartitionMarkedForEvent_args { } -class metastore_ThriftHiveMetastore_isPartitionMarkedForEvent_result { +class ThriftHiveMetastore_isPartitionMarkedForEvent_result { static $_TSPEC; public $success = null; @@ -13924,32 +13924,32 @@ class metastore_ThriftHiveMetastore_isPartitionMarkedForEvent_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), 3 => array( 'var' => 'o3', 'type' => TType::STRUCT, - 'class' => 'metastore_UnknownDBException', + 'class' => 'UnknownDBException', ), 4 => array( 'var' => 'o4', 'type' => TType::STRUCT, - 'class' => 'metastore_UnknownTableException', + 'class' => 'UnknownTableException', ), 5 => array( 'var' => 'o5', 'type' => TType::STRUCT, - 'class' => 'metastore_UnknownPartitionException', + 'class' => 'UnknownPartitionException', ), 6 => array( 'var' => 'o6', 'type' => TType::STRUCT, - 'class' => 'metastore_InvalidPartitionException', + 'class' => 'InvalidPartitionException', ), ); } @@ -14006,7 +14006,7 @@ class metastore_ThriftHiveMetastore_isPartitionMarkedForEvent_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -14014,7 +14014,7 @@ class metastore_ThriftHiveMetastore_isPartitionMarkedForEvent_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_NoSuchObjectException(); + $this->o2 = new NoSuchObjectException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -14022,7 +14022,7 @@ class metastore_ThriftHiveMetastore_isPartitionMarkedForEvent_result { break; case 3: if ($ftype == TType::STRUCT) { - $this->o3 = new metastore_UnknownDBException(); + $this->o3 = new UnknownDBException(); $xfer += $this->o3->read($input); } else { $xfer += $input->skip($ftype); @@ -14030,7 +14030,7 @@ class metastore_ThriftHiveMetastore_isPartitionMarkedForEvent_result { break; case 4: if ($ftype == TType::STRUCT) { - $this->o4 = new metastore_UnknownTableException(); + $this->o4 = new UnknownTableException(); $xfer += $this->o4->read($input); } else { $xfer += $input->skip($ftype); @@ -14038,7 +14038,7 @@ class metastore_ThriftHiveMetastore_isPartitionMarkedForEvent_result { break; case 5: if ($ftype == TType::STRUCT) { - $this->o5 = new metastore_UnknownPartitionException(); + $this->o5 = new UnknownPartitionException(); $xfer += $this->o5->read($input); } else { $xfer += $input->skip($ftype); @@ -14046,7 +14046,7 @@ class metastore_ThriftHiveMetastore_isPartitionMarkedForEvent_result { break; case 6: if ($ftype == TType::STRUCT) { - $this->o6 = new metastore_InvalidPartitionException(); + $this->o6 = new InvalidPartitionException(); $xfer += $this->o6->read($input); } else { $xfer += $input->skip($ftype); @@ -14107,7 +14107,7 @@ class metastore_ThriftHiveMetastore_isPartitionMarkedForEvent_result { } -class metastore_ThriftHiveMetastore_add_index_args { +class ThriftHiveMetastore_add_index_args { static $_TSPEC; public $new_index = null; @@ -14119,12 +14119,12 @@ class metastore_ThriftHiveMetastore_add_index_args { 1 => array( 'var' => 'new_index', 'type' => TType::STRUCT, - 'class' => 'metastore_Index', + 'class' => 'Index', ), 2 => array( 'var' => 'index_table', 'type' => TType::STRUCT, - 'class' => 'metastore_Table', + 'class' => 'Table', ), ); } @@ -14159,7 +14159,7 @@ class metastore_ThriftHiveMetastore_add_index_args { { case 1: if ($ftype == TType::STRUCT) { - $this->new_index = new metastore_Index(); + $this->new_index = new Index(); $xfer += $this->new_index->read($input); } else { $xfer += $input->skip($ftype); @@ -14167,7 +14167,7 @@ class metastore_ThriftHiveMetastore_add_index_args { break; case 2: if ($ftype == TType::STRUCT) { - $this->index_table = new metastore_Table(); + $this->index_table = new Table(); $xfer += $this->index_table->read($input); } else { $xfer += $input->skip($ftype); @@ -14209,7 +14209,7 @@ class metastore_ThriftHiveMetastore_add_index_args { } -class metastore_ThriftHiveMetastore_add_index_result { +class ThriftHiveMetastore_add_index_result { static $_TSPEC; public $success = null; @@ -14223,22 +14223,22 @@ class metastore_ThriftHiveMetastore_add_index_result { 0 => array( 'var' => 'success', 'type' => TType::STRUCT, - 'class' => 'metastore_Index', + 'class' => 'Index', ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_InvalidObjectException', + 'class' => 'InvalidObjectException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_AlreadyExistsException', + 'class' => 'AlreadyExistsException', ), 3 => array( 'var' => 'o3', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -14279,7 +14279,7 @@ class metastore_ThriftHiveMetastore_add_index_result { { case 0: if ($ftype == TType::STRUCT) { - $this->success = new metastore_Index(); + $this->success = new Index(); $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); @@ -14287,7 +14287,7 @@ class metastore_ThriftHiveMetastore_add_index_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_InvalidObjectException(); + $this->o1 = new InvalidObjectException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -14295,7 +14295,7 @@ class metastore_ThriftHiveMetastore_add_index_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_AlreadyExistsException(); + $this->o2 = new AlreadyExistsException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -14303,7 +14303,7 @@ class metastore_ThriftHiveMetastore_add_index_result { break; case 3: if ($ftype == TType::STRUCT) { - $this->o3 = new metastore_MetaException(); + $this->o3 = new MetaException(); $xfer += $this->o3->read($input); } else { $xfer += $input->skip($ftype); @@ -14352,7 +14352,7 @@ class metastore_ThriftHiveMetastore_add_index_result { } -class metastore_ThriftHiveMetastore_alter_index_args { +class ThriftHiveMetastore_alter_index_args { static $_TSPEC; public $dbname = null; @@ -14378,7 +14378,7 @@ class metastore_ThriftHiveMetastore_alter_index_args { 4 => array( 'var' => 'new_idx', 'type' => TType::STRUCT, - 'class' => 'metastore_Index', + 'class' => 'Index', ), ); } @@ -14440,7 +14440,7 @@ class metastore_ThriftHiveMetastore_alter_index_args { break; case 4: if ($ftype == TType::STRUCT) { - $this->new_idx = new metastore_Index(); + $this->new_idx = new Index(); $xfer += $this->new_idx->read($input); } else { $xfer += $input->skip($ftype); @@ -14489,7 +14489,7 @@ class metastore_ThriftHiveMetastore_alter_index_args { } -class metastore_ThriftHiveMetastore_alter_index_result { +class ThriftHiveMetastore_alter_index_result { static $_TSPEC; public $o1 = null; @@ -14501,12 +14501,12 @@ class metastore_ThriftHiveMetastore_alter_index_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_InvalidOperationException', + 'class' => 'InvalidOperationException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -14541,7 +14541,7 @@ class metastore_ThriftHiveMetastore_alter_index_result { { case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_InvalidOperationException(); + $this->o1 = new InvalidOperationException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -14549,7 +14549,7 @@ class metastore_ThriftHiveMetastore_alter_index_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_MetaException(); + $this->o2 = new MetaException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -14585,7 +14585,7 @@ class metastore_ThriftHiveMetastore_alter_index_result { } -class metastore_ThriftHiveMetastore_drop_index_by_name_args { +class ThriftHiveMetastore_drop_index_by_name_args { static $_TSPEC; public $db_name = null; @@ -14717,7 +14717,7 @@ class metastore_ThriftHiveMetastore_drop_index_by_name_args { } -class metastore_ThriftHiveMetastore_drop_index_by_name_result { +class ThriftHiveMetastore_drop_index_by_name_result { static $_TSPEC; public $success = null; @@ -14734,12 +14734,12 @@ class metastore_ThriftHiveMetastore_drop_index_by_name_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -14784,7 +14784,7 @@ class metastore_ThriftHiveMetastore_drop_index_by_name_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_NoSuchObjectException(); + $this->o1 = new NoSuchObjectException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -14792,7 +14792,7 @@ class metastore_ThriftHiveMetastore_drop_index_by_name_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_MetaException(); + $this->o2 = new MetaException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -14833,7 +14833,7 @@ class metastore_ThriftHiveMetastore_drop_index_by_name_result { } -class metastore_ThriftHiveMetastore_get_index_by_name_args { +class ThriftHiveMetastore_get_index_by_name_args { static $_TSPEC; public $db_name = null; @@ -14945,7 +14945,7 @@ class metastore_ThriftHiveMetastore_get_index_by_name_args { } -class metastore_ThriftHiveMetastore_get_index_by_name_result { +class ThriftHiveMetastore_get_index_by_name_result { static $_TSPEC; public $success = null; @@ -14958,17 +14958,17 @@ class metastore_ThriftHiveMetastore_get_index_by_name_result { 0 => array( 'var' => 'success', 'type' => TType::STRUCT, - 'class' => 'metastore_Index', + 'class' => 'Index', ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), ); } @@ -15006,7 +15006,7 @@ class metastore_ThriftHiveMetastore_get_index_by_name_result { { case 0: if ($ftype == TType::STRUCT) { - $this->success = new metastore_Index(); + $this->success = new Index(); $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); @@ -15014,7 +15014,7 @@ class metastore_ThriftHiveMetastore_get_index_by_name_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -15022,7 +15022,7 @@ class metastore_ThriftHiveMetastore_get_index_by_name_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_NoSuchObjectException(); + $this->o2 = new NoSuchObjectException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -15066,7 +15066,7 @@ class metastore_ThriftHiveMetastore_get_index_by_name_result { } -class metastore_ThriftHiveMetastore_get_indexes_args { +class ThriftHiveMetastore_get_indexes_args { static $_TSPEC; public $db_name = null; @@ -15178,7 +15178,7 @@ class metastore_ThriftHiveMetastore_get_indexes_args { } -class metastore_ThriftHiveMetastore_get_indexes_result { +class ThriftHiveMetastore_get_indexes_result { static $_TSPEC; public $success = null; @@ -15194,18 +15194,18 @@ class metastore_ThriftHiveMetastore_get_indexes_result { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_Index', + 'class' => 'Index', ), ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_NoSuchObjectException', + 'class' => 'NoSuchObjectException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -15250,7 +15250,7 @@ class metastore_ThriftHiveMetastore_get_indexes_result { for ($_i424 = 0; $_i424 < $_size420; ++$_i424) { $elem425 = null; - $elem425 = new metastore_Index(); + $elem425 = new Index(); $xfer += $elem425->read($input); $this->success []= $elem425; } @@ -15261,7 +15261,7 @@ class metastore_ThriftHiveMetastore_get_indexes_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_NoSuchObjectException(); + $this->o1 = new NoSuchObjectException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -15269,7 +15269,7 @@ class metastore_ThriftHiveMetastore_get_indexes_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_MetaException(); + $this->o2 = new MetaException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -15322,7 +15322,7 @@ class metastore_ThriftHiveMetastore_get_indexes_result { } -class metastore_ThriftHiveMetastore_get_index_names_args { +class ThriftHiveMetastore_get_index_names_args { static $_TSPEC; public $db_name = null; @@ -15434,7 +15434,7 @@ class metastore_ThriftHiveMetastore_get_index_names_args { } -class metastore_ThriftHiveMetastore_get_index_names_result { +class ThriftHiveMetastore_get_index_names_result { static $_TSPEC; public $success = null; @@ -15454,7 +15454,7 @@ class metastore_ThriftHiveMetastore_get_index_names_result { 1 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -15506,7 +15506,7 @@ class metastore_ThriftHiveMetastore_get_index_names_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o2 = new metastore_MetaException(); + $this->o2 = new MetaException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -15554,7 +15554,7 @@ class metastore_ThriftHiveMetastore_get_index_names_result { } -class metastore_ThriftHiveMetastore_create_role_args { +class ThriftHiveMetastore_create_role_args { static $_TSPEC; public $role = null; @@ -15565,7 +15565,7 @@ class metastore_ThriftHiveMetastore_create_role_args { 1 => array( 'var' => 'role', 'type' => TType::STRUCT, - 'class' => 'metastore_Role', + 'class' => 'Role', ), ); } @@ -15597,7 +15597,7 @@ class metastore_ThriftHiveMetastore_create_role_args { { case 1: if ($ftype == TType::STRUCT) { - $this->role = new metastore_Role(); + $this->role = new Role(); $xfer += $this->role->read($input); } else { $xfer += $input->skip($ftype); @@ -15631,7 +15631,7 @@ class metastore_ThriftHiveMetastore_create_role_args { } -class metastore_ThriftHiveMetastore_create_role_result { +class ThriftHiveMetastore_create_role_result { static $_TSPEC; public $success = null; @@ -15647,7 +15647,7 @@ class metastore_ThriftHiveMetastore_create_role_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -15689,7 +15689,7 @@ class metastore_ThriftHiveMetastore_create_role_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -15725,7 +15725,7 @@ class metastore_ThriftHiveMetastore_create_role_result { } -class metastore_ThriftHiveMetastore_drop_role_args { +class ThriftHiveMetastore_drop_role_args { static $_TSPEC; public $role_name = null; @@ -15797,7 +15797,7 @@ class metastore_ThriftHiveMetastore_drop_role_args { } -class metastore_ThriftHiveMetastore_drop_role_result { +class ThriftHiveMetastore_drop_role_result { static $_TSPEC; public $success = null; @@ -15813,7 +15813,7 @@ class metastore_ThriftHiveMetastore_drop_role_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -15855,7 +15855,7 @@ class metastore_ThriftHiveMetastore_drop_role_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -15891,7 +15891,7 @@ class metastore_ThriftHiveMetastore_drop_role_result { } -class metastore_ThriftHiveMetastore_get_role_names_args { +class ThriftHiveMetastore_get_role_names_args { static $_TSPEC; @@ -15941,7 +15941,7 @@ class metastore_ThriftHiveMetastore_get_role_names_args { } -class metastore_ThriftHiveMetastore_get_role_names_result { +class ThriftHiveMetastore_get_role_names_result { static $_TSPEC; public $success = null; @@ -15961,7 +15961,7 @@ class metastore_ThriftHiveMetastore_get_role_names_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -16013,7 +16013,7 @@ class metastore_ThriftHiveMetastore_get_role_names_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -16061,7 +16061,7 @@ class metastore_ThriftHiveMetastore_get_role_names_result { } -class metastore_ThriftHiveMetastore_grant_role_args { +class ThriftHiveMetastore_grant_role_args { static $_TSPEC; public $role_name = null; @@ -16233,7 +16233,7 @@ class metastore_ThriftHiveMetastore_grant_role_args { } -class metastore_ThriftHiveMetastore_grant_role_result { +class ThriftHiveMetastore_grant_role_result { static $_TSPEC; public $success = null; @@ -16249,7 +16249,7 @@ class metastore_ThriftHiveMetastore_grant_role_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -16291,7 +16291,7 @@ class metastore_ThriftHiveMetastore_grant_role_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -16327,7 +16327,7 @@ class metastore_ThriftHiveMetastore_grant_role_result { } -class metastore_ThriftHiveMetastore_revoke_role_args { +class ThriftHiveMetastore_revoke_role_args { static $_TSPEC; public $role_name = null; @@ -16439,7 +16439,7 @@ class metastore_ThriftHiveMetastore_revoke_role_args { } -class metastore_ThriftHiveMetastore_revoke_role_result { +class ThriftHiveMetastore_revoke_role_result { static $_TSPEC; public $success = null; @@ -16455,7 +16455,7 @@ class metastore_ThriftHiveMetastore_revoke_role_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -16497,7 +16497,7 @@ class metastore_ThriftHiveMetastore_revoke_role_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -16533,7 +16533,7 @@ class metastore_ThriftHiveMetastore_revoke_role_result { } -class metastore_ThriftHiveMetastore_list_roles_args { +class ThriftHiveMetastore_list_roles_args { static $_TSPEC; public $principal_name = null; @@ -16625,7 +16625,7 @@ class metastore_ThriftHiveMetastore_list_roles_args { } -class metastore_ThriftHiveMetastore_list_roles_result { +class ThriftHiveMetastore_list_roles_result { static $_TSPEC; public $success = null; @@ -16640,13 +16640,13 @@ class metastore_ThriftHiveMetastore_list_roles_result { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_Role', + 'class' => 'Role', ), ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -16688,7 +16688,7 @@ class metastore_ThriftHiveMetastore_list_roles_result { for ($_i445 = 0; $_i445 < $_size441; ++$_i445) { $elem446 = null; - $elem446 = new metastore_Role(); + $elem446 = new Role(); $xfer += $elem446->read($input); $this->success []= $elem446; } @@ -16699,7 +16699,7 @@ class metastore_ThriftHiveMetastore_list_roles_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -16747,7 +16747,7 @@ class metastore_ThriftHiveMetastore_list_roles_result { } -class metastore_ThriftHiveMetastore_get_privilege_set_args { +class ThriftHiveMetastore_get_privilege_set_args { static $_TSPEC; public $hiveObject = null; @@ -16760,7 +16760,7 @@ class metastore_ThriftHiveMetastore_get_privilege_set_args { 1 => array( 'var' => 'hiveObject', 'type' => TType::STRUCT, - 'class' => 'metastore_HiveObjectRef', + 'class' => 'HiveObjectRef', ), 2 => array( 'var' => 'user_name', @@ -16810,7 +16810,7 @@ class metastore_ThriftHiveMetastore_get_privilege_set_args { { case 1: if ($ftype == TType::STRUCT) { - $this->hiveObject = new metastore_HiveObjectRef(); + $this->hiveObject = new HiveObjectRef(); $xfer += $this->hiveObject->read($input); } else { $xfer += $input->skip($ftype); @@ -16890,7 +16890,7 @@ class metastore_ThriftHiveMetastore_get_privilege_set_args { } -class metastore_ThriftHiveMetastore_get_privilege_set_result { +class ThriftHiveMetastore_get_privilege_set_result { static $_TSPEC; public $success = null; @@ -16902,12 +16902,12 @@ class metastore_ThriftHiveMetastore_get_privilege_set_result { 0 => array( 'var' => 'success', 'type' => TType::STRUCT, - 'class' => 'metastore_PrincipalPrivilegeSet', + 'class' => 'PrincipalPrivilegeSet', ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -16942,7 +16942,7 @@ class metastore_ThriftHiveMetastore_get_privilege_set_result { { case 0: if ($ftype == TType::STRUCT) { - $this->success = new metastore_PrincipalPrivilegeSet(); + $this->success = new PrincipalPrivilegeSet(); $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); @@ -16950,7 +16950,7 @@ class metastore_ThriftHiveMetastore_get_privilege_set_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -16989,7 +16989,7 @@ class metastore_ThriftHiveMetastore_get_privilege_set_result { } -class metastore_ThriftHiveMetastore_list_privileges_args { +class ThriftHiveMetastore_list_privileges_args { static $_TSPEC; public $principal_name = null; @@ -17010,7 +17010,7 @@ class metastore_ThriftHiveMetastore_list_privileges_args { 3 => array( 'var' => 'hiveObject', 'type' => TType::STRUCT, - 'class' => 'metastore_HiveObjectRef', + 'class' => 'HiveObjectRef', ), ); } @@ -17062,7 +17062,7 @@ class metastore_ThriftHiveMetastore_list_privileges_args { break; case 3: if ($ftype == TType::STRUCT) { - $this->hiveObject = new metastore_HiveObjectRef(); + $this->hiveObject = new HiveObjectRef(); $xfer += $this->hiveObject->read($input); } else { $xfer += $input->skip($ftype); @@ -17106,7 +17106,7 @@ class metastore_ThriftHiveMetastore_list_privileges_args { } -class metastore_ThriftHiveMetastore_list_privileges_result { +class ThriftHiveMetastore_list_privileges_result { static $_TSPEC; public $success = null; @@ -17121,13 +17121,13 @@ class metastore_ThriftHiveMetastore_list_privileges_result { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_HiveObjectPrivilege', + 'class' => 'HiveObjectPrivilege', ), ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -17169,7 +17169,7 @@ class metastore_ThriftHiveMetastore_list_privileges_result { for ($_i459 = 0; $_i459 < $_size455; ++$_i459) { $elem460 = null; - $elem460 = new metastore_HiveObjectPrivilege(); + $elem460 = new HiveObjectPrivilege(); $xfer += $elem460->read($input); $this->success []= $elem460; } @@ -17180,7 +17180,7 @@ class metastore_ThriftHiveMetastore_list_privileges_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -17228,7 +17228,7 @@ class metastore_ThriftHiveMetastore_list_privileges_result { } -class metastore_ThriftHiveMetastore_grant_privileges_args { +class ThriftHiveMetastore_grant_privileges_args { static $_TSPEC; public $privileges = null; @@ -17239,7 +17239,7 @@ class metastore_ThriftHiveMetastore_grant_privileges_args { 1 => array( 'var' => 'privileges', 'type' => TType::STRUCT, - 'class' => 'metastore_PrivilegeBag', + 'class' => 'PrivilegeBag', ), ); } @@ -17271,7 +17271,7 @@ class metastore_ThriftHiveMetastore_grant_privileges_args { { case 1: if ($ftype == TType::STRUCT) { - $this->privileges = new metastore_PrivilegeBag(); + $this->privileges = new PrivilegeBag(); $xfer += $this->privileges->read($input); } else { $xfer += $input->skip($ftype); @@ -17305,7 +17305,7 @@ class metastore_ThriftHiveMetastore_grant_privileges_args { } -class metastore_ThriftHiveMetastore_grant_privileges_result { +class ThriftHiveMetastore_grant_privileges_result { static $_TSPEC; public $success = null; @@ -17321,7 +17321,7 @@ class metastore_ThriftHiveMetastore_grant_privileges_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -17363,7 +17363,7 @@ class metastore_ThriftHiveMetastore_grant_privileges_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -17399,7 +17399,7 @@ class metastore_ThriftHiveMetastore_grant_privileges_result { } -class metastore_ThriftHiveMetastore_revoke_privileges_args { +class ThriftHiveMetastore_revoke_privileges_args { static $_TSPEC; public $privileges = null; @@ -17410,7 +17410,7 @@ class metastore_ThriftHiveMetastore_revoke_privileges_args { 1 => array( 'var' => 'privileges', 'type' => TType::STRUCT, - 'class' => 'metastore_PrivilegeBag', + 'class' => 'PrivilegeBag', ), ); } @@ -17442,7 +17442,7 @@ class metastore_ThriftHiveMetastore_revoke_privileges_args { { case 1: if ($ftype == TType::STRUCT) { - $this->privileges = new metastore_PrivilegeBag(); + $this->privileges = new PrivilegeBag(); $xfer += $this->privileges->read($input); } else { $xfer += $input->skip($ftype); @@ -17476,7 +17476,7 @@ class metastore_ThriftHiveMetastore_revoke_privileges_args { } -class metastore_ThriftHiveMetastore_revoke_privileges_result { +class ThriftHiveMetastore_revoke_privileges_result { static $_TSPEC; public $success = null; @@ -17492,7 +17492,7 @@ class metastore_ThriftHiveMetastore_revoke_privileges_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -17534,7 +17534,7 @@ class metastore_ThriftHiveMetastore_revoke_privileges_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -17570,7 +17570,7 @@ class metastore_ThriftHiveMetastore_revoke_privileges_result { } -class metastore_ThriftHiveMetastore_get_delegation_token_args { +class ThriftHiveMetastore_get_delegation_token_args { static $_TSPEC; public $token_owner = null; @@ -17662,7 +17662,7 @@ class metastore_ThriftHiveMetastore_get_delegation_token_args { } -class metastore_ThriftHiveMetastore_get_delegation_token_result { +class ThriftHiveMetastore_get_delegation_token_result { static $_TSPEC; public $success = null; @@ -17678,7 +17678,7 @@ class metastore_ThriftHiveMetastore_get_delegation_token_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -17720,7 +17720,7 @@ class metastore_ThriftHiveMetastore_get_delegation_token_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -17756,7 +17756,7 @@ class metastore_ThriftHiveMetastore_get_delegation_token_result { } -class metastore_ThriftHiveMetastore_renew_delegation_token_args { +class ThriftHiveMetastore_renew_delegation_token_args { static $_TSPEC; public $token_str_form = null; @@ -17828,7 +17828,7 @@ class metastore_ThriftHiveMetastore_renew_delegation_token_args { } -class metastore_ThriftHiveMetastore_renew_delegation_token_result { +class ThriftHiveMetastore_renew_delegation_token_result { static $_TSPEC; public $success = null; @@ -17844,7 +17844,7 @@ class metastore_ThriftHiveMetastore_renew_delegation_token_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -17886,7 +17886,7 @@ class metastore_ThriftHiveMetastore_renew_delegation_token_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -17922,7 +17922,7 @@ class metastore_ThriftHiveMetastore_renew_delegation_token_result { } -class metastore_ThriftHiveMetastore_cancel_delegation_token_args { +class ThriftHiveMetastore_cancel_delegation_token_args { static $_TSPEC; public $token_str_form = null; @@ -17994,7 +17994,7 @@ class metastore_ThriftHiveMetastore_cancel_delegation_token_args { } -class metastore_ThriftHiveMetastore_cancel_delegation_token_result { +class ThriftHiveMetastore_cancel_delegation_token_result { static $_TSPEC; public $o1 = null; @@ -18005,7 +18005,7 @@ class metastore_ThriftHiveMetastore_cancel_delegation_token_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => 'metastore_MetaException', + 'class' => 'MetaException', ), ); } @@ -18037,7 +18037,7 @@ class metastore_ThriftHiveMetastore_cancel_delegation_token_result { { case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new metastore_MetaException(); + $this->o1 = new MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); diff --git metastore/src/gen/thrift/gen-php/hive_metastore/hive_metastore_constants.php metastore/src/gen/thrift/gen-php/hive_metastore/hive_metastore_constants.php index 6364d8a..5bbcb4d 100644 --- metastore/src/gen/thrift/gen-php/hive_metastore/hive_metastore_constants.php +++ metastore/src/gen/thrift/gen-php/hive_metastore/hive_metastore_constants.php @@ -1,6 +1,6 @@ 1, 'DATABASE' => 2, 'TABLE' => 3, @@ -16,7 +16,7 @@ $GLOBALS['metastore_E_HiveObjectType'] = array( 'COLUMN' => 5, ); -final class metastore_HiveObjectType { +final class HiveObjectType { const GLOBAL = 1; const DATABASE = 2; const TABLE = 3; @@ -31,13 +31,13 @@ final class metastore_HiveObjectType { ); } -$GLOBALS['metastore_E_PrincipalType'] = array( +$GLOBALS['E_PrincipalType'] = array( 'USER' => 1, 'ROLE' => 2, 'GROUP' => 3, ); -final class metastore_PrincipalType { +final class PrincipalType { const USER = 1; const ROLE = 2; const GROUP = 3; @@ -48,18 +48,18 @@ final class metastore_PrincipalType { ); } -$GLOBALS['metastore_E_PartitionEventType'] = array( +$GLOBALS['E_PartitionEventType'] = array( 'LOAD_DONE' => 1, ); -final class metastore_PartitionEventType { +final class PartitionEventType { const LOAD_DONE = 1; static public $__names = array( 1 => 'LOAD_DONE', ); } -class metastore_Version { +class Version { static $_TSPEC; public $version = null; @@ -151,7 +151,7 @@ class metastore_Version { } -class metastore_FieldSchema { +class FieldSchema { static $_TSPEC; public $name = null; @@ -263,7 +263,7 @@ class metastore_FieldSchema { } -class metastore_Type { +class Type { static $_TSPEC; public $name = null; @@ -292,7 +292,7 @@ class metastore_Type { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_FieldSchema', + 'class' => 'FieldSchema', ), ), ); @@ -362,7 +362,7 @@ class metastore_Type { for ($_i4 = 0; $_i4 < $_size0; ++$_i4) { $elem5 = null; - $elem5 = new metastore_FieldSchema(); + $elem5 = new FieldSchema(); $xfer += $elem5->read($input); $this->fields []= $elem5; } @@ -423,7 +423,7 @@ class metastore_Type { } -class metastore_HiveObjectRef { +class HiveObjectRef { static $_TSPEC; public $objectType = null; @@ -601,7 +601,7 @@ class metastore_HiveObjectRef { } -class metastore_PrivilegeGrantInfo { +class PrivilegeGrantInfo { static $_TSPEC; public $privilege = null; @@ -753,7 +753,7 @@ class metastore_PrivilegeGrantInfo { } -class metastore_HiveObjectPrivilege { +class HiveObjectPrivilege { static $_TSPEC; public $hiveObject = null; @@ -767,7 +767,7 @@ class metastore_HiveObjectPrivilege { 1 => array( 'var' => 'hiveObject', 'type' => TType::STRUCT, - 'class' => 'metastore_HiveObjectRef', + 'class' => 'HiveObjectRef', ), 2 => array( 'var' => 'principalName', @@ -780,7 +780,7 @@ class metastore_HiveObjectPrivilege { 4 => array( 'var' => 'grantInfo', 'type' => TType::STRUCT, - 'class' => 'metastore_PrivilegeGrantInfo', + 'class' => 'PrivilegeGrantInfo', ), ); } @@ -821,7 +821,7 @@ class metastore_HiveObjectPrivilege { { case 1: if ($ftype == TType::STRUCT) { - $this->hiveObject = new metastore_HiveObjectRef(); + $this->hiveObject = new HiveObjectRef(); $xfer += $this->hiveObject->read($input); } else { $xfer += $input->skip($ftype); @@ -843,7 +843,7 @@ class metastore_HiveObjectPrivilege { break; case 4: if ($ftype == TType::STRUCT) { - $this->grantInfo = new metastore_PrivilegeGrantInfo(); + $this->grantInfo = new PrivilegeGrantInfo(); $xfer += $this->grantInfo->read($input); } else { $xfer += $input->skip($ftype); @@ -895,7 +895,7 @@ class metastore_HiveObjectPrivilege { } -class metastore_PrivilegeBag { +class PrivilegeBag { static $_TSPEC; public $privileges = null; @@ -909,7 +909,7 @@ class metastore_PrivilegeBag { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_HiveObjectPrivilege', + 'class' => 'HiveObjectPrivilege', ), ), ); @@ -949,7 +949,7 @@ class metastore_PrivilegeBag { for ($_i18 = 0; $_i18 < $_size14; ++$_i18) { $elem19 = null; - $elem19 = new metastore_HiveObjectPrivilege(); + $elem19 = new HiveObjectPrivilege(); $xfer += $elem19->read($input); $this->privileges []= $elem19; } @@ -995,7 +995,7 @@ class metastore_PrivilegeBag { } -class metastore_PrincipalPrivilegeSet { +class PrincipalPrivilegeSet { static $_TSPEC; public $userPrivileges = null; @@ -1018,7 +1018,7 @@ class metastore_PrincipalPrivilegeSet { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_PrivilegeGrantInfo', + 'class' => 'PrivilegeGrantInfo', ), ), ), @@ -1035,7 +1035,7 @@ class metastore_PrincipalPrivilegeSet { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_PrivilegeGrantInfo', + 'class' => 'PrivilegeGrantInfo', ), ), ), @@ -1052,7 +1052,7 @@ class metastore_PrincipalPrivilegeSet { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_PrivilegeGrantInfo', + 'class' => 'PrivilegeGrantInfo', ), ), ), @@ -1109,7 +1109,7 @@ class metastore_PrincipalPrivilegeSet { for ($_i32 = 0; $_i32 < $_size28; ++$_i32) { $elem33 = null; - $elem33 = new metastore_PrivilegeGrantInfo(); + $elem33 = new PrivilegeGrantInfo(); $xfer += $elem33->read($input); $val27 []= $elem33; } @@ -1140,7 +1140,7 @@ class metastore_PrincipalPrivilegeSet { for ($_i45 = 0; $_i45 < $_size41; ++$_i45) { $elem46 = null; - $elem46 = new metastore_PrivilegeGrantInfo(); + $elem46 = new PrivilegeGrantInfo(); $xfer += $elem46->read($input); $val40 []= $elem46; } @@ -1171,7 +1171,7 @@ class metastore_PrincipalPrivilegeSet { for ($_i58 = 0; $_i58 < $_size54; ++$_i58) { $elem59 = null; - $elem59 = new metastore_PrivilegeGrantInfo(); + $elem59 = new PrivilegeGrantInfo(); $xfer += $elem59->read($input); $val53 []= $elem59; } @@ -1284,7 +1284,7 @@ class metastore_PrincipalPrivilegeSet { } -class metastore_Role { +class Role { static $_TSPEC; public $roleName = null; @@ -1396,7 +1396,7 @@ class metastore_Role { } -class metastore_Database { +class Database { static $_TSPEC; public $name = null; @@ -1435,7 +1435,7 @@ class metastore_Database { 5 => array( 'var' => 'privileges', 'type' => TType::STRUCT, - 'class' => 'metastore_PrincipalPrivilegeSet', + 'class' => 'PrincipalPrivilegeSet', ), ); } @@ -1520,7 +1520,7 @@ class metastore_Database { break; case 5: if ($ftype == TType::STRUCT) { - $this->privileges = new metastore_PrincipalPrivilegeSet(); + $this->privileges = new PrincipalPrivilegeSet(); $xfer += $this->privileges->read($input); } else { $xfer += $input->skip($ftype); @@ -1587,7 +1587,7 @@ class metastore_Database { } -class metastore_SerDeInfo { +class SerDeInfo { static $_TSPEC; public $name = null; @@ -1733,7 +1733,7 @@ class metastore_SerDeInfo { } -class metastore_Order { +class Order { static $_TSPEC; public $col = null; @@ -1825,7 +1825,7 @@ class metastore_Order { } -class metastore_StorageDescriptor { +class StorageDescriptor { static $_TSPEC; public $cols = null; @@ -1848,7 +1848,7 @@ class metastore_StorageDescriptor { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_FieldSchema', + 'class' => 'FieldSchema', ), ), 2 => array( @@ -1874,7 +1874,7 @@ class metastore_StorageDescriptor { 7 => array( 'var' => 'serdeInfo', 'type' => TType::STRUCT, - 'class' => 'metastore_SerDeInfo', + 'class' => 'SerDeInfo', ), 8 => array( 'var' => 'bucketCols', @@ -1890,7 +1890,7 @@ class metastore_StorageDescriptor { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_Order', + 'class' => 'Order', ), ), 10 => array( @@ -1969,7 +1969,7 @@ class metastore_StorageDescriptor { for ($_i91 = 0; $_i91 < $_size87; ++$_i91) { $elem92 = null; - $elem92 = new metastore_FieldSchema(); + $elem92 = new FieldSchema(); $xfer += $elem92->read($input); $this->cols []= $elem92; } @@ -2015,7 +2015,7 @@ class metastore_StorageDescriptor { break; case 7: if ($ftype == TType::STRUCT) { - $this->serdeInfo = new metastore_SerDeInfo(); + $this->serdeInfo = new SerDeInfo(); $xfer += $this->serdeInfo->read($input); } else { $xfer += $input->skip($ftype); @@ -2047,7 +2047,7 @@ class metastore_StorageDescriptor { for ($_i103 = 0; $_i103 < $_size99; ++$_i103) { $elem104 = null; - $elem104 = new metastore_Order(); + $elem104 = new Order(); $xfer += $elem104->read($input); $this->sortCols []= $elem104; } @@ -2198,7 +2198,7 @@ class metastore_StorageDescriptor { } -class metastore_Table { +class Table { static $_TSPEC; public $tableName = null; @@ -2245,7 +2245,7 @@ class metastore_Table { 7 => array( 'var' => 'sd', 'type' => TType::STRUCT, - 'class' => 'metastore_StorageDescriptor', + 'class' => 'StorageDescriptor', ), 8 => array( 'var' => 'partitionKeys', @@ -2253,7 +2253,7 @@ class metastore_Table { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_FieldSchema', + 'class' => 'FieldSchema', ), ), 9 => array( @@ -2283,7 +2283,7 @@ class metastore_Table { 13 => array( 'var' => 'privileges', 'type' => TType::STRUCT, - 'class' => 'metastore_PrincipalPrivilegeSet', + 'class' => 'PrincipalPrivilegeSet', ), ); } @@ -2393,7 +2393,7 @@ class metastore_Table { break; case 7: if ($ftype == TType::STRUCT) { - $this->sd = new metastore_StorageDescriptor(); + $this->sd = new StorageDescriptor(); $xfer += $this->sd->read($input); } else { $xfer += $input->skip($ftype); @@ -2408,7 +2408,7 @@ class metastore_Table { for ($_i121 = 0; $_i121 < $_size117; ++$_i121) { $elem122 = null; - $elem122 = new metastore_FieldSchema(); + $elem122 = new FieldSchema(); $xfer += $elem122->read($input); $this->partitionKeys []= $elem122; } @@ -2460,7 +2460,7 @@ class metastore_Table { break; case 13: if ($ftype == TType::STRUCT) { - $this->privileges = new metastore_PrincipalPrivilegeSet(); + $this->privileges = new PrincipalPrivilegeSet(); $xfer += $this->privileges->read($input); } else { $xfer += $input->skip($ftype); @@ -2582,7 +2582,7 @@ class metastore_Table { } -class metastore_Partition { +class Partition { static $_TSPEC; public $values = null; @@ -2624,7 +2624,7 @@ class metastore_Partition { 6 => array( 'var' => 'sd', 'type' => TType::STRUCT, - 'class' => 'metastore_StorageDescriptor', + 'class' => 'StorageDescriptor', ), 7 => array( 'var' => 'parameters', @@ -2641,7 +2641,7 @@ class metastore_Partition { 8 => array( 'var' => 'privileges', 'type' => TType::STRUCT, - 'class' => 'metastore_PrincipalPrivilegeSet', + 'class' => 'PrincipalPrivilegeSet', ), ); } @@ -2739,7 +2739,7 @@ class metastore_Partition { break; case 6: if ($ftype == TType::STRUCT) { - $this->sd = new metastore_StorageDescriptor(); + $this->sd = new StorageDescriptor(); $xfer += $this->sd->read($input); } else { $xfer += $input->skip($ftype); @@ -2767,7 +2767,7 @@ class metastore_Partition { break; case 8: if ($ftype == TType::STRUCT) { - $this->privileges = new metastore_PrincipalPrivilegeSet(); + $this->privileges = new PrincipalPrivilegeSet(); $xfer += $this->privileges->read($input); } else { $xfer += $input->skip($ftype); @@ -2864,7 +2864,7 @@ class metastore_Partition { } -class metastore_Index { +class Index { static $_TSPEC; public $indexName = null; @@ -2912,7 +2912,7 @@ class metastore_Index { 8 => array( 'var' => 'sd', 'type' => TType::STRUCT, - 'class' => 'metastore_StorageDescriptor', + 'class' => 'StorageDescriptor', ), 9 => array( 'var' => 'parameters', @@ -3036,7 +3036,7 @@ class metastore_Index { break; case 8: if ($ftype == TType::STRUCT) { - $this->sd = new metastore_StorageDescriptor(); + $this->sd = new StorageDescriptor(); $xfer += $this->sd->read($input); } else { $xfer += $input->skip($ftype); @@ -3155,7 +3155,7 @@ class metastore_Index { } -class metastore_Schema { +class Schema { static $_TSPEC; public $fieldSchemas = null; @@ -3170,7 +3170,7 @@ class metastore_Schema { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => 'metastore_FieldSchema', + 'class' => 'FieldSchema', ), ), 2 => array( @@ -3225,7 +3225,7 @@ class metastore_Schema { for ($_i162 = 0; $_i162 < $_size158; ++$_i162) { $elem163 = null; - $elem163 = new metastore_FieldSchema(); + $elem163 = new FieldSchema(); $xfer += $elem163->read($input); $this->fieldSchemas []= $elem163; } @@ -3309,7 +3309,7 @@ class metastore_Schema { } -class metastore_MetaException extends TException { +class MetaException extends TException { static $_TSPEC; public $message = null; @@ -3381,7 +3381,7 @@ class metastore_MetaException extends TException { } -class metastore_UnknownTableException extends TException { +class UnknownTableException extends TException { static $_TSPEC; public $message = null; @@ -3453,7 +3453,7 @@ class metastore_UnknownTableException extends TException { } -class metastore_UnknownDBException extends TException { +class UnknownDBException extends TException { static $_TSPEC; public $message = null; @@ -3525,7 +3525,7 @@ class metastore_UnknownDBException extends TException { } -class metastore_AlreadyExistsException extends TException { +class AlreadyExistsException extends TException { static $_TSPEC; public $message = null; @@ -3597,7 +3597,7 @@ class metastore_AlreadyExistsException extends TException { } -class metastore_InvalidPartitionException extends TException { +class InvalidPartitionException extends TException { static $_TSPEC; public $message = null; @@ -3669,7 +3669,7 @@ class metastore_InvalidPartitionException extends TException { } -class metastore_UnknownPartitionException extends TException { +class UnknownPartitionException extends TException { static $_TSPEC; public $message = null; @@ -3741,7 +3741,7 @@ class metastore_UnknownPartitionException extends TException { } -class metastore_InvalidObjectException extends TException { +class InvalidObjectException extends TException { static $_TSPEC; public $message = null; @@ -3813,7 +3813,7 @@ class metastore_InvalidObjectException extends TException { } -class metastore_NoSuchObjectException extends TException { +class NoSuchObjectException extends TException { static $_TSPEC; public $message = null; @@ -3885,7 +3885,7 @@ class metastore_NoSuchObjectException extends TException { } -class metastore_IndexAlreadyExistsException extends TException { +class IndexAlreadyExistsException extends TException { static $_TSPEC; public $message = null; @@ -3957,7 +3957,7 @@ class metastore_IndexAlreadyExistsException extends TException { } -class metastore_InvalidOperationException extends TException { +class InvalidOperationException extends TException { static $_TSPEC; public $message = null; @@ -4029,7 +4029,7 @@ class metastore_InvalidOperationException extends TException { } -class metastore_ConfigValSecurityException extends TException { +class ConfigValSecurityException extends TException { static $_TSPEC; public $message = null; diff --git metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote old mode 100644 new mode 100755 index 59803b0..f48794f --- metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Autogenerated by Thrift +# Autogenerated by Thrift Compiler (0.7.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py index 092dd1b..70d4ef8 100644 --- metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift +# Autogenerated by Thrift Compiler (0.7.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -571,11 +571,11 @@ class Client(fb303.FacebookService.Client, Iface): result = create_database_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 - if result.o3 != None: + if result.o3 is not None: raise result.o3 return @@ -605,11 +605,11 @@ class Client(fb303.FacebookService.Client, Iface): result = get_database_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_database failed: unknown result"); @@ -643,11 +643,11 @@ class Client(fb303.FacebookService.Client, Iface): result = drop_database_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 - if result.o3 != None: + if result.o3 is not None: raise result.o3 return @@ -677,9 +677,9 @@ class Client(fb303.FacebookService.Client, Iface): result = get_databases_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_databases failed: unknown result"); @@ -704,9 +704,9 @@ class Client(fb303.FacebookService.Client, Iface): result = get_all_databases_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_databases failed: unknown result"); @@ -738,9 +738,9 @@ class Client(fb303.FacebookService.Client, Iface): result = alter_database_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 return @@ -770,11 +770,11 @@ class Client(fb303.FacebookService.Client, Iface): result = get_type_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_type failed: unknown result"); @@ -804,13 +804,13 @@ class Client(fb303.FacebookService.Client, Iface): result = create_type_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 - if result.o3 != None: + if result.o3 is not None: raise result.o3 raise TApplicationException(TApplicationException.MISSING_RESULT, "create_type failed: unknown result"); @@ -840,11 +840,11 @@ class Client(fb303.FacebookService.Client, Iface): result = drop_type_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_type failed: unknown result"); @@ -874,9 +874,9 @@ class Client(fb303.FacebookService.Client, Iface): result = get_type_all_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o2 != None: + if result.o2 is not None: raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_type_all failed: unknown result"); @@ -908,13 +908,13 @@ class Client(fb303.FacebookService.Client, Iface): result = get_fields_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 - if result.o3 != None: + if result.o3 is not None: raise result.o3 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_fields failed: unknown result"); @@ -946,13 +946,13 @@ class Client(fb303.FacebookService.Client, Iface): result = get_schema_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 - if result.o3 != None: + if result.o3 is not None: raise result.o3 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_schema failed: unknown result"); @@ -982,13 +982,13 @@ class Client(fb303.FacebookService.Client, Iface): result = create_table_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 - if result.o3 != None: + if result.o3 is not None: raise result.o3 - if result.o4 != None: + if result.o4 is not None: raise result.o4 return @@ -1022,9 +1022,9 @@ class Client(fb303.FacebookService.Client, Iface): result = drop_table_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o3 != None: + if result.o3 is not None: raise result.o3 return @@ -1056,9 +1056,9 @@ class Client(fb303.FacebookService.Client, Iface): result = get_tables_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_tables failed: unknown result"); @@ -1088,9 +1088,9 @@ class Client(fb303.FacebookService.Client, Iface): result = get_all_tables_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_tables failed: unknown result"); @@ -1122,11 +1122,11 @@ class Client(fb303.FacebookService.Client, Iface): result = get_table_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table failed: unknown result"); @@ -1158,13 +1158,13 @@ class Client(fb303.FacebookService.Client, Iface): result = get_table_objects_by_name_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 - if result.o3 != None: + if result.o3 is not None: raise result.o3 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_objects_by_name failed: unknown result"); @@ -1198,13 +1198,13 @@ class Client(fb303.FacebookService.Client, Iface): result = get_table_names_by_filter_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 - if result.o3 != None: + if result.o3 is not None: raise result.o3 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_names_by_filter failed: unknown result"); @@ -1238,9 +1238,9 @@ class Client(fb303.FacebookService.Client, Iface): result = alter_table_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 return @@ -1270,13 +1270,13 @@ class Client(fb303.FacebookService.Client, Iface): result = add_partition_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 - if result.o3 != None: + if result.o3 is not None: raise result.o3 raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partition failed: unknown result"); @@ -1306,13 +1306,13 @@ class Client(fb303.FacebookService.Client, Iface): result = add_partitions_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 - if result.o3 != None: + if result.o3 is not None: raise result.o3 raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partitions failed: unknown result"); @@ -1346,13 +1346,13 @@ class Client(fb303.FacebookService.Client, Iface): result = append_partition_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 - if result.o3 != None: + if result.o3 is not None: raise result.o3 raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition failed: unknown result"); @@ -1386,13 +1386,13 @@ class Client(fb303.FacebookService.Client, Iface): result = append_partition_by_name_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 - if result.o3 != None: + if result.o3 is not None: raise result.o3 raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition_by_name failed: unknown result"); @@ -1428,11 +1428,11 @@ class Client(fb303.FacebookService.Client, Iface): result = drop_partition_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition failed: unknown result"); @@ -1468,11 +1468,11 @@ class Client(fb303.FacebookService.Client, Iface): result = drop_partition_by_name_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_by_name failed: unknown result"); @@ -1506,11 +1506,11 @@ class Client(fb303.FacebookService.Client, Iface): result = get_partition_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition failed: unknown result"); @@ -1548,11 +1548,11 @@ class Client(fb303.FacebookService.Client, Iface): result = get_partition_with_auth_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_with_auth failed: unknown result"); @@ -1586,11 +1586,11 @@ class Client(fb303.FacebookService.Client, Iface): result = get_partition_by_name_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_by_name failed: unknown result"); @@ -1624,11 +1624,11 @@ class Client(fb303.FacebookService.Client, Iface): result = get_partitions_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions failed: unknown result"); @@ -1666,11 +1666,11 @@ class Client(fb303.FacebookService.Client, Iface): result = get_partitions_with_auth_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_with_auth failed: unknown result"); @@ -1704,9 +1704,9 @@ class Client(fb303.FacebookService.Client, Iface): result = get_partition_names_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o2 != None: + if result.o2 is not None: raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names failed: unknown result"); @@ -1742,9 +1742,9 @@ class Client(fb303.FacebookService.Client, Iface): result = get_partitions_ps_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_ps failed: unknown result"); @@ -1784,11 +1784,11 @@ class Client(fb303.FacebookService.Client, Iface): result = get_partitions_ps_with_auth_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_ps_with_auth failed: unknown result"); @@ -1824,9 +1824,9 @@ class Client(fb303.FacebookService.Client, Iface): result = get_partition_names_ps_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names_ps failed: unknown result"); @@ -1862,11 +1862,11 @@ class Client(fb303.FacebookService.Client, Iface): result = get_partitions_by_filter_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_filter failed: unknown result"); @@ -1900,11 +1900,11 @@ class Client(fb303.FacebookService.Client, Iface): result = get_partitions_by_names_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_names failed: unknown result"); @@ -1938,9 +1938,9 @@ class Client(fb303.FacebookService.Client, Iface): result = alter_partition_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 return @@ -1972,9 +1972,9 @@ class Client(fb303.FacebookService.Client, Iface): result = get_config_value_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_config_value failed: unknown result"); @@ -2004,9 +2004,9 @@ class Client(fb303.FacebookService.Client, Iface): result = partition_name_to_vals_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_to_vals failed: unknown result"); @@ -2036,9 +2036,9 @@ class Client(fb303.FacebookService.Client, Iface): result = partition_name_to_spec_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_to_spec failed: unknown result"); @@ -2074,17 +2074,17 @@ class Client(fb303.FacebookService.Client, Iface): result = markPartitionForEvent_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 - if result.o3 != None: + if result.o3 is not None: raise result.o3 - if result.o4 != None: + if result.o4 is not None: raise result.o4 - if result.o5 != None: + if result.o5 is not None: raise result.o5 - if result.o6 != None: + if result.o6 is not None: raise result.o6 return @@ -2120,19 +2120,19 @@ class Client(fb303.FacebookService.Client, Iface): result = isPartitionMarkedForEvent_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 - if result.o3 != None: + if result.o3 is not None: raise result.o3 - if result.o4 != None: + if result.o4 is not None: raise result.o4 - if result.o5 != None: + if result.o5 is not None: raise result.o5 - if result.o6 != None: + if result.o6 is not None: raise result.o6 raise TApplicationException(TApplicationException.MISSING_RESULT, "isPartitionMarkedForEvent failed: unknown result"); @@ -2164,13 +2164,13 @@ class Client(fb303.FacebookService.Client, Iface): result = add_index_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 - if result.o3 != None: + if result.o3 is not None: raise result.o3 raise TApplicationException(TApplicationException.MISSING_RESULT, "add_index failed: unknown result"); @@ -2206,9 +2206,9 @@ class Client(fb303.FacebookService.Client, Iface): result = alter_index_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 return @@ -2244,11 +2244,11 @@ class Client(fb303.FacebookService.Client, Iface): result = drop_index_by_name_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_index_by_name failed: unknown result"); @@ -2282,11 +2282,11 @@ class Client(fb303.FacebookService.Client, Iface): result = get_index_by_name_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_index_by_name failed: unknown result"); @@ -2320,11 +2320,11 @@ class Client(fb303.FacebookService.Client, Iface): result = get_indexes_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 - if result.o2 != None: + if result.o2 is not None: raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_indexes failed: unknown result"); @@ -2358,9 +2358,9 @@ class Client(fb303.FacebookService.Client, Iface): result = get_index_names_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o2 != None: + if result.o2 is not None: raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_index_names failed: unknown result"); @@ -2390,9 +2390,9 @@ class Client(fb303.FacebookService.Client, Iface): result = create_role_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "create_role failed: unknown result"); @@ -2422,9 +2422,9 @@ class Client(fb303.FacebookService.Client, Iface): result = drop_role_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_role failed: unknown result"); @@ -2449,9 +2449,9 @@ class Client(fb303.FacebookService.Client, Iface): result = get_role_names_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_role_names failed: unknown result"); @@ -2491,9 +2491,9 @@ class Client(fb303.FacebookService.Client, Iface): result = grant_role_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_role failed: unknown result"); @@ -2527,9 +2527,9 @@ class Client(fb303.FacebookService.Client, Iface): result = revoke_role_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "revoke_role failed: unknown result"); @@ -2561,9 +2561,9 @@ class Client(fb303.FacebookService.Client, Iface): result = list_roles_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "list_roles failed: unknown result"); @@ -2597,9 +2597,9 @@ class Client(fb303.FacebookService.Client, Iface): result = get_privilege_set_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_privilege_set failed: unknown result"); @@ -2633,9 +2633,9 @@ class Client(fb303.FacebookService.Client, Iface): result = list_privileges_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "list_privileges failed: unknown result"); @@ -2665,9 +2665,9 @@ class Client(fb303.FacebookService.Client, Iface): result = grant_privileges_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_privileges failed: unknown result"); @@ -2697,9 +2697,9 @@ class Client(fb303.FacebookService.Client, Iface): result = revoke_privileges_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "revoke_privileges failed: unknown result"); @@ -2731,9 +2731,9 @@ class Client(fb303.FacebookService.Client, Iface): result = get_delegation_token_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_delegation_token failed: unknown result"); @@ -2763,9 +2763,9 @@ class Client(fb303.FacebookService.Client, Iface): result = renew_delegation_token_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.success != None: + if result.success is not None: return result.success - if result.o1 != None: + if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "renew_delegation_token failed: unknown result"); @@ -2795,7 +2795,7 @@ class Client(fb303.FacebookService.Client, Iface): result = cancel_delegation_token_result() result.read(self._iprot) self._iprot.readMessageEnd() - if result.o1 != None: + if result.o1 is not None: raise result.o1 return @@ -3909,14 +3909,15 @@ class create_database_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('create_database_args') - if self.database != None: + if self.database is not None: oprot.writeFieldBegin('database', TType.STRUCT, 1) self.database.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -3987,22 +3988,23 @@ class create_database_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('create_database_result') - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + if self.o2 is not None: oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 != None: + if self.o3 is not None: oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -4054,14 +4056,15 @@ class get_database_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_database_args') - if self.name != None: + if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 1) oprot.writeString(self.name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -4131,22 +4134,23 @@ class get_database_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_database_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + 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 validate(self): + return def __repr__(self): @@ -4214,22 +4218,23 @@ class drop_database_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('drop_database_args') - if self.name != None: + if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 1) oprot.writeString(self.name) oprot.writeFieldEnd() - if self.deleteData != None: + if self.deleteData is not None: oprot.writeFieldBegin('deleteData', TType.BOOL, 2) oprot.writeBool(self.deleteData) oprot.writeFieldEnd() - if self.cascade != None: + if self.cascade is not None: oprot.writeFieldBegin('cascade', TType.BOOL, 3) oprot.writeBool(self.cascade) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -4300,22 +4305,23 @@ class drop_database_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('drop_database_result') - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + if self.o2 is not None: oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 != None: + if self.o3 is not None: oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -4367,14 +4373,15 @@ class get_databases_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_databases_args') - if self.pattern != None: + if self.pattern is not None: oprot.writeFieldBegin('pattern', TType.STRING, 1) oprot.writeString(self.pattern) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -4439,21 +4446,22 @@ class get_databases_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_databases_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter180 in self.success: oprot.writeString(iter180) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -4493,8 +4501,9 @@ class get_all_databases_args: oprot.writeStructBegin('get_all_databases_args') oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -4559,21 +4568,22 @@ class get_all_databases_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_all_databases_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter187 in self.success: oprot.writeString(iter187) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -4634,18 +4644,19 @@ class alter_database_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('alter_database_args') - if self.dbname != None: + if self.dbname is not None: oprot.writeFieldBegin('dbname', TType.STRING, 1) oprot.writeString(self.dbname) oprot.writeFieldEnd() - if self.db != None: + if self.db is not None: oprot.writeFieldBegin('db', TType.STRUCT, 2) self.db.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -4707,18 +4718,19 @@ class alter_database_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('alter_database_result') - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + 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 validate(self): + return def __repr__(self): @@ -4770,14 +4782,15 @@ class get_type_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_type_args') - if self.name != None: + if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 1) oprot.writeString(self.name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -4847,22 +4860,23 @@ class get_type_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_type_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + 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 validate(self): + return def __repr__(self): @@ -4915,14 +4929,15 @@ class create_type_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('create_type_args') - if self.type != None: + if self.type is not None: oprot.writeFieldBegin('type', TType.STRUCT, 1) self.type.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -5000,26 +5015,27 @@ class create_type_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('create_type_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + if self.o2 is not None: oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 != None: + if self.o3 is not None: oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -5071,14 +5087,15 @@ class drop_type_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('drop_type_args') - if self.type != None: + if self.type is not None: oprot.writeFieldBegin('type', TType.STRING, 1) oprot.writeString(self.type) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -5147,22 +5164,23 @@ class drop_type_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('drop_type_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + 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 validate(self): + return def __repr__(self): @@ -5214,14 +5232,15 @@ class get_type_all_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_type_all_args') - if self.name != None: + if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 1) oprot.writeString(self.name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -5288,7 +5307,7 @@ class get_type_all_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_type_all_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) for kiter195,viter196 in self.success.items(): @@ -5296,14 +5315,15 @@ class get_type_all_result: viter196.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() - if self.o2 != None: + if self.o2 is not None: oprot.writeFieldBegin('o2', TType.STRUCT, 1) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -5363,18 +5383,19 @@ class get_fields_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_fields_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.table_name != None: + if self.table_name is not None: oprot.writeFieldBegin('table_name', TType.STRING, 2) oprot.writeString(self.table_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -5458,29 +5479,30 @@ class get_fields_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_fields_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter203 in self.success: iter203.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + if self.o2 is not None: oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 != None: + if self.o3 is not None: oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -5540,18 +5562,19 @@ class get_schema_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_schema_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.table_name != None: + if self.table_name is not None: oprot.writeFieldBegin('table_name', TType.STRING, 2) oprot.writeString(self.table_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -5635,29 +5658,30 @@ class get_schema_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_schema_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter210 in self.success: iter210.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + if self.o2 is not None: oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 != None: + if self.o3 is not None: oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -5710,14 +5734,15 @@ class create_table_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('create_table_args') - if self.tbl != None: + if self.tbl is not None: oprot.writeFieldBegin('tbl', TType.STRUCT, 1) self.tbl.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -5797,26 +5822,27 @@ class create_table_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('create_table_result') - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + if self.o2 is not None: oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 != None: + if self.o3 is not None: oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() - if self.o4 != None: + if self.o4 is not None: oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -5884,22 +5910,23 @@ class drop_table_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('drop_table_args') - if self.dbname != None: + if self.dbname is not None: oprot.writeFieldBegin('dbname', TType.STRING, 1) oprot.writeString(self.dbname) oprot.writeFieldEnd() - if self.name != None: + if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 2) oprot.writeString(self.name) oprot.writeFieldEnd() - if self.deleteData != None: + if self.deleteData is not None: oprot.writeFieldBegin('deleteData', TType.BOOL, 3) oprot.writeBool(self.deleteData) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -5961,18 +5988,19 @@ class drop_table_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('drop_table_result') - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o3 != None: + if self.o3 is not None: oprot.writeFieldBegin('o3', TType.STRUCT, 2) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -6032,18 +6060,19 @@ class get_tables_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_tables_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.pattern != None: + if self.pattern is not None: oprot.writeFieldBegin('pattern', TType.STRING, 2) oprot.writeString(self.pattern) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -6108,21 +6137,22 @@ class get_tables_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_tables_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter217 in self.success: oprot.writeString(iter217) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -6174,14 +6204,15 @@ class get_all_tables_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_all_tables_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -6246,21 +6277,22 @@ class get_all_tables_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_all_tables_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter224 in self.success: oprot.writeString(iter224) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -6320,18 +6352,19 @@ class get_table_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_table_args') - if self.dbname != None: + if self.dbname is not None: oprot.writeFieldBegin('dbname', TType.STRING, 1) oprot.writeString(self.dbname) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -6401,22 +6434,23 @@ class get_table_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_table_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + 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 validate(self): + return def __repr__(self): @@ -6481,11 +6515,11 @@ class get_table_objects_by_name_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_table_objects_by_name_args') - if self.dbname != None: + if self.dbname is not None: oprot.writeFieldBegin('dbname', TType.STRING, 1) oprot.writeString(self.dbname) oprot.writeFieldEnd() - if self.tbl_names != None: + if self.tbl_names is not None: oprot.writeFieldBegin('tbl_names', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.tbl_names)) for iter231 in self.tbl_names: @@ -6494,8 +6528,9 @@ class get_table_objects_by_name_args: oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -6579,29 +6614,30 @@ class get_table_objects_by_name_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_table_objects_by_name_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter238 in self.success: iter238.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + if self.o2 is not None: oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 != None: + if self.o3 is not None: oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -6669,22 +6705,23 @@ class get_table_names_by_filter_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_table_names_by_filter_args') - if self.dbname != None: + if self.dbname is not None: oprot.writeFieldBegin('dbname', TType.STRING, 1) oprot.writeString(self.dbname) oprot.writeFieldEnd() - if self.filter != None: + if self.filter is not None: oprot.writeFieldBegin('filter', TType.STRING, 2) oprot.writeString(self.filter) oprot.writeFieldEnd() - if self.max_tables != None: + if self.max_tables is not None: oprot.writeFieldBegin('max_tables', TType.I16, 3) oprot.writeI16(self.max_tables) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -6767,29 +6804,30 @@ class get_table_names_by_filter_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_table_names_by_filter_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter245 in self.success: oprot.writeString(iter245) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + if self.o2 is not None: oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 != None: + if self.o3 is not None: oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -6858,22 +6896,23 @@ class alter_table_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('alter_table_args') - if self.dbname != None: + if self.dbname is not None: oprot.writeFieldBegin('dbname', TType.STRING, 1) oprot.writeString(self.dbname) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.new_tbl != None: + if self.new_tbl is not None: oprot.writeFieldBegin('new_tbl', TType.STRUCT, 3) self.new_tbl.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -6935,18 +6974,19 @@ class alter_table_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('alter_table_result') - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + 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 validate(self): + return def __repr__(self): @@ -6999,14 +7039,15 @@ class add_partition_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('add_partition_args') - if self.new_part != None: + if self.new_part is not None: oprot.writeFieldBegin('new_part', TType.STRUCT, 1) self.new_part.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -7085,26 +7126,27 @@ class add_partition_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('add_partition_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + if self.o2 is not None: oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 != None: + if self.o3 is not None: oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -7162,7 +7204,7 @@ class add_partitions_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('add_partitions_args') - if self.new_parts != None: + if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) for iter252 in self.new_parts: @@ -7171,8 +7213,9 @@ class add_partitions_args: oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -7250,26 +7293,27 @@ class add_partitions_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('add_partitions_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.I32, 0) oprot.writeI32(self.success) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + if self.o2 is not None: oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 != None: + if self.o3 is not None: oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -7342,15 +7386,15 @@ class append_partition_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('append_partition_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.part_vals != None: + if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) for iter259 in self.part_vals: @@ -7359,8 +7403,9 @@ class append_partition_args: oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -7439,26 +7484,27 @@ class append_partition_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('append_partition_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + if self.o2 is not None: oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 != None: + if self.o3 is not None: oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -7526,22 +7572,23 @@ class append_partition_by_name_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('append_partition_by_name_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.part_name != None: + if self.part_name is not None: oprot.writeFieldBegin('part_name', TType.STRING, 3) oprot.writeString(self.part_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -7620,26 +7667,27 @@ class append_partition_by_name_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('append_partition_by_name_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + if self.o2 is not None: oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 != None: + if self.o3 is not None: oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -7720,29 +7768,30 @@ class drop_partition_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('drop_partition_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.part_vals != None: + if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) for iter266 in self.part_vals: oprot.writeString(iter266) oprot.writeListEnd() oprot.writeFieldEnd() - if self.deleteData != None: + if self.deleteData is not None: oprot.writeFieldBegin('deleteData', TType.BOOL, 4) oprot.writeBool(self.deleteData) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -7811,22 +7860,23 @@ class drop_partition_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('drop_partition_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + 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 validate(self): + return def __repr__(self): @@ -7902,26 +7952,27 @@ class drop_partition_by_name_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('drop_partition_by_name_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.part_name != None: + if self.part_name is not None: oprot.writeFieldBegin('part_name', TType.STRING, 3) oprot.writeString(self.part_name) oprot.writeFieldEnd() - if self.deleteData != None: + if self.deleteData is not None: oprot.writeFieldBegin('deleteData', TType.BOOL, 4) oprot.writeBool(self.deleteData) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -7990,22 +8041,23 @@ class drop_partition_by_name_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('drop_partition_by_name_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + 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 validate(self): + return def __repr__(self): @@ -8078,15 +8130,15 @@ class get_partition_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partition_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.part_vals != None: + if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) for iter273 in self.part_vals: @@ -8095,8 +8147,9 @@ class get_partition_args: oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -8166,22 +8219,23 @@ class get_partition_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partition_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + 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 validate(self): + return def __repr__(self): @@ -8275,26 +8329,26 @@ class get_partition_with_auth_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partition_with_auth_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.part_vals != None: + if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) for iter286 in self.part_vals: oprot.writeString(iter286) oprot.writeListEnd() oprot.writeFieldEnd() - if self.user_name != None: + if self.user_name is not None: oprot.writeFieldBegin('user_name', TType.STRING, 4) oprot.writeString(self.user_name) oprot.writeFieldEnd() - if self.group_names != None: + if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.group_names)) for iter287 in self.group_names: @@ -8303,8 +8357,9 @@ class get_partition_with_auth_args: oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -8374,22 +8429,23 @@ class get_partition_with_auth_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partition_with_auth_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + 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 validate(self): + return def __repr__(self): @@ -8457,22 +8513,23 @@ class get_partition_by_name_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partition_by_name_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.part_name != None: + if self.part_name is not None: oprot.writeFieldBegin('part_name', TType.STRING, 3) oprot.writeString(self.part_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -8542,22 +8599,23 @@ class get_partition_by_name_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partition_by_name_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + 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 validate(self): + return def __repr__(self): @@ -8625,22 +8683,23 @@ class get_partitions_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partitions_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.max_parts != None: + if self.max_parts is not None: oprot.writeFieldBegin('max_parts', TType.I16, 3) oprot.writeI16(self.max_parts) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -8715,25 +8774,26 @@ class get_partitions_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partitions_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter294 in self.success: iter294.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + 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 validate(self): + return def __repr__(self): @@ -8822,23 +8882,23 @@ class get_partitions_with_auth_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partitions_with_auth_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.max_parts != None: + if self.max_parts is not None: oprot.writeFieldBegin('max_parts', TType.I16, 3) oprot.writeI16(self.max_parts) oprot.writeFieldEnd() - if self.user_name != None: + if self.user_name is not None: oprot.writeFieldBegin('user_name', TType.STRING, 4) oprot.writeString(self.user_name) oprot.writeFieldEnd() - if self.group_names != None: + if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.group_names)) for iter301 in self.group_names: @@ -8847,8 +8907,9 @@ class get_partitions_with_auth_args: oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -8923,25 +8984,26 @@ class get_partitions_with_auth_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partitions_with_auth_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter308 in self.success: iter308.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + 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 validate(self): + return def __repr__(self): @@ -9009,22 +9071,23 @@ class get_partition_names_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partition_names_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.max_parts != None: + if self.max_parts is not None: oprot.writeFieldBegin('max_parts', TType.I16, 3) oprot.writeI16(self.max_parts) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -9089,21 +9152,22 @@ class get_partition_names_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partition_names_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter315 in self.success: oprot.writeString(iter315) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o2 != None: + if self.o2 is not None: oprot.writeFieldBegin('o2', TType.STRUCT, 1) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -9184,29 +9248,30 @@ class get_partitions_ps_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partitions_ps_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.part_vals != None: + if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) for iter322 in self.part_vals: oprot.writeString(iter322) oprot.writeListEnd() oprot.writeFieldEnd() - if self.max_parts != None: + if self.max_parts is not None: oprot.writeFieldBegin('max_parts', TType.I16, 4) oprot.writeI16(self.max_parts) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -9272,21 +9337,22 @@ class get_partitions_ps_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partitions_ps_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter329 in self.success: iter329.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -9388,30 +9454,30 @@ class get_partitions_ps_with_auth_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partitions_ps_with_auth_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.part_vals != None: + if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) for iter342 in self.part_vals: oprot.writeString(iter342) oprot.writeListEnd() oprot.writeFieldEnd() - if self.max_parts != None: + if self.max_parts is not None: oprot.writeFieldBegin('max_parts', TType.I16, 4) oprot.writeI16(self.max_parts) oprot.writeFieldEnd() - if self.user_name != None: + if self.user_name is not None: oprot.writeFieldBegin('user_name', TType.STRING, 5) oprot.writeString(self.user_name) oprot.writeFieldEnd() - if self.group_names != None: + if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 6) oprot.writeListBegin(TType.STRING, len(self.group_names)) for iter343 in self.group_names: @@ -9420,8 +9486,9 @@ class get_partitions_ps_with_auth_args: oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -9496,25 +9563,26 @@ class get_partitions_ps_with_auth_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partitions_ps_with_auth_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter350 in self.success: iter350.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + 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 validate(self): + return def __repr__(self): @@ -9595,29 +9663,30 @@ class get_partition_names_ps_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partition_names_ps_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.part_vals != None: + if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) for iter357 in self.part_vals: oprot.writeString(iter357) oprot.writeListEnd() oprot.writeFieldEnd() - if self.max_parts != None: + if self.max_parts is not None: oprot.writeFieldBegin('max_parts', TType.I16, 4) oprot.writeI16(self.max_parts) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -9682,21 +9751,22 @@ class get_partition_names_ps_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partition_names_ps_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter364 in self.success: oprot.writeString(iter364) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -9772,26 +9842,27 @@ class get_partitions_by_filter_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partitions_by_filter_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.filter != None: + if self.filter is not None: oprot.writeFieldBegin('filter', TType.STRING, 3) oprot.writeString(self.filter) oprot.writeFieldEnd() - if self.max_parts != None: + if self.max_parts is not None: oprot.writeFieldBegin('max_parts', TType.I16, 4) oprot.writeI16(self.max_parts) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -9866,25 +9937,26 @@ class get_partitions_by_filter_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partitions_by_filter_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter371 in self.success: iter371.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + 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 validate(self): + return def __repr__(self): @@ -9957,15 +10029,15 @@ class get_partitions_by_names_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partitions_by_names_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.names != None: + if self.names is not None: oprot.writeFieldBegin('names', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.names)) for iter378 in self.names: @@ -9974,8 +10046,9 @@ class get_partitions_by_names_args: oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -10050,25 +10123,26 @@ class get_partitions_by_names_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_partitions_by_names_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter385 in self.success: iter385.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + 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 validate(self): + return def __repr__(self): @@ -10137,22 +10211,23 @@ class alter_partition_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('alter_partition_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.new_part != None: + if self.new_part is not None: oprot.writeFieldBegin('new_part', TType.STRUCT, 3) self.new_part.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -10214,18 +10289,19 @@ class alter_partition_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('alter_partition_result') - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + 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 validate(self): + return def __repr__(self): @@ -10285,18 +10361,19 @@ class get_config_value_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_config_value_args') - if self.name != None: + if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 1) oprot.writeString(self.name) oprot.writeFieldEnd() - if self.defaultValue != None: + if self.defaultValue is not None: oprot.writeFieldBegin('defaultValue', TType.STRING, 2) oprot.writeString(self.defaultValue) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -10356,18 +10433,19 @@ class get_config_value_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_config_value_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -10419,14 +10497,15 @@ class partition_name_to_vals_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('partition_name_to_vals_args') - if self.part_name != None: + if self.part_name is not None: oprot.writeFieldBegin('part_name', TType.STRING, 1) oprot.writeString(self.part_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -10491,21 +10570,22 @@ class partition_name_to_vals_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('partition_name_to_vals_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter392 in self.success: oprot.writeString(iter392) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -10557,14 +10637,15 @@ class partition_name_to_spec_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('partition_name_to_spec_args') - if self.part_name != None: + if self.part_name is not None: oprot.writeFieldBegin('part_name', TType.STRING, 1) oprot.writeString(self.part_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -10630,7 +10711,7 @@ class partition_name_to_spec_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('partition_name_to_spec_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter400,viter401 in self.success.items(): @@ -10638,14 +10719,15 @@ class partition_name_to_spec_result: oprot.writeString(viter401) oprot.writeMapEnd() oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -10727,15 +10809,15 @@ class markPartitionForEvent_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('markPartitionForEvent_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.part_vals != None: + 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 kiter409,viter410 in self.part_vals.items(): @@ -10743,14 +10825,15 @@ class markPartitionForEvent_args: oprot.writeString(viter410) oprot.writeMapEnd() oprot.writeFieldEnd() - if self.eventType != None: + if self.eventType is not None: oprot.writeFieldBegin('eventType', TType.I32, 4) oprot.writeI32(self.eventType) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -10848,34 +10931,35 @@ class markPartitionForEvent_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('markPartitionForEvent_result') - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + if self.o2 is not None: oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 != None: + if self.o3 is not None: oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() - if self.o4 != None: + if self.o4 is not None: oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() - if self.o5 != None: + if self.o5 is not None: oprot.writeFieldBegin('o5', TType.STRUCT, 5) self.o5.write(oprot) oprot.writeFieldEnd() - if self.o6 != None: + if self.o6 is not None: oprot.writeFieldBegin('o6', TType.STRUCT, 6) self.o6.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -10957,15 +11041,15 @@ class isPartitionMarkedForEvent_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('isPartitionMarkedForEvent_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.part_vals != None: + 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 kiter418,viter419 in self.part_vals.items(): @@ -10973,14 +11057,15 @@ class isPartitionMarkedForEvent_args: oprot.writeString(viter419) oprot.writeMapEnd() oprot.writeFieldEnd() - if self.eventType != None: + if self.eventType is not None: oprot.writeFieldBegin('eventType', TType.I32, 4) oprot.writeI32(self.eventType) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -11085,38 +11170,39 @@ class isPartitionMarkedForEvent_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('isPartitionMarkedForEvent_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + if self.o2 is not None: oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 != None: + if self.o3 is not None: oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() - if self.o4 != None: + if self.o4 is not None: oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() - if self.o5 != None: + if self.o5 is not None: oprot.writeFieldBegin('o5', TType.STRUCT, 5) self.o5.write(oprot) oprot.writeFieldEnd() - if self.o6 != None: + if self.o6 is not None: oprot.writeFieldBegin('o6', TType.STRUCT, 6) self.o6.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -11178,18 +11264,19 @@ class add_index_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('add_index_args') - if self.new_index != None: + if self.new_index is not None: oprot.writeFieldBegin('new_index', TType.STRUCT, 1) self.new_index.write(oprot) oprot.writeFieldEnd() - if self.index_table != None: + if self.index_table is not None: oprot.writeFieldBegin('index_table', TType.STRUCT, 2) self.index_table.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -11268,26 +11355,27 @@ class add_index_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('add_index_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + if self.o2 is not None: oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 != None: + if self.o3 is not None: oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -11364,26 +11452,27 @@ class alter_index_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('alter_index_args') - if self.dbname != None: + if self.dbname is not None: oprot.writeFieldBegin('dbname', TType.STRING, 1) oprot.writeString(self.dbname) oprot.writeFieldEnd() - if self.base_tbl_name != None: + if self.base_tbl_name is not None: oprot.writeFieldBegin('base_tbl_name', TType.STRING, 2) oprot.writeString(self.base_tbl_name) oprot.writeFieldEnd() - if self.idx_name != None: + if self.idx_name is not None: oprot.writeFieldBegin('idx_name', TType.STRING, 3) oprot.writeString(self.idx_name) oprot.writeFieldEnd() - if self.new_idx != None: + if self.new_idx is not None: oprot.writeFieldBegin('new_idx', TType.STRUCT, 4) self.new_idx.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -11445,18 +11534,19 @@ class alter_index_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('alter_index_result') - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + 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 validate(self): + return def __repr__(self): @@ -11532,26 +11622,27 @@ class drop_index_by_name_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('drop_index_by_name_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.index_name != None: + if self.index_name is not None: oprot.writeFieldBegin('index_name', TType.STRING, 3) oprot.writeString(self.index_name) oprot.writeFieldEnd() - if self.deleteData != None: + if self.deleteData is not None: oprot.writeFieldBegin('deleteData', TType.BOOL, 4) oprot.writeBool(self.deleteData) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -11620,22 +11711,23 @@ class drop_index_by_name_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('drop_index_by_name_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + 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 validate(self): + return def __repr__(self): @@ -11703,22 +11795,23 @@ class get_index_by_name_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_index_by_name_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.index_name != None: + if self.index_name is not None: oprot.writeFieldBegin('index_name', TType.STRING, 3) oprot.writeString(self.index_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -11788,22 +11881,23 @@ class get_index_by_name_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_index_by_name_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + 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 validate(self): + return def __repr__(self): @@ -11871,22 +11965,23 @@ class get_indexes_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_indexes_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.max_indexes != None: + if self.max_indexes is not None: oprot.writeFieldBegin('max_indexes', TType.I16, 3) oprot.writeI16(self.max_indexes) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -11961,25 +12056,26 @@ class get_indexes_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_indexes_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter426 in self.success: iter426.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 != None: + 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 validate(self): + return def __repr__(self): @@ -12047,22 +12143,23 @@ class get_index_names_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_index_names_args') - if self.db_name != None: + if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.tbl_name != None: + if self.tbl_name is not None: oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.max_indexes != None: + if self.max_indexes is not None: oprot.writeFieldBegin('max_indexes', TType.I16, 3) oprot.writeI16(self.max_indexes) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -12127,21 +12224,22 @@ class get_index_names_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_index_names_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter433 in self.success: oprot.writeString(iter433) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o2 != None: + if self.o2 is not None: oprot.writeFieldBegin('o2', TType.STRUCT, 1) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -12194,14 +12292,15 @@ class create_role_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('create_role_args') - if self.role != None: + if self.role is not None: oprot.writeFieldBegin('role', TType.STRUCT, 1) self.role.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -12261,18 +12360,19 @@ class create_role_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('create_role_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -12324,14 +12424,15 @@ class drop_role_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('drop_role_args') - if self.role_name != None: + if self.role_name is not None: oprot.writeFieldBegin('role_name', TType.STRING, 1) oprot.writeString(self.role_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -12391,18 +12492,19 @@ class drop_role_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('drop_role_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -12442,8 +12544,9 @@ class get_role_names_args: oprot.writeStructBegin('get_role_names_args') oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -12508,21 +12611,22 @@ class get_role_names_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_role_names_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter440 in self.success: oprot.writeString(iter440) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -12614,34 +12718,35 @@ class grant_role_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('grant_role_args') - if self.role_name != None: + if self.role_name is not None: oprot.writeFieldBegin('role_name', TType.STRING, 1) oprot.writeString(self.role_name) oprot.writeFieldEnd() - if self.principal_name != None: + if self.principal_name is not None: oprot.writeFieldBegin('principal_name', TType.STRING, 2) oprot.writeString(self.principal_name) oprot.writeFieldEnd() - if self.principal_type != None: + if self.principal_type is not None: oprot.writeFieldBegin('principal_type', TType.I32, 3) oprot.writeI32(self.principal_type) oprot.writeFieldEnd() - if self.grantor != None: + if self.grantor is not None: oprot.writeFieldBegin('grantor', TType.STRING, 4) oprot.writeString(self.grantor) oprot.writeFieldEnd() - if self.grantorType != None: + if self.grantorType is not None: oprot.writeFieldBegin('grantorType', TType.I32, 5) oprot.writeI32(self.grantorType) oprot.writeFieldEnd() - if self.grant_option != None: + if self.grant_option is not None: oprot.writeFieldBegin('grant_option', TType.BOOL, 6) oprot.writeBool(self.grant_option) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -12701,18 +12806,19 @@ class grant_role_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('grant_role_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -12780,22 +12886,23 @@ class revoke_role_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('revoke_role_args') - if self.role_name != None: + if self.role_name is not None: oprot.writeFieldBegin('role_name', TType.STRING, 1) oprot.writeString(self.role_name) oprot.writeFieldEnd() - if self.principal_name != None: + if self.principal_name is not None: oprot.writeFieldBegin('principal_name', TType.STRING, 2) oprot.writeString(self.principal_name) oprot.writeFieldEnd() - if self.principal_type != None: + if self.principal_type is not None: oprot.writeFieldBegin('principal_type', TType.I32, 3) oprot.writeI32(self.principal_type) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -12855,18 +12962,19 @@ class revoke_role_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('revoke_role_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -12926,18 +13034,19 @@ class list_roles_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('list_roles_args') - if self.principal_name != None: + if self.principal_name is not None: oprot.writeFieldBegin('principal_name', TType.STRING, 1) oprot.writeString(self.principal_name) oprot.writeFieldEnd() - if self.principal_type != None: + if self.principal_type is not None: oprot.writeFieldBegin('principal_type', TType.I32, 2) oprot.writeI32(self.principal_type) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -13003,21 +13112,22 @@ class list_roles_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('list_roles_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter447 in self.success: iter447.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -13091,15 +13201,15 @@ class get_privilege_set_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_privilege_set_args') - if self.hiveObject != None: + if self.hiveObject is not None: oprot.writeFieldBegin('hiveObject', TType.STRUCT, 1) self.hiveObject.write(oprot) oprot.writeFieldEnd() - if self.user_name != None: + if self.user_name is not None: oprot.writeFieldBegin('user_name', TType.STRING, 2) oprot.writeString(self.user_name) oprot.writeFieldEnd() - if self.group_names != None: + if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.group_names)) for iter454 in self.group_names: @@ -13108,8 +13218,9 @@ class get_privilege_set_args: oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -13170,18 +13281,19 @@ class get_privilege_set_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_privilege_set_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -13250,22 +13362,23 @@ class list_privileges_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('list_privileges_args') - if self.principal_name != None: + if self.principal_name is not None: oprot.writeFieldBegin('principal_name', TType.STRING, 1) oprot.writeString(self.principal_name) oprot.writeFieldEnd() - if self.principal_type != None: + if self.principal_type is not None: oprot.writeFieldBegin('principal_type', TType.I32, 2) oprot.writeI32(self.principal_type) oprot.writeFieldEnd() - if self.hiveObject != None: + if self.hiveObject is not None: oprot.writeFieldBegin('hiveObject', TType.STRUCT, 3) self.hiveObject.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -13331,21 +13444,22 @@ class list_privileges_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('list_privileges_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter461 in self.success: iter461.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -13398,14 +13512,15 @@ class grant_privileges_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('grant_privileges_args') - if self.privileges != None: + if self.privileges is not None: oprot.writeFieldBegin('privileges', TType.STRUCT, 1) self.privileges.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -13465,18 +13580,19 @@ class grant_privileges_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('grant_privileges_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -13529,14 +13645,15 @@ class revoke_privileges_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('revoke_privileges_args') - if self.privileges != None: + if self.privileges is not None: oprot.writeFieldBegin('privileges', TType.STRUCT, 1) self.privileges.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -13596,18 +13713,19 @@ class revoke_privileges_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('revoke_privileges_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -13667,18 +13785,19 @@ class get_delegation_token_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_delegation_token_args') - if self.token_owner != None: + if self.token_owner is not None: oprot.writeFieldBegin('token_owner', TType.STRING, 1) oprot.writeString(self.token_owner) oprot.writeFieldEnd() - if self.renewer_kerberos_principal_name != None: + if self.renewer_kerberos_principal_name is not None: oprot.writeFieldBegin('renewer_kerberos_principal_name', TType.STRING, 2) oprot.writeString(self.renewer_kerberos_principal_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -13738,18 +13857,19 @@ class get_delegation_token_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('get_delegation_token_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.STRING, 0) oprot.writeString(self.success) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -13801,14 +13921,15 @@ class renew_delegation_token_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('renew_delegation_token_args') - if self.token_str_form != None: + if self.token_str_form is not None: oprot.writeFieldBegin('token_str_form', TType.STRING, 1) oprot.writeString(self.token_str_form) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -13868,18 +13989,19 @@ class renew_delegation_token_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('renew_delegation_token_result') - if self.success != None: + if self.success is not None: oprot.writeFieldBegin('success', TType.I64, 0) oprot.writeI64(self.success) oprot.writeFieldEnd() - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -13931,14 +14053,15 @@ class cancel_delegation_token_args: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('cancel_delegation_token_args') - if self.token_str_form != None: + if self.token_str_form is not None: oprot.writeFieldBegin('token_str_form', TType.STRING, 1) oprot.writeString(self.token_str_form) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -13991,14 +14114,15 @@ class cancel_delegation_token_result: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('cancel_delegation_token_result') - if self.o1 != None: + if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): diff --git metastore/src/gen/thrift/gen-py/hive_metastore/constants.py metastore/src/gen/thrift/gen-py/hive_metastore/constants.py index 3e91db2..8a49e98 100644 --- metastore/src/gen/thrift/gen-py/hive_metastore/constants.py +++ metastore/src/gen/thrift/gen-py/hive_metastore/constants.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift +# Autogenerated by Thrift Compiler (0.7.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py index 0ef05db..97ad9ba 100644 --- metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift +# Autogenerated by Thrift Compiler (0.7.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -114,18 +114,19 @@ class Version: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('Version') - if self.version != None: + if self.version is not None: oprot.writeFieldBegin('version', TType.STRING, 1) oprot.writeString(self.version) oprot.writeFieldEnd() - if self.comments != None: + if self.comments is not None: oprot.writeFieldBegin('comments', TType.STRING, 2) oprot.writeString(self.comments) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -193,22 +194,23 @@ class FieldSchema: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('FieldSchema') - if self.name != None: + if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 1) oprot.writeString(self.name) oprot.writeFieldEnd() - if self.type != None: + if self.type is not None: oprot.writeFieldBegin('type', TType.STRING, 2) oprot.writeString(self.type) oprot.writeFieldEnd() - if self.comment != None: + if self.comment is not None: oprot.writeFieldBegin('comment', TType.STRING, 3) oprot.writeString(self.comment) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -290,19 +292,19 @@ class Type: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('Type') - if self.name != None: + if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 1) oprot.writeString(self.name) oprot.writeFieldEnd() - if self.type1 != None: + if self.type1 is not None: oprot.writeFieldBegin('type1', TType.STRING, 2) oprot.writeString(self.type1) oprot.writeFieldEnd() - if self.type2 != None: + if self.type2 is not None: oprot.writeFieldBegin('type2', TType.STRING, 3) oprot.writeString(self.type2) oprot.writeFieldEnd() - if self.fields != None: + if self.fields is not None: oprot.writeFieldBegin('fields', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.fields)) for iter6 in self.fields: @@ -311,8 +313,9 @@ class Type: oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -401,33 +404,34 @@ class HiveObjectRef: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('HiveObjectRef') - if self.objectType != None: + if self.objectType is not None: oprot.writeFieldBegin('objectType', TType.I32, 1) oprot.writeI32(self.objectType) oprot.writeFieldEnd() - if self.dbName != None: + if self.dbName is not None: oprot.writeFieldBegin('dbName', TType.STRING, 2) oprot.writeString(self.dbName) oprot.writeFieldEnd() - if self.objectName != None: + if self.objectName is not None: oprot.writeFieldBegin('objectName', TType.STRING, 3) oprot.writeString(self.objectName) oprot.writeFieldEnd() - if self.partValues != None: + if self.partValues is not None: oprot.writeFieldBegin('partValues', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partValues)) for iter13 in self.partValues: oprot.writeString(iter13) oprot.writeListEnd() oprot.writeFieldEnd() - if self.columnName != None: + if self.columnName is not None: oprot.writeFieldBegin('columnName', TType.STRING, 5) oprot.writeString(self.columnName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -511,30 +515,31 @@ class PrivilegeGrantInfo: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('PrivilegeGrantInfo') - if self.privilege != None: + if self.privilege is not None: oprot.writeFieldBegin('privilege', TType.STRING, 1) oprot.writeString(self.privilege) oprot.writeFieldEnd() - if self.createTime != None: + if self.createTime is not None: oprot.writeFieldBegin('createTime', TType.I32, 2) oprot.writeI32(self.createTime) oprot.writeFieldEnd() - if self.grantor != None: + if self.grantor is not None: oprot.writeFieldBegin('grantor', TType.STRING, 3) oprot.writeString(self.grantor) oprot.writeFieldEnd() - if self.grantorType != None: + if self.grantorType is not None: oprot.writeFieldBegin('grantorType', TType.I32, 4) oprot.writeI32(self.grantorType) oprot.writeFieldEnd() - if self.grantOption != None: + if self.grantOption is not None: oprot.writeFieldBegin('grantOption', TType.BOOL, 5) oprot.writeBool(self.grantOption) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -612,26 +617,27 @@ class HiveObjectPrivilege: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('HiveObjectPrivilege') - if self.hiveObject != None: + if self.hiveObject is not None: oprot.writeFieldBegin('hiveObject', TType.STRUCT, 1) self.hiveObject.write(oprot) oprot.writeFieldEnd() - if self.principalName != None: + if self.principalName is not None: oprot.writeFieldBegin('principalName', TType.STRING, 2) oprot.writeString(self.principalName) oprot.writeFieldEnd() - if self.principalType != None: + if self.principalType is not None: oprot.writeFieldBegin('principalType', TType.I32, 3) oprot.writeI32(self.principalType) oprot.writeFieldEnd() - if self.grantInfo != None: + if self.grantInfo is not None: oprot.writeFieldBegin('grantInfo', TType.STRUCT, 4) self.grantInfo.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -689,7 +695,7 @@ class PrivilegeBag: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('PrivilegeBag') - if self.privileges != None: + if self.privileges is not None: oprot.writeFieldBegin('privileges', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.privileges)) for iter20 in self.privileges: @@ -698,8 +704,9 @@ class PrivilegeBag: oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -803,7 +810,7 @@ class PrincipalPrivilegeSet: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('PrincipalPrivilegeSet') - if self.userPrivileges != None: + if self.userPrivileges is not None: oprot.writeFieldBegin('userPrivileges', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.userPrivileges)) for kiter60,viter61 in self.userPrivileges.items(): @@ -814,7 +821,7 @@ class PrincipalPrivilegeSet: oprot.writeListEnd() oprot.writeMapEnd() oprot.writeFieldEnd() - if self.groupPrivileges != None: + if self.groupPrivileges is not None: oprot.writeFieldBegin('groupPrivileges', TType.MAP, 2) oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.groupPrivileges)) for kiter63,viter64 in self.groupPrivileges.items(): @@ -825,7 +832,7 @@ class PrincipalPrivilegeSet: oprot.writeListEnd() oprot.writeMapEnd() oprot.writeFieldEnd() - if self.rolePrivileges != None: + if self.rolePrivileges is not None: oprot.writeFieldBegin('rolePrivileges', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.rolePrivileges)) for kiter66,viter67 in self.rolePrivileges.items(): @@ -838,8 +845,9 @@ class PrincipalPrivilegeSet: oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -907,22 +915,23 @@ class Role: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('Role') - if self.roleName != None: + if self.roleName is not None: oprot.writeFieldBegin('roleName', TType.STRING, 1) oprot.writeString(self.roleName) oprot.writeFieldEnd() - if self.createTime != None: + if self.createTime is not None: oprot.writeFieldBegin('createTime', TType.I32, 2) oprot.writeI32(self.createTime) oprot.writeFieldEnd() - if self.ownerName != None: + if self.ownerName is not None: oprot.writeFieldBegin('ownerName', TType.STRING, 3) oprot.writeString(self.ownerName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -1013,19 +1022,19 @@ class Database: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('Database') - if self.name != None: + if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 1) oprot.writeString(self.name) oprot.writeFieldEnd() - if self.description != None: + if self.description is not None: oprot.writeFieldBegin('description', TType.STRING, 2) oprot.writeString(self.description) oprot.writeFieldEnd() - if self.locationUri != None: + if self.locationUri is not None: oprot.writeFieldBegin('locationUri', TType.STRING, 3) oprot.writeString(self.locationUri) oprot.writeFieldEnd() - if self.parameters != None: + if self.parameters is not None: oprot.writeFieldBegin('parameters', TType.MAP, 4) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) for kiter76,viter77 in self.parameters.items(): @@ -1033,14 +1042,15 @@ class Database: oprot.writeString(viter77) oprot.writeMapEnd() oprot.writeFieldEnd() - if self.privileges != None: + if self.privileges is not None: oprot.writeFieldBegin('privileges', TType.STRUCT, 5) self.privileges.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -1114,15 +1124,15 @@ class SerDeInfo: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('SerDeInfo') - if self.name != None: + if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 1) oprot.writeString(self.name) oprot.writeFieldEnd() - if self.serializationLib != None: + if self.serializationLib is not None: oprot.writeFieldBegin('serializationLib', TType.STRING, 2) oprot.writeString(self.serializationLib) oprot.writeFieldEnd() - if self.parameters != None: + if self.parameters is not None: oprot.writeFieldBegin('parameters', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) for kiter85,viter86 in self.parameters.items(): @@ -1132,8 +1142,9 @@ class SerDeInfo: oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -1193,18 +1204,19 @@ class Order: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('Order') - if self.col != None: + if self.col is not None: oprot.writeFieldBegin('col', TType.STRING, 1) oprot.writeString(self.col) oprot.writeFieldEnd() - if self.order != None: + if self.order is not None: oprot.writeFieldBegin('order', TType.I32, 2) oprot.writeI32(self.order) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -1352,52 +1364,52 @@ class StorageDescriptor: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('StorageDescriptor') - if self.cols != None: + if self.cols is not None: oprot.writeFieldBegin('cols', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.cols)) for iter112 in self.cols: iter112.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() - if self.location != None: + if self.location is not None: oprot.writeFieldBegin('location', TType.STRING, 2) oprot.writeString(self.location) oprot.writeFieldEnd() - if self.inputFormat != None: + if self.inputFormat is not None: oprot.writeFieldBegin('inputFormat', TType.STRING, 3) oprot.writeString(self.inputFormat) oprot.writeFieldEnd() - if self.outputFormat != None: + if self.outputFormat is not None: oprot.writeFieldBegin('outputFormat', TType.STRING, 4) oprot.writeString(self.outputFormat) oprot.writeFieldEnd() - if self.compressed != None: + if self.compressed is not None: oprot.writeFieldBegin('compressed', TType.BOOL, 5) oprot.writeBool(self.compressed) oprot.writeFieldEnd() - if self.numBuckets != None: + if self.numBuckets is not None: oprot.writeFieldBegin('numBuckets', TType.I32, 6) oprot.writeI32(self.numBuckets) oprot.writeFieldEnd() - if self.serdeInfo != None: + if self.serdeInfo is not None: oprot.writeFieldBegin('serdeInfo', TType.STRUCT, 7) self.serdeInfo.write(oprot) oprot.writeFieldEnd() - if self.bucketCols != None: + if self.bucketCols is not None: oprot.writeFieldBegin('bucketCols', TType.LIST, 8) oprot.writeListBegin(TType.STRING, len(self.bucketCols)) for iter113 in self.bucketCols: oprot.writeString(iter113) oprot.writeListEnd() oprot.writeFieldEnd() - if self.sortCols != None: + if self.sortCols is not None: oprot.writeFieldBegin('sortCols', TType.LIST, 9) oprot.writeListBegin(TType.STRUCT, len(self.sortCols)) for iter114 in self.sortCols: iter114.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() - if self.parameters != None: + if self.parameters is not None: oprot.writeFieldBegin('parameters', TType.MAP, 10) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) for kiter115,viter116 in self.parameters.items(): @@ -1407,8 +1419,9 @@ class StorageDescriptor: oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -1570,42 +1583,42 @@ class Table: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('Table') - if self.tableName != None: + if self.tableName is not None: oprot.writeFieldBegin('tableName', TType.STRING, 1) oprot.writeString(self.tableName) oprot.writeFieldEnd() - if self.dbName != None: + if self.dbName is not None: oprot.writeFieldBegin('dbName', TType.STRING, 2) oprot.writeString(self.dbName) oprot.writeFieldEnd() - if self.owner != None: + if self.owner is not None: oprot.writeFieldBegin('owner', TType.STRING, 3) oprot.writeString(self.owner) oprot.writeFieldEnd() - if self.createTime != None: + if self.createTime is not None: oprot.writeFieldBegin('createTime', TType.I32, 4) oprot.writeI32(self.createTime) oprot.writeFieldEnd() - if self.lastAccessTime != None: + if self.lastAccessTime is not None: oprot.writeFieldBegin('lastAccessTime', TType.I32, 5) oprot.writeI32(self.lastAccessTime) oprot.writeFieldEnd() - if self.retention != None: + if self.retention is not None: oprot.writeFieldBegin('retention', TType.I32, 6) oprot.writeI32(self.retention) oprot.writeFieldEnd() - if self.sd != None: + if self.sd is not None: oprot.writeFieldBegin('sd', TType.STRUCT, 7) self.sd.write(oprot) oprot.writeFieldEnd() - if self.partitionKeys != None: + if self.partitionKeys is not None: oprot.writeFieldBegin('partitionKeys', TType.LIST, 8) oprot.writeListBegin(TType.STRUCT, len(self.partitionKeys)) for iter130 in self.partitionKeys: iter130.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() - if self.parameters != None: + if self.parameters is not None: oprot.writeFieldBegin('parameters', TType.MAP, 9) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) for kiter131,viter132 in self.parameters.items(): @@ -1613,26 +1626,27 @@ class Table: oprot.writeString(viter132) oprot.writeMapEnd() oprot.writeFieldEnd() - if self.viewOriginalText != None: + if self.viewOriginalText is not None: oprot.writeFieldBegin('viewOriginalText', TType.STRING, 10) oprot.writeString(self.viewOriginalText) oprot.writeFieldEnd() - if self.viewExpandedText != None: + if self.viewExpandedText is not None: oprot.writeFieldBegin('viewExpandedText', TType.STRING, 11) oprot.writeString(self.viewExpandedText) oprot.writeFieldEnd() - if self.tableType != None: + if self.tableType is not None: oprot.writeFieldBegin('tableType', TType.STRING, 12) oprot.writeString(self.tableType) oprot.writeFieldEnd() - if self.privileges != None: + if self.privileges is not None: oprot.writeFieldBegin('privileges', TType.STRUCT, 13) self.privileges.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -1753,34 +1767,34 @@ class Partition: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('Partition') - if self.values != None: + if self.values is not None: oprot.writeFieldBegin('values', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.values)) for iter146 in self.values: oprot.writeString(iter146) oprot.writeListEnd() oprot.writeFieldEnd() - if self.dbName != None: + if self.dbName is not None: oprot.writeFieldBegin('dbName', TType.STRING, 2) oprot.writeString(self.dbName) oprot.writeFieldEnd() - if self.tableName != None: + if self.tableName is not None: oprot.writeFieldBegin('tableName', TType.STRING, 3) oprot.writeString(self.tableName) oprot.writeFieldEnd() - if self.createTime != None: + if self.createTime is not None: oprot.writeFieldBegin('createTime', TType.I32, 4) oprot.writeI32(self.createTime) oprot.writeFieldEnd() - if self.lastAccessTime != None: + if self.lastAccessTime is not None: oprot.writeFieldBegin('lastAccessTime', TType.I32, 5) oprot.writeI32(self.lastAccessTime) oprot.writeFieldEnd() - if self.sd != None: + if self.sd is not None: oprot.writeFieldBegin('sd', TType.STRUCT, 6) self.sd.write(oprot) oprot.writeFieldEnd() - if self.parameters != None: + if self.parameters is not None: oprot.writeFieldBegin('parameters', TType.MAP, 7) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) for kiter147,viter148 in self.parameters.items(): @@ -1788,14 +1802,15 @@ class Partition: oprot.writeString(viter148) oprot.writeMapEnd() oprot.writeFieldEnd() - if self.privileges != None: + if self.privileges is not None: oprot.writeFieldBegin('privileges', TType.STRUCT, 8) self.privileges.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -1926,39 +1941,39 @@ class Index: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('Index') - if self.indexName != None: + if self.indexName is not None: oprot.writeFieldBegin('indexName', TType.STRING, 1) oprot.writeString(self.indexName) oprot.writeFieldEnd() - if self.indexHandlerClass != None: + if self.indexHandlerClass is not None: oprot.writeFieldBegin('indexHandlerClass', TType.STRING, 2) oprot.writeString(self.indexHandlerClass) oprot.writeFieldEnd() - if self.dbName != None: + if self.dbName is not None: oprot.writeFieldBegin('dbName', TType.STRING, 3) oprot.writeString(self.dbName) oprot.writeFieldEnd() - if self.origTableName != None: + if self.origTableName is not None: oprot.writeFieldBegin('origTableName', TType.STRING, 4) oprot.writeString(self.origTableName) oprot.writeFieldEnd() - if self.createTime != None: + if self.createTime is not None: oprot.writeFieldBegin('createTime', TType.I32, 5) oprot.writeI32(self.createTime) oprot.writeFieldEnd() - if self.lastAccessTime != None: + if self.lastAccessTime is not None: oprot.writeFieldBegin('lastAccessTime', TType.I32, 6) oprot.writeI32(self.lastAccessTime) oprot.writeFieldEnd() - if self.indexTableName != None: + if self.indexTableName is not None: oprot.writeFieldBegin('indexTableName', TType.STRING, 7) oprot.writeString(self.indexTableName) oprot.writeFieldEnd() - if self.sd != None: + if self.sd is not None: oprot.writeFieldBegin('sd', TType.STRUCT, 8) self.sd.write(oprot) oprot.writeFieldEnd() - if self.parameters != None: + if self.parameters is not None: oprot.writeFieldBegin('parameters', TType.MAP, 9) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) for kiter156,viter157 in self.parameters.items(): @@ -1966,14 +1981,15 @@ class Index: oprot.writeString(viter157) oprot.writeMapEnd() oprot.writeFieldEnd() - if self.deferredRebuild != None: + if self.deferredRebuild is not None: oprot.writeFieldBegin('deferredRebuild', TType.BOOL, 10) oprot.writeBool(self.deferredRebuild) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -2045,14 +2061,14 @@ class Schema: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('Schema') - if self.fieldSchemas != None: + if self.fieldSchemas is not None: oprot.writeFieldBegin('fieldSchemas', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.fieldSchemas)) for iter171 in self.fieldSchemas: iter171.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() - if self.properties != None: + if self.properties is not None: oprot.writeFieldBegin('properties', TType.MAP, 2) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.properties)) for kiter172,viter173 in self.properties.items(): @@ -2062,8 +2078,9 @@ class Schema: oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __repr__(self): @@ -2115,14 +2132,15 @@ class MetaException(Exception): oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('MetaException') - if self.message != None: + if self.message is not None: oprot.writeFieldBegin('message', TType.STRING, 1) oprot.writeString(self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __str__(self): @@ -2177,14 +2195,15 @@ class UnknownTableException(Exception): oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('UnknownTableException') - if self.message != None: + if self.message is not None: oprot.writeFieldBegin('message', TType.STRING, 1) oprot.writeString(self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __str__(self): @@ -2239,14 +2258,15 @@ class UnknownDBException(Exception): oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('UnknownDBException') - if self.message != None: + if self.message is not None: oprot.writeFieldBegin('message', TType.STRING, 1) oprot.writeString(self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __str__(self): @@ -2301,14 +2321,15 @@ class AlreadyExistsException(Exception): oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('AlreadyExistsException') - if self.message != None: + if self.message is not None: oprot.writeFieldBegin('message', TType.STRING, 1) oprot.writeString(self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __str__(self): @@ -2363,14 +2384,15 @@ class InvalidPartitionException(Exception): oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('InvalidPartitionException') - if self.message != None: + if self.message is not None: oprot.writeFieldBegin('message', TType.STRING, 1) oprot.writeString(self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __str__(self): @@ -2425,14 +2447,15 @@ class UnknownPartitionException(Exception): oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('UnknownPartitionException') - if self.message != None: + if self.message is not None: oprot.writeFieldBegin('message', TType.STRING, 1) oprot.writeString(self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __str__(self): @@ -2487,14 +2510,15 @@ class InvalidObjectException(Exception): oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('InvalidObjectException') - if self.message != None: + if self.message is not None: oprot.writeFieldBegin('message', TType.STRING, 1) oprot.writeString(self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __str__(self): @@ -2549,14 +2573,15 @@ class NoSuchObjectException(Exception): oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('NoSuchObjectException') - if self.message != None: + if self.message is not None: oprot.writeFieldBegin('message', TType.STRING, 1) oprot.writeString(self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __str__(self): @@ -2611,14 +2636,15 @@ class IndexAlreadyExistsException(Exception): oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('IndexAlreadyExistsException') - if self.message != None: + if self.message is not None: oprot.writeFieldBegin('message', TType.STRING, 1) oprot.writeString(self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __str__(self): @@ -2673,14 +2699,15 @@ class InvalidOperationException(Exception): oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('InvalidOperationException') - if self.message != None: + if self.message is not None: oprot.writeFieldBegin('message', TType.STRING, 1) oprot.writeString(self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __str__(self): @@ -2735,14 +2762,15 @@ class ConfigValSecurityException(Exception): oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('ConfigValSecurityException') - if self.message != None: + if self.message is not None: oprot.writeFieldBegin('message', TType.STRING, 1) oprot.writeString(self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() - def validate(self): - return + + def validate(self): + return def __str__(self): diff --git metastore/src/gen/thrift/gen-rb/hive_metastore_constants.rb metastore/src/gen/thrift/gen-rb/hive_metastore_constants.rb index 2b9442b..04f47a3 100644 --- metastore/src/gen/thrift/gen-rb/hive_metastore_constants.rb +++ metastore/src/gen/thrift/gen-rb/hive_metastore_constants.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift +# Autogenerated by Thrift Compiler (0.7.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb index 4bf3c43..576181b 100644 --- metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift +# Autogenerated by Thrift Compiler (0.7.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb index 86aaa0b..2a1d58d 100644 --- metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift +# Autogenerated by Thrift Compiler (0.7.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java index 285908e..c57c2da 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -3552,18 +3552,20 @@ public class HiveMetaStore extends ThriftHiveMetastore { transFactory = new TTransportFactory(); } - TThreadPoolServer.Options options = new TThreadPoolServer.Options(); - options.minWorkerThreads = minWorkerThreads; - options.maxWorkerThreads = maxWorkerThreads; - TServer tServer = new TThreadPoolServer(processor, serverTransport, - transFactory, transFactory, - new TBinaryProtocol.Factory(), new TBinaryProtocol.Factory(), options); + TThreadPoolServer.Args args = new TThreadPoolServer.Args(serverTransport) + .processor(processor) + .transportFactory(transFactory) + .protocolFactory(new TBinaryProtocol.Factory()) + .minWorkerThreads(minWorkerThreads) + .maxWorkerThreads(maxWorkerThreads); + + TServer tServer = new TThreadPoolServer(args); HMSHandler.LOG.info("Started the new metaserver on port [" + port + "]..."); HMSHandler.LOG.info("Options.minWorkerThreads = " - + options.minWorkerThreads); + + minWorkerThreads); HMSHandler.LOG.info("Options.maxWorkerThreads = " - + options.maxWorkerThreads); + + maxWorkerThreads); HMSHandler.LOG.info("TCP keepalive = " + tcpKeepAlive); tServer.serve(); } catch (Throwable x) { diff --git ql/build.xml ql/build.xml index 15a58ef..ca8ba86 100644 --- ql/build.xml +++ ql/build.xml @@ -188,7 +188,7 @@ - + diff --git ql/ivy.xml ql/ivy.xml index 99f3786..2f2ed32 100644 --- ql/ivy.xml +++ ql/ivy.xml @@ -40,5 +40,7 @@ + diff --git ql/src/gen/thrift/gen-cpp/queryplan_constants.cpp ql/src/gen/thrift/gen-cpp/queryplan_constants.cpp index 5bd3cc4..77707a2 100644 --- ql/src/gen/thrift/gen-cpp/queryplan_constants.cpp +++ ql/src/gen/thrift/gen-cpp/queryplan_constants.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ diff --git ql/src/gen/thrift/gen-cpp/queryplan_constants.h ql/src/gen/thrift/gen-cpp/queryplan_constants.h index 871b474..2143164 100644 --- ql/src/gen/thrift/gen-cpp/queryplan_constants.h +++ ql/src/gen/thrift/gen-cpp/queryplan_constants.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ diff --git ql/src/gen/thrift/gen-cpp/queryplan_types.cpp ql/src/gen/thrift/gen-cpp/queryplan_types.cpp index 65651af..e2c3c80 100644 --- ql/src/gen/thrift/gen-cpp/queryplan_types.cpp +++ ql/src/gen/thrift/gen-cpp/queryplan_types.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -7,6 +7,106 @@ namespace Apache { namespace Hadoop { namespace Hive { +int _kAdjacencyTypeValues[] = { + AdjacencyType::CONJUNCTIVE, + AdjacencyType::DISJUNCTIVE +}; +const char* _kAdjacencyTypeNames[] = { + "CONJUNCTIVE", + "DISJUNCTIVE" +}; +const std::map _AdjacencyType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(2, _kAdjacencyTypeValues, _kAdjacencyTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kNodeTypeValues[] = { + NodeType::OPERATOR, + NodeType::STAGE +}; +const char* _kNodeTypeNames[] = { + "OPERATOR", + "STAGE" +}; +const std::map _NodeType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(2, _kNodeTypeValues, _kNodeTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kOperatorTypeValues[] = { + OperatorType::JOIN, + OperatorType::MAPJOIN, + OperatorType::EXTRACT, + OperatorType::FILTER, + OperatorType::FORWARD, + OperatorType::GROUPBY, + OperatorType::LIMIT, + OperatorType::SCRIPT, + OperatorType::SELECT, + OperatorType::TABLESCAN, + OperatorType::FILESINK, + OperatorType::REDUCESINK, + OperatorType::UNION, + OperatorType::UDTF, + OperatorType::LATERALVIEWJOIN, + OperatorType::LATERALVIEWFORWARD, + OperatorType::HASHTABLESINK, + OperatorType::HASHTABLEDUMMY +}; +const char* _kOperatorTypeNames[] = { + "JOIN", + "MAPJOIN", + "EXTRACT", + "FILTER", + "FORWARD", + "GROUPBY", + "LIMIT", + "SCRIPT", + "SELECT", + "TABLESCAN", + "FILESINK", + "REDUCESINK", + "UNION", + "UDTF", + "LATERALVIEWJOIN", + "LATERALVIEWFORWARD", + "HASHTABLESINK", + "HASHTABLEDUMMY" +}; +const std::map _OperatorType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(18, _kOperatorTypeValues, _kOperatorTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kTaskTypeValues[] = { + TaskType::MAP, + TaskType::REDUCE, + TaskType::OTHER +}; +const char* _kTaskTypeNames[] = { + "MAP", + "REDUCE", + "OTHER" +}; +const std::map _TaskType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(3, _kTaskTypeValues, _kTaskTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kStageTypeValues[] = { + StageType::CONDITIONAL, + StageType::COPY, + StageType::DDL, + StageType::MAPRED, + StageType::EXPLAIN, + StageType::FETCH, + StageType::FUNC, + StageType::MAPREDLOCAL, + StageType::MOVE, + StageType::STATS +}; +const char* _kStageTypeNames[] = { + "CONDITIONAL", + "COPY", + "DDL", + "MAPRED", + "EXPLAIN", + "FETCH", + "FUNC", + "MAPREDLOCAL", + "MOVE", + "STATS" +}; +const std::map _StageType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(10, _kStageTypeValues, _kStageTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + const char* Adjacency::ascii_fingerprint = "BC4F8C394677A1003AA9F56ED26D8204"; const uint8_t Adjacency::binary_fingerprint[16] = {0xBC,0x4F,0x8C,0x39,0x46,0x77,0xA1,0x00,0x3A,0xA9,0xF5,0x6E,0xD2,0x6D,0x82,0x04}; @@ -88,7 +188,7 @@ uint32_t Adjacency::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("children", ::apache::thrift::protocol::T_LIST, 2); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->children.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->children.size())); std::vector ::const_iterator _iter6; for (_iter6 = this->children.begin(); _iter6 != this->children.end(); ++_iter6) { @@ -198,7 +298,7 @@ uint32_t Graph::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("roots", ::apache::thrift::protocol::T_LIST, 2); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->roots.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->roots.size())); std::vector ::const_iterator _iter18; for (_iter18 = this->roots.begin(); _iter18 != this->roots.end(); ++_iter18) { @@ -209,7 +309,7 @@ uint32_t Graph::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("adjacencyList", ::apache::thrift::protocol::T_LIST, 3); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->adjacencyList.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->adjacencyList.size())); std::vector ::const_iterator _iter19; for (_iter19 = this->adjacencyList.begin(); _iter19 != this->adjacencyList.end(); ++_iter19) { @@ -349,7 +449,7 @@ uint32_t Operator::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("operatorAttributes", ::apache::thrift::protocol::T_MAP, 3); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->operatorAttributes.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->operatorAttributes.size())); std::map ::const_iterator _iter35; for (_iter35 = this->operatorAttributes.begin(); _iter35 != this->operatorAttributes.end(); ++_iter35) { @@ -361,7 +461,7 @@ uint32_t Operator::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("operatorCounters", ::apache::thrift::protocol::T_MAP, 4); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I64, this->operatorCounters.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I64, static_cast(this->operatorCounters.size())); std::map ::const_iterator _iter36; for (_iter36 = this->operatorCounters.begin(); _iter36 != this->operatorCounters.end(); ++_iter36) { @@ -536,7 +636,7 @@ uint32_t Task::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("taskAttributes", ::apache::thrift::protocol::T_MAP, 3); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->taskAttributes.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->taskAttributes.size())); std::map ::const_iterator _iter57; for (_iter57 = this->taskAttributes.begin(); _iter57 != this->taskAttributes.end(); ++_iter57) { @@ -548,7 +648,7 @@ uint32_t Task::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("taskCounters", ::apache::thrift::protocol::T_MAP, 4); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I64, this->taskCounters.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I64, static_cast(this->taskCounters.size())); std::map ::const_iterator _iter58; for (_iter58 = this->taskCounters.begin(); _iter58 != this->taskCounters.end(); ++_iter58) { @@ -566,7 +666,7 @@ uint32_t Task::write(::apache::thrift::protocol::TProtocol* oprot) const { if (this->__isset.operatorList) { xfer += oprot->writeFieldBegin("operatorList", ::apache::thrift::protocol::T_LIST, 6); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->operatorList.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->operatorList.size())); std::vector ::const_iterator _iter59; for (_iter59 = this->operatorList.begin(); _iter59 != this->operatorList.end(); ++_iter59) { @@ -733,7 +833,7 @@ uint32_t Stage::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("stageAttributes", ::apache::thrift::protocol::T_MAP, 3); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->stageAttributes.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->stageAttributes.size())); std::map ::const_iterator _iter80; for (_iter80 = this->stageAttributes.begin(); _iter80 != this->stageAttributes.end(); ++_iter80) { @@ -745,7 +845,7 @@ uint32_t Stage::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("stageCounters", ::apache::thrift::protocol::T_MAP, 4); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I64, this->stageCounters.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I64, static_cast(this->stageCounters.size())); std::map ::const_iterator _iter81; for (_iter81 = this->stageCounters.begin(); _iter81 != this->stageCounters.end(); ++_iter81) { @@ -757,7 +857,7 @@ uint32_t Stage::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("taskList", ::apache::thrift::protocol::T_LIST, 5); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->taskList.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->taskList.size())); std::vector ::const_iterator _iter82; for (_iter82 = this->taskList.begin(); _iter82 != this->taskList.end(); ++_iter82) { @@ -929,7 +1029,7 @@ uint32_t Query::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("queryAttributes", ::apache::thrift::protocol::T_MAP, 3); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->queryAttributes.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->queryAttributes.size())); std::map ::const_iterator _iter102; for (_iter102 = this->queryAttributes.begin(); _iter102 != this->queryAttributes.end(); ++_iter102) { @@ -941,7 +1041,7 @@ uint32_t Query::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("queryCounters", ::apache::thrift::protocol::T_MAP, 4); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I64, this->queryCounters.size()); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I64, static_cast(this->queryCounters.size())); std::map ::const_iterator _iter103; for (_iter103 = this->queryCounters.begin(); _iter103 != this->queryCounters.end(); ++_iter103) { @@ -956,7 +1056,7 @@ uint32_t Query::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("stageList", ::apache::thrift::protocol::T_LIST, 6); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->stageList.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->stageList.size())); std::vector ::const_iterator _iter104; for (_iter104 = this->stageList.begin(); _iter104 != this->stageList.end(); ++_iter104) { @@ -1052,7 +1152,7 @@ uint32_t QueryPlan::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeStructBegin("QueryPlan"); xfer += oprot->writeFieldBegin("queries", ::apache::thrift::protocol::T_LIST, 1); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->queries.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->queries.size())); std::vector ::const_iterator _iter110; for (_iter110 = this->queries.begin(); _iter110 != this->queries.end(); ++_iter110) { diff --git ql/src/gen/thrift/gen-cpp/queryplan_types.h ql/src/gen/thrift/gen-cpp/queryplan_types.h index 4d68815..4a5aa57 100644 --- ql/src/gen/thrift/gen-cpp/queryplan_types.h +++ ql/src/gen/thrift/gen-cpp/queryplan_types.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -22,6 +22,8 @@ struct AdjacencyType { }; }; +extern const std::map _AdjacencyType_VALUES_TO_NAMES; + struct NodeType { enum type { OPERATOR = 0, @@ -29,6 +31,8 @@ struct NodeType { }; }; +extern const std::map _NodeType_VALUES_TO_NAMES; + struct OperatorType { enum type { JOIN = 0, @@ -52,6 +56,8 @@ struct OperatorType { }; }; +extern const std::map _OperatorType_VALUES_TO_NAMES; + struct TaskType { enum type { MAP = 0, @@ -60,6 +66,8 @@ struct TaskType { }; }; +extern const std::map _TaskType_VALUES_TO_NAMES; + struct StageType { enum type { CONDITIONAL = 0, @@ -75,6 +83,8 @@ struct StageType { }; }; +extern const std::map _StageType_VALUES_TO_NAMES; + typedef struct _Adjacency__isset { _Adjacency__isset() : node(false), children(false), adjacencyType(false) {} bool node; @@ -99,6 +109,18 @@ class Adjacency { _Adjacency__isset __isset; + void __set_node(const std::string& val) { + node = val; + } + + void __set_children(const std::vector & val) { + children = val; + } + + void __set_adjacencyType(const AdjacencyType::type val) { + adjacencyType = val; + } + bool operator == (const Adjacency & rhs) const { if (!(node == rhs.node)) @@ -144,6 +166,18 @@ class Graph { _Graph__isset __isset; + void __set_nodeType(const NodeType::type val) { + nodeType = val; + } + + void __set_roots(const std::vector & val) { + roots = val; + } + + void __set_adjacencyList(const std::vector & val) { + adjacencyList = val; + } + bool operator == (const Graph & rhs) const { if (!(nodeType == rhs.nodeType)) @@ -195,6 +229,30 @@ class Operator { _Operator__isset __isset; + void __set_operatorId(const std::string& val) { + operatorId = val; + } + + void __set_operatorType(const OperatorType::type val) { + operatorType = val; + } + + void __set_operatorAttributes(const std::map & val) { + operatorAttributes = val; + } + + void __set_operatorCounters(const std::map & val) { + operatorCounters = val; + } + + void __set_done(const bool val) { + done = val; + } + + void __set_started(const bool val) { + started = val; + } + bool operator == (const Operator & rhs) const { if (!(operatorId == rhs.operatorId)) @@ -256,6 +314,40 @@ class Task { _Task__isset __isset; + void __set_taskId(const std::string& val) { + taskId = val; + } + + void __set_taskType(const TaskType::type val) { + taskType = val; + } + + void __set_taskAttributes(const std::map & val) { + taskAttributes = val; + } + + void __set_taskCounters(const std::map & val) { + taskCounters = val; + } + + void __set_operatorGraph(const Graph& val) { + operatorGraph = val; + __isset.operatorGraph = true; + } + + void __set_operatorList(const std::vector & val) { + operatorList = val; + __isset.operatorList = true; + } + + void __set_done(const bool val) { + done = val; + } + + void __set_started(const bool val) { + started = val; + } + bool operator == (const Task & rhs) const { if (!(taskId == rhs.taskId)) @@ -323,6 +415,34 @@ class Stage { _Stage__isset __isset; + void __set_stageId(const std::string& val) { + stageId = val; + } + + void __set_stageType(const StageType::type val) { + stageType = val; + } + + void __set_stageAttributes(const std::map & val) { + stageAttributes = val; + } + + void __set_stageCounters(const std::map & val) { + stageCounters = val; + } + + void __set_taskList(const std::vector & val) { + taskList = val; + } + + void __set_done(const bool val) { + done = val; + } + + void __set_started(const bool val) { + started = val; + } + bool operator == (const Stage & rhs) const { if (!(stageId == rhs.stageId)) @@ -386,6 +506,38 @@ class Query { _Query__isset __isset; + void __set_queryId(const std::string& val) { + queryId = val; + } + + void __set_queryType(const std::string& val) { + queryType = val; + } + + void __set_queryAttributes(const std::map & val) { + queryAttributes = val; + } + + void __set_queryCounters(const std::map & val) { + queryCounters = val; + } + + void __set_stageGraph(const Graph& val) { + stageGraph = val; + } + + void __set_stageList(const std::vector & val) { + stageList = val; + } + + void __set_done(const bool val) { + done = val; + } + + void __set_started(const bool val) { + started = val; + } + bool operator == (const Query & rhs) const { if (!(queryId == rhs.queryId)) @@ -441,6 +593,18 @@ class QueryPlan { _QueryPlan__isset __isset; + void __set_queries(const std::vector & val) { + queries = val; + } + + void __set_done(const bool val) { + done = val; + } + + void __set_started(const bool val) { + started = val; + } + bool operator == (const QueryPlan & rhs) const { if (!(queries == rhs.queries)) diff --git ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Adjacency.java ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Adjacency.java index 8728260..7cd482f 100644 --- ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Adjacency.java +++ ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Adjacency.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,25 +20,19 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; +public class Adjacency implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Adjacency"); -public class Adjacency implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("Adjacency"); + private static final org.apache.thrift.protocol.TField NODE_FIELD_DESC = new org.apache.thrift.protocol.TField("node", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField CHILDREN_FIELD_DESC = new org.apache.thrift.protocol.TField("children", org.apache.thrift.protocol.TType.LIST, (short)2); + private static final org.apache.thrift.protocol.TField ADJACENCY_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("adjacencyType", org.apache.thrift.protocol.TType.I32, (short)3); - private static final TField NODE_FIELD_DESC = new TField("node", TType.STRING, (short)1); - private static final TField CHILDREN_FIELD_DESC = new TField("children", TType.LIST, (short)2); - private static final TField ADJACENCY_TYPE_FIELD_DESC = new TField("adjacencyType", TType.I32, (short)3); - - private String node; - private List children; - private AdjacencyType adjacencyType; + private String node; // required + private List children; // required + private AdjacencyType adjacencyType; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { NODE((short)1, "node"), CHILDREN((short)2, "children"), /** @@ -107,18 +101,18 @@ public class Adjacency implements TBase, java.io.S // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NODE, new FieldMetaData("node", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.CHILDREN, new FieldMetaData("children", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.ADJACENCY_TYPE, new FieldMetaData("adjacencyType", TFieldRequirementType.DEFAULT, - new EnumMetaData(TType.ENUM, AdjacencyType.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.NODE, new org.apache.thrift.meta_data.FieldMetaData("node", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.CHILDREN, new org.apache.thrift.meta_data.FieldMetaData("children", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.ADJACENCY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("adjacencyType", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, AdjacencyType.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(Adjacency.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Adjacency.class, metaDataMap); } public Adjacency() { @@ -177,7 +171,7 @@ public class Adjacency implements TBase, java.io.S this.node = null; } - /** Returns true if field node is set (has been asigned a value) and false otherwise */ + /** Returns true if field node is set (has been assigned a value) and false otherwise */ public boolean isSetNode() { return this.node != null; } @@ -215,7 +209,7 @@ public class Adjacency implements TBase, java.io.S this.children = null; } - /** Returns true if field children is set (has been asigned a value) and false otherwise */ + /** Returns true if field children is set (has been assigned a value) and false otherwise */ public boolean isSetChildren() { return this.children != null; } @@ -246,7 +240,7 @@ public class Adjacency implements TBase, java.io.S this.adjacencyType = null; } - /** Returns true if field adjacencyType is set (has been asigned a value) and false otherwise */ + /** Returns true if field adjacencyType is set (has been assigned a value) and false otherwise */ public boolean isSetAdjacencyType() { return this.adjacencyType != null; } @@ -301,7 +295,7 @@ public class Adjacency implements TBase, java.io.S throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -379,7 +373,7 @@ public class Adjacency implements TBase, java.io.S return lastComparison; } if (isSetNode()) { - lastComparison = TBaseHelper.compareTo(this.node, typedOther.node); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.node, typedOther.node); if (lastComparison != 0) { return lastComparison; } @@ -389,7 +383,7 @@ public class Adjacency implements TBase, java.io.S return lastComparison; } if (isSetChildren()) { - lastComparison = TBaseHelper.compareTo(this.children, typedOther.children); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.children, typedOther.children); if (lastComparison != 0) { return lastComparison; } @@ -399,7 +393,7 @@ public class Adjacency implements TBase, java.io.S return lastComparison; } if (isSetAdjacencyType()) { - lastComparison = TBaseHelper.compareTo(this.adjacencyType, typedOther.adjacencyType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adjacencyType, typedOther.adjacencyType); if (lastComparison != 0) { return lastComparison; } @@ -411,49 +405,49 @@ public class Adjacency implements TBase, java.io.S return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // NODE - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.node = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // CHILDREN - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list0 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); this.children = new ArrayList(_list0.size); for (int _i1 = 0; _i1 < _list0.size; ++_i1) { - String _elem2; + String _elem2; // required _elem2 = iprot.readString(); this.children.add(_elem2); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // ADJACENCY_TYPE - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.adjacencyType = AdjacencyType.findByValue(iprot.readI32()); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -461,7 +455,7 @@ public class Adjacency implements TBase, java.io.S validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -473,7 +467,7 @@ public class Adjacency implements TBase, java.io.S if (this.children != null) { oprot.writeFieldBegin(CHILDREN_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.children.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.children.size())); for (String _iter3 : this.children) { oprot.writeString(_iter3); @@ -523,9 +517,25 @@ public class Adjacency implements TBase, java.io.S return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } diff --git ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/AdjacencyType.java ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/AdjacencyType.java index cfbd3e4..ec75f05 100644 --- ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/AdjacencyType.java +++ ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/AdjacencyType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -10,7 +10,7 @@ import java.util.Map; import java.util.HashMap; import org.apache.thrift.TEnum; -public enum AdjacencyType implements TEnum { +public enum AdjacencyType implements org.apache.thrift.TEnum { CONJUNCTIVE(0), DISJUNCTIVE(1); diff --git ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Graph.java ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Graph.java index 028addf..7fa8d8e 100644 --- ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Graph.java +++ ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Graph.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,25 +20,19 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; +public class Graph implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Graph"); -public class Graph implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("Graph"); + private static final org.apache.thrift.protocol.TField NODE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("nodeType", org.apache.thrift.protocol.TType.I32, (short)1); + private static final org.apache.thrift.protocol.TField ROOTS_FIELD_DESC = new org.apache.thrift.protocol.TField("roots", org.apache.thrift.protocol.TType.LIST, (short)2); + private static final org.apache.thrift.protocol.TField ADJACENCY_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("adjacencyList", org.apache.thrift.protocol.TType.LIST, (short)3); - private static final TField NODE_TYPE_FIELD_DESC = new TField("nodeType", TType.I32, (short)1); - private static final TField ROOTS_FIELD_DESC = new TField("roots", TType.LIST, (short)2); - private static final TField ADJACENCY_LIST_FIELD_DESC = new TField("adjacencyList", TType.LIST, (short)3); - - private NodeType nodeType; - private List roots; - private List adjacencyList; + private NodeType nodeType; // required + private List roots; // required + private List adjacencyList; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { /** * * @see NodeType @@ -107,19 +101,19 @@ public class Graph implements TBase, java.io.Serializable, // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NODE_TYPE, new FieldMetaData("nodeType", TFieldRequirementType.DEFAULT, - new EnumMetaData(TType.ENUM, NodeType.class))); - tmpMap.put(_Fields.ROOTS, new FieldMetaData("roots", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.ADJACENCY_LIST, new FieldMetaData("adjacencyList", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Adjacency.class)))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.NODE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("nodeType", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, NodeType.class))); + tmpMap.put(_Fields.ROOTS, new org.apache.thrift.meta_data.FieldMetaData("roots", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.ADJACENCY_LIST, new org.apache.thrift.meta_data.FieldMetaData("adjacencyList", 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, Adjacency.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(Graph.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Graph.class, metaDataMap); } public Graph() { @@ -190,7 +184,7 @@ public class Graph implements TBase, java.io.Serializable, this.nodeType = null; } - /** Returns true if field nodeType is set (has been asigned a value) and false otherwise */ + /** Returns true if field nodeType is set (has been assigned a value) and false otherwise */ public boolean isSetNodeType() { return this.nodeType != null; } @@ -228,7 +222,7 @@ public class Graph implements TBase, java.io.Serializable, this.roots = null; } - /** Returns true if field roots is set (has been asigned a value) and false otherwise */ + /** Returns true if field roots is set (has been assigned a value) and false otherwise */ public boolean isSetRoots() { return this.roots != null; } @@ -266,7 +260,7 @@ public class Graph implements TBase, java.io.Serializable, this.adjacencyList = null; } - /** Returns true if field adjacencyList is set (has been asigned a value) and false otherwise */ + /** Returns true if field adjacencyList is set (has been assigned a value) and false otherwise */ public boolean isSetAdjacencyList() { return this.adjacencyList != null; } @@ -321,7 +315,7 @@ public class Graph implements TBase, java.io.Serializable, throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -399,7 +393,7 @@ public class Graph implements TBase, java.io.Serializable, return lastComparison; } if (isSetNodeType()) { - lastComparison = TBaseHelper.compareTo(this.nodeType, typedOther.nodeType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nodeType, typedOther.nodeType); if (lastComparison != 0) { return lastComparison; } @@ -409,7 +403,7 @@ public class Graph implements TBase, java.io.Serializable, return lastComparison; } if (isSetRoots()) { - lastComparison = TBaseHelper.compareTo(this.roots, typedOther.roots); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roots, typedOther.roots); if (lastComparison != 0) { return lastComparison; } @@ -419,7 +413,7 @@ public class Graph implements TBase, java.io.Serializable, return lastComparison; } if (isSetAdjacencyList()) { - lastComparison = TBaseHelper.compareTo(this.adjacencyList, typedOther.adjacencyList); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adjacencyList, typedOther.adjacencyList); if (lastComparison != 0) { return lastComparison; } @@ -431,48 +425,48 @@ public class Graph implements TBase, java.io.Serializable, return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // NODE_TYPE - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.nodeType = NodeType.findByValue(iprot.readI32()); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // ROOTS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list4 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list4 = iprot.readListBegin(); this.roots = new ArrayList(_list4.size); for (int _i5 = 0; _i5 < _list4.size; ++_i5) { - String _elem6; + String _elem6; // required _elem6 = iprot.readString(); this.roots.add(_elem6); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // ADJACENCY_LIST - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list7 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list7 = iprot.readListBegin(); this.adjacencyList = new ArrayList(_list7.size); for (int _i8 = 0; _i8 < _list7.size; ++_i8) { - Adjacency _elem9; + Adjacency _elem9; // required _elem9 = new Adjacency(); _elem9.read(iprot); this.adjacencyList.add(_elem9); @@ -480,11 +474,11 @@ public class Graph implements TBase, java.io.Serializable, iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -492,7 +486,7 @@ public class Graph implements TBase, java.io.Serializable, validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -504,7 +498,7 @@ public class Graph implements TBase, java.io.Serializable, if (this.roots != null) { oprot.writeFieldBegin(ROOTS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.roots.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.roots.size())); for (String _iter10 : this.roots) { oprot.writeString(_iter10); @@ -516,7 +510,7 @@ public class Graph implements TBase, java.io.Serializable, if (this.adjacencyList != null) { oprot.writeFieldBegin(ADJACENCY_LIST_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.adjacencyList.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.adjacencyList.size())); for (Adjacency _iter11 : this.adjacencyList) { _iter11.write(oprot); @@ -561,9 +555,25 @@ public class Graph implements TBase, java.io.Serializable, return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } diff --git ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/NodeType.java ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/NodeType.java index 6174d6e..f9d5b60 100644 --- ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/NodeType.java +++ ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/NodeType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -10,7 +10,7 @@ import java.util.Map; import java.util.HashMap; import org.apache.thrift.TEnum; -public enum NodeType implements TEnum { +public enum NodeType implements org.apache.thrift.TEnum { OPERATOR(0), STAGE(1); diff --git ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Operator.java ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Operator.java index 1229724..2ef602d 100644 --- ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Operator.java +++ ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Operator.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,31 +20,25 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; - -public class Operator implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("Operator"); - - private static final TField OPERATOR_ID_FIELD_DESC = new TField("operatorId", TType.STRING, (short)1); - private static final TField OPERATOR_TYPE_FIELD_DESC = new TField("operatorType", TType.I32, (short)2); - private static final TField OPERATOR_ATTRIBUTES_FIELD_DESC = new TField("operatorAttributes", TType.MAP, (short)3); - private static final TField OPERATOR_COUNTERS_FIELD_DESC = new TField("operatorCounters", TType.MAP, (short)4); - private static final TField DONE_FIELD_DESC = new TField("done", TType.BOOL, (short)5); - private static final TField STARTED_FIELD_DESC = new TField("started", TType.BOOL, (short)6); - - private String operatorId; - private OperatorType operatorType; - private Map operatorAttributes; - private Map operatorCounters; - private boolean done; - private boolean started; +public class Operator implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Operator"); + + private static final org.apache.thrift.protocol.TField OPERATOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("operatorId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField OPERATOR_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("operatorType", org.apache.thrift.protocol.TType.I32, (short)2); + private static final org.apache.thrift.protocol.TField OPERATOR_ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("operatorAttributes", org.apache.thrift.protocol.TType.MAP, (short)3); + private static final org.apache.thrift.protocol.TField OPERATOR_COUNTERS_FIELD_DESC = new org.apache.thrift.protocol.TField("operatorCounters", org.apache.thrift.protocol.TType.MAP, (short)4); + private static final org.apache.thrift.protocol.TField DONE_FIELD_DESC = new org.apache.thrift.protocol.TField("done", org.apache.thrift.protocol.TType.BOOL, (short)5); + private static final org.apache.thrift.protocol.TField STARTED_FIELD_DESC = new org.apache.thrift.protocol.TField("started", org.apache.thrift.protocol.TType.BOOL, (short)6); + + private String operatorId; // required + private OperatorType operatorType; // required + private Map operatorAttributes; // required + private Map operatorCounters; // required + private boolean done; // required + private boolean started; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { OPERATOR_ID((short)1, "operatorId"), /** * @@ -125,27 +119,27 @@ public class Operator implements TBase, java.io.Seri private static final int __STARTED_ISSET_ID = 1; private BitSet __isset_bit_vector = new BitSet(2); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.OPERATOR_ID, new FieldMetaData("operatorId", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.OPERATOR_TYPE, new FieldMetaData("operatorType", TFieldRequirementType.DEFAULT, - new EnumMetaData(TType.ENUM, OperatorType.class))); - tmpMap.put(_Fields.OPERATOR_ATTRIBUTES, new FieldMetaData("operatorAttributes", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.OPERATOR_COUNTERS, new FieldMetaData("operatorCounters", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new FieldValueMetaData(TType.I64)))); - tmpMap.put(_Fields.DONE, new FieldMetaData("done", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); - tmpMap.put(_Fields.STARTED, new FieldMetaData("started", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.OPERATOR_ID, new org.apache.thrift.meta_data.FieldMetaData("operatorId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.OPERATOR_TYPE, new org.apache.thrift.meta_data.FieldMetaData("operatorType", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OperatorType.class))); + tmpMap.put(_Fields.OPERATOR_ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("operatorAttributes", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.OPERATOR_COUNTERS, new org.apache.thrift.meta_data.FieldMetaData("operatorCounters", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); + tmpMap.put(_Fields.DONE, new org.apache.thrift.meta_data.FieldMetaData("done", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.STARTED, new org.apache.thrift.meta_data.FieldMetaData("started", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(Operator.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Operator.class, metaDataMap); } public Operator() { @@ -244,7 +238,7 @@ public class Operator implements TBase, java.io.Seri this.operatorId = null; } - /** Returns true if field operatorId is set (has been asigned a value) and false otherwise */ + /** Returns true if field operatorId is set (has been assigned a value) and false otherwise */ public boolean isSetOperatorId() { return this.operatorId != null; } @@ -275,7 +269,7 @@ public class Operator implements TBase, java.io.Seri this.operatorType = null; } - /** Returns true if field operatorType is set (has been asigned a value) and false otherwise */ + /** Returns true if field operatorType is set (has been assigned a value) and false otherwise */ public boolean isSetOperatorType() { return this.operatorType != null; } @@ -309,7 +303,7 @@ public class Operator implements TBase, java.io.Seri this.operatorAttributes = null; } - /** Returns true if field operatorAttributes is set (has been asigned a value) and false otherwise */ + /** Returns true if field operatorAttributes is set (has been assigned a value) and false otherwise */ public boolean isSetOperatorAttributes() { return this.operatorAttributes != null; } @@ -343,7 +337,7 @@ public class Operator implements TBase, java.io.Seri this.operatorCounters = null; } - /** Returns true if field operatorCounters is set (has been asigned a value) and false otherwise */ + /** Returns true if field operatorCounters is set (has been assigned a value) and false otherwise */ public boolean isSetOperatorCounters() { return this.operatorCounters != null; } @@ -367,7 +361,7 @@ public class Operator implements TBase, java.io.Seri __isset_bit_vector.clear(__DONE_ISSET_ID); } - /** Returns true if field done is set (has been asigned a value) and false otherwise */ + /** Returns true if field done is set (has been assigned a value) and false otherwise */ public boolean isSetDone() { return __isset_bit_vector.get(__DONE_ISSET_ID); } @@ -389,7 +383,7 @@ public class Operator implements TBase, java.io.Seri __isset_bit_vector.clear(__STARTED_ISSET_ID); } - /** Returns true if field started is set (has been asigned a value) and false otherwise */ + /** Returns true if field started is set (has been assigned a value) and false otherwise */ public boolean isSetStarted() { return __isset_bit_vector.get(__STARTED_ISSET_ID); } @@ -466,16 +460,16 @@ public class Operator implements TBase, java.io.Seri return getOperatorCounters(); case DONE: - return new Boolean(isDone()); + return Boolean.valueOf(isDone()); case STARTED: - return new Boolean(isStarted()); + return Boolean.valueOf(isStarted()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -586,7 +580,7 @@ public class Operator implements TBase, java.io.Seri return lastComparison; } if (isSetOperatorId()) { - lastComparison = TBaseHelper.compareTo(this.operatorId, typedOther.operatorId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorId, typedOther.operatorId); if (lastComparison != 0) { return lastComparison; } @@ -596,7 +590,7 @@ public class Operator implements TBase, java.io.Seri return lastComparison; } if (isSetOperatorType()) { - lastComparison = TBaseHelper.compareTo(this.operatorType, typedOther.operatorType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorType, typedOther.operatorType); if (lastComparison != 0) { return lastComparison; } @@ -606,7 +600,7 @@ public class Operator implements TBase, java.io.Seri return lastComparison; } if (isSetOperatorAttributes()) { - lastComparison = TBaseHelper.compareTo(this.operatorAttributes, typedOther.operatorAttributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorAttributes, typedOther.operatorAttributes); if (lastComparison != 0) { return lastComparison; } @@ -616,7 +610,7 @@ public class Operator implements TBase, java.io.Seri return lastComparison; } if (isSetOperatorCounters()) { - lastComparison = TBaseHelper.compareTo(this.operatorCounters, typedOther.operatorCounters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorCounters, typedOther.operatorCounters); if (lastComparison != 0) { return lastComparison; } @@ -626,7 +620,7 @@ public class Operator implements TBase, java.io.Seri return lastComparison; } if (isSetDone()) { - lastComparison = TBaseHelper.compareTo(this.done, typedOther.done); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, typedOther.done); if (lastComparison != 0) { return lastComparison; } @@ -636,7 +630,7 @@ public class Operator implements TBase, java.io.Seri return lastComparison; } if (isSetStarted()) { - lastComparison = TBaseHelper.compareTo(this.started, typedOther.started); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, typedOther.started); if (lastComparison != 0) { return lastComparison; } @@ -648,39 +642,39 @@ public class Operator implements TBase, java.io.Seri return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // OPERATOR_ID - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.operatorId = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // OPERATOR_TYPE - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.operatorType = OperatorType.findByValue(iprot.readI32()); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // OPERATOR_ATTRIBUTES - if (field.type == TType.MAP) { + if (field.type == org.apache.thrift.protocol.TType.MAP) { { - TMap _map12 = iprot.readMapBegin(); + org.apache.thrift.protocol.TMap _map12 = iprot.readMapBegin(); this.operatorAttributes = new HashMap(2*_map12.size); for (int _i13 = 0; _i13 < _map12.size; ++_i13) { - String _key14; - String _val15; + String _key14; // required + String _val15; // required _key14 = iprot.readString(); _val15 = iprot.readString(); this.operatorAttributes.put(_key14, _val15); @@ -688,18 +682,18 @@ public class Operator implements TBase, java.io.Seri iprot.readMapEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // OPERATOR_COUNTERS - if (field.type == TType.MAP) { + if (field.type == org.apache.thrift.protocol.TType.MAP) { { - TMap _map16 = iprot.readMapBegin(); + org.apache.thrift.protocol.TMap _map16 = iprot.readMapBegin(); this.operatorCounters = new HashMap(2*_map16.size); for (int _i17 = 0; _i17 < _map16.size; ++_i17) { - String _key18; - long _val19; + String _key18; // required + long _val19; // required _key18 = iprot.readString(); _val19 = iprot.readI64(); this.operatorCounters.put(_key18, _val19); @@ -707,27 +701,27 @@ public class Operator implements TBase, java.io.Seri iprot.readMapEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 5: // DONE - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.done = iprot.readBool(); setDoneIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 6: // STARTED - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.started = iprot.readBool(); setStartedIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -735,7 +729,7 @@ public class Operator implements TBase, java.io.Seri validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -752,7 +746,7 @@ public class Operator implements TBase, java.io.Seri if (this.operatorAttributes != null) { oprot.writeFieldBegin(OPERATOR_ATTRIBUTES_FIELD_DESC); { - oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.operatorAttributes.size())); + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.operatorAttributes.size())); for (Map.Entry _iter20 : this.operatorAttributes.entrySet()) { oprot.writeString(_iter20.getKey()); @@ -765,7 +759,7 @@ public class Operator implements TBase, java.io.Seri if (this.operatorCounters != null) { oprot.writeFieldBegin(OPERATOR_COUNTERS_FIELD_DESC); { - oprot.writeMapBegin(new TMap(TType.STRING, TType.I64, this.operatorCounters.size())); + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.operatorCounters.size())); for (Map.Entry _iter21 : this.operatorCounters.entrySet()) { oprot.writeString(_iter21.getKey()); @@ -833,9 +827,27 @@ public class Operator implements TBase, java.io.Seri return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + 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); + } + } + } diff --git ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/OperatorType.java ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/OperatorType.java index cd01b4d..8c9bd26 100644 --- ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/OperatorType.java +++ ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/OperatorType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -10,7 +10,7 @@ import java.util.Map; import java.util.HashMap; import org.apache.thrift.TEnum; -public enum OperatorType implements TEnum { +public enum OperatorType implements org.apache.thrift.TEnum { JOIN(0), MAPJOIN(1), EXTRACT(2), diff --git ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Query.java ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Query.java index 32ce844..f7469c4 100644 --- ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Query.java +++ ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Query.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,35 +20,29 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; - -public class Query implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("Query"); - - private static final TField QUERY_ID_FIELD_DESC = new TField("queryId", TType.STRING, (short)1); - private static final TField QUERY_TYPE_FIELD_DESC = new TField("queryType", TType.STRING, (short)2); - private static final TField QUERY_ATTRIBUTES_FIELD_DESC = new TField("queryAttributes", TType.MAP, (short)3); - private static final TField QUERY_COUNTERS_FIELD_DESC = new TField("queryCounters", TType.MAP, (short)4); - private static final TField STAGE_GRAPH_FIELD_DESC = new TField("stageGraph", TType.STRUCT, (short)5); - private static final TField STAGE_LIST_FIELD_DESC = new TField("stageList", TType.LIST, (short)6); - private static final TField DONE_FIELD_DESC = new TField("done", TType.BOOL, (short)7); - private static final TField STARTED_FIELD_DESC = new TField("started", TType.BOOL, (short)8); - - private String queryId; - private String queryType; - private Map queryAttributes; - private Map queryCounters; - private Graph stageGraph; - private List stageList; - private boolean done; - private boolean started; +public class Query implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Query"); + + private static final org.apache.thrift.protocol.TField QUERY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("queryId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField QUERY_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("queryType", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField QUERY_ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("queryAttributes", org.apache.thrift.protocol.TType.MAP, (short)3); + private static final org.apache.thrift.protocol.TField QUERY_COUNTERS_FIELD_DESC = new org.apache.thrift.protocol.TField("queryCounters", org.apache.thrift.protocol.TType.MAP, (short)4); + private static final org.apache.thrift.protocol.TField STAGE_GRAPH_FIELD_DESC = new org.apache.thrift.protocol.TField("stageGraph", org.apache.thrift.protocol.TType.STRUCT, (short)5); + private static final org.apache.thrift.protocol.TField STAGE_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("stageList", org.apache.thrift.protocol.TType.LIST, (short)6); + private static final org.apache.thrift.protocol.TField DONE_FIELD_DESC = new org.apache.thrift.protocol.TField("done", org.apache.thrift.protocol.TType.BOOL, (short)7); + private static final org.apache.thrift.protocol.TField STARTED_FIELD_DESC = new org.apache.thrift.protocol.TField("started", org.apache.thrift.protocol.TType.BOOL, (short)8); + + private String queryId; // required + private String queryType; // required + private Map queryAttributes; // required + private Map queryCounters; // required + private Graph stageGraph; // required + private List stageList; // required + private boolean done; // required + private boolean started; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { QUERY_ID((short)1, "queryId"), QUERY_TYPE((short)2, "queryType"), QUERY_ATTRIBUTES((short)3, "queryAttributes"), @@ -131,32 +125,32 @@ public class Query implements TBase, java.io.Serializable, private static final int __STARTED_ISSET_ID = 1; private BitSet __isset_bit_vector = new BitSet(2); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.QUERY_ID, new FieldMetaData("queryId", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.QUERY_TYPE, new FieldMetaData("queryType", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.QUERY_ATTRIBUTES, new FieldMetaData("queryAttributes", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.QUERY_COUNTERS, new FieldMetaData("queryCounters", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new FieldValueMetaData(TType.I64)))); - tmpMap.put(_Fields.STAGE_GRAPH, new FieldMetaData("stageGraph", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, Graph.class))); - tmpMap.put(_Fields.STAGE_LIST, new FieldMetaData("stageList", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Stage.class)))); - tmpMap.put(_Fields.DONE, new FieldMetaData("done", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); - tmpMap.put(_Fields.STARTED, new FieldMetaData("started", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.QUERY_ID, new org.apache.thrift.meta_data.FieldMetaData("queryId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.QUERY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("queryType", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.QUERY_ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("queryAttributes", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.QUERY_COUNTERS, new org.apache.thrift.meta_data.FieldMetaData("queryCounters", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); + tmpMap.put(_Fields.STAGE_GRAPH, new org.apache.thrift.meta_data.FieldMetaData("stageGraph", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Graph.class))); + tmpMap.put(_Fields.STAGE_LIST, new org.apache.thrift.meta_data.FieldMetaData("stageList", 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, Stage.class)))); + tmpMap.put(_Fields.DONE, new org.apache.thrift.meta_data.FieldMetaData("done", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.STARTED, new org.apache.thrift.meta_data.FieldMetaData("started", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(Query.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Query.class, metaDataMap); } public Query() { @@ -271,7 +265,7 @@ public class Query implements TBase, java.io.Serializable, this.queryId = null; } - /** Returns true if field queryId is set (has been asigned a value) and false otherwise */ + /** Returns true if field queryId is set (has been assigned a value) and false otherwise */ public boolean isSetQueryId() { return this.queryId != null; } @@ -294,7 +288,7 @@ public class Query implements TBase, java.io.Serializable, this.queryType = null; } - /** Returns true if field queryType is set (has been asigned a value) and false otherwise */ + /** Returns true if field queryType is set (has been assigned a value) and false otherwise */ public boolean isSetQueryType() { return this.queryType != null; } @@ -328,7 +322,7 @@ public class Query implements TBase, java.io.Serializable, this.queryAttributes = null; } - /** Returns true if field queryAttributes is set (has been asigned a value) and false otherwise */ + /** Returns true if field queryAttributes is set (has been assigned a value) and false otherwise */ public boolean isSetQueryAttributes() { return this.queryAttributes != null; } @@ -362,7 +356,7 @@ public class Query implements TBase, java.io.Serializable, this.queryCounters = null; } - /** Returns true if field queryCounters is set (has been asigned a value) and false otherwise */ + /** Returns true if field queryCounters is set (has been assigned a value) and false otherwise */ public boolean isSetQueryCounters() { return this.queryCounters != null; } @@ -385,7 +379,7 @@ public class Query implements TBase, java.io.Serializable, this.stageGraph = null; } - /** Returns true if field stageGraph is set (has been asigned a value) and false otherwise */ + /** Returns true if field stageGraph is set (has been assigned a value) and false otherwise */ public boolean isSetStageGraph() { return this.stageGraph != null; } @@ -423,7 +417,7 @@ public class Query implements TBase, java.io.Serializable, this.stageList = null; } - /** Returns true if field stageList is set (has been asigned a value) and false otherwise */ + /** Returns true if field stageList is set (has been assigned a value) and false otherwise */ public boolean isSetStageList() { return this.stageList != null; } @@ -447,7 +441,7 @@ public class Query implements TBase, java.io.Serializable, __isset_bit_vector.clear(__DONE_ISSET_ID); } - /** Returns true if field done is set (has been asigned a value) and false otherwise */ + /** Returns true if field done is set (has been assigned a value) and false otherwise */ public boolean isSetDone() { return __isset_bit_vector.get(__DONE_ISSET_ID); } @@ -469,7 +463,7 @@ public class Query implements TBase, java.io.Serializable, __isset_bit_vector.clear(__STARTED_ISSET_ID); } - /** Returns true if field started is set (has been asigned a value) and false otherwise */ + /** Returns true if field started is set (has been assigned a value) and false otherwise */ public boolean isSetStarted() { return __isset_bit_vector.get(__STARTED_ISSET_ID); } @@ -568,16 +562,16 @@ public class Query implements TBase, java.io.Serializable, return getStageList(); case DONE: - return new Boolean(isDone()); + return Boolean.valueOf(isDone()); case STARTED: - return new Boolean(isStarted()); + return Boolean.valueOf(isStarted()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -710,7 +704,7 @@ public class Query implements TBase, java.io.Serializable, return lastComparison; } if (isSetQueryId()) { - lastComparison = TBaseHelper.compareTo(this.queryId, typedOther.queryId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryId, typedOther.queryId); if (lastComparison != 0) { return lastComparison; } @@ -720,7 +714,7 @@ public class Query implements TBase, java.io.Serializable, return lastComparison; } if (isSetQueryType()) { - lastComparison = TBaseHelper.compareTo(this.queryType, typedOther.queryType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryType, typedOther.queryType); if (lastComparison != 0) { return lastComparison; } @@ -730,7 +724,7 @@ public class Query implements TBase, java.io.Serializable, return lastComparison; } if (isSetQueryAttributes()) { - lastComparison = TBaseHelper.compareTo(this.queryAttributes, typedOther.queryAttributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryAttributes, typedOther.queryAttributes); if (lastComparison != 0) { return lastComparison; } @@ -740,7 +734,7 @@ public class Query implements TBase, java.io.Serializable, return lastComparison; } if (isSetQueryCounters()) { - lastComparison = TBaseHelper.compareTo(this.queryCounters, typedOther.queryCounters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryCounters, typedOther.queryCounters); if (lastComparison != 0) { return lastComparison; } @@ -750,7 +744,7 @@ public class Query implements TBase, java.io.Serializable, return lastComparison; } if (isSetStageGraph()) { - lastComparison = TBaseHelper.compareTo(this.stageGraph, typedOther.stageGraph); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageGraph, typedOther.stageGraph); if (lastComparison != 0) { return lastComparison; } @@ -760,7 +754,7 @@ public class Query implements TBase, java.io.Serializable, return lastComparison; } if (isSetStageList()) { - lastComparison = TBaseHelper.compareTo(this.stageList, typedOther.stageList); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageList, typedOther.stageList); if (lastComparison != 0) { return lastComparison; } @@ -770,7 +764,7 @@ public class Query implements TBase, java.io.Serializable, return lastComparison; } if (isSetDone()) { - lastComparison = TBaseHelper.compareTo(this.done, typedOther.done); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, typedOther.done); if (lastComparison != 0) { return lastComparison; } @@ -780,7 +774,7 @@ public class Query implements TBase, java.io.Serializable, return lastComparison; } if (isSetStarted()) { - lastComparison = TBaseHelper.compareTo(this.started, typedOther.started); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, typedOther.started); if (lastComparison != 0) { return lastComparison; } @@ -792,39 +786,39 @@ public class Query implements TBase, java.io.Serializable, return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // QUERY_ID - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.queryId = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // QUERY_TYPE - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.queryType = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // QUERY_ATTRIBUTES - if (field.type == TType.MAP) { + if (field.type == org.apache.thrift.protocol.TType.MAP) { { - TMap _map50 = iprot.readMapBegin(); + org.apache.thrift.protocol.TMap _map50 = iprot.readMapBegin(); this.queryAttributes = new HashMap(2*_map50.size); for (int _i51 = 0; _i51 < _map50.size; ++_i51) { - String _key52; - String _val53; + String _key52; // required + String _val53; // required _key52 = iprot.readString(); _val53 = iprot.readString(); this.queryAttributes.put(_key52, _val53); @@ -832,18 +826,18 @@ public class Query implements TBase, java.io.Serializable, iprot.readMapEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // QUERY_COUNTERS - if (field.type == TType.MAP) { + if (field.type == org.apache.thrift.protocol.TType.MAP) { { - TMap _map54 = iprot.readMapBegin(); + org.apache.thrift.protocol.TMap _map54 = iprot.readMapBegin(); this.queryCounters = new HashMap(2*_map54.size); for (int _i55 = 0; _i55 < _map54.size; ++_i55) { - String _key56; - long _val57; + String _key56; // required + long _val57; // required _key56 = iprot.readString(); _val57 = iprot.readI64(); this.queryCounters.put(_key56, _val57); @@ -851,25 +845,25 @@ public class Query implements TBase, java.io.Serializable, iprot.readMapEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 5: // STAGE_GRAPH - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.stageGraph = new Graph(); this.stageGraph.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 6: // STAGE_LIST - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list58 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list58 = iprot.readListBegin(); this.stageList = new ArrayList(_list58.size); for (int _i59 = 0; _i59 < _list58.size; ++_i59) { - Stage _elem60; + Stage _elem60; // required _elem60 = new Stage(); _elem60.read(iprot); this.stageList.add(_elem60); @@ -877,27 +871,27 @@ public class Query implements TBase, java.io.Serializable, iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 7: // DONE - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.done = iprot.readBool(); setDoneIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 8: // STARTED - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.started = iprot.readBool(); setStartedIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -905,7 +899,7 @@ public class Query implements TBase, java.io.Serializable, validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -922,7 +916,7 @@ public class Query implements TBase, java.io.Serializable, if (this.queryAttributes != null) { oprot.writeFieldBegin(QUERY_ATTRIBUTES_FIELD_DESC); { - oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.queryAttributes.size())); + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.queryAttributes.size())); for (Map.Entry _iter61 : this.queryAttributes.entrySet()) { oprot.writeString(_iter61.getKey()); @@ -935,7 +929,7 @@ public class Query implements TBase, java.io.Serializable, if (this.queryCounters != null) { oprot.writeFieldBegin(QUERY_COUNTERS_FIELD_DESC); { - oprot.writeMapBegin(new TMap(TType.STRING, TType.I64, this.queryCounters.size())); + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.queryCounters.size())); for (Map.Entry _iter62 : this.queryCounters.entrySet()) { oprot.writeString(_iter62.getKey()); @@ -953,7 +947,7 @@ public class Query implements TBase, java.io.Serializable, if (this.stageList != null) { oprot.writeFieldBegin(STAGE_LIST_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.stageList.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.stageList.size())); for (Stage _iter63 : this.stageList) { _iter63.write(oprot); @@ -1036,9 +1030,27 @@ public class Query implements TBase, java.io.Serializable, return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + 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); + } + } + } diff --git ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/QueryPlan.java ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/QueryPlan.java index ea18040..ce8827d 100644 --- ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/QueryPlan.java +++ ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/QueryPlan.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,25 +20,19 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; +public class QueryPlan implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("QueryPlan"); -public class QueryPlan implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("QueryPlan"); + private static final org.apache.thrift.protocol.TField QUERIES_FIELD_DESC = new org.apache.thrift.protocol.TField("queries", org.apache.thrift.protocol.TType.LIST, (short)1); + private static final org.apache.thrift.protocol.TField DONE_FIELD_DESC = new org.apache.thrift.protocol.TField("done", org.apache.thrift.protocol.TType.BOOL, (short)2); + private static final org.apache.thrift.protocol.TField STARTED_FIELD_DESC = new org.apache.thrift.protocol.TField("started", org.apache.thrift.protocol.TType.BOOL, (short)3); - private static final TField QUERIES_FIELD_DESC = new TField("queries", TType.LIST, (short)1); - private static final TField DONE_FIELD_DESC = new TField("done", TType.BOOL, (short)2); - private static final TField STARTED_FIELD_DESC = new TField("started", TType.BOOL, (short)3); - - private List queries; - private boolean done; - private boolean started; + private List queries; // required + private boolean done; // required + private boolean started; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { QUERIES((short)1, "queries"), DONE((short)2, "done"), STARTED((short)3, "started"); @@ -106,18 +100,18 @@ public class QueryPlan implements TBase, java.io.S private static final int __STARTED_ISSET_ID = 1; private BitSet __isset_bit_vector = new BitSet(2); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.QUERIES, new FieldMetaData("queries", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Query.class)))); - tmpMap.put(_Fields.DONE, new FieldMetaData("done", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); - tmpMap.put(_Fields.STARTED, new FieldMetaData("started", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.QUERIES, new org.apache.thrift.meta_data.FieldMetaData("queries", 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, Query.class)))); + tmpMap.put(_Fields.DONE, new org.apache.thrift.meta_data.FieldMetaData("done", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.STARTED, new org.apache.thrift.meta_data.FieldMetaData("started", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(QueryPlan.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(QueryPlan.class, metaDataMap); } public QueryPlan() { @@ -193,7 +187,7 @@ public class QueryPlan implements TBase, java.io.S this.queries = null; } - /** Returns true if field queries is set (has been asigned a value) and false otherwise */ + /** Returns true if field queries is set (has been assigned a value) and false otherwise */ public boolean isSetQueries() { return this.queries != null; } @@ -217,7 +211,7 @@ public class QueryPlan implements TBase, java.io.S __isset_bit_vector.clear(__DONE_ISSET_ID); } - /** Returns true if field done is set (has been asigned a value) and false otherwise */ + /** Returns true if field done is set (has been assigned a value) and false otherwise */ public boolean isSetDone() { return __isset_bit_vector.get(__DONE_ISSET_ID); } @@ -239,7 +233,7 @@ public class QueryPlan implements TBase, java.io.S __isset_bit_vector.clear(__STARTED_ISSET_ID); } - /** Returns true if field started is set (has been asigned a value) and false otherwise */ + /** Returns true if field started is set (has been assigned a value) and false otherwise */ public boolean isSetStarted() { return __isset_bit_vector.get(__STARTED_ISSET_ID); } @@ -283,16 +277,16 @@ public class QueryPlan implements TBase, java.io.S return getQueries(); case DONE: - return new Boolean(isDone()); + return Boolean.valueOf(isDone()); case STARTED: - return new Boolean(isStarted()); + return Boolean.valueOf(isStarted()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -370,7 +364,7 @@ public class QueryPlan implements TBase, java.io.S return lastComparison; } if (isSetQueries()) { - lastComparison = TBaseHelper.compareTo(this.queries, typedOther.queries); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queries, typedOther.queries); if (lastComparison != 0) { return lastComparison; } @@ -380,7 +374,7 @@ public class QueryPlan implements TBase, java.io.S return lastComparison; } if (isSetDone()) { - lastComparison = TBaseHelper.compareTo(this.done, typedOther.done); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, typedOther.done); if (lastComparison != 0) { return lastComparison; } @@ -390,7 +384,7 @@ public class QueryPlan implements TBase, java.io.S return lastComparison; } if (isSetStarted()) { - lastComparison = TBaseHelper.compareTo(this.started, typedOther.started); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, typedOther.started); if (lastComparison != 0) { return lastComparison; } @@ -402,24 +396,24 @@ public class QueryPlan implements TBase, java.io.S return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // QUERIES - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list64 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list64 = iprot.readListBegin(); this.queries = new ArrayList(_list64.size); for (int _i65 = 0; _i65 < _list64.size; ++_i65) { - Query _elem66; + Query _elem66; // required _elem66 = new Query(); _elem66.read(iprot); this.queries.add(_elem66); @@ -427,27 +421,27 @@ public class QueryPlan implements TBase, java.io.S iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // DONE - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.done = iprot.readBool(); setDoneIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // STARTED - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.started = iprot.readBool(); setStartedIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -455,14 +449,14 @@ public class QueryPlan implements TBase, java.io.S validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.queries != null) { oprot.writeFieldBegin(QUERIES_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.queries.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.queries.size())); for (Query _iter67 : this.queries) { _iter67.write(oprot); @@ -505,9 +499,27 @@ public class QueryPlan implements TBase, java.io.S return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + 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); + } + } + } diff --git ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Stage.java ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Stage.java index 4a852bd..e27a4dc 100644 --- ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Stage.java +++ ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Stage.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,33 +20,27 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; - -public class Stage implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("Stage"); - - private static final TField STAGE_ID_FIELD_DESC = new TField("stageId", TType.STRING, (short)1); - private static final TField STAGE_TYPE_FIELD_DESC = new TField("stageType", TType.I32, (short)2); - private static final TField STAGE_ATTRIBUTES_FIELD_DESC = new TField("stageAttributes", TType.MAP, (short)3); - private static final TField STAGE_COUNTERS_FIELD_DESC = new TField("stageCounters", TType.MAP, (short)4); - private static final TField TASK_LIST_FIELD_DESC = new TField("taskList", TType.LIST, (short)5); - private static final TField DONE_FIELD_DESC = new TField("done", TType.BOOL, (short)6); - private static final TField STARTED_FIELD_DESC = new TField("started", TType.BOOL, (short)7); - - private String stageId; - private StageType stageType; - private Map stageAttributes; - private Map stageCounters; - private List taskList; - private boolean done; - private boolean started; +public class Stage implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Stage"); + + private static final org.apache.thrift.protocol.TField STAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("stageId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField STAGE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("stageType", org.apache.thrift.protocol.TType.I32, (short)2); + private static final org.apache.thrift.protocol.TField STAGE_ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("stageAttributes", org.apache.thrift.protocol.TType.MAP, (short)3); + private static final org.apache.thrift.protocol.TField STAGE_COUNTERS_FIELD_DESC = new org.apache.thrift.protocol.TField("stageCounters", org.apache.thrift.protocol.TType.MAP, (short)4); + private static final org.apache.thrift.protocol.TField TASK_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("taskList", org.apache.thrift.protocol.TType.LIST, (short)5); + private static final org.apache.thrift.protocol.TField DONE_FIELD_DESC = new org.apache.thrift.protocol.TField("done", org.apache.thrift.protocol.TType.BOOL, (short)6); + private static final org.apache.thrift.protocol.TField STARTED_FIELD_DESC = new org.apache.thrift.protocol.TField("started", org.apache.thrift.protocol.TType.BOOL, (short)7); + + private String stageId; // required + private StageType stageType; // required + private Map stageAttributes; // required + private Map stageCounters; // required + private List taskList; // required + private boolean done; // required + private boolean started; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { STAGE_ID((short)1, "stageId"), /** * @@ -130,30 +124,30 @@ public class Stage implements TBase, java.io.Serializable, private static final int __STARTED_ISSET_ID = 1; private BitSet __isset_bit_vector = new BitSet(2); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.STAGE_ID, new FieldMetaData("stageId", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.STAGE_TYPE, new FieldMetaData("stageType", TFieldRequirementType.DEFAULT, - new EnumMetaData(TType.ENUM, StageType.class))); - tmpMap.put(_Fields.STAGE_ATTRIBUTES, new FieldMetaData("stageAttributes", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.STAGE_COUNTERS, new FieldMetaData("stageCounters", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new FieldValueMetaData(TType.I64)))); - tmpMap.put(_Fields.TASK_LIST, new FieldMetaData("taskList", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Task.class)))); - tmpMap.put(_Fields.DONE, new FieldMetaData("done", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); - tmpMap.put(_Fields.STARTED, new FieldMetaData("started", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.STAGE_ID, new org.apache.thrift.meta_data.FieldMetaData("stageId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.STAGE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stageType", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, StageType.class))); + tmpMap.put(_Fields.STAGE_ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("stageAttributes", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.STAGE_COUNTERS, new org.apache.thrift.meta_data.FieldMetaData("stageCounters", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); + tmpMap.put(_Fields.TASK_LIST, new org.apache.thrift.meta_data.FieldMetaData("taskList", 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, Task.class)))); + tmpMap.put(_Fields.DONE, new org.apache.thrift.meta_data.FieldMetaData("done", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.STARTED, new org.apache.thrift.meta_data.FieldMetaData("started", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(Stage.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Stage.class, metaDataMap); } public Stage() { @@ -262,7 +256,7 @@ public class Stage implements TBase, java.io.Serializable, this.stageId = null; } - /** Returns true if field stageId is set (has been asigned a value) and false otherwise */ + /** Returns true if field stageId is set (has been assigned a value) and false otherwise */ public boolean isSetStageId() { return this.stageId != null; } @@ -293,7 +287,7 @@ public class Stage implements TBase, java.io.Serializable, this.stageType = null; } - /** Returns true if field stageType is set (has been asigned a value) and false otherwise */ + /** Returns true if field stageType is set (has been assigned a value) and false otherwise */ public boolean isSetStageType() { return this.stageType != null; } @@ -327,7 +321,7 @@ public class Stage implements TBase, java.io.Serializable, this.stageAttributes = null; } - /** Returns true if field stageAttributes is set (has been asigned a value) and false otherwise */ + /** Returns true if field stageAttributes is set (has been assigned a value) and false otherwise */ public boolean isSetStageAttributes() { return this.stageAttributes != null; } @@ -361,7 +355,7 @@ public class Stage implements TBase, java.io.Serializable, this.stageCounters = null; } - /** Returns true if field stageCounters is set (has been asigned a value) and false otherwise */ + /** Returns true if field stageCounters is set (has been assigned a value) and false otherwise */ public boolean isSetStageCounters() { return this.stageCounters != null; } @@ -399,7 +393,7 @@ public class Stage implements TBase, java.io.Serializable, this.taskList = null; } - /** Returns true if field taskList is set (has been asigned a value) and false otherwise */ + /** Returns true if field taskList is set (has been assigned a value) and false otherwise */ public boolean isSetTaskList() { return this.taskList != null; } @@ -423,7 +417,7 @@ public class Stage implements TBase, java.io.Serializable, __isset_bit_vector.clear(__DONE_ISSET_ID); } - /** Returns true if field done is set (has been asigned a value) and false otherwise */ + /** Returns true if field done is set (has been assigned a value) and false otherwise */ public boolean isSetDone() { return __isset_bit_vector.get(__DONE_ISSET_ID); } @@ -445,7 +439,7 @@ public class Stage implements TBase, java.io.Serializable, __isset_bit_vector.clear(__STARTED_ISSET_ID); } - /** Returns true if field started is set (has been asigned a value) and false otherwise */ + /** Returns true if field started is set (has been assigned a value) and false otherwise */ public boolean isSetStarted() { return __isset_bit_vector.get(__STARTED_ISSET_ID); } @@ -533,16 +527,16 @@ public class Stage implements TBase, java.io.Serializable, return getTaskList(); case DONE: - return new Boolean(isDone()); + return Boolean.valueOf(isDone()); case STARTED: - return new Boolean(isStarted()); + return Boolean.valueOf(isStarted()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -664,7 +658,7 @@ public class Stage implements TBase, java.io.Serializable, return lastComparison; } if (isSetStageId()) { - lastComparison = TBaseHelper.compareTo(this.stageId, typedOther.stageId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageId, typedOther.stageId); if (lastComparison != 0) { return lastComparison; } @@ -674,7 +668,7 @@ public class Stage implements TBase, java.io.Serializable, return lastComparison; } if (isSetStageType()) { - lastComparison = TBaseHelper.compareTo(this.stageType, typedOther.stageType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageType, typedOther.stageType); if (lastComparison != 0) { return lastComparison; } @@ -684,7 +678,7 @@ public class Stage implements TBase, java.io.Serializable, return lastComparison; } if (isSetStageAttributes()) { - lastComparison = TBaseHelper.compareTo(this.stageAttributes, typedOther.stageAttributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageAttributes, typedOther.stageAttributes); if (lastComparison != 0) { return lastComparison; } @@ -694,7 +688,7 @@ public class Stage implements TBase, java.io.Serializable, return lastComparison; } if (isSetStageCounters()) { - lastComparison = TBaseHelper.compareTo(this.stageCounters, typedOther.stageCounters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageCounters, typedOther.stageCounters); if (lastComparison != 0) { return lastComparison; } @@ -704,7 +698,7 @@ public class Stage implements TBase, java.io.Serializable, return lastComparison; } if (isSetTaskList()) { - lastComparison = TBaseHelper.compareTo(this.taskList, typedOther.taskList); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskList, typedOther.taskList); if (lastComparison != 0) { return lastComparison; } @@ -714,7 +708,7 @@ public class Stage implements TBase, java.io.Serializable, return lastComparison; } if (isSetDone()) { - lastComparison = TBaseHelper.compareTo(this.done, typedOther.done); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, typedOther.done); if (lastComparison != 0) { return lastComparison; } @@ -724,7 +718,7 @@ public class Stage implements TBase, java.io.Serializable, return lastComparison; } if (isSetStarted()) { - lastComparison = TBaseHelper.compareTo(this.started, typedOther.started); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, typedOther.started); if (lastComparison != 0) { return lastComparison; } @@ -736,39 +730,39 @@ public class Stage implements TBase, java.io.Serializable, return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // STAGE_ID - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.stageId = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // STAGE_TYPE - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.stageType = StageType.findByValue(iprot.readI32()); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // STAGE_ATTRIBUTES - if (field.type == TType.MAP) { + if (field.type == org.apache.thrift.protocol.TType.MAP) { { - TMap _map36 = iprot.readMapBegin(); + org.apache.thrift.protocol.TMap _map36 = iprot.readMapBegin(); this.stageAttributes = new HashMap(2*_map36.size); for (int _i37 = 0; _i37 < _map36.size; ++_i37) { - String _key38; - String _val39; + String _key38; // required + String _val39; // required _key38 = iprot.readString(); _val39 = iprot.readString(); this.stageAttributes.put(_key38, _val39); @@ -776,18 +770,18 @@ public class Stage implements TBase, java.io.Serializable, iprot.readMapEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // STAGE_COUNTERS - if (field.type == TType.MAP) { + if (field.type == org.apache.thrift.protocol.TType.MAP) { { - TMap _map40 = iprot.readMapBegin(); + org.apache.thrift.protocol.TMap _map40 = iprot.readMapBegin(); this.stageCounters = new HashMap(2*_map40.size); for (int _i41 = 0; _i41 < _map40.size; ++_i41) { - String _key42; - long _val43; + String _key42; // required + long _val43; // required _key42 = iprot.readString(); _val43 = iprot.readI64(); this.stageCounters.put(_key42, _val43); @@ -795,17 +789,17 @@ public class Stage implements TBase, java.io.Serializable, iprot.readMapEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 5: // TASK_LIST - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list44 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list44 = iprot.readListBegin(); this.taskList = new ArrayList(_list44.size); for (int _i45 = 0; _i45 < _list44.size; ++_i45) { - Task _elem46; + Task _elem46; // required _elem46 = new Task(); _elem46.read(iprot); this.taskList.add(_elem46); @@ -813,27 +807,27 @@ public class Stage implements TBase, java.io.Serializable, iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 6: // DONE - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.done = iprot.readBool(); setDoneIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 7: // STARTED - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.started = iprot.readBool(); setStartedIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -841,7 +835,7 @@ public class Stage implements TBase, java.io.Serializable, validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -858,7 +852,7 @@ public class Stage implements TBase, java.io.Serializable, if (this.stageAttributes != null) { oprot.writeFieldBegin(STAGE_ATTRIBUTES_FIELD_DESC); { - oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.stageAttributes.size())); + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.stageAttributes.size())); for (Map.Entry _iter47 : this.stageAttributes.entrySet()) { oprot.writeString(_iter47.getKey()); @@ -871,7 +865,7 @@ public class Stage implements TBase, java.io.Serializable, if (this.stageCounters != null) { oprot.writeFieldBegin(STAGE_COUNTERS_FIELD_DESC); { - oprot.writeMapBegin(new TMap(TType.STRING, TType.I64, this.stageCounters.size())); + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.stageCounters.size())); for (Map.Entry _iter48 : this.stageCounters.entrySet()) { oprot.writeString(_iter48.getKey()); @@ -884,7 +878,7 @@ public class Stage implements TBase, java.io.Serializable, if (this.taskList != null) { oprot.writeFieldBegin(TASK_LIST_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.taskList.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.taskList.size())); for (Task _iter49 : this.taskList) { _iter49.write(oprot); @@ -959,9 +953,27 @@ public class Stage implements TBase, java.io.Serializable, return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + 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); + } + } + } diff --git ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/StageType.java ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/StageType.java index 305f9af..e6bd59a 100644 --- ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/StageType.java +++ ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/StageType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -10,7 +10,7 @@ import java.util.Map; import java.util.HashMap; import org.apache.thrift.TEnum; -public enum StageType implements TEnum { +public enum StageType implements org.apache.thrift.TEnum { CONDITIONAL(0), COPY(1), DDL(2), diff --git ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Task.java ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Task.java index ddad2a8..3652ca4 100644 --- ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Task.java +++ ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Task.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,35 +20,29 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; - -public class Task implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("Task"); - - private static final TField TASK_ID_FIELD_DESC = new TField("taskId", TType.STRING, (short)1); - private static final TField TASK_TYPE_FIELD_DESC = new TField("taskType", TType.I32, (short)2); - private static final TField TASK_ATTRIBUTES_FIELD_DESC = new TField("taskAttributes", TType.MAP, (short)3); - private static final TField TASK_COUNTERS_FIELD_DESC = new TField("taskCounters", TType.MAP, (short)4); - private static final TField OPERATOR_GRAPH_FIELD_DESC = new TField("operatorGraph", TType.STRUCT, (short)5); - private static final TField OPERATOR_LIST_FIELD_DESC = new TField("operatorList", TType.LIST, (short)6); - private static final TField DONE_FIELD_DESC = new TField("done", TType.BOOL, (short)7); - private static final TField STARTED_FIELD_DESC = new TField("started", TType.BOOL, (short)8); - - private String taskId; - private TaskType taskType; - private Map taskAttributes; - private Map taskCounters; - private Graph operatorGraph; - private List operatorList; - private boolean done; - private boolean started; +public class Task implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Task"); + + private static final org.apache.thrift.protocol.TField TASK_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("taskId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TASK_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("taskType", org.apache.thrift.protocol.TType.I32, (short)2); + private static final org.apache.thrift.protocol.TField TASK_ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("taskAttributes", org.apache.thrift.protocol.TType.MAP, (short)3); + private static final org.apache.thrift.protocol.TField TASK_COUNTERS_FIELD_DESC = new org.apache.thrift.protocol.TField("taskCounters", org.apache.thrift.protocol.TType.MAP, (short)4); + private static final org.apache.thrift.protocol.TField OPERATOR_GRAPH_FIELD_DESC = new org.apache.thrift.protocol.TField("operatorGraph", org.apache.thrift.protocol.TType.STRUCT, (short)5); + private static final org.apache.thrift.protocol.TField OPERATOR_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("operatorList", org.apache.thrift.protocol.TType.LIST, (short)6); + private static final org.apache.thrift.protocol.TField DONE_FIELD_DESC = new org.apache.thrift.protocol.TField("done", org.apache.thrift.protocol.TType.BOOL, (short)7); + private static final org.apache.thrift.protocol.TField STARTED_FIELD_DESC = new org.apache.thrift.protocol.TField("started", org.apache.thrift.protocol.TType.BOOL, (short)8); + + private String taskId; // required + private TaskType taskType; // required + private Map taskAttributes; // required + private Map taskCounters; // required + private Graph operatorGraph; // required + private List operatorList; // required + private boolean done; // required + private boolean started; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { TASK_ID((short)1, "taskId"), /** * @@ -135,32 +129,32 @@ public class Task implements TBase, java.io.Serializable, Cl private static final int __STARTED_ISSET_ID = 1; private BitSet __isset_bit_vector = new BitSet(2); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.TASK_ID, new FieldMetaData("taskId", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.TASK_TYPE, new FieldMetaData("taskType", TFieldRequirementType.DEFAULT, - new EnumMetaData(TType.ENUM, TaskType.class))); - tmpMap.put(_Fields.TASK_ATTRIBUTES, new FieldMetaData("taskAttributes", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.TASK_COUNTERS, new FieldMetaData("taskCounters", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new FieldValueMetaData(TType.I64)))); - tmpMap.put(_Fields.OPERATOR_GRAPH, new FieldMetaData("operatorGraph", TFieldRequirementType.OPTIONAL, - new StructMetaData(TType.STRUCT, Graph.class))); - tmpMap.put(_Fields.OPERATOR_LIST, new FieldMetaData("operatorList", TFieldRequirementType.OPTIONAL, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, Operator.class)))); - tmpMap.put(_Fields.DONE, new FieldMetaData("done", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); - tmpMap.put(_Fields.STARTED, new FieldMetaData("started", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.BOOL))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.TASK_ID, new org.apache.thrift.meta_data.FieldMetaData("taskId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TASK_TYPE, new org.apache.thrift.meta_data.FieldMetaData("taskType", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TaskType.class))); + tmpMap.put(_Fields.TASK_ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("taskAttributes", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.TASK_COUNTERS, new org.apache.thrift.meta_data.FieldMetaData("taskCounters", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); + tmpMap.put(_Fields.OPERATOR_GRAPH, new org.apache.thrift.meta_data.FieldMetaData("operatorGraph", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Graph.class))); + tmpMap.put(_Fields.OPERATOR_LIST, new org.apache.thrift.meta_data.FieldMetaData("operatorList", 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, Operator.class)))); + tmpMap.put(_Fields.DONE, new org.apache.thrift.meta_data.FieldMetaData("done", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.STARTED, new org.apache.thrift.meta_data.FieldMetaData("started", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(Task.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Task.class, metaDataMap); } public Task() { @@ -271,7 +265,7 @@ public class Task implements TBase, java.io.Serializable, Cl this.taskId = null; } - /** Returns true if field taskId is set (has been asigned a value) and false otherwise */ + /** Returns true if field taskId is set (has been assigned a value) and false otherwise */ public boolean isSetTaskId() { return this.taskId != null; } @@ -302,7 +296,7 @@ public class Task implements TBase, java.io.Serializable, Cl this.taskType = null; } - /** Returns true if field taskType is set (has been asigned a value) and false otherwise */ + /** Returns true if field taskType is set (has been assigned a value) and false otherwise */ public boolean isSetTaskType() { return this.taskType != null; } @@ -336,7 +330,7 @@ public class Task implements TBase, java.io.Serializable, Cl this.taskAttributes = null; } - /** Returns true if field taskAttributes is set (has been asigned a value) and false otherwise */ + /** Returns true if field taskAttributes is set (has been assigned a value) and false otherwise */ public boolean isSetTaskAttributes() { return this.taskAttributes != null; } @@ -370,7 +364,7 @@ public class Task implements TBase, java.io.Serializable, Cl this.taskCounters = null; } - /** Returns true if field taskCounters is set (has been asigned a value) and false otherwise */ + /** Returns true if field taskCounters is set (has been assigned a value) and false otherwise */ public boolean isSetTaskCounters() { return this.taskCounters != null; } @@ -393,7 +387,7 @@ public class Task implements TBase, java.io.Serializable, Cl this.operatorGraph = null; } - /** Returns true if field operatorGraph is set (has been asigned a value) and false otherwise */ + /** Returns true if field operatorGraph is set (has been assigned a value) and false otherwise */ public boolean isSetOperatorGraph() { return this.operatorGraph != null; } @@ -431,7 +425,7 @@ public class Task implements TBase, java.io.Serializable, Cl this.operatorList = null; } - /** Returns true if field operatorList is set (has been asigned a value) and false otherwise */ + /** Returns true if field operatorList is set (has been assigned a value) and false otherwise */ public boolean isSetOperatorList() { return this.operatorList != null; } @@ -455,7 +449,7 @@ public class Task implements TBase, java.io.Serializable, Cl __isset_bit_vector.clear(__DONE_ISSET_ID); } - /** Returns true if field done is set (has been asigned a value) and false otherwise */ + /** Returns true if field done is set (has been assigned a value) and false otherwise */ public boolean isSetDone() { return __isset_bit_vector.get(__DONE_ISSET_ID); } @@ -477,7 +471,7 @@ public class Task implements TBase, java.io.Serializable, Cl __isset_bit_vector.clear(__STARTED_ISSET_ID); } - /** Returns true if field started is set (has been asigned a value) and false otherwise */ + /** Returns true if field started is set (has been assigned a value) and false otherwise */ public boolean isSetStarted() { return __isset_bit_vector.get(__STARTED_ISSET_ID); } @@ -576,16 +570,16 @@ public class Task implements TBase, java.io.Serializable, Cl return getOperatorList(); case DONE: - return new Boolean(isDone()); + return Boolean.valueOf(isDone()); case STARTED: - return new Boolean(isStarted()); + return Boolean.valueOf(isStarted()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -718,7 +712,7 @@ public class Task implements TBase, java.io.Serializable, Cl return lastComparison; } if (isSetTaskId()) { - lastComparison = TBaseHelper.compareTo(this.taskId, typedOther.taskId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskId, typedOther.taskId); if (lastComparison != 0) { return lastComparison; } @@ -728,7 +722,7 @@ public class Task implements TBase, java.io.Serializable, Cl return lastComparison; } if (isSetTaskType()) { - lastComparison = TBaseHelper.compareTo(this.taskType, typedOther.taskType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskType, typedOther.taskType); if (lastComparison != 0) { return lastComparison; } @@ -738,7 +732,7 @@ public class Task implements TBase, java.io.Serializable, Cl return lastComparison; } if (isSetTaskAttributes()) { - lastComparison = TBaseHelper.compareTo(this.taskAttributes, typedOther.taskAttributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskAttributes, typedOther.taskAttributes); if (lastComparison != 0) { return lastComparison; } @@ -748,7 +742,7 @@ public class Task implements TBase, java.io.Serializable, Cl return lastComparison; } if (isSetTaskCounters()) { - lastComparison = TBaseHelper.compareTo(this.taskCounters, typedOther.taskCounters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskCounters, typedOther.taskCounters); if (lastComparison != 0) { return lastComparison; } @@ -758,7 +752,7 @@ public class Task implements TBase, java.io.Serializable, Cl return lastComparison; } if (isSetOperatorGraph()) { - lastComparison = TBaseHelper.compareTo(this.operatorGraph, typedOther.operatorGraph); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorGraph, typedOther.operatorGraph); if (lastComparison != 0) { return lastComparison; } @@ -768,7 +762,7 @@ public class Task implements TBase, java.io.Serializable, Cl return lastComparison; } if (isSetOperatorList()) { - lastComparison = TBaseHelper.compareTo(this.operatorList, typedOther.operatorList); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorList, typedOther.operatorList); if (lastComparison != 0) { return lastComparison; } @@ -778,7 +772,7 @@ public class Task implements TBase, java.io.Serializable, Cl return lastComparison; } if (isSetDone()) { - lastComparison = TBaseHelper.compareTo(this.done, typedOther.done); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, typedOther.done); if (lastComparison != 0) { return lastComparison; } @@ -788,7 +782,7 @@ public class Task implements TBase, java.io.Serializable, Cl return lastComparison; } if (isSetStarted()) { - lastComparison = TBaseHelper.compareTo(this.started, typedOther.started); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, typedOther.started); if (lastComparison != 0) { return lastComparison; } @@ -800,39 +794,39 @@ public class Task implements TBase, java.io.Serializable, Cl return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // TASK_ID - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.taskId = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // TASK_TYPE - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.taskType = TaskType.findByValue(iprot.readI32()); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // TASK_ATTRIBUTES - if (field.type == TType.MAP) { + if (field.type == org.apache.thrift.protocol.TType.MAP) { { - TMap _map22 = iprot.readMapBegin(); + org.apache.thrift.protocol.TMap _map22 = iprot.readMapBegin(); this.taskAttributes = new HashMap(2*_map22.size); for (int _i23 = 0; _i23 < _map22.size; ++_i23) { - String _key24; - String _val25; + String _key24; // required + String _val25; // required _key24 = iprot.readString(); _val25 = iprot.readString(); this.taskAttributes.put(_key24, _val25); @@ -840,18 +834,18 @@ public class Task implements TBase, java.io.Serializable, Cl iprot.readMapEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // TASK_COUNTERS - if (field.type == TType.MAP) { + if (field.type == org.apache.thrift.protocol.TType.MAP) { { - TMap _map26 = iprot.readMapBegin(); + org.apache.thrift.protocol.TMap _map26 = iprot.readMapBegin(); this.taskCounters = new HashMap(2*_map26.size); for (int _i27 = 0; _i27 < _map26.size; ++_i27) { - String _key28; - long _val29; + String _key28; // required + long _val29; // required _key28 = iprot.readString(); _val29 = iprot.readI64(); this.taskCounters.put(_key28, _val29); @@ -859,25 +853,25 @@ public class Task implements TBase, java.io.Serializable, Cl iprot.readMapEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 5: // OPERATOR_GRAPH - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.operatorGraph = new Graph(); this.operatorGraph.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 6: // OPERATOR_LIST - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list30 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list30 = iprot.readListBegin(); this.operatorList = new ArrayList(_list30.size); for (int _i31 = 0; _i31 < _list30.size; ++_i31) { - Operator _elem32; + Operator _elem32; // required _elem32 = new Operator(); _elem32.read(iprot); this.operatorList.add(_elem32); @@ -885,27 +879,27 @@ public class Task implements TBase, java.io.Serializable, Cl iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 7: // DONE - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.done = iprot.readBool(); setDoneIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 8: // STARTED - if (field.type == TType.BOOL) { + if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.started = iprot.readBool(); setStartedIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -913,7 +907,7 @@ public class Task implements TBase, java.io.Serializable, Cl validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -930,7 +924,7 @@ public class Task implements TBase, java.io.Serializable, Cl if (this.taskAttributes != null) { oprot.writeFieldBegin(TASK_ATTRIBUTES_FIELD_DESC); { - oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.taskAttributes.size())); + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.taskAttributes.size())); for (Map.Entry _iter33 : this.taskAttributes.entrySet()) { oprot.writeString(_iter33.getKey()); @@ -943,7 +937,7 @@ public class Task implements TBase, java.io.Serializable, Cl if (this.taskCounters != null) { oprot.writeFieldBegin(TASK_COUNTERS_FIELD_DESC); { - oprot.writeMapBegin(new TMap(TType.STRING, TType.I64, this.taskCounters.size())); + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.taskCounters.size())); for (Map.Entry _iter34 : this.taskCounters.entrySet()) { oprot.writeString(_iter34.getKey()); @@ -964,7 +958,7 @@ public class Task implements TBase, java.io.Serializable, Cl if (isSetOperatorList()) { oprot.writeFieldBegin(OPERATOR_LIST_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.operatorList.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.operatorList.size())); for (Operator _iter35 : this.operatorList) { _iter35.write(oprot); @@ -1052,9 +1046,27 @@ public class Task implements TBase, java.io.Serializable, Cl return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + 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); + } + } + } diff --git ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/TaskType.java ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/TaskType.java index 001d495..07ffdcf 100644 --- ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/TaskType.java +++ ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/TaskType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -10,7 +10,7 @@ import java.util.Map; import java.util.HashMap; import org.apache.thrift.TEnum; -public enum TaskType implements TEnum { +public enum TaskType implements org.apache.thrift.TEnum { MAP(0), REDUCE(1), OTHER(2); diff --git ql/src/gen/thrift/gen-php/queryplan/queryplan_types.php ql/src/gen/thrift/gen-php/queryplan/queryplan_types.php index 5060b0e..444bfb6 100644 --- ql/src/gen/thrift/gen-php/queryplan/queryplan_types.php +++ ql/src/gen/thrift/gen-php/queryplan/queryplan_types.php @@ -1,6 +1,6 @@ + + diff --git serde/src/gen/thrift/gen-cpp/serde_constants.cpp serde/src/gen/thrift/gen-cpp/serde_constants.cpp index 52811cf..0339976 100644 --- serde/src/gen/thrift/gen-cpp/serde_constants.cpp +++ serde/src/gen/thrift/gen-cpp/serde_constants.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ diff --git serde/src/gen/thrift/gen-cpp/serde_constants.h serde/src/gen/thrift/gen-cpp/serde_constants.h index b7a67ba..82fcee5 100644 --- serde/src/gen/thrift/gen-cpp/serde_constants.h +++ serde/src/gen/thrift/gen-cpp/serde_constants.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ diff --git serde/src/gen/thrift/gen-cpp/serde_types.cpp serde/src/gen/thrift/gen-cpp/serde_types.cpp index 826f2bb..b90c657 100644 --- serde/src/gen/thrift/gen-cpp/serde_types.cpp +++ serde/src/gen/thrift/gen-cpp/serde_types.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ diff --git serde/src/gen/thrift/gen-cpp/serde_types.h serde/src/gen/thrift/gen-cpp/serde_types.h index 8a9d46c..78820a8 100644 --- serde/src/gen/thrift/gen-cpp/serde_types.h +++ serde/src/gen/thrift/gen-cpp/serde_types.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ diff --git serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/Constants.java serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/Constants.java index b062442..6163eb7 100644 --- serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/Constants.java +++ serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/Constants.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ diff --git serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/InnerStruct.java serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/InnerStruct.java index 248faa5..51e5b11 100644 --- serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/InnerStruct.java +++ serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/InnerStruct.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,21 +20,15 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; +public class InnerStruct implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerStruct"); -public class InnerStruct implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("InnerStruct"); + private static final org.apache.thrift.protocol.TField FIELD0_FIELD_DESC = new org.apache.thrift.protocol.TField("field0", org.apache.thrift.protocol.TType.I32, (short)1); - private static final TField FIELD0_FIELD_DESC = new TField("field0", TType.I32, (short)1); - - private int field0; + private int field0; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { FIELD0((short)1, "field0"); private static final Map byName = new HashMap(); @@ -95,13 +89,13 @@ public class InnerStruct implements TBase, jav private static final int __FIELD0_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.FIELD0, new FieldMetaData("field0", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.FIELD0, new org.apache.thrift.meta_data.FieldMetaData("field0", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(InnerStruct.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(InnerStruct.class, metaDataMap); } public InnerStruct() { @@ -147,7 +141,7 @@ public class InnerStruct implements TBase, jav __isset_bit_vector.clear(__FIELD0_ISSET_ID); } - /** Returns true if field field0 is set (has been asigned a value) and false otherwise */ + /** Returns true if field field0 is set (has been assigned a value) and false otherwise */ public boolean isSetField0() { return __isset_bit_vector.get(__FIELD0_ISSET_ID); } @@ -172,13 +166,13 @@ public class InnerStruct implements TBase, jav public Object getFieldValue(_Fields field) { switch (field) { case FIELD0: - return new Integer(getField0()); + return Integer.valueOf(getField0()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -234,7 +228,7 @@ public class InnerStruct implements TBase, jav return lastComparison; } if (isSetField0()) { - lastComparison = TBaseHelper.compareTo(this.field0, typedOther.field0); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.field0, typedOther.field0); if (lastComparison != 0) { return lastComparison; } @@ -246,26 +240,26 @@ public class InnerStruct implements TBase, jav return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // FIELD0 - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.field0 = iprot.readI32(); setField0IsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -273,7 +267,7 @@ public class InnerStruct implements TBase, jav validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -296,9 +290,27 @@ public class InnerStruct implements TBase, jav return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + 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); + } + } + } diff --git serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/ThriftTestObj.java serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/ThriftTestObj.java index 26ec311..70f7ec0 100644 --- serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/ThriftTestObj.java +++ serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/ThriftTestObj.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,25 +20,19 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; +public class ThriftTestObj implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ThriftTestObj"); -public class ThriftTestObj implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("ThriftTestObj"); + private static final org.apache.thrift.protocol.TField FIELD1_FIELD_DESC = new org.apache.thrift.protocol.TField("field1", org.apache.thrift.protocol.TType.I32, (short)1); + private static final org.apache.thrift.protocol.TField FIELD2_FIELD_DESC = new org.apache.thrift.protocol.TField("field2", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField FIELD3_FIELD_DESC = new org.apache.thrift.protocol.TField("field3", org.apache.thrift.protocol.TType.LIST, (short)3); - private static final TField FIELD1_FIELD_DESC = new TField("field1", TType.I32, (short)1); - private static final TField FIELD2_FIELD_DESC = new TField("field2", TType.STRING, (short)2); - private static final TField FIELD3_FIELD_DESC = new TField("field3", TType.LIST, (short)3); - - private int field1; - private String field2; - private List field3; + private int field1; // required + private String field2; // required + private List field3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { FIELD1((short)1, "field1"), FIELD2((short)2, "field2"), FIELD3((short)3, "field3"); @@ -105,18 +99,18 @@ public class ThriftTestObj implements TBase metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.FIELD1, new FieldMetaData("field1", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMap.put(_Fields.FIELD2, new FieldMetaData("field2", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.FIELD3, new FieldMetaData("field3", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, InnerStruct.class)))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.FIELD1, new org.apache.thrift.meta_data.FieldMetaData("field1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.FIELD2, new org.apache.thrift.meta_data.FieldMetaData("field2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FIELD3, new org.apache.thrift.meta_data.FieldMetaData("field3", 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, InnerStruct.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(ThriftTestObj.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ThriftTestObj.class, metaDataMap); } public ThriftTestObj() { @@ -178,7 +172,7 @@ public class ThriftTestObj implements TBase(_list0.size); for (int _i1 = 0; _i1 < _list0.size; ++_i1) { - InnerStruct _elem2; + InnerStruct _elem2; // required _elem2 = new InnerStruct(); _elem2.read(iprot); this.field3.add(_elem2); @@ -442,11 +436,11 @@ public class ThriftTestObj implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("Complex"); - - private static final TField AINT_FIELD_DESC = new TField("aint", TType.I32, (short)1); - private static final TField A_STRING_FIELD_DESC = new TField("aString", TType.STRING, (short)2); - private static final TField LINT_FIELD_DESC = new TField("lint", TType.LIST, (short)3); - private static final TField L_STRING_FIELD_DESC = new TField("lString", TType.LIST, (short)4); - private static final TField LINT_STRING_FIELD_DESC = new TField("lintString", TType.LIST, (short)5); - private static final TField M_STRING_STRING_FIELD_DESC = new TField("mStringString", TType.MAP, (short)6); - - private int aint; - private String aString; - private List lint; - private List lString; - private List lintString; - private Map mStringString; +public class Complex implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Complex"); + + private static final org.apache.thrift.protocol.TField AINT_FIELD_DESC = new org.apache.thrift.protocol.TField("aint", org.apache.thrift.protocol.TType.I32, (short)1); + private static final org.apache.thrift.protocol.TField A_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("aString", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField LINT_FIELD_DESC = new org.apache.thrift.protocol.TField("lint", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField L_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("lString", org.apache.thrift.protocol.TType.LIST, (short)4); + private static final org.apache.thrift.protocol.TField LINT_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("lintString", org.apache.thrift.protocol.TType.LIST, (short)5); + private static final org.apache.thrift.protocol.TField M_STRING_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("mStringString", org.apache.thrift.protocol.TType.MAP, (short)6); + + private int aint; // required + private String aString; // required + private List lint; // required + private List lString; // required + private List lintString; // required + private Map mStringString; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { AINT((short)1, "aint"), A_STRING((short)2, "aString"), LINT((short)3, "lint"), @@ -120,28 +114,28 @@ public class Complex implements TBase, java.io.Seriali private static final int __AINT_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.AINT, new FieldMetaData("aint", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMap.put(_Fields.A_STRING, new FieldMetaData("aString", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.LINT, new FieldMetaData("lint", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.I32)))); - tmpMap.put(_Fields.L_STRING, new FieldMetaData("lString", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.LINT_STRING, new FieldMetaData("lintString", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new StructMetaData(TType.STRUCT, IntString.class)))); - tmpMap.put(_Fields.M_STRING_STRING, new FieldMetaData("mStringString", TFieldRequirementType.DEFAULT, - new MapMetaData(TType.MAP, - new FieldValueMetaData(TType.STRING), - new FieldValueMetaData(TType.STRING)))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.AINT, new org.apache.thrift.meta_data.FieldMetaData("aint", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.A_STRING, new org.apache.thrift.meta_data.FieldMetaData("aString", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LINT, new org.apache.thrift.meta_data.FieldMetaData("lint", 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.I32)))); + tmpMap.put(_Fields.L_STRING, new org.apache.thrift.meta_data.FieldMetaData("lString", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.LINT_STRING, new org.apache.thrift.meta_data.FieldMetaData("lintString", 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, IntString.class)))); + tmpMap.put(_Fields.M_STRING_STRING, new org.apache.thrift.meta_data.FieldMetaData("mStringString", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(Complex.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Complex.class, metaDataMap); } public Complex() { @@ -241,7 +235,7 @@ public class Complex implements TBase, java.io.Seriali __isset_bit_vector.clear(__AINT_ISSET_ID); } - /** Returns true if field aint is set (has been asigned a value) and false otherwise */ + /** Returns true if field aint is set (has been assigned a value) and false otherwise */ public boolean isSetAint() { return __isset_bit_vector.get(__AINT_ISSET_ID); } @@ -262,7 +256,7 @@ public class Complex implements TBase, java.io.Seriali this.aString = null; } - /** Returns true if field aString is set (has been asigned a value) and false otherwise */ + /** Returns true if field aString is set (has been assigned a value) and false otherwise */ public boolean isSetAString() { return this.aString != null; } @@ -300,7 +294,7 @@ public class Complex implements TBase, java.io.Seriali this.lint = null; } - /** Returns true if field lint is set (has been asigned a value) and false otherwise */ + /** Returns true if field lint is set (has been assigned a value) and false otherwise */ public boolean isSetLint() { return this.lint != null; } @@ -338,7 +332,7 @@ public class Complex implements TBase, java.io.Seriali this.lString = null; } - /** Returns true if field lString is set (has been asigned a value) and false otherwise */ + /** Returns true if field lString is set (has been assigned a value) and false otherwise */ public boolean isSetLString() { return this.lString != null; } @@ -376,7 +370,7 @@ public class Complex implements TBase, java.io.Seriali this.lintString = null; } - /** Returns true if field lintString is set (has been asigned a value) and false otherwise */ + /** Returns true if field lintString is set (has been assigned a value) and false otherwise */ public boolean isSetLintString() { return this.lintString != null; } @@ -410,7 +404,7 @@ public class Complex implements TBase, java.io.Seriali this.mStringString = null; } - /** Returns true if field mStringString is set (has been asigned a value) and false otherwise */ + /** Returns true if field mStringString is set (has been assigned a value) and false otherwise */ public boolean isSetMStringString() { return this.mStringString != null; } @@ -477,7 +471,7 @@ public class Complex implements TBase, java.io.Seriali public Object getFieldValue(_Fields field) { switch (field) { case AINT: - return new Integer(getAint()); + return Integer.valueOf(getAint()); case A_STRING: return getAString(); @@ -498,7 +492,7 @@ public class Complex implements TBase, java.io.Seriali throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -609,7 +603,7 @@ public class Complex implements TBase, java.io.Seriali return lastComparison; } if (isSetAint()) { - lastComparison = TBaseHelper.compareTo(this.aint, typedOther.aint); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aint, typedOther.aint); if (lastComparison != 0) { return lastComparison; } @@ -619,7 +613,7 @@ public class Complex implements TBase, java.io.Seriali return lastComparison; } if (isSetAString()) { - lastComparison = TBaseHelper.compareTo(this.aString, typedOther.aString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aString, typedOther.aString); if (lastComparison != 0) { return lastComparison; } @@ -629,7 +623,7 @@ public class Complex implements TBase, java.io.Seriali return lastComparison; } if (isSetLint()) { - lastComparison = TBaseHelper.compareTo(this.lint, typedOther.lint); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lint, typedOther.lint); if (lastComparison != 0) { return lastComparison; } @@ -639,7 +633,7 @@ public class Complex implements TBase, java.io.Seriali return lastComparison; } if (isSetLString()) { - lastComparison = TBaseHelper.compareTo(this.lString, typedOther.lString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lString, typedOther.lString); if (lastComparison != 0) { return lastComparison; } @@ -649,7 +643,7 @@ public class Complex implements TBase, java.io.Seriali return lastComparison; } if (isSetLintString()) { - lastComparison = TBaseHelper.compareTo(this.lintString, typedOther.lintString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lintString, typedOther.lintString); if (lastComparison != 0) { return lastComparison; } @@ -659,7 +653,7 @@ public class Complex implements TBase, java.io.Seriali return lastComparison; } if (isSetMStringString()) { - lastComparison = TBaseHelper.compareTo(this.mStringString, typedOther.mStringString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mStringString, typedOther.mStringString); if (lastComparison != 0) { return lastComparison; } @@ -671,73 +665,73 @@ public class Complex implements TBase, java.io.Seriali return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // AINT - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.aint = iprot.readI32(); setAintIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // A_STRING - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.aString = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // LINT - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list0 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); this.lint = new ArrayList(_list0.size); for (int _i1 = 0; _i1 < _list0.size; ++_i1) { - int _elem2; + int _elem2; // required _elem2 = iprot.readI32(); this.lint.add(_elem2); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // L_STRING - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list3 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list3 = iprot.readListBegin(); this.lString = new ArrayList(_list3.size); for (int _i4 = 0; _i4 < _list3.size; ++_i4) { - String _elem5; + String _elem5; // required _elem5 = iprot.readString(); this.lString.add(_elem5); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 5: // LINT_STRING - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list6 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list6 = iprot.readListBegin(); this.lintString = new ArrayList(_list6.size); for (int _i7 = 0; _i7 < _list6.size; ++_i7) { - IntString _elem8; + IntString _elem8; // required _elem8 = new IntString(); _elem8.read(iprot); this.lintString.add(_elem8); @@ -745,18 +739,18 @@ public class Complex implements TBase, java.io.Seriali iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 6: // M_STRING_STRING - if (field.type == TType.MAP) { + if (field.type == org.apache.thrift.protocol.TType.MAP) { { - TMap _map9 = iprot.readMapBegin(); + org.apache.thrift.protocol.TMap _map9 = iprot.readMapBegin(); this.mStringString = new HashMap(2*_map9.size); for (int _i10 = 0; _i10 < _map9.size; ++_i10) { - String _key11; - String _val12; + String _key11; // required + String _val12; // required _key11 = iprot.readString(); _val12 = iprot.readString(); this.mStringString.put(_key11, _val12); @@ -764,11 +758,11 @@ public class Complex implements TBase, java.io.Seriali iprot.readMapEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -776,7 +770,7 @@ public class Complex implements TBase, java.io.Seriali validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -791,7 +785,7 @@ public class Complex implements TBase, java.io.Seriali if (this.lint != null) { oprot.writeFieldBegin(LINT_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.I32, this.lint.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.lint.size())); for (int _iter13 : this.lint) { oprot.writeI32(_iter13); @@ -803,7 +797,7 @@ public class Complex implements TBase, java.io.Seriali if (this.lString != null) { oprot.writeFieldBegin(L_STRING_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.lString.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.lString.size())); for (String _iter14 : this.lString) { oprot.writeString(_iter14); @@ -815,7 +809,7 @@ public class Complex implements TBase, java.io.Seriali if (this.lintString != null) { oprot.writeFieldBegin(LINT_STRING_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRUCT, this.lintString.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.lintString.size())); for (IntString _iter15 : this.lintString) { _iter15.write(oprot); @@ -827,7 +821,7 @@ public class Complex implements TBase, java.io.Seriali if (this.mStringString != null) { oprot.writeFieldBegin(M_STRING_STRING_FIELD_DESC); { - oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.mStringString.size())); + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.mStringString.size())); for (Map.Entry _iter16 : this.mStringString.entrySet()) { oprot.writeString(_iter16.getKey()); @@ -893,9 +887,27 @@ public class Complex implements TBase, java.io.Seriali return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + 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); + } + } + } diff --git serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/IntString.java serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/IntString.java index 65dab7e..759a92a 100644 --- serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/IntString.java +++ serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/IntString.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,25 +20,19 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; +public class IntString implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("IntString"); -public class IntString implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("IntString"); + private static final org.apache.thrift.protocol.TField MYINT_FIELD_DESC = new org.apache.thrift.protocol.TField("myint", org.apache.thrift.protocol.TType.I32, (short)1); + private static final org.apache.thrift.protocol.TField MY_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("myString", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField UNDERSCORE_INT_FIELD_DESC = new org.apache.thrift.protocol.TField("underscore_int", org.apache.thrift.protocol.TType.I32, (short)3); - private static final TField MYINT_FIELD_DESC = new TField("myint", TType.I32, (short)1); - private static final TField MY_STRING_FIELD_DESC = new TField("myString", TType.STRING, (short)2); - private static final TField UNDERSCORE_INT_FIELD_DESC = new TField("underscore_int", TType.I32, (short)3); - - private int myint; - private String myString; - private int underscore_int; + private int myint; // required + private String myString; // required + private int underscore_int; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { MYINT((short)1, "myint"), MY_STRING((short)2, "myString"), UNDERSCORE_INT((short)3, "underscore_int"); @@ -106,17 +100,17 @@ public class IntString implements TBase, java.io.S private static final int __UNDERSCORE_INT_ISSET_ID = 1; private BitSet __isset_bit_vector = new BitSet(2); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.MYINT, new FieldMetaData("myint", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMap.put(_Fields.MY_STRING, new FieldMetaData("myString", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.UNDERSCORE_INT, new FieldMetaData("underscore_int", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.MYINT, new org.apache.thrift.meta_data.FieldMetaData("myint", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.MY_STRING, new org.apache.thrift.meta_data.FieldMetaData("myString", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.UNDERSCORE_INT, new org.apache.thrift.meta_data.FieldMetaData("underscore_int", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(IntString.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(IntString.class, metaDataMap); } public IntString() { @@ -174,7 +168,7 @@ public class IntString implements TBase, java.io.S __isset_bit_vector.clear(__MYINT_ISSET_ID); } - /** Returns true if field myint is set (has been asigned a value) and false otherwise */ + /** Returns true if field myint is set (has been assigned a value) and false otherwise */ public boolean isSetMyint() { return __isset_bit_vector.get(__MYINT_ISSET_ID); } @@ -195,7 +189,7 @@ public class IntString implements TBase, java.io.S this.myString = null; } - /** Returns true if field myString is set (has been asigned a value) and false otherwise */ + /** Returns true if field myString is set (has been assigned a value) and false otherwise */ public boolean isSetMyString() { return this.myString != null; } @@ -219,7 +213,7 @@ public class IntString implements TBase, java.io.S __isset_bit_vector.clear(__UNDERSCORE_INT_ISSET_ID); } - /** Returns true if field underscore_int is set (has been asigned a value) and false otherwise */ + /** Returns true if field underscore_int is set (has been assigned a value) and false otherwise */ public boolean isSetUnderscore_int() { return __isset_bit_vector.get(__UNDERSCORE_INT_ISSET_ID); } @@ -260,19 +254,19 @@ public class IntString implements TBase, java.io.S public Object getFieldValue(_Fields field) { switch (field) { case MYINT: - return new Integer(getMyint()); + return Integer.valueOf(getMyint()); case MY_STRING: return getMyString(); case UNDERSCORE_INT: - return new Integer(getUnderscore_int()); + return Integer.valueOf(getUnderscore_int()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -350,7 +344,7 @@ public class IntString implements TBase, java.io.S return lastComparison; } if (isSetMyint()) { - lastComparison = TBaseHelper.compareTo(this.myint, typedOther.myint); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.myint, typedOther.myint); if (lastComparison != 0) { return lastComparison; } @@ -360,7 +354,7 @@ public class IntString implements TBase, java.io.S return lastComparison; } if (isSetMyString()) { - lastComparison = TBaseHelper.compareTo(this.myString, typedOther.myString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.myString, typedOther.myString); if (lastComparison != 0) { return lastComparison; } @@ -370,7 +364,7 @@ public class IntString implements TBase, java.io.S return lastComparison; } if (isSetUnderscore_int()) { - lastComparison = TBaseHelper.compareTo(this.underscore_int, typedOther.underscore_int); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.underscore_int, typedOther.underscore_int); if (lastComparison != 0) { return lastComparison; } @@ -382,41 +376,41 @@ public class IntString implements TBase, java.io.S return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // MYINT - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.myint = iprot.readI32(); setMyintIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // MY_STRING - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.myString = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // UNDERSCORE_INT - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.underscore_int = iprot.readI32(); setUnderscore_intIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -424,7 +418,7 @@ public class IntString implements TBase, java.io.S validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -467,9 +461,27 @@ public class IntString implements TBase, java.io.S return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + 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); + } + } + } diff --git serde/src/gen/thrift/gen-php/serde/serde_constants.php serde/src/gen/thrift/gen-php/serde/serde_constants.php index b889487..66b65c4 100644 --- serde/src/gen/thrift/gen-php/serde/serde_constants.php +++ serde/src/gen/thrift/gen-php/serde/serde_constants.php @@ -1,6 +1,6 @@ + + + + diff --git service/src/gen/thrift/gen-cpp/ThriftHive.cpp service/src/gen/thrift/gen-cpp/ThriftHive.cpp index c7df1df..0c2f8d1 100644 --- service/src/gen/thrift/gen-cpp/ThriftHive.cpp +++ service/src/gen/thrift/gen-cpp/ThriftHive.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -460,7 +460,7 @@ uint32_t ThriftHive_fetchN_result::write(::apache::thrift::protocol::TProtocol* if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); std::vector ::const_iterator _iter6; for (_iter6 = this->success.begin(); _iter6 != this->success.end(); ++_iter6) { @@ -656,7 +656,7 @@ uint32_t ThriftHive_fetchAll_result::write(::apache::thrift::protocol::TProtocol if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size()); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); std::vector ::const_iterator _iter17; for (_iter17 = this->success.begin(); _iter17 != this->success.end(); ++_iter17) { @@ -1530,8 +1530,8 @@ void ThriftHiveClient::send_execute(const std::string& query) args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveClient::recv_execute() @@ -1553,13 +1553,11 @@ void ThriftHiveClient::recv_execute() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("execute") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHive_execute_presult result; result.read(iprot_); @@ -1587,8 +1585,8 @@ void ThriftHiveClient::send_fetchOne() args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveClient::recv_fetchOne(std::string& _return) @@ -1610,13 +1608,11 @@ void ThriftHiveClient::recv_fetchOne(std::string& _return) iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("fetchOne") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHive_fetchOne_presult result; result.success = &_return; @@ -1650,8 +1646,8 @@ void ThriftHiveClient::send_fetchN(const int32_t numRows) args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveClient::recv_fetchN(std::vector & _return) @@ -1673,13 +1669,11 @@ void ThriftHiveClient::recv_fetchN(std::vector & _return) iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("fetchN") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHive_fetchN_presult result; result.success = &_return; @@ -1712,8 +1706,8 @@ void ThriftHiveClient::send_fetchAll() args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveClient::recv_fetchAll(std::vector & _return) @@ -1735,13 +1729,11 @@ void ThriftHiveClient::recv_fetchAll(std::vector & _return) iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("fetchAll") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHive_fetchAll_presult result; result.success = &_return; @@ -1774,8 +1766,8 @@ void ThriftHiveClient::send_getSchema() args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveClient::recv_getSchema(Apache::Hadoop::Hive::Schema& _return) @@ -1797,13 +1789,11 @@ void ThriftHiveClient::recv_getSchema(Apache::Hadoop::Hive::Schema& _return) iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("getSchema") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHive_getSchema_presult result; result.success = &_return; @@ -1836,8 +1826,8 @@ void ThriftHiveClient::send_getThriftSchema() args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveClient::recv_getThriftSchema(Apache::Hadoop::Hive::Schema& _return) @@ -1859,13 +1849,11 @@ void ThriftHiveClient::recv_getThriftSchema(Apache::Hadoop::Hive::Schema& _retur iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("getThriftSchema") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHive_getThriftSchema_presult result; result.success = &_return; @@ -1898,8 +1886,8 @@ void ThriftHiveClient::send_getClusterStatus() args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveClient::recv_getClusterStatus(HiveClusterStatus& _return) @@ -1921,13 +1909,11 @@ void ThriftHiveClient::recv_getClusterStatus(HiveClusterStatus& _return) iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("getClusterStatus") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHive_getClusterStatus_presult result; result.success = &_return; @@ -1960,8 +1946,8 @@ void ThriftHiveClient::send_getQueryPlan() args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveClient::recv_getQueryPlan(Apache::Hadoop::Hive::QueryPlan& _return) @@ -1983,13 +1969,11 @@ void ThriftHiveClient::recv_getQueryPlan(Apache::Hadoop::Hive::QueryPlan& _retur iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("getQueryPlan") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHive_getQueryPlan_presult result; result.success = &_return; @@ -2022,8 +2006,8 @@ void ThriftHiveClient::send_clean() args.write(oprot_); oprot_->writeMessageEnd(); - oprot_->getTransport()->flush(); oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); } void ThriftHiveClient::recv_clean() @@ -2045,13 +2029,11 @@ void ThriftHiveClient::recv_clean() iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE); } if (fname.compare("clean") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME); } ThriftHive_clean_presult result; result.read(iprot_); @@ -2061,7 +2043,7 @@ void ThriftHiveClient::recv_clean() return; } -bool ThriftHiveProcessor::process(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot) { +bool ThriftHiveProcessor::process(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot, void* callContext) { ::apache::thrift::protocol::TProtocol* iprot = piprot.get(); ::apache::thrift::protocol::TProtocol* oprot = poprot.get(); @@ -2079,30 +2061,44 @@ bool ThriftHiveProcessor::process(boost::shared_ptr< ::apache::thrift::protocol: oprot->writeMessageBegin(fname, ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); - return true; + oprot->getTransport()->flush(); + return false; } - return process_fn(iprot, oprot, fname, seqid); + return process_fn(iprot, oprot, fname, seqid, callContext); } -bool ThriftHiveProcessor::process_fn(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, std::string& fname, int32_t seqid) { - std::map::iterator pfn; +bool ThriftHiveProcessor::process_fn(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, std::string& fname, int32_t seqid, void* callContext) { + std::map::iterator pfn; pfn = processMap_.find(fname); if (pfn == processMap_.end()) { - return Apache::Hadoop::Hive::ThriftHiveMetastoreProcessor::process_fn(iprot, oprot, fname, seqid); + return Apache::Hadoop::Hive::ThriftHiveMetastoreProcessor::process_fn(iprot, oprot, fname, seqid, callContext); } - (this->*(pfn->second))(seqid, iprot, oprot); + (this->*(pfn->second))(seqid, iprot, oprot, callContext); return true; } -void ThriftHiveProcessor::process_execute(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveProcessor::process_execute(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHive.execute", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHive.execute"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHive.execute"); + } + ThriftHive_execute_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHive.execute", bytes); + } ThriftHive_execute_result result; try { @@ -2111,28 +2107,54 @@ void ThriftHiveProcessor::process_execute(int32_t seqid, ::apache::thrift::proto result.ex = ex; result.__isset.ex = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHive.execute"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("execute", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHive.execute"); + } + oprot->writeMessageBegin("execute", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHive.execute", bytes); + } } -void ThriftHiveProcessor::process_fetchOne(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveProcessor::process_fetchOne(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHive.fetchOne", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHive.fetchOne"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHive.fetchOne"); + } + ThriftHive_fetchOne_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHive.fetchOne", bytes); + } ThriftHive_fetchOne_result result; try { @@ -2142,28 +2164,54 @@ void ThriftHiveProcessor::process_fetchOne(int32_t seqid, ::apache::thrift::prot result.ex = ex; result.__isset.ex = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHive.fetchOne"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("fetchOne", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHive.fetchOne"); + } + oprot->writeMessageBegin("fetchOne", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHive.fetchOne", bytes); + } } -void ThriftHiveProcessor::process_fetchN(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveProcessor::process_fetchN(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHive.fetchN", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHive.fetchN"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHive.fetchN"); + } + ThriftHive_fetchN_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHive.fetchN", bytes); + } ThriftHive_fetchN_result result; try { @@ -2173,28 +2221,54 @@ void ThriftHiveProcessor::process_fetchN(int32_t seqid, ::apache::thrift::protoc result.ex = ex; result.__isset.ex = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHive.fetchN"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("fetchN", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHive.fetchN"); + } + oprot->writeMessageBegin("fetchN", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHive.fetchN", bytes); + } } -void ThriftHiveProcessor::process_fetchAll(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveProcessor::process_fetchAll(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHive.fetchAll", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHive.fetchAll"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHive.fetchAll"); + } + ThriftHive_fetchAll_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHive.fetchAll", bytes); + } ThriftHive_fetchAll_result result; try { @@ -2204,28 +2278,54 @@ void ThriftHiveProcessor::process_fetchAll(int32_t seqid, ::apache::thrift::prot result.ex = ex; result.__isset.ex = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHive.fetchAll"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("fetchAll", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHive.fetchAll"); + } + oprot->writeMessageBegin("fetchAll", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHive.fetchAll", bytes); + } } -void ThriftHiveProcessor::process_getSchema(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveProcessor::process_getSchema(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHive.getSchema", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHive.getSchema"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHive.getSchema"); + } + ThriftHive_getSchema_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHive.getSchema", bytes); + } ThriftHive_getSchema_result result; try { @@ -2235,28 +2335,54 @@ void ThriftHiveProcessor::process_getSchema(int32_t seqid, ::apache::thrift::pro result.ex = ex; result.__isset.ex = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHive.getSchema"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("getSchema", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHive.getSchema"); + } + oprot->writeMessageBegin("getSchema", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHive.getSchema", bytes); + } } -void ThriftHiveProcessor::process_getThriftSchema(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveProcessor::process_getThriftSchema(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHive.getThriftSchema", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHive.getThriftSchema"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHive.getThriftSchema"); + } + ThriftHive_getThriftSchema_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHive.getThriftSchema", bytes); + } ThriftHive_getThriftSchema_result result; try { @@ -2266,28 +2392,54 @@ void ThriftHiveProcessor::process_getThriftSchema(int32_t seqid, ::apache::thrif result.ex = ex; result.__isset.ex = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHive.getThriftSchema"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("getThriftSchema", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHive.getThriftSchema"); + } + oprot->writeMessageBegin("getThriftSchema", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHive.getThriftSchema", bytes); + } } -void ThriftHiveProcessor::process_getClusterStatus(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveProcessor::process_getClusterStatus(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHive.getClusterStatus", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHive.getClusterStatus"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHive.getClusterStatus"); + } + ThriftHive_getClusterStatus_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHive.getClusterStatus", bytes); + } ThriftHive_getClusterStatus_result result; try { @@ -2297,28 +2449,54 @@ void ThriftHiveProcessor::process_getClusterStatus(int32_t seqid, ::apache::thri result.ex = ex; result.__isset.ex = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHive.getClusterStatus"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("getClusterStatus", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHive.getClusterStatus"); + } + oprot->writeMessageBegin("getClusterStatus", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHive.getClusterStatus", bytes); + } } -void ThriftHiveProcessor::process_getQueryPlan(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveProcessor::process_getQueryPlan(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHive.getQueryPlan", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHive.getQueryPlan"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHive.getQueryPlan"); + } + ThriftHive_getQueryPlan_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHive.getQueryPlan", bytes); + } ThriftHive_getQueryPlan_result result; try { @@ -2328,47 +2506,85 @@ void ThriftHiveProcessor::process_getQueryPlan(int32_t seqid, ::apache::thrift:: result.ex = ex; result.__isset.ex = true; } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHive.getQueryPlan"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("getQueryPlan", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHive.getQueryPlan"); + } + oprot->writeMessageBegin("getQueryPlan", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHive.getQueryPlan", bytes); + } } -void ThriftHiveProcessor::process_clean(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot) +void ThriftHiveProcessor::process_clean(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { + void* ctx = NULL; + if (eventHandler_.get() != NULL) { + ctx = eventHandler_->getContext("ThriftHive.clean", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "ThriftHive.clean"); + + if (eventHandler_.get() != NULL) { + eventHandler_->preRead(ctx, "ThriftHive.clean"); + } + ThriftHive_clean_args args; args.read(iprot); iprot->readMessageEnd(); - iprot->getTransport()->readEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postRead(ctx, "ThriftHive.clean", bytes); + } ThriftHive_clean_result result; try { iface_->clean(); } catch (const std::exception& e) { + if (eventHandler_.get() != NULL) { + eventHandler_->handlerError(ctx, "ThriftHive.clean"); + } + ::apache::thrift::TApplicationException x(e.what()); oprot->writeMessageBegin("clean", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); - oprot->getTransport()->flush(); oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); return; } + if (eventHandler_.get() != NULL) { + eventHandler_->preWrite(ctx, "ThriftHive.clean"); + } + oprot->writeMessageBegin("clean", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); - oprot->getTransport()->writeEnd(); + + if (eventHandler_.get() != NULL) { + eventHandler_->postWrite(ctx, "ThriftHive.clean", bytes); + } } }}} // namespace diff --git service/src/gen/thrift/gen-cpp/ThriftHive.h service/src/gen/thrift/gen-cpp/ThriftHive.h index e7934fe..0075a02 100644 --- service/src/gen/thrift/gen-cpp/ThriftHive.h +++ service/src/gen/thrift/gen-cpp/ThriftHive.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -75,6 +75,10 @@ class ThriftHive_execute_args { _ThriftHive_execute_args__isset __isset; + void __set_query(const std::string& val) { + query = val; + } + bool operator == (const ThriftHive_execute_args & rhs) const { if (!(query == rhs.query)) @@ -122,6 +126,10 @@ class ThriftHive_execute_result { _ThriftHive_execute_result__isset __isset; + void __set_ex(const HiveServerException& val) { + ex = val; + } + bool operator == (const ThriftHive_execute_result & rhs) const { if (!(ex == rhs.ex)) @@ -214,6 +222,14 @@ class ThriftHive_fetchOne_result { _ThriftHive_fetchOne_result__isset __isset; + void __set_success(const std::string& val) { + success = val; + } + + void __set_ex(const HiveServerException& val) { + ex = val; + } + bool operator == (const ThriftHive_fetchOne_result & rhs) const { if (!(success == rhs.success)) @@ -271,6 +287,10 @@ class ThriftHive_fetchN_args { _ThriftHive_fetchN_args__isset __isset; + void __set_numRows(const int32_t val) { + numRows = val; + } + bool operator == (const ThriftHive_fetchN_args & rhs) const { if (!(numRows == rhs.numRows)) @@ -320,6 +340,14 @@ class ThriftHive_fetchN_result { _ThriftHive_fetchN_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_ex(const HiveServerException& val) { + ex = val; + } + bool operator == (const ThriftHive_fetchN_result & rhs) const { if (!(success == rhs.success)) @@ -416,6 +444,14 @@ class ThriftHive_fetchAll_result { _ThriftHive_fetchAll_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + + void __set_ex(const HiveServerException& val) { + ex = val; + } + bool operator == (const ThriftHive_fetchAll_result & rhs) const { if (!(success == rhs.success)) @@ -512,6 +548,14 @@ class ThriftHive_getSchema_result { _ThriftHive_getSchema_result__isset __isset; + void __set_success(const Apache::Hadoop::Hive::Schema& val) { + success = val; + } + + void __set_ex(const HiveServerException& val) { + ex = val; + } + bool operator == (const ThriftHive_getSchema_result & rhs) const { if (!(success == rhs.success)) @@ -608,6 +652,14 @@ class ThriftHive_getThriftSchema_result { _ThriftHive_getThriftSchema_result__isset __isset; + void __set_success(const Apache::Hadoop::Hive::Schema& val) { + success = val; + } + + void __set_ex(const HiveServerException& val) { + ex = val; + } + bool operator == (const ThriftHive_getThriftSchema_result & rhs) const { if (!(success == rhs.success)) @@ -704,6 +756,14 @@ class ThriftHive_getClusterStatus_result { _ThriftHive_getClusterStatus_result__isset __isset; + void __set_success(const HiveClusterStatus& val) { + success = val; + } + + void __set_ex(const HiveServerException& val) { + ex = val; + } + bool operator == (const ThriftHive_getClusterStatus_result & rhs) const { if (!(success == rhs.success)) @@ -800,6 +860,14 @@ class ThriftHive_getQueryPlan_result { _ThriftHive_getQueryPlan_result__isset __isset; + void __set_success(const Apache::Hadoop::Hive::QueryPlan& val) { + success = val; + } + + void __set_ex(const HiveServerException& val) { + ex = val; + } + bool operator == (const ThriftHive_getQueryPlan_result & rhs) const { if (!(success == rhs.success)) @@ -958,18 +1026,18 @@ class ThriftHiveClient : virtual public ThriftHiveIf, public Apache::Hadoop::Hiv class ThriftHiveProcessor : virtual public ::apache::thrift::TProcessor, public Apache::Hadoop::Hive::ThriftHiveMetastoreProcessor { protected: boost::shared_ptr iface_; - virtual bool process_fn(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, std::string& fname, int32_t seqid); + virtual bool process_fn(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, std::string& fname, int32_t seqid, void* callContext); private: - std::map processMap_; - void process_execute(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_fetchOne(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_fetchN(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_fetchAll(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_getSchema(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_getThriftSchema(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_getClusterStatus(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_getQueryPlan(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); - void process_clean(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot); + std::map processMap_; + void process_execute(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_fetchOne(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_fetchN(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_fetchAll(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_getSchema(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_getThriftSchema(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_getClusterStatus(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_getQueryPlan(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_clean(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); public: ThriftHiveProcessor(boost::shared_ptr iface) : Apache::Hadoop::Hive::ThriftHiveMetastoreProcessor(iface), @@ -985,7 +1053,7 @@ class ThriftHiveProcessor : virtual public ::apache::thrift::TProcessor, public processMap_["clean"] = &ThriftHiveProcessor::process_clean; } - virtual bool process(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot); + virtual bool process(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot, void* callContext); virtual ~ThriftHiveProcessor() {} }; @@ -1007,15 +1075,15 @@ class ThriftHiveMultiface : virtual public ThriftHiveIf, public Apache::Hadoop:: } public: void execute(const std::string& query) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { ifaces_[i]->execute(query); } } void fetchOne(std::string& _return) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->fetchOne(_return); return; @@ -1026,8 +1094,8 @@ class ThriftHiveMultiface : virtual public ThriftHiveIf, public Apache::Hadoop:: } void fetchN(std::vector & _return, const int32_t numRows) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->fetchN(_return, numRows); return; @@ -1038,8 +1106,8 @@ class ThriftHiveMultiface : virtual public ThriftHiveIf, public Apache::Hadoop:: } void fetchAll(std::vector & _return) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->fetchAll(_return); return; @@ -1050,8 +1118,8 @@ class ThriftHiveMultiface : virtual public ThriftHiveIf, public Apache::Hadoop:: } void getSchema(Apache::Hadoop::Hive::Schema& _return) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->getSchema(_return); return; @@ -1062,8 +1130,8 @@ class ThriftHiveMultiface : virtual public ThriftHiveIf, public Apache::Hadoop:: } void getThriftSchema(Apache::Hadoop::Hive::Schema& _return) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->getThriftSchema(_return); return; @@ -1074,8 +1142,8 @@ class ThriftHiveMultiface : virtual public ThriftHiveIf, public Apache::Hadoop:: } void getClusterStatus(HiveClusterStatus& _return) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->getClusterStatus(_return); return; @@ -1086,8 +1154,8 @@ class ThriftHiveMultiface : virtual public ThriftHiveIf, public Apache::Hadoop:: } void getQueryPlan(Apache::Hadoop::Hive::QueryPlan& _return) { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { if (i == sz - 1) { ifaces_[i]->getQueryPlan(_return); return; @@ -1098,8 +1166,8 @@ class ThriftHiveMultiface : virtual public ThriftHiveIf, public Apache::Hadoop:: } void clean() { - uint32_t sz = ifaces_.size(); - for (uint32_t i = 0; i < sz; ++i) { + size_t sz = ifaces_.size(); + for (size_t i = 0; i < sz; ++i) { ifaces_[i]->clean(); } } diff --git service/src/gen/thrift/gen-cpp/hive_service_constants.cpp service/src/gen/thrift/gen-cpp/hive_service_constants.cpp index 7ee5b0c..13a7cf5 100644 --- service/src/gen/thrift/gen-cpp/hive_service_constants.cpp +++ service/src/gen/thrift/gen-cpp/hive_service_constants.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ diff --git service/src/gen/thrift/gen-cpp/hive_service_constants.h service/src/gen/thrift/gen-cpp/hive_service_constants.h index 821dead..9cd7bf0 100644 --- service/src/gen/thrift/gen-cpp/hive_service_constants.h +++ service/src/gen/thrift/gen-cpp/hive_service_constants.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ diff --git service/src/gen/thrift/gen-cpp/hive_service_types.cpp service/src/gen/thrift/gen-cpp/hive_service_types.cpp index 321f424..7c3c4bd 100644 --- service/src/gen/thrift/gen-cpp/hive_service_types.cpp +++ service/src/gen/thrift/gen-cpp/hive_service_types.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -7,6 +7,16 @@ namespace Apache { namespace Hadoop { namespace Hive { +int _kJobTrackerStateValues[] = { + JobTrackerState::INITIALIZING, + JobTrackerState::RUNNING +}; +const char* _kJobTrackerStateNames[] = { + "INITIALIZING", + "RUNNING" +}; +const std::map _JobTrackerState_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(2, _kJobTrackerStateValues, _kJobTrackerStateNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + const char* HiveClusterStatus::ascii_fingerprint = "D514EDCFFC86F64A2E924DCD16D4FAD8"; const uint8_t HiveClusterStatus::binary_fingerprint[16] = {0xD5,0x14,0xED,0xCF,0xFC,0x86,0xF6,0x4A,0x2E,0x92,0x4D,0xCD,0x16,0xD4,0xFA,0xD8}; diff --git service/src/gen/thrift/gen-cpp/hive_service_types.h service/src/gen/thrift/gen-cpp/hive_service_types.h index 61dfb20..009f498 100644 --- service/src/gen/thrift/gen-cpp/hive_service_types.h +++ service/src/gen/thrift/gen-cpp/hive_service_types.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -25,6 +25,8 @@ struct JobTrackerState { }; }; +extern const std::map _JobTrackerState_VALUES_TO_NAMES; + typedef struct _HiveClusterStatus__isset { _HiveClusterStatus__isset() : taskTrackers(false), mapTasks(false), reduceTasks(false), maxMapTasks(false), maxReduceTasks(false), state(false) {} bool taskTrackers; @@ -55,6 +57,30 @@ class HiveClusterStatus { _HiveClusterStatus__isset __isset; + void __set_taskTrackers(const int32_t val) { + taskTrackers = val; + } + + void __set_mapTasks(const int32_t val) { + mapTasks = val; + } + + void __set_reduceTasks(const int32_t val) { + reduceTasks = val; + } + + void __set_maxMapTasks(const int32_t val) { + maxMapTasks = val; + } + + void __set_maxReduceTasks(const int32_t val) { + maxReduceTasks = val; + } + + void __set_state(const JobTrackerState::type val) { + state = val; + } + bool operator == (const HiveClusterStatus & rhs) const { if (!(taskTrackers == rhs.taskTrackers)) @@ -106,6 +132,18 @@ class HiveServerException : public ::apache::thrift::TException { _HiveServerException__isset __isset; + void __set_message(const std::string& val) { + message = val; + } + + void __set_errorCode(const int32_t val) { + errorCode = val; + } + + void __set_SQLState(const std::string& val) { + SQLState = val; + } + bool operator == (const HiveServerException & rhs) const { if (!(message == rhs.message)) diff --git service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java index c267692..00f3323 100644 --- service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java +++ service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift + * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ @@ -20,31 +20,25 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.thrift.*; -import org.apache.thrift.async.*; -import org.apache.thrift.meta_data.*; -import org.apache.thrift.transport.*; -import org.apache.thrift.protocol.*; - -public class HiveClusterStatus implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("HiveClusterStatus"); - - private static final TField TASK_TRACKERS_FIELD_DESC = new TField("taskTrackers", TType.I32, (short)1); - private static final TField MAP_TASKS_FIELD_DESC = new TField("mapTasks", TType.I32, (short)2); - private static final TField REDUCE_TASKS_FIELD_DESC = new TField("reduceTasks", TType.I32, (short)3); - private static final TField MAX_MAP_TASKS_FIELD_DESC = new TField("maxMapTasks", TType.I32, (short)4); - private static final TField MAX_REDUCE_TASKS_FIELD_DESC = new TField("maxReduceTasks", TType.I32, (short)5); - private static final TField STATE_FIELD_DESC = new TField("state", TType.I32, (short)6); - - private int taskTrackers; - private int mapTasks; - private int reduceTasks; - private int maxMapTasks; - private int maxReduceTasks; - private JobTrackerState state; +public class HiveClusterStatus implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HiveClusterStatus"); + + private static final org.apache.thrift.protocol.TField TASK_TRACKERS_FIELD_DESC = new org.apache.thrift.protocol.TField("taskTrackers", org.apache.thrift.protocol.TType.I32, (short)1); + private static final org.apache.thrift.protocol.TField MAP_TASKS_FIELD_DESC = new org.apache.thrift.protocol.TField("mapTasks", org.apache.thrift.protocol.TType.I32, (short)2); + private static final org.apache.thrift.protocol.TField REDUCE_TASKS_FIELD_DESC = new org.apache.thrift.protocol.TField("reduceTasks", org.apache.thrift.protocol.TType.I32, (short)3); + private static final org.apache.thrift.protocol.TField MAX_MAP_TASKS_FIELD_DESC = new org.apache.thrift.protocol.TField("maxMapTasks", org.apache.thrift.protocol.TType.I32, (short)4); + private static final org.apache.thrift.protocol.TField MAX_REDUCE_TASKS_FIELD_DESC = new org.apache.thrift.protocol.TField("maxReduceTasks", org.apache.thrift.protocol.TType.I32, (short)5); + private static final org.apache.thrift.protocol.TField STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("state", org.apache.thrift.protocol.TType.I32, (short)6); + + private int taskTrackers; // required + private int mapTasks; // required + private int reduceTasks; // required + private int maxMapTasks; // required + private int maxReduceTasks; // required + private JobTrackerState state; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { TASK_TRACKERS((short)1, "taskTrackers"), MAP_TASKS((short)2, "mapTasks"), REDUCE_TASKS((short)3, "reduceTasks"), @@ -128,23 +122,23 @@ public class HiveClusterStatus implements TBase metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.TASK_TRACKERS, new FieldMetaData("taskTrackers", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMap.put(_Fields.MAP_TASKS, new FieldMetaData("mapTasks", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMap.put(_Fields.REDUCE_TASKS, new FieldMetaData("reduceTasks", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMap.put(_Fields.MAX_MAP_TASKS, new FieldMetaData("maxMapTasks", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMap.put(_Fields.MAX_REDUCE_TASKS, new FieldMetaData("maxReduceTasks", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMap.put(_Fields.STATE, new FieldMetaData("state", TFieldRequirementType.DEFAULT, - new EnumMetaData(TType.ENUM, JobTrackerState.class))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.TASK_TRACKERS, new org.apache.thrift.meta_data.FieldMetaData("taskTrackers", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.MAP_TASKS, new org.apache.thrift.meta_data.FieldMetaData("mapTasks", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.REDUCE_TASKS, new org.apache.thrift.meta_data.FieldMetaData("reduceTasks", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.MAX_MAP_TASKS, new org.apache.thrift.meta_data.FieldMetaData("maxMapTasks", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.MAX_REDUCE_TASKS, new org.apache.thrift.meta_data.FieldMetaData("maxReduceTasks", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.STATE, new org.apache.thrift.meta_data.FieldMetaData("state", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, JobTrackerState.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(HiveClusterStatus.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(HiveClusterStatus.class, metaDataMap); } public HiveClusterStatus() { @@ -220,7 +214,7 @@ public class HiveClusterStatus implements TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HiveServerException"); -public class HiveServerException extends Exception implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("HiveServerException"); + private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField ERROR_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("errorCode", org.apache.thrift.protocol.TType.I32, (short)2); + private static final org.apache.thrift.protocol.TField SQLSTATE_FIELD_DESC = new org.apache.thrift.protocol.TField("SQLState", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)1); - private static final TField ERROR_CODE_FIELD_DESC = new TField("errorCode", TType.I32, (short)2); - private static final TField SQLSTATE_FIELD_DESC = new TField("SQLState", TType.STRING, (short)3); - - private String message; - private int errorCode; - private String SQLState; + private String message; // required + private int errorCode; // required + private String SQLState; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { MESSAGE((short)1, "message"), ERROR_CODE((short)2, "errorCode"), SQLSTATE((short)3, "SQLState"); @@ -105,17 +99,17 @@ public class HiveServerException extends Exception implements TBase metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.ERROR_CODE, new FieldMetaData("errorCode", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); - tmpMap.put(_Fields.SQLSTATE, new FieldMetaData("SQLState", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.ERROR_CODE, new org.apache.thrift.meta_data.FieldMetaData("errorCode", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.SQLSTATE, new org.apache.thrift.meta_data.FieldMetaData("SQLState", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(HiveServerException.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(HiveServerException.class, metaDataMap); } public HiveServerException() { @@ -172,7 +166,7 @@ public class HiveServerException extends Exception implements TBase fetchN(int numRows) throws HiveServerException, TException; + public List fetchN(int numRows) throws HiveServerException, org.apache.thrift.TException; - public List fetchAll() throws HiveServerException, TException; + public List fetchAll() throws HiveServerException, org.apache.thrift.TException; - public org.apache.hadoop.hive.metastore.api.Schema getSchema() throws HiveServerException, TException; + public org.apache.hadoop.hive.metastore.api.Schema getSchema() throws HiveServerException, org.apache.thrift.TException; - public org.apache.hadoop.hive.metastore.api.Schema getThriftSchema() throws HiveServerException, TException; + public org.apache.hadoop.hive.metastore.api.Schema getThriftSchema() throws HiveServerException, org.apache.thrift.TException; - public HiveClusterStatus getClusterStatus() throws HiveServerException, TException; + public HiveClusterStatus getClusterStatus() throws HiveServerException, org.apache.thrift.TException; - public org.apache.hadoop.hive.ql.plan.api.QueryPlan getQueryPlan() throws HiveServerException, TException; + public org.apache.hadoop.hive.ql.plan.api.QueryPlan getQueryPlan() throws HiveServerException, org.apache.thrift.TException; - public void clean() throws TException; + public void clean() throws org.apache.thrift.TException; } public interface AsyncIface extends org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore .AsyncIface { - public void execute(String query, AsyncMethodCallback resultHandler) throws TException; + public void execute(String query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void fetchOne(AsyncMethodCallback resultHandler) throws TException; + public void fetchOne(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void fetchN(int numRows, AsyncMethodCallback resultHandler) throws TException; + public void fetchN(int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void fetchAll(AsyncMethodCallback resultHandler) throws TException; + public void fetchAll(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getSchema(AsyncMethodCallback resultHandler) throws TException; + public void getSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getThriftSchema(AsyncMethodCallback resultHandler) throws TException; + public void getThriftSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getClusterStatus(AsyncMethodCallback resultHandler) throws TException; + public void getClusterStatus(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getQueryPlan(AsyncMethodCallback resultHandler) throws TException; + public void getQueryPlan(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void clean(AsyncMethodCallback resultHandler) throws TException; + public void clean(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; } - public static class Client extends org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Client implements TServiceClient, Iface { - public static class Factory implements TServiceClientFactory { + public static class Client extends org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Client implements Iface { + public static class Factory implements org.apache.thrift.TServiceClientFactory { public Factory() {} - public Client getClient(TProtocol prot) { + public Client getClient(org.apache.thrift.protocol.TProtocol prot) { return new Client(prot); } - public Client getClient(TProtocol iprot, TProtocol oprot) { + public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) { return new Client(iprot, oprot); } } - public Client(TProtocol prot) + public Client(org.apache.thrift.protocol.TProtocol prot) { - this(prot, prot); + super(prot, prot); } - public Client(TProtocol iprot, TProtocol oprot) - { + public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) { super(iprot, oprot); } - public void execute(String query) throws HiveServerException, TException + public void execute(String query) throws HiveServerException, org.apache.thrift.TException { send_execute(query); recv_execute(); } - public void send_execute(String query) throws TException + public void send_execute(String query) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("execute", TMessageType.CALL, ++seqid_)); execute_args args = new execute_args(); args.setQuery(query); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("execute", args); } - public void recv_execute() throws HiveServerException, TException + public void recv_execute() throws HiveServerException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "execute failed: out of sequence response"); - } execute_result result = new execute_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "execute"); if (result.ex != null) { throw result.ex; } return; } - public String fetchOne() throws HiveServerException, TException + public String fetchOne() throws HiveServerException, org.apache.thrift.TException { send_fetchOne(); return recv_fetchOne(); } - public void send_fetchOne() throws TException + public void send_fetchOne() throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("fetchOne", TMessageType.CALL, ++seqid_)); fetchOne_args args = new fetchOne_args(); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("fetchOne", args); } - public String recv_fetchOne() throws HiveServerException, TException + public String recv_fetchOne() throws HiveServerException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "fetchOne failed: out of sequence response"); - } fetchOne_result result = new fetchOne_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "fetchOne"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "fetchOne failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "fetchOne failed: unknown result"); } - public List fetchN(int numRows) throws HiveServerException, TException + public List fetchN(int numRows) throws HiveServerException, org.apache.thrift.TException { send_fetchN(numRows); return recv_fetchN(); } - public void send_fetchN(int numRows) throws TException + public void send_fetchN(int numRows) throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("fetchN", TMessageType.CALL, ++seqid_)); fetchN_args args = new fetchN_args(); args.setNumRows(numRows); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("fetchN", args); } - public List recv_fetchN() throws HiveServerException, TException + public List recv_fetchN() throws HiveServerException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "fetchN failed: out of sequence response"); - } fetchN_result result = new fetchN_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "fetchN"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "fetchN failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "fetchN failed: unknown result"); } - public List fetchAll() throws HiveServerException, TException + public List fetchAll() throws HiveServerException, org.apache.thrift.TException { send_fetchAll(); return recv_fetchAll(); } - public void send_fetchAll() throws TException + public void send_fetchAll() throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("fetchAll", TMessageType.CALL, ++seqid_)); fetchAll_args args = new fetchAll_args(); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("fetchAll", args); } - public List recv_fetchAll() throws HiveServerException, TException + public List recv_fetchAll() throws HiveServerException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "fetchAll failed: out of sequence response"); - } fetchAll_result result = new fetchAll_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "fetchAll"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "fetchAll failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "fetchAll failed: unknown result"); } - public org.apache.hadoop.hive.metastore.api.Schema getSchema() throws HiveServerException, TException + public org.apache.hadoop.hive.metastore.api.Schema getSchema() throws HiveServerException, org.apache.thrift.TException { send_getSchema(); return recv_getSchema(); } - public void send_getSchema() throws TException + public void send_getSchema() throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("getSchema", TMessageType.CALL, ++seqid_)); getSchema_args args = new getSchema_args(); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("getSchema", args); } - public org.apache.hadoop.hive.metastore.api.Schema recv_getSchema() throws HiveServerException, TException + public org.apache.hadoop.hive.metastore.api.Schema recv_getSchema() throws HiveServerException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getSchema failed: out of sequence response"); - } getSchema_result result = new getSchema_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "getSchema"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSchema failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSchema failed: unknown result"); } - public org.apache.hadoop.hive.metastore.api.Schema getThriftSchema() throws HiveServerException, TException + public org.apache.hadoop.hive.metastore.api.Schema getThriftSchema() throws HiveServerException, org.apache.thrift.TException { send_getThriftSchema(); return recv_getThriftSchema(); } - public void send_getThriftSchema() throws TException + public void send_getThriftSchema() throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("getThriftSchema", TMessageType.CALL, ++seqid_)); getThriftSchema_args args = new getThriftSchema_args(); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("getThriftSchema", args); } - public org.apache.hadoop.hive.metastore.api.Schema recv_getThriftSchema() throws HiveServerException, TException + public org.apache.hadoop.hive.metastore.api.Schema recv_getThriftSchema() throws HiveServerException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getThriftSchema failed: out of sequence response"); - } getThriftSchema_result result = new getThriftSchema_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "getThriftSchema"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "getThriftSchema failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getThriftSchema failed: unknown result"); } - public HiveClusterStatus getClusterStatus() throws HiveServerException, TException + public HiveClusterStatus getClusterStatus() throws HiveServerException, org.apache.thrift.TException { send_getClusterStatus(); return recv_getClusterStatus(); } - public void send_getClusterStatus() throws TException + public void send_getClusterStatus() throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("getClusterStatus", TMessageType.CALL, ++seqid_)); getClusterStatus_args args = new getClusterStatus_args(); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("getClusterStatus", args); } - public HiveClusterStatus recv_getClusterStatus() throws HiveServerException, TException + public HiveClusterStatus recv_getClusterStatus() throws HiveServerException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getClusterStatus failed: out of sequence response"); - } getClusterStatus_result result = new getClusterStatus_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "getClusterStatus"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "getClusterStatus failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getClusterStatus failed: unknown result"); } - public org.apache.hadoop.hive.ql.plan.api.QueryPlan getQueryPlan() throws HiveServerException, TException + public org.apache.hadoop.hive.ql.plan.api.QueryPlan getQueryPlan() throws HiveServerException, org.apache.thrift.TException { send_getQueryPlan(); return recv_getQueryPlan(); } - public void send_getQueryPlan() throws TException + public void send_getQueryPlan() throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("getQueryPlan", TMessageType.CALL, ++seqid_)); getQueryPlan_args args = new getQueryPlan_args(); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("getQueryPlan", args); } - public org.apache.hadoop.hive.ql.plan.api.QueryPlan recv_getQueryPlan() throws HiveServerException, TException + public org.apache.hadoop.hive.ql.plan.api.QueryPlan recv_getQueryPlan() throws HiveServerException, org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "getQueryPlan failed: out of sequence response"); - } getQueryPlan_result result = new getQueryPlan_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "getQueryPlan"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } - throw new TApplicationException(TApplicationException.MISSING_RESULT, "getQueryPlan failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getQueryPlan failed: unknown result"); } - public void clean() throws TException + public void clean() throws org.apache.thrift.TException { send_clean(); recv_clean(); } - public void send_clean() throws TException + public void send_clean() throws org.apache.thrift.TException { - oprot_.writeMessageBegin(new TMessage("clean", TMessageType.CALL, ++seqid_)); clean_args args = new clean_args(); - args.write(oprot_); - oprot_.writeMessageEnd(); - oprot_.getTransport().flush(); + sendBase("clean", args); } - public void recv_clean() throws TException + public void recv_clean() throws org.apache.thrift.TException { - TMessage msg = iprot_.readMessageBegin(); - if (msg.type == TMessageType.EXCEPTION) { - TApplicationException x = TApplicationException.read(iprot_); - iprot_.readMessageEnd(); - throw x; - } - if (msg.seqid != seqid_) { - throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "clean failed: out of sequence response"); - } clean_result result = new clean_result(); - result.read(iprot_); - iprot_.readMessageEnd(); + receiveBase(result, "clean"); return; } } public static class AsyncClient extends org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.AsyncClient implements AsyncIface { - public static class Factory implements TAsyncClientFactory { - private TAsyncClientManager clientManager; - private TProtocolFactory protocolFactory; - public Factory(TAsyncClientManager clientManager, TProtocolFactory protocolFactory) { + public static class Factory implements org.apache.thrift.async.TAsyncClientFactory { + private org.apache.thrift.async.TAsyncClientManager clientManager; + private org.apache.thrift.protocol.TProtocolFactory protocolFactory; + public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) { this.clientManager = clientManager; this.protocolFactory = protocolFactory; } - public AsyncClient getAsyncClient(TNonblockingTransport transport) { + public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) { return new AsyncClient(protocolFactory, clientManager, transport); } } - public AsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager clientManager, TNonblockingTransport transport) { + public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) { super(protocolFactory, clientManager, transport); } - public void execute(String query, AsyncMethodCallback resultHandler) throws TException { + public void execute(String query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - execute_call method_call = new execute_call(query, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + execute_call method_call = new execute_call(query, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class execute_call extends TAsyncMethodCall { + public static class execute_call extends org.apache.thrift.async.TAsyncMethodCall { private String query; - public execute_call(String query, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public execute_call(String query, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.query = query; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("execute", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("execute", org.apache.thrift.protocol.TMessageType.CALL, 0)); execute_args args = new execute_args(); args.setQuery(query); args.write(prot); prot.writeMessageEnd(); } - public void getResult() throws HiveServerException, TException { - if (getState() != State.RESPONSE_READ) { + public void getResult() throws HiveServerException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_execute(); } } - public void fetchOne(AsyncMethodCallback resultHandler) throws TException { + public void fetchOne(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - fetchOne_call method_call = new fetchOne_call(resultHandler, this, protocolFactory, transport); - manager.call(method_call); + fetchOne_call method_call = new fetchOne_call(resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class fetchOne_call extends TAsyncMethodCall { - public fetchOne_call(AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public static class fetchOne_call extends org.apache.thrift.async.TAsyncMethodCall { + public fetchOne_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("fetchOne", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("fetchOne", org.apache.thrift.protocol.TMessageType.CALL, 0)); fetchOne_args args = new fetchOne_args(); args.write(prot); prot.writeMessageEnd(); } - public String getResult() throws HiveServerException, TException { - if (getState() != State.RESPONSE_READ) { + public String getResult() throws HiveServerException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_fetchOne(); } } - public void fetchN(int numRows, AsyncMethodCallback resultHandler) throws TException { + public void fetchN(int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - fetchN_call method_call = new fetchN_call(numRows, resultHandler, this, protocolFactory, transport); - manager.call(method_call); + fetchN_call method_call = new fetchN_call(numRows, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class fetchN_call extends TAsyncMethodCall { + public static class fetchN_call extends org.apache.thrift.async.TAsyncMethodCall { private int numRows; - public fetchN_call(int numRows, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public fetchN_call(int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.numRows = numRows; } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("fetchN", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("fetchN", org.apache.thrift.protocol.TMessageType.CALL, 0)); fetchN_args args = new fetchN_args(); args.setNumRows(numRows); args.write(prot); prot.writeMessageEnd(); } - public List getResult() throws HiveServerException, TException { - if (getState() != State.RESPONSE_READ) { + public List getResult() throws HiveServerException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_fetchN(); } } - public void fetchAll(AsyncMethodCallback resultHandler) throws TException { + public void fetchAll(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - fetchAll_call method_call = new fetchAll_call(resultHandler, this, protocolFactory, transport); - manager.call(method_call); + fetchAll_call method_call = new fetchAll_call(resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class fetchAll_call extends TAsyncMethodCall { - public fetchAll_call(AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public static class fetchAll_call extends org.apache.thrift.async.TAsyncMethodCall { + public fetchAll_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("fetchAll", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("fetchAll", org.apache.thrift.protocol.TMessageType.CALL, 0)); fetchAll_args args = new fetchAll_args(); args.write(prot); prot.writeMessageEnd(); } - public List getResult() throws HiveServerException, TException { - if (getState() != State.RESPONSE_READ) { + public List getResult() throws HiveServerException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_fetchAll(); } } - public void getSchema(AsyncMethodCallback resultHandler) throws TException { + public void getSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getSchema_call method_call = new getSchema_call(resultHandler, this, protocolFactory, transport); - manager.call(method_call); + getSchema_call method_call = new getSchema_call(resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class getSchema_call extends TAsyncMethodCall { - public getSchema_call(AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public static class getSchema_call extends org.apache.thrift.async.TAsyncMethodCall { + public getSchema_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("getSchema", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSchema", org.apache.thrift.protocol.TMessageType.CALL, 0)); getSchema_args args = new getSchema_args(); args.write(prot); prot.writeMessageEnd(); } - public org.apache.hadoop.hive.metastore.api.Schema getResult() throws HiveServerException, TException { - if (getState() != State.RESPONSE_READ) { + public org.apache.hadoop.hive.metastore.api.Schema getResult() throws HiveServerException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_getSchema(); } } - public void getThriftSchema(AsyncMethodCallback resultHandler) throws TException { + public void getThriftSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getThriftSchema_call method_call = new getThriftSchema_call(resultHandler, this, protocolFactory, transport); - manager.call(method_call); + getThriftSchema_call method_call = new getThriftSchema_call(resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class getThriftSchema_call extends TAsyncMethodCall { - public getThriftSchema_call(AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public static class getThriftSchema_call extends org.apache.thrift.async.TAsyncMethodCall { + public getThriftSchema_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("getThriftSchema", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getThriftSchema", org.apache.thrift.protocol.TMessageType.CALL, 0)); getThriftSchema_args args = new getThriftSchema_args(); args.write(prot); prot.writeMessageEnd(); } - public org.apache.hadoop.hive.metastore.api.Schema getResult() throws HiveServerException, TException { - if (getState() != State.RESPONSE_READ) { + public org.apache.hadoop.hive.metastore.api.Schema getResult() throws HiveServerException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_getThriftSchema(); } } - public void getClusterStatus(AsyncMethodCallback resultHandler) throws TException { + public void getClusterStatus(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getClusterStatus_call method_call = new getClusterStatus_call(resultHandler, this, protocolFactory, transport); - manager.call(method_call); + getClusterStatus_call method_call = new getClusterStatus_call(resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class getClusterStatus_call extends TAsyncMethodCall { - public getClusterStatus_call(AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public static class getClusterStatus_call extends org.apache.thrift.async.TAsyncMethodCall { + public getClusterStatus_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("getClusterStatus", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getClusterStatus", org.apache.thrift.protocol.TMessageType.CALL, 0)); getClusterStatus_args args = new getClusterStatus_args(); args.write(prot); prot.writeMessageEnd(); } - public HiveClusterStatus getResult() throws HiveServerException, TException { - if (getState() != State.RESPONSE_READ) { + public HiveClusterStatus getResult() throws HiveServerException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_getClusterStatus(); } } - public void getQueryPlan(AsyncMethodCallback resultHandler) throws TException { + public void getQueryPlan(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getQueryPlan_call method_call = new getQueryPlan_call(resultHandler, this, protocolFactory, transport); - manager.call(method_call); + getQueryPlan_call method_call = new getQueryPlan_call(resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class getQueryPlan_call extends TAsyncMethodCall { - public getQueryPlan_call(AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public static class getQueryPlan_call extends org.apache.thrift.async.TAsyncMethodCall { + public getQueryPlan_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("getQueryPlan", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getQueryPlan", org.apache.thrift.protocol.TMessageType.CALL, 0)); getQueryPlan_args args = new getQueryPlan_args(); args.write(prot); prot.writeMessageEnd(); } - public org.apache.hadoop.hive.ql.plan.api.QueryPlan getResult() throws HiveServerException, TException { - if (getState() != State.RESPONSE_READ) { + public org.apache.hadoop.hive.ql.plan.api.QueryPlan getResult() throws HiveServerException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + 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_getQueryPlan(); } } - public void clean(AsyncMethodCallback resultHandler) throws TException { + public void clean(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - clean_call method_call = new clean_call(resultHandler, this, protocolFactory, transport); - manager.call(method_call); + clean_call method_call = new clean_call(resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); } - public static class clean_call extends TAsyncMethodCall { - public clean_call(AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException { + public static class clean_call extends org.apache.thrift.async.TAsyncMethodCall { + public clean_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } - public void write_args(TProtocol prot) throws TException { - prot.writeMessageBegin(new TMessage("clean", TMessageType.CALL, 0)); + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clean", org.apache.thrift.protocol.TMessageType.CALL, 0)); clean_args args = new clean_args(); args.write(prot); prot.writeMessageEnd(); } - public void getResult() throws TException { - if (getState() != State.RESPONSE_READ) { + public void getResult() throws org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } - TMemoryInputTransport memoryTransport = new TMemoryInputTransport(getFrameBuffer().array()); - TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_clean(); } } } - public static class Processor extends org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Processor implements TProcessor { + public static class Processor extends org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Processor implements org.apache.thrift.TProcessor { private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName()); - public Processor(Iface iface) - { - super(iface); - iface_ = iface; - processMap_.put("execute", new execute()); - processMap_.put("fetchOne", new fetchOne()); - processMap_.put("fetchN", new fetchN()); - processMap_.put("fetchAll", new fetchAll()); - processMap_.put("getSchema", new getSchema()); - processMap_.put("getThriftSchema", new getThriftSchema()); - processMap_.put("getClusterStatus", new getClusterStatus()); - processMap_.put("getQueryPlan", new getQueryPlan()); - processMap_.put("clean", new clean()); - } - - private Iface iface_; - - public boolean process(TProtocol iprot, TProtocol oprot) throws TException - { - TMessage msg = iprot.readMessageBegin(); - ProcessFunction fn = processMap_.get(msg.name); - if (fn == null) { - TProtocolUtil.skip(iprot, TType.STRUCT); - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.UNKNOWN_METHOD, "Invalid method name: '"+msg.name+"'"); - oprot.writeMessageBegin(new TMessage(msg.name, TMessageType.EXCEPTION, msg.seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return true; - } - fn.process(msg.seqid, iprot, oprot); - return true; + public Processor(I iface) { + super(iface, getProcessMap(new HashMap>())); } - private class execute implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - execute_args args = new execute_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("execute", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + protected Processor(I iface, Map> processMap) { + super(iface, getProcessMap(processMap)); + } + + private static Map> getProcessMap(Map> processMap) { + processMap.put("execute", new execute()); + processMap.put("fetchOne", new fetchOne()); + processMap.put("fetchN", new fetchN()); + processMap.put("fetchAll", new fetchAll()); + processMap.put("getSchema", new getSchema()); + processMap.put("getThriftSchema", new getThriftSchema()); + processMap.put("getClusterStatus", new getClusterStatus()); + processMap.put("getQueryPlan", new getQueryPlan()); + processMap.put("clean", new clean()); + return processMap; + } + + private static class execute extends org.apache.thrift.ProcessFunction { + public execute() { + super("execute"); + } + + protected execute_args getEmptyArgsInstance() { + return new execute_args(); + } + + protected execute_result getResult(I iface, execute_args args) throws org.apache.thrift.TException { execute_result result = new execute_result(); try { - iface_.execute(args.query); + iface.execute(args.query); } catch (HiveServerException ex) { result.ex = ex; - } catch (Throwable th) { - LOGGER.error("Internal error processing execute", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing execute"); - oprot.writeMessageBegin(new TMessage("execute", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("execute", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class fetchOne implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - fetchOne_args args = new fetchOne_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("fetchOne", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class fetchOne extends org.apache.thrift.ProcessFunction { + public fetchOne() { + super("fetchOne"); + } + + protected fetchOne_args getEmptyArgsInstance() { + return new fetchOne_args(); + } + + protected fetchOne_result getResult(I iface, fetchOne_args args) throws org.apache.thrift.TException { fetchOne_result result = new fetchOne_result(); try { - result.success = iface_.fetchOne(); + result.success = iface.fetchOne(); } catch (HiveServerException ex) { result.ex = ex; - } catch (Throwable th) { - LOGGER.error("Internal error processing fetchOne", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing fetchOne"); - oprot.writeMessageBegin(new TMessage("fetchOne", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("fetchOne", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class fetchN implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - fetchN_args args = new fetchN_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("fetchN", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class fetchN extends org.apache.thrift.ProcessFunction { + public fetchN() { + super("fetchN"); + } + + protected fetchN_args getEmptyArgsInstance() { + return new fetchN_args(); + } + + protected fetchN_result getResult(I iface, fetchN_args args) throws org.apache.thrift.TException { fetchN_result result = new fetchN_result(); try { - result.success = iface_.fetchN(args.numRows); + result.success = iface.fetchN(args.numRows); } catch (HiveServerException ex) { result.ex = ex; - } catch (Throwable th) { - LOGGER.error("Internal error processing fetchN", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing fetchN"); - oprot.writeMessageBegin(new TMessage("fetchN", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("fetchN", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class fetchAll implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - fetchAll_args args = new fetchAll_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("fetchAll", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class fetchAll extends org.apache.thrift.ProcessFunction { + public fetchAll() { + super("fetchAll"); + } + + protected fetchAll_args getEmptyArgsInstance() { + return new fetchAll_args(); + } + + protected fetchAll_result getResult(I iface, fetchAll_args args) throws org.apache.thrift.TException { fetchAll_result result = new fetchAll_result(); try { - result.success = iface_.fetchAll(); + result.success = iface.fetchAll(); } catch (HiveServerException ex) { result.ex = ex; - } catch (Throwable th) { - LOGGER.error("Internal error processing fetchAll", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing fetchAll"); - oprot.writeMessageBegin(new TMessage("fetchAll", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("fetchAll", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class getSchema implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - getSchema_args args = new getSchema_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("getSchema", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class getSchema extends org.apache.thrift.ProcessFunction { + public getSchema() { + super("getSchema"); + } + + protected getSchema_args getEmptyArgsInstance() { + return new getSchema_args(); + } + + protected getSchema_result getResult(I iface, getSchema_args args) throws org.apache.thrift.TException { getSchema_result result = new getSchema_result(); try { - result.success = iface_.getSchema(); + result.success = iface.getSchema(); } catch (HiveServerException ex) { result.ex = ex; - } catch (Throwable th) { - LOGGER.error("Internal error processing getSchema", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getSchema"); - oprot.writeMessageBegin(new TMessage("getSchema", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("getSchema", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class getThriftSchema implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - getThriftSchema_args args = new getThriftSchema_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("getThriftSchema", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class getThriftSchema extends org.apache.thrift.ProcessFunction { + public getThriftSchema() { + super("getThriftSchema"); + } + + protected getThriftSchema_args getEmptyArgsInstance() { + return new getThriftSchema_args(); + } + + protected getThriftSchema_result getResult(I iface, getThriftSchema_args args) throws org.apache.thrift.TException { getThriftSchema_result result = new getThriftSchema_result(); try { - result.success = iface_.getThriftSchema(); + result.success = iface.getThriftSchema(); } catch (HiveServerException ex) { result.ex = ex; - } catch (Throwable th) { - LOGGER.error("Internal error processing getThriftSchema", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getThriftSchema"); - oprot.writeMessageBegin(new TMessage("getThriftSchema", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("getThriftSchema", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class getClusterStatus implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - getClusterStatus_args args = new getClusterStatus_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("getClusterStatus", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class getClusterStatus extends org.apache.thrift.ProcessFunction { + public getClusterStatus() { + super("getClusterStatus"); + } + + protected getClusterStatus_args getEmptyArgsInstance() { + return new getClusterStatus_args(); + } + + protected getClusterStatus_result getResult(I iface, getClusterStatus_args args) throws org.apache.thrift.TException { getClusterStatus_result result = new getClusterStatus_result(); try { - result.success = iface_.getClusterStatus(); + result.success = iface.getClusterStatus(); } catch (HiveServerException ex) { result.ex = ex; - } catch (Throwable th) { - LOGGER.error("Internal error processing getClusterStatus", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getClusterStatus"); - oprot.writeMessageBegin(new TMessage("getClusterStatus", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("getClusterStatus", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class getQueryPlan implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - getQueryPlan_args args = new getQueryPlan_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("getQueryPlan", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); + private static class getQueryPlan extends org.apache.thrift.ProcessFunction { + public getQueryPlan() { + super("getQueryPlan"); + } + + protected getQueryPlan_args getEmptyArgsInstance() { + return new getQueryPlan_args(); + } + + protected getQueryPlan_result getResult(I iface, getQueryPlan_args args) throws org.apache.thrift.TException { getQueryPlan_result result = new getQueryPlan_result(); try { - result.success = iface_.getQueryPlan(); + result.success = iface.getQueryPlan(); } catch (HiveServerException ex) { result.ex = ex; - } catch (Throwable th) { - LOGGER.error("Internal error processing getQueryPlan", th); - TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getQueryPlan"); - oprot.writeMessageBegin(new TMessage("getQueryPlan", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; } - oprot.writeMessageBegin(new TMessage("getQueryPlan", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + return result; } - } - private class clean implements ProcessFunction { - public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException - { - clean_args args = new clean_args(); - try { - args.read(iprot); - } catch (TProtocolException e) { - iprot.readMessageEnd(); - TApplicationException x = new TApplicationException(TApplicationException.PROTOCOL_ERROR, e.getMessage()); - oprot.writeMessageBegin(new TMessage("clean", TMessageType.EXCEPTION, seqid)); - x.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); - return; - } - iprot.readMessageEnd(); - clean_result result = new clean_result(); - iface_.clean(); - oprot.writeMessageBegin(new TMessage("clean", TMessageType.REPLY, seqid)); - result.write(oprot); - oprot.writeMessageEnd(); - oprot.getTransport().flush(); + private static class clean extends org.apache.thrift.ProcessFunction { + public clean() { + super("clean"); + } + + protected clean_args getEmptyArgsInstance() { + return new clean_args(); } + protected clean_result getResult(I iface, clean_args args) throws org.apache.thrift.TException { + clean_result result = new clean_result(); + iface.clean(); + return result; + } } } - public static class execute_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("execute_args"); + public static class execute_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("execute_args"); - private static final TField QUERY_FIELD_DESC = new TField("query", TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRING, (short)1); - private String query; + private String query; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { QUERY((short)1, "query"); private static final Map byName = new HashMap(); @@ -1142,13 +859,13 @@ public class ThriftHive { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.QUERY, new FieldMetaData("query", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.QUERY, new org.apache.thrift.meta_data.FieldMetaData("query", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(execute_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(execute_args.class, metaDataMap); } public execute_args() { @@ -1191,7 +908,7 @@ public class ThriftHive { this.query = null; } - /** Returns true if field query is set (has been asigned a value) and false otherwise */ + /** Returns true if field query is set (has been assigned a value) and false otherwise */ public boolean isSetQuery() { return this.query != null; } @@ -1224,7 +941,7 @@ public class ThriftHive { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -1280,7 +997,7 @@ public class ThriftHive { return lastComparison; } if (isSetQuery()) { - lastComparison = TBaseHelper.compareTo(this.query, typedOther.query); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, typedOther.query); if (lastComparison != 0) { return lastComparison; } @@ -1292,25 +1009,25 @@ public class ThriftHive { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // QUERY - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.query = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -1318,7 +1035,7 @@ public class ThriftHive { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -1347,21 +1064,37 @@ public class ThriftHive { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class execute_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("execute_result"); + public static class execute_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("execute_result"); - private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private HiveServerException ex; + private HiveServerException ex; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short)1, "ex"); private static final Map byName = new HashMap(); @@ -1420,13 +1153,13 @@ public class ThriftHive { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(execute_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(execute_result.class, metaDataMap); } public execute_result() { @@ -1469,7 +1202,7 @@ public class ThriftHive { this.ex = null; } - /** Returns true if field ex is set (has been asigned a value) and false otherwise */ + /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } @@ -1502,7 +1235,7 @@ public class ThriftHive { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -1558,7 +1291,7 @@ public class ThriftHive { return lastComparison; } if (isSetEx()) { - lastComparison = TBaseHelper.compareTo(this.ex, typedOther.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -1570,26 +1303,26 @@ public class ThriftHive { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // EX - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.ex = new HiveServerException(); this.ex.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -1597,7 +1330,7 @@ public class ThriftHive { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetEx()) { @@ -1625,19 +1358,35 @@ public class ThriftHive { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class fetchOne_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("fetchOne_args"); + public static class fetchOne_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchOne_args"); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map byName = new HashMap(); @@ -1691,11 +1440,11 @@ public class ThriftHive { return _fieldName; } } - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(fetchOne_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchOne_args.class, metaDataMap); } public fetchOne_args() { @@ -1726,7 +1475,7 @@ public class ThriftHive { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -1773,18 +1522,18 @@ public class ThriftHive { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -1792,7 +1541,7 @@ public class ThriftHive { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -1809,23 +1558,39 @@ public class ThriftHive { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class fetchOne_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("fetchOne_result"); + public static class fetchOne_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchOne_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRING, (short)0); - private static final TField EX_FIELD_DESC = new TField("ex", 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.STRING, (short)0); + private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private String success; - private HiveServerException ex; + private String success; // required + private HiveServerException ex; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"); @@ -1887,15 +1652,15 @@ public class ThriftHive { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRING))); - tmpMap.put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(fetchOne_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchOne_result.class, metaDataMap); } public fetchOne_result() { @@ -1944,7 +1709,7 @@ public class ThriftHive { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -1967,7 +1732,7 @@ public class ThriftHive { this.ex = null; } - /** Returns true if field ex is set (has been asigned a value) and false otherwise */ + /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } @@ -2011,7 +1776,7 @@ public class ThriftHive { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -2078,7 +1843,7 @@ public class ThriftHive { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -2088,7 +1853,7 @@ public class ThriftHive { return lastComparison; } if (isSetEx()) { - lastComparison = TBaseHelper.compareTo(this.ex, typedOther.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -2100,33 +1865,33 @@ public class ThriftHive { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.STRING) { + if (field.type == org.apache.thrift.protocol.TType.STRING) { this.success = iprot.readString(); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // EX - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.ex = new HiveServerException(); this.ex.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -2134,7 +1899,7 @@ public class ThriftHive { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -2174,21 +1939,37 @@ public class ThriftHive { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class fetchN_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("fetchN_args"); + public static class fetchN_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchN_args"); - private static final TField NUM_ROWS_FIELD_DESC = new TField("numRows", TType.I32, (short)1); + private static final org.apache.thrift.protocol.TField NUM_ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("numRows", org.apache.thrift.protocol.TType.I32, (short)1); - private int numRows; + private int numRows; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { NUM_ROWS((short)1, "numRows"); private static final Map byName = new HashMap(); @@ -2249,13 +2030,13 @@ public class ThriftHive { private static final int __NUMROWS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NUM_ROWS, new FieldMetaData("numRows", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.I32))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.NUM_ROWS, new org.apache.thrift.meta_data.FieldMetaData("numRows", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(fetchN_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchN_args.class, metaDataMap); } public fetchN_args() { @@ -2301,7 +2082,7 @@ public class ThriftHive { __isset_bit_vector.clear(__NUMROWS_ISSET_ID); } - /** Returns true if field numRows is set (has been asigned a value) and false otherwise */ + /** Returns true if field numRows is set (has been assigned a value) and false otherwise */ public boolean isSetNumRows() { return __isset_bit_vector.get(__NUMROWS_ISSET_ID); } @@ -2326,13 +2107,13 @@ public class ThriftHive { public Object getFieldValue(_Fields field) { switch (field) { case NUM_ROWS: - return new Integer(getNumRows()); + return Integer.valueOf(getNumRows()); } throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -2388,7 +2169,7 @@ public class ThriftHive { return lastComparison; } if (isSetNumRows()) { - lastComparison = TBaseHelper.compareTo(this.numRows, typedOther.numRows); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numRows, typedOther.numRows); if (lastComparison != 0) { return lastComparison; } @@ -2400,26 +2181,26 @@ public class ThriftHive { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // NUM_ROWS - if (field.type == TType.I32) { + if (field.type == org.apache.thrift.protocol.TType.I32) { this.numRows = iprot.readI32(); setNumRowsIsSet(true); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -2427,7 +2208,7 @@ public class ThriftHive { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -2450,23 +2231,41 @@ public class ThriftHive { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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_bit_vector = new BitSet(1); + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + } - public static class fetchN_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("fetchN_result"); + public static class fetchN_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchN_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private List success; - private HiveServerException ex; + private List success; // required + private HiveServerException ex; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"); @@ -2528,16 +2327,16 @@ public class ThriftHive { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(fetchN_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchN_result.class, metaDataMap); } public fetchN_result() { @@ -2605,7 +2404,7 @@ public class ThriftHive { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -2628,7 +2427,7 @@ public class ThriftHive { this.ex = null; } - /** Returns true if field ex is set (has been asigned a value) and false otherwise */ + /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } @@ -2672,7 +2471,7 @@ public class ThriftHive { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -2739,7 +2538,7 @@ public class ThriftHive { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -2749,7 +2548,7 @@ public class ThriftHive { return lastComparison; } if (isSetEx()) { - lastComparison = TBaseHelper.compareTo(this.ex, typedOther.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -2761,43 +2560,43 @@ public class ThriftHive { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list0 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); this.success = new ArrayList(_list0.size); for (int _i1 = 0; _i1 < _list0.size; ++_i1) { - String _elem2; + String _elem2; // required _elem2 = iprot.readString(); this.success.add(_elem2); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // EX - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.ex = new HiveServerException(); this.ex.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -2805,13 +2604,13 @@ public class ThriftHive { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size())); for (String _iter3 : this.success) { oprot.writeString(_iter3); @@ -2852,19 +2651,35 @@ public class ThriftHive { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class fetchAll_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("fetchAll_args"); + public static class fetchAll_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchAll_args"); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map byName = new HashMap(); @@ -2918,11 +2733,11 @@ public class ThriftHive { return _fieldName; } } - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(fetchAll_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchAll_args.class, metaDataMap); } public fetchAll_args() { @@ -2953,7 +2768,7 @@ public class ThriftHive { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -3000,18 +2815,18 @@ public class ThriftHive { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -3019,7 +2834,7 @@ public class ThriftHive { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -3036,23 +2851,39 @@ public class ThriftHive { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class fetchAll_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("fetchAll_result"); + public static class fetchAll_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchAll_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0); - private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private List success; - private HiveServerException ex; + private List success; // required + private HiveServerException ex; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"); @@ -3114,16 +2945,16 @@ public class ThriftHive { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new ListMetaData(TType.LIST, - new FieldValueMetaData(TType.STRING)))); - tmpMap.put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(fetchAll_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchAll_result.class, metaDataMap); } public fetchAll_result() { @@ -3191,7 +3022,7 @@ public class ThriftHive { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -3214,7 +3045,7 @@ public class ThriftHive { this.ex = null; } - /** Returns true if field ex is set (has been asigned a value) and false otherwise */ + /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } @@ -3258,7 +3089,7 @@ public class ThriftHive { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -3325,7 +3156,7 @@ public class ThriftHive { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -3335,7 +3166,7 @@ public class ThriftHive { return lastComparison; } if (isSetEx()) { - lastComparison = TBaseHelper.compareTo(this.ex, typedOther.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -3347,43 +3178,43 @@ public class ThriftHive { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.LIST) { + if (field.type == org.apache.thrift.protocol.TType.LIST) { { - TList _list4 = iprot.readListBegin(); + org.apache.thrift.protocol.TList _list4 = iprot.readListBegin(); this.success = new ArrayList(_list4.size); for (int _i5 = 0; _i5 < _list4.size; ++_i5) { - String _elem6; + String _elem6; // required _elem6 = iprot.readString(); this.success.add(_elem6); } iprot.readListEnd(); } } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // EX - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.ex = new HiveServerException(); this.ex.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -3391,13 +3222,13 @@ public class ThriftHive { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new TList(TType.STRING, this.success.size())); + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size())); for (String _iter7 : this.success) { oprot.writeString(_iter7); @@ -3438,19 +3269,35 @@ public class ThriftHive { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class getSchema_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("getSchema_args"); + public static class getSchema_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSchema_args"); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map byName = new HashMap(); @@ -3504,11 +3351,11 @@ public class ThriftHive { return _fieldName; } } - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(getSchema_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSchema_args.class, metaDataMap); } public getSchema_args() { @@ -3539,7 +3386,7 @@ public class ThriftHive { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -3586,18 +3433,18 @@ public class ThriftHive { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -3605,7 +3452,7 @@ public class ThriftHive { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -3622,23 +3469,39 @@ public class ThriftHive { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class getSchema_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("getSchema_result"); + public static class getSchema_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSchema_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - private static final TField EX_FIELD_DESC = new TField("ex", 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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private org.apache.hadoop.hive.metastore.api.Schema success; - private HiveServerException ex; + private org.apache.hadoop.hive.metastore.api.Schema success; // required + private HiveServerException ex; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"); @@ -3700,15 +3563,15 @@ public class ThriftHive { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, org.apache.hadoop.hive.metastore.api.Schema.class))); - tmpMap.put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + 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, org.apache.hadoop.hive.metastore.api.Schema.class))); + tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(getSchema_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSchema_result.class, metaDataMap); } public getSchema_result() { @@ -3757,7 +3620,7 @@ public class ThriftHive { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -3780,7 +3643,7 @@ public class ThriftHive { this.ex = null; } - /** Returns true if field ex is set (has been asigned a value) and false otherwise */ + /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } @@ -3824,7 +3687,7 @@ public class ThriftHive { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -3891,7 +3754,7 @@ public class ThriftHive { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -3901,7 +3764,7 @@ public class ThriftHive { return lastComparison; } if (isSetEx()) { - lastComparison = TBaseHelper.compareTo(this.ex, typedOther.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -3913,34 +3776,34 @@ public class ThriftHive { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new org.apache.hadoop.hive.metastore.api.Schema(); this.success.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // EX - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.ex = new HiveServerException(); this.ex.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -3948,7 +3811,7 @@ public class ThriftHive { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -3988,19 +3851,35 @@ public class ThriftHive { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class getThriftSchema_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("getThriftSchema_args"); + public static class getThriftSchema_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getThriftSchema_args"); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map byName = new HashMap(); @@ -4054,11 +3933,11 @@ public class ThriftHive { return _fieldName; } } - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(getThriftSchema_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getThriftSchema_args.class, metaDataMap); } public getThriftSchema_args() { @@ -4089,7 +3968,7 @@ public class ThriftHive { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -4136,18 +4015,18 @@ public class ThriftHive { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -4155,7 +4034,7 @@ public class ThriftHive { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -4172,23 +4051,39 @@ public class ThriftHive { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class getThriftSchema_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("getThriftSchema_result"); + public static class getThriftSchema_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getThriftSchema_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - private static final TField EX_FIELD_DESC = new TField("ex", 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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private org.apache.hadoop.hive.metastore.api.Schema success; - private HiveServerException ex; + private org.apache.hadoop.hive.metastore.api.Schema success; // required + private HiveServerException ex; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"); @@ -4250,15 +4145,15 @@ public class ThriftHive { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, org.apache.hadoop.hive.metastore.api.Schema.class))); - tmpMap.put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + 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, org.apache.hadoop.hive.metastore.api.Schema.class))); + tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(getThriftSchema_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getThriftSchema_result.class, metaDataMap); } public getThriftSchema_result() { @@ -4307,7 +4202,7 @@ public class ThriftHive { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -4330,7 +4225,7 @@ public class ThriftHive { this.ex = null; } - /** Returns true if field ex is set (has been asigned a value) and false otherwise */ + /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } @@ -4374,7 +4269,7 @@ public class ThriftHive { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -4441,7 +4336,7 @@ public class ThriftHive { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -4451,7 +4346,7 @@ public class ThriftHive { return lastComparison; } if (isSetEx()) { - lastComparison = TBaseHelper.compareTo(this.ex, typedOther.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -4463,34 +4358,34 @@ public class ThriftHive { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new org.apache.hadoop.hive.metastore.api.Schema(); this.success.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // EX - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.ex = new HiveServerException(); this.ex.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -4498,7 +4393,7 @@ public class ThriftHive { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -4538,19 +4433,35 @@ public class ThriftHive { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class getClusterStatus_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("getClusterStatus_args"); + public static class getClusterStatus_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getClusterStatus_args"); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map byName = new HashMap(); @@ -4604,11 +4515,11 @@ public class ThriftHive { return _fieldName; } } - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(getClusterStatus_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getClusterStatus_args.class, metaDataMap); } public getClusterStatus_args() { @@ -4639,7 +4550,7 @@ public class ThriftHive { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -4686,18 +4597,18 @@ public class ThriftHive { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -4705,7 +4616,7 @@ public class ThriftHive { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -4722,23 +4633,39 @@ public class ThriftHive { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class getClusterStatus_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("getClusterStatus_result"); + public static class getClusterStatus_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getClusterStatus_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - private static final TField EX_FIELD_DESC = new TField("ex", 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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private HiveClusterStatus success; - private HiveServerException ex; + private HiveClusterStatus success; // required + private HiveServerException ex; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"); @@ -4800,15 +4727,15 @@ public class ThriftHive { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, HiveClusterStatus.class))); - tmpMap.put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + 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, HiveClusterStatus.class))); + tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(getClusterStatus_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getClusterStatus_result.class, metaDataMap); } public getClusterStatus_result() { @@ -4857,7 +4784,7 @@ public class ThriftHive { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -4880,7 +4807,7 @@ public class ThriftHive { this.ex = null; } - /** Returns true if field ex is set (has been asigned a value) and false otherwise */ + /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } @@ -4924,7 +4851,7 @@ public class ThriftHive { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -4991,7 +4918,7 @@ public class ThriftHive { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -5001,7 +4928,7 @@ public class ThriftHive { return lastComparison; } if (isSetEx()) { - lastComparison = TBaseHelper.compareTo(this.ex, typedOther.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -5013,34 +4940,34 @@ public class ThriftHive { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new HiveClusterStatus(); this.success.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // EX - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.ex = new HiveServerException(); this.ex.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -5048,7 +4975,7 @@ public class ThriftHive { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -5088,19 +5015,35 @@ public class ThriftHive { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class getQueryPlan_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("getQueryPlan_args"); + public static class getQueryPlan_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQueryPlan_args"); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map byName = new HashMap(); @@ -5154,11 +5097,11 @@ public class ThriftHive { return _fieldName; } } - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(getQueryPlan_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQueryPlan_args.class, metaDataMap); } public getQueryPlan_args() { @@ -5189,7 +5132,7 @@ public class ThriftHive { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -5236,18 +5179,18 @@ public class ThriftHive { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -5255,7 +5198,7 @@ public class ThriftHive { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -5272,23 +5215,39 @@ public class ThriftHive { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class getQueryPlan_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("getQueryPlan_result"); + public static class getQueryPlan_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQueryPlan_result"); - private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0); - private static final TField EX_FIELD_DESC = new TField("ex", 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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private org.apache.hadoop.hive.ql.plan.api.QueryPlan success; - private HiveServerException ex; + private org.apache.hadoop.hive.ql.plan.api.QueryPlan success; // required + private HiveServerException ex; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"); @@ -5350,15 +5309,15 @@ public class ThriftHive { // isset id assignments - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, - new StructMetaData(TType.STRUCT, org.apache.hadoop.hive.ql.plan.api.QueryPlan.class))); - tmpMap.put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, - new FieldValueMetaData(TType.STRUCT))); + 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, org.apache.hadoop.hive.ql.plan.api.QueryPlan.class))); + tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(getQueryPlan_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQueryPlan_result.class, metaDataMap); } public getQueryPlan_result() { @@ -5407,7 +5366,7 @@ public class ThriftHive { this.success = null; } - /** Returns true if field success is set (has been asigned a value) and false otherwise */ + /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } @@ -5430,7 +5389,7 @@ public class ThriftHive { this.ex = null; } - /** Returns true if field ex is set (has been asigned a value) and false otherwise */ + /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } @@ -5474,7 +5433,7 @@ public class ThriftHive { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -5541,7 +5500,7 @@ public class ThriftHive { return lastComparison; } if (isSetSuccess()) { - lastComparison = TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -5551,7 +5510,7 @@ public class ThriftHive { return lastComparison; } if (isSetEx()) { - lastComparison = TBaseHelper.compareTo(this.ex, typedOther.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -5563,34 +5522,34 @@ public class ThriftHive { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new org.apache.hadoop.hive.ql.plan.api.QueryPlan(); this.success.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // EX - if (field.type == TType.STRUCT) { + if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.ex = new HiveServerException(); this.ex.read(iprot); } else { - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -5598,7 +5557,7 @@ public class ThriftHive { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { @@ -5638,19 +5597,35 @@ public class ThriftHive { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class clean_args implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("clean_args"); + public static class clean_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clean_args"); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map byName = new HashMap(); @@ -5704,11 +5679,11 @@ public class ThriftHive { return _fieldName; } } - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(clean_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clean_args.class, metaDataMap); } public clean_args() { @@ -5739,7 +5714,7 @@ public class ThriftHive { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -5786,18 +5761,18 @@ public class ThriftHive { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -5805,7 +5780,7 @@ public class ThriftHive { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -5822,19 +5797,35 @@ public class ThriftHive { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } - public static class clean_result implements TBase, java.io.Serializable, Cloneable { - private static final TStruct STRUCT_DESC = new TStruct("clean_result"); + public static class clean_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clean_result"); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements TFieldIdEnum { + public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map byName = new HashMap(); @@ -5888,11 +5879,11 @@ public class ThriftHive { return _fieldName; } } - public static final Map<_Fields, FieldMetaData> metaDataMap; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - FieldMetaData.addStructMetaDataMap(clean_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clean_result.class, metaDataMap); } public clean_result() { @@ -5923,7 +5914,7 @@ public class ThriftHive { throw new IllegalStateException(); } - /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ + /** 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(); @@ -5970,18 +5961,18 @@ public class ThriftHive { return _Fields.findByThriftId(fieldId); } - public void read(TProtocol iprot) throws TException { - TField field; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); - if (field.type == TType.STOP) { + if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { default: - TProtocolUtil.skip(iprot, field.type); + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } @@ -5989,7 +5980,7 @@ public class ThriftHive { validate(); } - public void write(TProtocol oprot) throws TException { + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); @@ -6005,10 +5996,26 @@ public class ThriftHive { return sb.toString(); } - public void validate() throws TException { + public void validate() throws org.apache.thrift.TException { // check for required fields } + 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); + } + } + } } diff --git service/src/gen/thrift/gen-php/hive_service/ThriftHive.php service/src/gen/thrift/gen-php/hive_service/ThriftHive.php index e01d95d..e76cd55 100644 --- service/src/gen/thrift/gen-php/hive_service/ThriftHive.php +++ service/src/gen/thrift/gen-php/hive_service/ThriftHive.php @@ -1,6 +1,6 @@ array( 'var' => 'success', 'type' => TType::STRUCT, - 'class' => 'metastore_Schema', + 'class' => 'Schema', ), 1 => array( 'var' => 'ex', @@ -1254,7 +1254,7 @@ class ThriftHive_getSchema_result { { case 0: if ($ftype == TType::STRUCT) { - $this->success = new metastore_Schema(); + $this->success = new Schema(); $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); @@ -1363,7 +1363,7 @@ class ThriftHive_getThriftSchema_result { 0 => array( 'var' => 'success', 'type' => TType::STRUCT, - 'class' => 'metastore_Schema', + 'class' => 'Schema', ), 1 => array( 'var' => 'ex', @@ -1403,7 +1403,7 @@ class ThriftHive_getThriftSchema_result { { case 0: if ($ftype == TType::STRUCT) { - $this->success = new metastore_Schema(); + $this->success = new Schema(); $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); diff --git service/src/gen/thrift/gen-php/hive_service/hive_service_types.php service/src/gen/thrift/gen-php/hive_service/hive_service_types.php index 4ebe36e..99649e4 100644 --- service/src/gen/thrift/gen-php/hive_service/hive_service_types.php +++ service/src/gen/thrift/gen-php/hive_service/hive_service_types.php @@ -1,6 +1,6 @@ - + +