diff --git .classpath._hbase .classpath._hbase
deleted file mode 100644
index 15fd1c5..0000000
--- .classpath._hbase
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git .gitignore .gitignore
index e54804f..a0449e0 100644
--- .gitignore
+++ .gitignore
@@ -1,6 +1,6 @@
build
build-eclipse
-.classpath
+.classpath*
.externalToolBuilders
.project
.settings
diff --git build-common.xml build-common.xml
index 53fd1b1..1e348c7 100644
--- build-common.xml
+++ build-common.xml
@@ -25,6 +25,8 @@
+
+
@@ -34,6 +36,8 @@
+
+
@@ -101,7 +105,7 @@
-
+
@@ -159,18 +163,18 @@
log="${ivyresolvelog}"/>
-
-
-
-
-
+
+
+
+
-
+
@@ -461,4 +465,15 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git build.xml build.xml
index dc20725..41a4dbc 100644
--- build.xml
+++ build.xml
@@ -25,6 +25,8 @@
+
+
@@ -91,6 +93,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -121,7 +145,7 @@
-
@@ -165,16 +189,24 @@
+
+
+
+
+
+
+
+
-
@@ -212,7 +244,7 @@
-
+
@@ -280,16 +312,16 @@
-
+
-
+
-
+
-
+
@@ -298,16 +330,16 @@
-
+
-
+
-
+
-
+
@@ -320,7 +352,7 @@
-
+
@@ -449,18 +481,21 @@
-
+
-
+
+
-
+
+
+
diff --git eclipse-templates/.classpath eclipse-templates/.classpath
index d06d6bd..23e33cc 100644
--- eclipse-templates/.classpath
+++ eclipse-templates/.classpath
@@ -16,10 +16,10 @@
-
-
-
-
+
+
+
+
@@ -33,25 +33,28 @@
-
-
+
+
+
+
-
+
-
+
-
+
+
-
+
diff --git eclipse-templates/.classpath._hbase eclipse-templates/.classpath._hbase
index b81c24a..f0e5a33 100644
--- eclipse-templates/.classpath._hbase
+++ eclipse-templates/.classpath._hbase
@@ -6,29 +6,29 @@
-
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -42,7 +42,8 @@
-
+
+
@@ -53,7 +54,7 @@
-
+
-
+
diff --git ivy/libraries.properties ivy/libraries.properties
index fdd54c8..ef24aff 100644
--- ivy/libraries.properties
+++ ivy/libraries.properties
@@ -35,11 +35,16 @@ commons-lang.version=2.4
commons-logging.version=1.0.4
commons-logging-api.version=1.0.4
commons-pool.version=1.5.4
+hbase.version=0.20.3
+hbase-test.version=0.20.3
jdo-api.version=3.0.0
jdom.version=1.1
jline.version=0.9.94
junit.version=3.8.1
ivy.version=2.1.0
log4j.version=1.2.15
+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.2.2
-
diff --git lib/README lib/README
index 72d90b7..1c2f0b1 100644
--- lib/README
+++ lib/README
@@ -1,8 +1,8 @@
Folowing is the list of external jars contained in this directory and the sources from where they were obtained:
---------------------------------------------------------------------------------------------------------------
-* libfb303.jar - http://developers.facebook.com/thrift/
-* libthrift.jar - http://developers.facebook.com/thrift/
+* 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/libfb303.LICENSE lib/libfb303.LICENSE
deleted file mode 100644
index 6b5c3b1..0000000
--- lib/libfb303.LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Thrift Software License
-
-Copyright © 2006- Facebook, Inc.
-
-Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the
-software and accompanying documentation covered by this license (the "Software") to use, reproduce,
-display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software,
-and to permit third-parties to whom the Software is furnished to do so, all subject to the following:
-
-The copyright notices in the Software and this entire statement, including the above license grant,
-this restriction and the following disclaimer, must be included in all copies of the Software, in whole
-or in part, and all derivative works of the Software, unless such copies or derivative works are solely
-in the form of machine-executable object code generated by a source language processor.
-
-The software is provided "as is", without warranty of any kind, express or implied, including but not
-limited to the warranties of merchantability, fitness for a particular purpose, title and non-infringement.
-In no event shall the copyright holders or anyone distributing the software be liable for any damages or
-other liability, whether in contract, tort, or otherwise, arising from, out of or in connection with the
-software or the use or other dealings in the software.
diff --git lib/libfb303.jar lib/libfb303.jar
deleted file mode 100644
index 516b597..0000000
Binary files lib/libfb303.jar and /dev/null differ
diff --git lib/libthrift.LICENSE lib/libthrift.LICENSE
deleted file mode 100644
index 6b5c3b1..0000000
--- lib/libthrift.LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Thrift Software License
-
-Copyright © 2006- Facebook, Inc.
-
-Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the
-software and accompanying documentation covered by this license (the "Software") to use, reproduce,
-display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software,
-and to permit third-parties to whom the Software is furnished to do so, all subject to the following:
-
-The copyright notices in the Software and this entire statement, including the above license grant,
-this restriction and the following disclaimer, must be included in all copies of the Software, in whole
-or in part, and all derivative works of the Software, unless such copies or derivative works are solely
-in the form of machine-executable object code generated by a source language processor.
-
-The software is provided "as is", without warranty of any kind, express or implied, including but not
-limited to the warranties of merchantability, fitness for a particular purpose, title and non-infringement.
-In no event shall the copyright holders or anyone distributing the software be liable for any damages or
-other liability, whether in contract, tort, or otherwise, arising from, out of or in connection with the
-software or the use or other dealings in the software.
diff --git lib/libthrift.jar lib/libthrift.jar
deleted file mode 100644
index 7e7f90e..0000000
Binary files lib/libthrift.jar and /dev/null differ
diff --git lib/thrift-0.5.0.jar lib/thrift-0.5.0.jar
new file mode 100644
index 0000000..f38617b
Binary files /dev/null and lib/thrift-0.5.0.jar differ
diff --git lib/thrift-fb303-0.5.0.jar lib/thrift-fb303-0.5.0.jar
new file mode 100644
index 0000000..bad90ce
Binary files /dev/null and lib/thrift-fb303-0.5.0.jar differ
diff --git lib/thrift-fb303.LICENSE lib/thrift-fb303.LICENSE
new file mode 100644
index 0000000..4eacb64
--- /dev/null
+++ lib/thrift-fb303.LICENSE
@@ -0,0 +1,16 @@
+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
new file mode 100644
index 0000000..9d189ef
--- /dev/null
+++ lib/thrift.LICENSE
@@ -0,0 +1,324 @@
+
+ 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/build.xml metastore/build.xml
index ffb86c1..7f01f91 100755
--- metastore/build.xml
+++ metastore/build.xml
@@ -22,36 +22,37 @@
-
- Executing thrift (which needs to be in your path) to build java metastore APIs....
-
-
+
+ You must set the 'thrift.home' property!
+ Executing ${thrift.home}/bin/thrift on ${ant.project.name}/if/hive_metastore.thrift
+
+
-
+
Building Grammar ${src.dir}/java/org/apache/hadoop/hive/metastore/parser/Filter.g ....
-
+
-
+
@@ -47,5 +63,7 @@
+
+
diff --git metastore/src/gen-cpp/ThriftHiveMetastore.cpp metastore/src/gen-cpp/ThriftHiveMetastore.cpp
deleted file mode 100644
index 1bdfb52..0000000
--- metastore/src/gen-cpp/ThriftHiveMetastore.cpp
+++ /dev/null
@@ -1,12892 +0,0 @@
-/**
- * Autogenerated by Thrift
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- */
-#include "ThriftHiveMetastore.h"
-
-namespace Apache { namespace Hadoop { namespace Hive {
-
-uint32_t ThriftHiveMetastore_create_database_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->database.read(iprot);
- this->__isset.database = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_create_database_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_database_args");
- xfer += oprot->writeFieldBegin("database", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->database.write(oprot);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_create_database_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_database_pargs");
- xfer += oprot->writeFieldBegin("database", apache::thrift::protocol::T_STRUCT, 1);
- xfer += (*(this->database)).write(oprot);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_create_database_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_create_database_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_database_result");
-
- if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o3) {
- xfer += oprot->writeFieldBegin("o3", apache::thrift::protocol::T_STRUCT, 3);
- xfer += this->o3.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_create_database_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_database_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->name);
- this->__isset.name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_database_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_database_args");
- xfer += oprot->writeFieldBegin("name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_database_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_database_pargs");
- xfer += oprot->writeFieldBegin("name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_database_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->success.read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_database_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_database_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", apache::thrift::protocol::T_STRUCT, 0);
- xfer += this->success.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_database_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += (*(this->success)).read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_database_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->name);
- this->__isset.name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool(this->deleteData);
- this->__isset.deleteData = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_database_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_database_args");
- xfer += oprot->writeFieldBegin("name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("deleteData", apache::thrift::protocol::T_BOOL, 2);
- xfer += oprot->writeBool(this->deleteData);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_database_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_database_pargs");
- xfer += oprot->writeFieldBegin("name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("deleteData", apache::thrift::protocol::T_BOOL, 2);
- xfer += oprot->writeBool((*(this->deleteData)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_database_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_database_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_database_result");
-
- if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o3) {
- xfer += oprot->writeFieldBegin("o3", apache::thrift::protocol::T_STRUCT, 3);
- xfer += this->o3.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_database_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_databases_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->pattern);
- this->__isset.pattern = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_databases_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_databases_args");
- xfer += oprot->writeFieldBegin("pattern", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->pattern);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_databases_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_databases_pargs");
- xfer += oprot->writeFieldBegin("pattern", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->pattern)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_databases_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- this->success.clear();
- uint32_t _size90;
- apache::thrift::protocol::TType _etype93;
- iprot->readListBegin(_etype93, _size90);
- this->success.resize(_size90);
- uint32_t _i94;
- for (_i94 = 0; _i94 < _size90; ++_i94)
- {
- xfer += iprot->readString(this->success[_i94]);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_databases_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_databases_result");
-
- 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());
- std::vector ::const_iterator _iter95;
- for (_iter95 = this->success.begin(); _iter95 != this->success.end(); ++_iter95)
- {
- xfer += oprot->writeString((*_iter95));
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_databases_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- (*(this->success)).clear();
- uint32_t _size96;
- apache::thrift::protocol::TType _etype99;
- iprot->readListBegin(_etype99, _size96);
- (*(this->success)).resize(_size96);
- uint32_t _i100;
- for (_i100 = 0; _i100 < _size96; ++_i100)
- {
- xfer += iprot->readString((*(this->success))[_i100]);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_all_databases_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_all_databases_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_databases_args");
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_all_databases_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_databases_pargs");
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_all_databases_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- this->success.clear();
- uint32_t _size101;
- apache::thrift::protocol::TType _etype104;
- iprot->readListBegin(_etype104, _size101);
- this->success.resize(_size101);
- uint32_t _i105;
- for (_i105 = 0; _i105 < _size101; ++_i105)
- {
- xfer += iprot->readString(this->success[_i105]);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_all_databases_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_databases_result");
-
- 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());
- std::vector ::const_iterator _iter106;
- for (_iter106 = this->success.begin(); _iter106 != this->success.end(); ++_iter106)
- {
- xfer += oprot->writeString((*_iter106));
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_all_databases_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- (*(this->success)).clear();
- uint32_t _size107;
- apache::thrift::protocol::TType _etype110;
- iprot->readListBegin(_etype110, _size107);
- (*(this->success)).resize(_size107);
- uint32_t _i111;
- for (_i111 = 0; _i111 < _size107; ++_i111)
- {
- xfer += iprot->readString((*(this->success))[_i111]);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_type_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->name);
- this->__isset.name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_type_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_type_args");
- xfer += oprot->writeFieldBegin("name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_type_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_type_pargs");
- xfer += oprot->writeFieldBegin("name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_type_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->success.read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_type_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_type_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", apache::thrift::protocol::T_STRUCT, 0);
- xfer += this->success.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_type_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += (*(this->success)).read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_create_type_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->type.read(iprot);
- this->__isset.type = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_create_type_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_type_args");
- xfer += oprot->writeFieldBegin("type", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->type.write(oprot);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_create_type_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_type_pargs");
- xfer += oprot->writeFieldBegin("type", apache::thrift::protocol::T_STRUCT, 1);
- xfer += (*(this->type)).write(oprot);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_create_type_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool(this->success);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_create_type_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_type_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", apache::thrift::protocol::T_BOOL, 0);
- xfer += oprot->writeBool(this->success);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o3) {
- xfer += oprot->writeFieldBegin("o3", apache::thrift::protocol::T_STRUCT, 3);
- xfer += this->o3.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_create_type_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool((*(this->success)));
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_type_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->type);
- this->__isset.type = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_type_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_type_args");
- xfer += oprot->writeFieldBegin("type", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->type);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_type_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_type_pargs");
- xfer += oprot->writeFieldBegin("type", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->type)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_type_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool(this->success);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_type_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_type_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", apache::thrift::protocol::T_BOOL, 0);
- xfer += oprot->writeBool(this->success);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_type_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool((*(this->success)));
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_type_all_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->name);
- this->__isset.name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_type_all_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_type_all_args");
- xfer += oprot->writeFieldBegin("name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_type_all_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_type_all_pargs");
- xfer += oprot->writeFieldBegin("name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_type_all_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_MAP) {
- {
- this->success.clear();
- uint32_t _size112;
- apache::thrift::protocol::TType _ktype113;
- apache::thrift::protocol::TType _vtype114;
- iprot->readMapBegin(_ktype113, _vtype114, _size112);
- uint32_t _i116;
- for (_i116 = 0; _i116 < _size112; ++_i116)
- {
- std::string _key117;
- xfer += iprot->readString(_key117);
- Type& _val118 = this->success[_key117];
- xfer += _val118.read(iprot);
- }
- iprot->readMapEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_type_all_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_type_all_result");
-
- 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());
- std::map ::const_iterator _iter119;
- for (_iter119 = this->success.begin(); _iter119 != this->success.end(); ++_iter119)
- {
- xfer += oprot->writeString(_iter119->first);
- xfer += _iter119->second.write(oprot);
- }
- xfer += oprot->writeMapEnd();
- }
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_type_all_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_MAP) {
- {
- (*(this->success)).clear();
- uint32_t _size120;
- apache::thrift::protocol::TType _ktype121;
- apache::thrift::protocol::TType _vtype122;
- iprot->readMapBegin(_ktype121, _vtype122, _size120);
- uint32_t _i124;
- for (_i124 = 0; _i124 < _size120; ++_i124)
- {
- std::string _key125;
- xfer += iprot->readString(_key125);
- Type& _val126 = (*(this->success))[_key125];
- xfer += _val126.read(iprot);
- }
- iprot->readMapEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_fields_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->table_name);
- this->__isset.table_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_fields_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_fields_args");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("table_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->table_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_fields_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_fields_pargs");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("table_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->table_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_fields_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- this->success.clear();
- uint32_t _size127;
- apache::thrift::protocol::TType _etype130;
- iprot->readListBegin(_etype130, _size127);
- this->success.resize(_size127);
- uint32_t _i131;
- for (_i131 = 0; _i131 < _size127; ++_i131)
- {
- xfer += this->success[_i131].read(iprot);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_fields_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_fields_result");
-
- 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());
- std::vector ::const_iterator _iter132;
- for (_iter132 = this->success.begin(); _iter132 != this->success.end(); ++_iter132)
- {
- xfer += (*_iter132).write(oprot);
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o3) {
- xfer += oprot->writeFieldBegin("o3", apache::thrift::protocol::T_STRUCT, 3);
- xfer += this->o3.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_fields_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- (*(this->success)).clear();
- uint32_t _size133;
- apache::thrift::protocol::TType _etype136;
- iprot->readListBegin(_etype136, _size133);
- (*(this->success)).resize(_size133);
- uint32_t _i137;
- for (_i137 = 0; _i137 < _size133; ++_i137)
- {
- xfer += (*(this->success))[_i137].read(iprot);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_schema_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->table_name);
- this->__isset.table_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_schema_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_schema_args");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("table_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->table_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_schema_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_schema_pargs");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("table_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->table_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_schema_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- this->success.clear();
- uint32_t _size138;
- apache::thrift::protocol::TType _etype141;
- iprot->readListBegin(_etype141, _size138);
- this->success.resize(_size138);
- uint32_t _i142;
- for (_i142 = 0; _i142 < _size138; ++_i142)
- {
- xfer += this->success[_i142].read(iprot);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_schema_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_schema_result");
-
- 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());
- std::vector ::const_iterator _iter143;
- for (_iter143 = this->success.begin(); _iter143 != this->success.end(); ++_iter143)
- {
- xfer += (*_iter143).write(oprot);
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o3) {
- xfer += oprot->writeFieldBegin("o3", apache::thrift::protocol::T_STRUCT, 3);
- xfer += this->o3.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_schema_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- (*(this->success)).clear();
- uint32_t _size144;
- apache::thrift::protocol::TType _etype147;
- iprot->readListBegin(_etype147, _size144);
- (*(this->success)).resize(_size144);
- uint32_t _i148;
- for (_i148 = 0; _i148 < _size144; ++_i148)
- {
- xfer += (*(this->success))[_i148].read(iprot);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_create_table_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->tbl.read(iprot);
- this->__isset.tbl = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_create_table_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_table_args");
- xfer += oprot->writeFieldBegin("tbl", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->tbl.write(oprot);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_create_table_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_table_pargs");
- xfer += oprot->writeFieldBegin("tbl", apache::thrift::protocol::T_STRUCT, 1);
- xfer += (*(this->tbl)).write(oprot);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_create_table_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 4:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o4.read(iprot);
- this->__isset.o4 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_create_table_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_table_result");
-
- if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o3) {
- xfer += oprot->writeFieldBegin("o3", apache::thrift::protocol::T_STRUCT, 3);
- xfer += this->o3.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o4) {
- xfer += oprot->writeFieldBegin("o4", apache::thrift::protocol::T_STRUCT, 4);
- xfer += this->o4.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_create_table_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 4:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o4.read(iprot);
- this->__isset.o4 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_table_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->dbname);
- this->__isset.dbname = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->name);
- this->__isset.name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool(this->deleteData);
- this->__isset.deleteData = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_table_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_args");
- xfer += oprot->writeFieldBegin("dbname", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->dbname);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("deleteData", apache::thrift::protocol::T_BOOL, 3);
- xfer += oprot->writeBool(this->deleteData);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_table_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_pargs");
- xfer += oprot->writeFieldBegin("dbname", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->dbname)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("deleteData", apache::thrift::protocol::T_BOOL, 3);
- xfer += oprot->writeBool((*(this->deleteData)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_table_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_table_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_result");
-
- if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o3) {
- xfer += oprot->writeFieldBegin("o3", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o3.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_table_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_tables_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->pattern);
- this->__isset.pattern = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_tables_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_tables_args");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("pattern", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->pattern);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_tables_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_tables_pargs");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("pattern", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->pattern)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_tables_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- this->success.clear();
- uint32_t _size149;
- apache::thrift::protocol::TType _etype152;
- iprot->readListBegin(_etype152, _size149);
- this->success.resize(_size149);
- uint32_t _i153;
- for (_i153 = 0; _i153 < _size149; ++_i153)
- {
- xfer += iprot->readString(this->success[_i153]);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_tables_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_tables_result");
-
- 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());
- std::vector ::const_iterator _iter154;
- for (_iter154 = this->success.begin(); _iter154 != this->success.end(); ++_iter154)
- {
- xfer += oprot->writeString((*_iter154));
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_tables_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- (*(this->success)).clear();
- uint32_t _size155;
- apache::thrift::protocol::TType _etype158;
- iprot->readListBegin(_etype158, _size155);
- (*(this->success)).resize(_size155);
- uint32_t _i159;
- for (_i159 = 0; _i159 < _size155; ++_i159)
- {
- xfer += iprot->readString((*(this->success))[_i159]);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_all_tables_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_all_tables_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_tables_args");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_all_tables_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_tables_pargs");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_all_tables_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- this->success.clear();
- uint32_t _size160;
- apache::thrift::protocol::TType _etype163;
- iprot->readListBegin(_etype163, _size160);
- this->success.resize(_size160);
- uint32_t _i164;
- for (_i164 = 0; _i164 < _size160; ++_i164)
- {
- xfer += iprot->readString(this->success[_i164]);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_all_tables_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_tables_result");
-
- 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());
- std::vector ::const_iterator _iter165;
- for (_iter165 = this->success.begin(); _iter165 != this->success.end(); ++_iter165)
- {
- xfer += oprot->writeString((*_iter165));
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_all_tables_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- (*(this->success)).clear();
- uint32_t _size166;
- apache::thrift::protocol::TType _etype169;
- iprot->readListBegin(_etype169, _size166);
- (*(this->success)).resize(_size166);
- uint32_t _i170;
- for (_i170 = 0; _i170 < _size166; ++_i170)
- {
- xfer += iprot->readString((*(this->success))[_i170]);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_table_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->dbname);
- this->__isset.dbname = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->tbl_name);
- this->__isset.tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_table_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_args");
- xfer += oprot->writeFieldBegin("dbname", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->dbname);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->tbl_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_table_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_pargs");
- xfer += oprot->writeFieldBegin("dbname", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->dbname)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->tbl_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_table_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->success.read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_table_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", apache::thrift::protocol::T_STRUCT, 0);
- xfer += this->success.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_table_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += (*(this->success)).read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_alter_table_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->dbname);
- this->__isset.dbname = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->tbl_name);
- this->__isset.tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->new_tbl.read(iprot);
- this->__isset.new_tbl = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_alter_table_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_table_args");
- xfer += oprot->writeFieldBegin("dbname", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->dbname);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->tbl_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("new_tbl", apache::thrift::protocol::T_STRUCT, 3);
- xfer += this->new_tbl.write(oprot);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_alter_table_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_table_pargs");
- xfer += oprot->writeFieldBegin("dbname", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->dbname)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->tbl_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("new_tbl", apache::thrift::protocol::T_STRUCT, 3);
- xfer += (*(this->new_tbl)).write(oprot);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_alter_table_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_alter_table_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_table_result");
-
- if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_alter_table_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_add_partition_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->new_part.read(iprot);
- this->__isset.new_part = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_add_partition_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partition_args");
- xfer += oprot->writeFieldBegin("new_part", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->new_part.write(oprot);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_add_partition_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partition_pargs");
- xfer += oprot->writeFieldBegin("new_part", apache::thrift::protocol::T_STRUCT, 1);
- xfer += (*(this->new_part)).write(oprot);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_add_partition_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->success.read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_add_partition_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partition_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", apache::thrift::protocol::T_STRUCT, 0);
- xfer += this->success.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o3) {
- xfer += oprot->writeFieldBegin("o3", apache::thrift::protocol::T_STRUCT, 3);
- xfer += this->o3.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_add_partition_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += (*(this->success)).read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_append_partition_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->tbl_name);
- this->__isset.tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- this->part_vals.clear();
- uint32_t _size171;
- apache::thrift::protocol::TType _etype174;
- iprot->readListBegin(_etype174, _size171);
- this->part_vals.resize(_size171);
- uint32_t _i175;
- for (_i175 = 0; _i175 < _size171; ++_i175)
- {
- xfer += iprot->readString(this->part_vals[_i175]);
- }
- iprot->readListEnd();
- }
- this->__isset.part_vals = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_append_partition_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_args");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->tbl_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_vals", apache::thrift::protocol::T_LIST, 3);
- {
- xfer += oprot->writeListBegin(apache::thrift::protocol::T_STRING, this->part_vals.size());
- std::vector ::const_iterator _iter176;
- for (_iter176 = this->part_vals.begin(); _iter176 != this->part_vals.end(); ++_iter176)
- {
- xfer += oprot->writeString((*_iter176));
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_append_partition_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_pargs");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->tbl_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_vals", apache::thrift::protocol::T_LIST, 3);
- {
- xfer += oprot->writeListBegin(apache::thrift::protocol::T_STRING, (*(this->part_vals)).size());
- std::vector ::const_iterator _iter177;
- for (_iter177 = (*(this->part_vals)).begin(); _iter177 != (*(this->part_vals)).end(); ++_iter177)
- {
- xfer += oprot->writeString((*_iter177));
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_append_partition_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->success.read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_append_partition_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", apache::thrift::protocol::T_STRUCT, 0);
- xfer += this->success.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o3) {
- xfer += oprot->writeFieldBegin("o3", apache::thrift::protocol::T_STRUCT, 3);
- xfer += this->o3.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_append_partition_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += (*(this->success)).read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_append_partition_by_name_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->tbl_name);
- this->__isset.tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->part_name);
- this->__isset.part_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_append_partition_by_name_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_by_name_args");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->tbl_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_name", apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString(this->part_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_append_partition_by_name_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_by_name_pargs");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->tbl_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_name", apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString((*(this->part_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_append_partition_by_name_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->success.read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_append_partition_by_name_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_by_name_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", apache::thrift::protocol::T_STRUCT, 0);
- xfer += this->success.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o3) {
- xfer += oprot->writeFieldBegin("o3", apache::thrift::protocol::T_STRUCT, 3);
- xfer += this->o3.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_append_partition_by_name_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += (*(this->success)).read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_partition_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->tbl_name);
- this->__isset.tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- this->part_vals.clear();
- uint32_t _size178;
- apache::thrift::protocol::TType _etype181;
- iprot->readListBegin(_etype181, _size178);
- this->part_vals.resize(_size178);
- uint32_t _i182;
- for (_i182 = 0; _i182 < _size178; ++_i182)
- {
- xfer += iprot->readString(this->part_vals[_i182]);
- }
- iprot->readListEnd();
- }
- this->__isset.part_vals = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 4:
- if (ftype == apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool(this->deleteData);
- this->__isset.deleteData = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_partition_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_args");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->tbl_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_vals", apache::thrift::protocol::T_LIST, 3);
- {
- xfer += oprot->writeListBegin(apache::thrift::protocol::T_STRING, this->part_vals.size());
- std::vector ::const_iterator _iter183;
- for (_iter183 = this->part_vals.begin(); _iter183 != this->part_vals.end(); ++_iter183)
- {
- xfer += oprot->writeString((*_iter183));
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("deleteData", apache::thrift::protocol::T_BOOL, 4);
- xfer += oprot->writeBool(this->deleteData);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_partition_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_pargs");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->tbl_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_vals", apache::thrift::protocol::T_LIST, 3);
- {
- xfer += oprot->writeListBegin(apache::thrift::protocol::T_STRING, (*(this->part_vals)).size());
- std::vector ::const_iterator _iter184;
- for (_iter184 = (*(this->part_vals)).begin(); _iter184 != (*(this->part_vals)).end(); ++_iter184)
- {
- xfer += oprot->writeString((*_iter184));
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("deleteData", apache::thrift::protocol::T_BOOL, 4);
- xfer += oprot->writeBool((*(this->deleteData)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_partition_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool(this->success);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_partition_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", apache::thrift::protocol::T_BOOL, 0);
- xfer += oprot->writeBool(this->success);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_partition_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool((*(this->success)));
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_partition_by_name_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->tbl_name);
- this->__isset.tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->part_name);
- this->__isset.part_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 4:
- if (ftype == apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool(this->deleteData);
- this->__isset.deleteData = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_partition_by_name_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_by_name_args");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->tbl_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_name", apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString(this->part_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("deleteData", apache::thrift::protocol::T_BOOL, 4);
- xfer += oprot->writeBool(this->deleteData);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_partition_by_name_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_by_name_pargs");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->tbl_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_name", apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString((*(this->part_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("deleteData", apache::thrift::protocol::T_BOOL, 4);
- xfer += oprot->writeBool((*(this->deleteData)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_partition_by_name_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool(this->success);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_partition_by_name_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_by_name_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", apache::thrift::protocol::T_BOOL, 0);
- xfer += oprot->writeBool(this->success);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_partition_by_name_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool((*(this->success)));
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->tbl_name);
- this->__isset.tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- this->part_vals.clear();
- uint32_t _size185;
- apache::thrift::protocol::TType _etype188;
- iprot->readListBegin(_etype188, _size185);
- this->part_vals.resize(_size185);
- uint32_t _i189;
- for (_i189 = 0; _i189 < _size185; ++_i189)
- {
- xfer += iprot->readString(this->part_vals[_i189]);
- }
- iprot->readListEnd();
- }
- this->__isset.part_vals = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_args");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->tbl_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_vals", apache::thrift::protocol::T_LIST, 3);
- {
- xfer += oprot->writeListBegin(apache::thrift::protocol::T_STRING, this->part_vals.size());
- std::vector ::const_iterator _iter190;
- for (_iter190 = this->part_vals.begin(); _iter190 != this->part_vals.end(); ++_iter190)
- {
- xfer += oprot->writeString((*_iter190));
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_pargs");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->tbl_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_vals", apache::thrift::protocol::T_LIST, 3);
- {
- xfer += oprot->writeListBegin(apache::thrift::protocol::T_STRING, (*(this->part_vals)).size());
- std::vector ::const_iterator _iter191;
- for (_iter191 = (*(this->part_vals)).begin(); _iter191 != (*(this->part_vals)).end(); ++_iter191)
- {
- xfer += oprot->writeString((*_iter191));
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->success.read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", apache::thrift::protocol::T_STRUCT, 0);
- xfer += this->success.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += (*(this->success)).read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_by_name_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->tbl_name);
- this->__isset.tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->part_name);
- this->__isset.part_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_by_name_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_by_name_args");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->tbl_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_name", apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString(this->part_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_by_name_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_by_name_pargs");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->tbl_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_name", apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString((*(this->part_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_by_name_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->success.read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_by_name_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_by_name_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", apache::thrift::protocol::T_STRUCT, 0);
- xfer += this->success.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_by_name_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += (*(this->success)).read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partitions_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->tbl_name);
- this->__isset.tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_I16) {
- xfer += iprot->readI16(this->max_parts);
- this->__isset.max_parts = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partitions_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_args");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->tbl_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_parts", apache::thrift::protocol::T_I16, 3);
- xfer += oprot->writeI16(this->max_parts);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partitions_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_pargs");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->tbl_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_parts", apache::thrift::protocol::T_I16, 3);
- xfer += oprot->writeI16((*(this->max_parts)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partitions_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- this->success.clear();
- uint32_t _size192;
- apache::thrift::protocol::TType _etype195;
- iprot->readListBegin(_etype195, _size192);
- this->success.resize(_size192);
- uint32_t _i196;
- for (_i196 = 0; _i196 < _size192; ++_i196)
- {
- xfer += this->success[_i196].read(iprot);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partitions_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_result");
-
- 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());
- std::vector ::const_iterator _iter197;
- for (_iter197 = this->success.begin(); _iter197 != this->success.end(); ++_iter197)
- {
- xfer += (*_iter197).write(oprot);
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partitions_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- (*(this->success)).clear();
- uint32_t _size198;
- apache::thrift::protocol::TType _etype201;
- iprot->readListBegin(_etype201, _size198);
- (*(this->success)).resize(_size198);
- uint32_t _i202;
- for (_i202 = 0; _i202 < _size198; ++_i202)
- {
- xfer += (*(this->success))[_i202].read(iprot);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_names_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->tbl_name);
- this->__isset.tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_I16) {
- xfer += iprot->readI16(this->max_parts);
- this->__isset.max_parts = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_names_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_args");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->tbl_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_parts", apache::thrift::protocol::T_I16, 3);
- xfer += oprot->writeI16(this->max_parts);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_names_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_pargs");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->tbl_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_parts", apache::thrift::protocol::T_I16, 3);
- xfer += oprot->writeI16((*(this->max_parts)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_names_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- this->success.clear();
- uint32_t _size203;
- apache::thrift::protocol::TType _etype206;
- iprot->readListBegin(_etype206, _size203);
- this->success.resize(_size203);
- uint32_t _i207;
- for (_i207 = 0; _i207 < _size203; ++_i207)
- {
- xfer += iprot->readString(this->success[_i207]);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_names_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_result");
-
- 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());
- std::vector ::const_iterator _iter208;
- for (_iter208 = this->success.begin(); _iter208 != this->success.end(); ++_iter208)
- {
- xfer += oprot->writeString((*_iter208));
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_names_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- (*(this->success)).clear();
- uint32_t _size209;
- apache::thrift::protocol::TType _etype212;
- iprot->readListBegin(_etype212, _size209);
- (*(this->success)).resize(_size209);
- uint32_t _i213;
- for (_i213 = 0; _i213 < _size209; ++_i213)
- {
- xfer += iprot->readString((*(this->success))[_i213]);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partitions_ps_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->tbl_name);
- this->__isset.tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- this->part_vals.clear();
- uint32_t _size214;
- apache::thrift::protocol::TType _etype217;
- iprot->readListBegin(_etype217, _size214);
- this->part_vals.resize(_size214);
- uint32_t _i218;
- for (_i218 = 0; _i218 < _size214; ++_i218)
- {
- xfer += iprot->readString(this->part_vals[_i218]);
- }
- iprot->readListEnd();
- }
- this->__isset.part_vals = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 4:
- if (ftype == apache::thrift::protocol::T_I16) {
- xfer += iprot->readI16(this->max_parts);
- this->__isset.max_parts = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partitions_ps_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_ps_args");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->tbl_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_vals", apache::thrift::protocol::T_LIST, 3);
- {
- xfer += oprot->writeListBegin(apache::thrift::protocol::T_STRING, this->part_vals.size());
- std::vector ::const_iterator _iter219;
- for (_iter219 = this->part_vals.begin(); _iter219 != this->part_vals.end(); ++_iter219)
- {
- xfer += oprot->writeString((*_iter219));
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_parts", apache::thrift::protocol::T_I16, 4);
- xfer += oprot->writeI16(this->max_parts);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partitions_ps_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_ps_pargs");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->tbl_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_vals", apache::thrift::protocol::T_LIST, 3);
- {
- xfer += oprot->writeListBegin(apache::thrift::protocol::T_STRING, (*(this->part_vals)).size());
- std::vector ::const_iterator _iter220;
- for (_iter220 = (*(this->part_vals)).begin(); _iter220 != (*(this->part_vals)).end(); ++_iter220)
- {
- xfer += oprot->writeString((*_iter220));
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_parts", apache::thrift::protocol::T_I16, 4);
- xfer += oprot->writeI16((*(this->max_parts)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- this->success.clear();
- uint32_t _size221;
- apache::thrift::protocol::TType _etype224;
- iprot->readListBegin(_etype224, _size221);
- this->success.resize(_size221);
- uint32_t _i225;
- for (_i225 = 0; _i225 < _size221; ++_i225)
- {
- xfer += this->success[_i225].read(iprot);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partitions_ps_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_ps_result");
-
- 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());
- std::vector ::const_iterator _iter226;
- for (_iter226 = this->success.begin(); _iter226 != this->success.end(); ++_iter226)
- {
- xfer += (*_iter226).write(oprot);
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- (*(this->success)).clear();
- uint32_t _size227;
- apache::thrift::protocol::TType _etype230;
- iprot->readListBegin(_etype230, _size227);
- (*(this->success)).resize(_size227);
- uint32_t _i231;
- for (_i231 = 0; _i231 < _size227; ++_i231)
- {
- xfer += (*(this->success))[_i231].read(iprot);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_names_ps_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->tbl_name);
- this->__isset.tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- this->part_vals.clear();
- uint32_t _size232;
- apache::thrift::protocol::TType _etype235;
- iprot->readListBegin(_etype235, _size232);
- this->part_vals.resize(_size232);
- uint32_t _i236;
- for (_i236 = 0; _i236 < _size232; ++_i236)
- {
- xfer += iprot->readString(this->part_vals[_i236]);
- }
- iprot->readListEnd();
- }
- this->__isset.part_vals = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 4:
- if (ftype == apache::thrift::protocol::T_I16) {
- xfer += iprot->readI16(this->max_parts);
- this->__isset.max_parts = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_names_ps_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_ps_args");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->tbl_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_vals", apache::thrift::protocol::T_LIST, 3);
- {
- xfer += oprot->writeListBegin(apache::thrift::protocol::T_STRING, this->part_vals.size());
- std::vector ::const_iterator _iter237;
- for (_iter237 = this->part_vals.begin(); _iter237 != this->part_vals.end(); ++_iter237)
- {
- xfer += oprot->writeString((*_iter237));
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_parts", apache::thrift::protocol::T_I16, 4);
- xfer += oprot->writeI16(this->max_parts);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_names_ps_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_ps_pargs");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->tbl_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_vals", apache::thrift::protocol::T_LIST, 3);
- {
- xfer += oprot->writeListBegin(apache::thrift::protocol::T_STRING, (*(this->part_vals)).size());
- std::vector ::const_iterator _iter238;
- for (_iter238 = (*(this->part_vals)).begin(); _iter238 != (*(this->part_vals)).end(); ++_iter238)
- {
- xfer += oprot->writeString((*_iter238));
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_parts", apache::thrift::protocol::T_I16, 4);
- xfer += oprot->writeI16((*(this->max_parts)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- this->success.clear();
- uint32_t _size239;
- apache::thrift::protocol::TType _etype242;
- iprot->readListBegin(_etype242, _size239);
- this->success.resize(_size239);
- uint32_t _i243;
- for (_i243 = 0; _i243 < _size239; ++_i243)
- {
- xfer += iprot->readString(this->success[_i243]);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_names_ps_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_ps_result");
-
- 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());
- std::vector ::const_iterator _iter244;
- for (_iter244 = this->success.begin(); _iter244 != this->success.end(); ++_iter244)
- {
- xfer += oprot->writeString((*_iter244));
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- (*(this->success)).clear();
- uint32_t _size245;
- apache::thrift::protocol::TType _etype248;
- iprot->readListBegin(_etype248, _size245);
- (*(this->success)).resize(_size245);
- uint32_t _i249;
- for (_i249 = 0; _i249 < _size245; ++_i249)
- {
- xfer += iprot->readString((*(this->success))[_i249]);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partitions_by_filter_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->tbl_name);
- this->__isset.tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->filter);
- this->__isset.filter = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 4:
- if (ftype == apache::thrift::protocol::T_I16) {
- xfer += iprot->readI16(this->max_parts);
- this->__isset.max_parts = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partitions_by_filter_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_by_filter_args");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->tbl_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("filter", apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString(this->filter);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_parts", apache::thrift::protocol::T_I16, 4);
- xfer += oprot->writeI16(this->max_parts);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partitions_by_filter_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_by_filter_pargs");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->tbl_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("filter", apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString((*(this->filter)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_parts", apache::thrift::protocol::T_I16, 4);
- xfer += oprot->writeI16((*(this->max_parts)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- this->success.clear();
- uint32_t _size250;
- apache::thrift::protocol::TType _etype253;
- iprot->readListBegin(_etype253, _size250);
- this->success.resize(_size250);
- uint32_t _i254;
- for (_i254 = 0; _i254 < _size250; ++_i254)
- {
- xfer += this->success[_i254].read(iprot);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_by_filter_result");
-
- 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());
- std::vector ::const_iterator _iter255;
- for (_iter255 = this->success.begin(); _iter255 != this->success.end(); ++_iter255)
- {
- xfer += (*_iter255).write(oprot);
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- (*(this->success)).clear();
- uint32_t _size256;
- apache::thrift::protocol::TType _etype259;
- iprot->readListBegin(_etype259, _size256);
- (*(this->success)).resize(_size256);
- uint32_t _i260;
- for (_i260 = 0; _i260 < _size256; ++_i260)
- {
- xfer += (*(this->success))[_i260].read(iprot);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_alter_partition_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->tbl_name);
- this->__isset.tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->new_part.read(iprot);
- this->__isset.new_part = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_alter_partition_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_partition_args");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->tbl_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("new_part", apache::thrift::protocol::T_STRUCT, 3);
- xfer += this->new_part.write(oprot);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_alter_partition_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_partition_pargs");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->tbl_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("new_part", apache::thrift::protocol::T_STRUCT, 3);
- xfer += (*(this->new_part)).write(oprot);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_alter_partition_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_alter_partition_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_partition_result");
-
- if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_alter_partition_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_config_value_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->name);
- this->__isset.name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->defaultValue);
- this->__isset.defaultValue = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_config_value_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_config_value_args");
- xfer += oprot->writeFieldBegin("name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("defaultValue", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->defaultValue);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_config_value_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_config_value_pargs");
- xfer += oprot->writeFieldBegin("name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("defaultValue", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->defaultValue)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_config_value_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->success);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_config_value_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_config_value_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", apache::thrift::protocol::T_STRING, 0);
- xfer += oprot->writeString(this->success);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_config_value_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString((*(this->success)));
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_partition_name_to_vals_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->part_name);
- this->__isset.part_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_partition_name_to_vals_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_vals_args");
- xfer += oprot->writeFieldBegin("part_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->part_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_partition_name_to_vals_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_vals_pargs");
- xfer += oprot->writeFieldBegin("part_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->part_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- this->success.clear();
- uint32_t _size261;
- apache::thrift::protocol::TType _etype264;
- iprot->readListBegin(_etype264, _size261);
- this->success.resize(_size261);
- uint32_t _i265;
- for (_i265 = 0; _i265 < _size261; ++_i265)
- {
- xfer += iprot->readString(this->success[_i265]);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_partition_name_to_vals_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_vals_result");
-
- 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());
- std::vector ::const_iterator _iter266;
- for (_iter266 = this->success.begin(); _iter266 != this->success.end(); ++_iter266)
- {
- xfer += oprot->writeString((*_iter266));
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- (*(this->success)).clear();
- uint32_t _size267;
- apache::thrift::protocol::TType _etype270;
- iprot->readListBegin(_etype270, _size267);
- (*(this->success)).resize(_size267);
- uint32_t _i271;
- for (_i271 = 0; _i271 < _size267; ++_i271)
- {
- xfer += iprot->readString((*(this->success))[_i271]);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_partition_name_to_spec_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->part_name);
- this->__isset.part_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_partition_name_to_spec_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_spec_args");
- xfer += oprot->writeFieldBegin("part_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->part_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_partition_name_to_spec_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_spec_pargs");
- xfer += oprot->writeFieldBegin("part_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->part_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_MAP) {
- {
- this->success.clear();
- uint32_t _size272;
- apache::thrift::protocol::TType _ktype273;
- apache::thrift::protocol::TType _vtype274;
- iprot->readMapBegin(_ktype273, _vtype274, _size272);
- uint32_t _i276;
- for (_i276 = 0; _i276 < _size272; ++_i276)
- {
- std::string _key277;
- xfer += iprot->readString(_key277);
- std::string& _val278 = this->success[_key277];
- xfer += iprot->readString(_val278);
- }
- iprot->readMapEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_partition_name_to_spec_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_spec_result");
-
- 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());
- std::map ::const_iterator _iter279;
- for (_iter279 = this->success.begin(); _iter279 != this->success.end(); ++_iter279)
- {
- xfer += oprot->writeString(_iter279->first);
- xfer += oprot->writeString(_iter279->second);
- }
- xfer += oprot->writeMapEnd();
- }
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_MAP) {
- {
- (*(this->success)).clear();
- uint32_t _size280;
- apache::thrift::protocol::TType _ktype281;
- apache::thrift::protocol::TType _vtype282;
- iprot->readMapBegin(_ktype281, _vtype282, _size280);
- uint32_t _i284;
- for (_i284 = 0; _i284 < _size280; ++_i284)
- {
- std::string _key285;
- xfer += iprot->readString(_key285);
- std::string& _val286 = (*(this->success))[_key285];
- xfer += iprot->readString(_val286);
- }
- iprot->readMapEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_add_index_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->new_index.read(iprot);
- this->__isset.new_index = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->index_table.read(iprot);
- this->__isset.index_table = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_add_index_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_index_args");
- xfer += oprot->writeFieldBegin("new_index", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->new_index.write(oprot);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("index_table", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->index_table.write(oprot);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_add_index_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_index_pargs");
- xfer += oprot->writeFieldBegin("new_index", apache::thrift::protocol::T_STRUCT, 1);
- xfer += (*(this->new_index)).write(oprot);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("index_table", apache::thrift::protocol::T_STRUCT, 2);
- xfer += (*(this->index_table)).write(oprot);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_add_index_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->success.read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_add_index_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_index_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", apache::thrift::protocol::T_STRUCT, 0);
- xfer += this->success.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o3) {
- xfer += oprot->writeFieldBegin("o3", apache::thrift::protocol::T_STRUCT, 3);
- xfer += this->o3.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_add_index_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += (*(this->success)).read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_alter_index_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->dbname);
- this->__isset.dbname = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->base_tbl_name);
- this->__isset.base_tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->idx_name);
- this->__isset.idx_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 4:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->new_idx.read(iprot);
- this->__isset.new_idx = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_alter_index_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_index_args");
- xfer += oprot->writeFieldBegin("dbname", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->dbname);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("base_tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->base_tbl_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("idx_name", apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString(this->idx_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("new_idx", apache::thrift::protocol::T_STRUCT, 4);
- xfer += this->new_idx.write(oprot);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_alter_index_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_index_pargs");
- xfer += oprot->writeFieldBegin("dbname", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->dbname)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("base_tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->base_tbl_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("idx_name", apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString((*(this->idx_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("new_idx", apache::thrift::protocol::T_STRUCT, 4);
- xfer += (*(this->new_idx)).write(oprot);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_alter_index_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_alter_index_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_index_result");
-
- if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_alter_index_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_index_by_name_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->tbl_name);
- this->__isset.tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->index_name);
- this->__isset.index_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 4:
- if (ftype == apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool(this->deleteData);
- this->__isset.deleteData = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_index_by_name_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_index_by_name_args");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->tbl_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("index_name", apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString(this->index_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("deleteData", apache::thrift::protocol::T_BOOL, 4);
- xfer += oprot->writeBool(this->deleteData);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_index_by_name_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_index_by_name_pargs");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->tbl_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("index_name", apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString((*(this->index_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("deleteData", apache::thrift::protocol::T_BOOL, 4);
- xfer += oprot->writeBool((*(this->deleteData)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_index_by_name_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool(this->success);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_index_by_name_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_index_by_name_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", apache::thrift::protocol::T_BOOL, 0);
- xfer += oprot->writeBool(this->success);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_drop_index_by_name_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool((*(this->success)));
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_index_by_name_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->tbl_name);
- this->__isset.tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->index_name);
- this->__isset.index_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_index_by_name_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_by_name_args");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->tbl_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("index_name", apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString(this->index_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_index_by_name_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_by_name_pargs");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->tbl_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("index_name", apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString((*(this->index_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_index_by_name_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->success.read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_index_by_name_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_by_name_result");
-
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", apache::thrift::protocol::T_STRUCT, 0);
- xfer += this->success.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_index_by_name_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += (*(this->success)).read(iprot);
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_indexes_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->tbl_name);
- this->__isset.tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_I16) {
- xfer += iprot->readI16(this->max_indexes);
- this->__isset.max_indexes = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_indexes_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_indexes_args");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->tbl_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_indexes", apache::thrift::protocol::T_I16, 3);
- xfer += oprot->writeI16(this->max_indexes);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_indexes_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_indexes_pargs");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->tbl_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_indexes", apache::thrift::protocol::T_I16, 3);
- xfer += oprot->writeI16((*(this->max_indexes)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_indexes_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- this->success.clear();
- uint32_t _size287;
- apache::thrift::protocol::TType _etype290;
- iprot->readListBegin(_etype290, _size287);
- this->success.resize(_size287);
- uint32_t _i291;
- for (_i291 = 0; _i291 < _size287; ++_i291)
- {
- xfer += this->success[_i291].read(iprot);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_indexes_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_indexes_result");
-
- 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());
- std::vector ::const_iterator _iter292;
- for (_iter292 = this->success.begin(); _iter292 != this->success.end(); ++_iter292)
- {
- xfer += (*_iter292).write(oprot);
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_indexes_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- (*(this->success)).clear();
- uint32_t _size293;
- apache::thrift::protocol::TType _etype296;
- iprot->readListBegin(_etype296, _size293);
- (*(this->success)).resize(_size293);
- uint32_t _i297;
- for (_i297 = 0; _i297 < _size293; ++_i297)
- {
- xfer += (*(this->success))[_i297].read(iprot);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_index_names_args::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->tbl_name);
- this->__isset.tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == apache::thrift::protocol::T_I16) {
- xfer += iprot->readI16(this->max_indexes);
- this->__isset.max_indexes = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_index_names_args::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_names_args");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->tbl_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_indexes", apache::thrift::protocol::T_I16, 3);
- xfer += oprot->writeI16(this->max_indexes);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_index_names_pargs::write(apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_names_pargs");
- xfer += oprot->writeFieldBegin("db_name", apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->tbl_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_indexes", apache::thrift::protocol::T_I16, 3);
- xfer += oprot->writeI16((*(this->max_indexes)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_index_names_result::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- this->success.clear();
- uint32_t _size298;
- apache::thrift::protocol::TType _etype301;
- iprot->readListBegin(_etype301, _size298);
- this->success.resize(_size298);
- uint32_t _i302;
- for (_i302 = 0; _i302 < _size298; ++_i302)
- {
- xfer += iprot->readString(this->success[_i302]);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_index_names_result::write(apache::thrift::protocol::TProtocol* oprot) const {
-
- uint32_t xfer = 0;
-
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_names_result");
-
- 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());
- std::vector ::const_iterator _iter303;
- for (_iter303 = this->success.begin(); _iter303 != this->success.end(); ++_iter303)
- {
- xfer += oprot->writeString((*_iter303));
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-uint32_t ThriftHiveMetastore_get_index_names_presult::read(apache::thrift::protocol::TProtocol* iprot) {
-
- uint32_t xfer = 0;
- std::string fname;
- apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 0:
- if (ftype == apache::thrift::protocol::T_LIST) {
- {
- (*(this->success)).clear();
- uint32_t _size304;
- apache::thrift::protocol::TType _etype307;
- iprot->readListBegin(_etype307, _size304);
- (*(this->success)).resize(_size304);
- uint32_t _i308;
- for (_i308 = 0; _i308 < _size304; ++_i308)
- {
- xfer += iprot->readString((*(this->success))[_i308]);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 1:
- if (ftype == apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-void ThriftHiveMetastoreClient::create_database(const Database& database)
-{
- send_create_database(database);
- recv_create_database();
-}
-
-void ThriftHiveMetastoreClient::send_create_database(const Database& database)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("create_database", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_create_database_pargs args;
- args.database = &database;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_create_database()
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- if (result.__isset.o3) {
- throw result.o3;
- }
- return;
-}
-
-void ThriftHiveMetastoreClient::get_database(Database& _return, const std::string& name)
-{
- send_get_database(name);
- recv_get_database(_return);
-}
-
-void ThriftHiveMetastoreClient::send_get_database(const std::string& name)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_database", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_database_pargs args;
- args.name = &name;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_get_database(Database& _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "get_database failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::drop_database(const std::string& name, const bool deleteData)
-{
- send_drop_database(name, deleteData);
- recv_drop_database();
-}
-
-void ThriftHiveMetastoreClient::send_drop_database(const std::string& name, const bool deleteData)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("drop_database", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_drop_database_pargs args;
- args.name = &name;
- args.deleteData = &deleteData;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_drop_database()
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- if (result.__isset.o3) {
- throw result.o3;
- }
- return;
-}
-
-void ThriftHiveMetastoreClient::get_databases(std::vector & _return, const std::string& pattern)
-{
- send_get_databases(pattern);
- recv_get_databases(_return);
-}
-
-void ThriftHiveMetastoreClient::send_get_databases(const std::string& pattern)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_databases", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_databases_pargs args;
- args.pattern = &pattern;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_get_databases(std::vector & _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "get_databases failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::get_all_databases(std::vector & _return)
-{
- send_get_all_databases();
- recv_get_all_databases(_return);
-}
-
-void ThriftHiveMetastoreClient::send_get_all_databases()
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_all_databases", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_all_databases_pargs args;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_get_all_databases(std::vector & _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "get_all_databases failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::get_type(Type& _return, const std::string& name)
-{
- send_get_type(name);
- recv_get_type(_return);
-}
-
-void ThriftHiveMetastoreClient::send_get_type(const std::string& name)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_type", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_type_pargs args;
- args.name = &name;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_get_type(Type& _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "get_type failed: unknown result");
-}
-
-bool ThriftHiveMetastoreClient::create_type(const Type& type)
-{
- send_create_type(type);
- return recv_create_type();
-}
-
-void ThriftHiveMetastoreClient::send_create_type(const Type& type)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("create_type", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_create_type_pargs args;
- args.type = &type;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-bool ThriftHiveMetastoreClient::recv_create_type()
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.success = &_return;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- return _return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- if (result.__isset.o3) {
- throw result.o3;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "create_type failed: unknown result");
-}
-
-bool ThriftHiveMetastoreClient::drop_type(const std::string& type)
-{
- send_drop_type(type);
- return recv_drop_type();
-}
-
-void ThriftHiveMetastoreClient::send_drop_type(const std::string& type)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("drop_type", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_drop_type_pargs args;
- args.type = &type;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-bool ThriftHiveMetastoreClient::recv_drop_type()
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.success = &_return;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- return _return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "drop_type failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::get_type_all(std::map & _return, const std::string& name)
-{
- send_get_type_all(name);
- recv_get_type_all(_return);
-}
-
-void ThriftHiveMetastoreClient::send_get_type_all(const std::string& name)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_type_all", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_type_all_pargs args;
- args.name = &name;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_get_type_all(std::map & _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "get_type_all failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::get_fields(std::vector & _return, const std::string& db_name, const std::string& table_name)
-{
- send_get_fields(db_name, table_name);
- recv_get_fields(_return);
-}
-
-void ThriftHiveMetastoreClient::send_get_fields(const std::string& db_name, const std::string& table_name)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_fields", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_fields_pargs args;
- args.db_name = &db_name;
- args.table_name = &table_name;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_get_fields(std::vector & _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- if (result.__isset.o3) {
- throw result.o3;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "get_fields failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::get_schema(std::vector & _return, const std::string& db_name, const std::string& table_name)
-{
- send_get_schema(db_name, table_name);
- recv_get_schema(_return);
-}
-
-void ThriftHiveMetastoreClient::send_get_schema(const std::string& db_name, const std::string& table_name)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_schema", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_schema_pargs args;
- args.db_name = &db_name;
- args.table_name = &table_name;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_get_schema(std::vector & _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- if (result.__isset.o3) {
- throw result.o3;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "get_schema failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::create_table(const Table& tbl)
-{
- send_create_table(tbl);
- recv_create_table();
-}
-
-void ThriftHiveMetastoreClient::send_create_table(const Table& tbl)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("create_table", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_create_table_pargs args;
- args.tbl = &tbl;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_create_table()
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- if (result.__isset.o3) {
- throw result.o3;
- }
- if (result.__isset.o4) {
- throw result.o4;
- }
- return;
-}
-
-void ThriftHiveMetastoreClient::drop_table(const std::string& dbname, const std::string& name, const bool deleteData)
-{
- send_drop_table(dbname, name, deleteData);
- recv_drop_table();
-}
-
-void ThriftHiveMetastoreClient::send_drop_table(const std::string& dbname, const std::string& name, const bool deleteData)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("drop_table", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_drop_table_pargs args;
- args.dbname = &dbname;
- args.name = &name;
- args.deleteData = &deleteData;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_drop_table()
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o3) {
- throw result.o3;
- }
- return;
-}
-
-void ThriftHiveMetastoreClient::get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern)
-{
- send_get_tables(db_name, pattern);
- recv_get_tables(_return);
-}
-
-void ThriftHiveMetastoreClient::send_get_tables(const std::string& db_name, const std::string& pattern)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_tables", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_tables_pargs args;
- args.db_name = &db_name;
- args.pattern = &pattern;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_get_tables(std::vector & _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "get_tables failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::get_all_tables(std::vector & _return, const std::string& db_name)
-{
- send_get_all_tables(db_name);
- recv_get_all_tables(_return);
-}
-
-void ThriftHiveMetastoreClient::send_get_all_tables(const std::string& db_name)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_all_tables", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_all_tables_pargs args;
- args.db_name = &db_name;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_get_all_tables(std::vector & _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "get_all_tables failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::get_table(Table& _return, const std::string& dbname, const std::string& tbl_name)
-{
- send_get_table(dbname, tbl_name);
- recv_get_table(_return);
-}
-
-void ThriftHiveMetastoreClient::send_get_table(const std::string& dbname, const std::string& tbl_name)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_table", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_table_pargs args;
- args.dbname = &dbname;
- args.tbl_name = &tbl_name;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_get_table(Table& _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "get_table failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::alter_table(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl)
-{
- send_alter_table(dbname, tbl_name, new_tbl);
- recv_alter_table();
-}
-
-void ThriftHiveMetastoreClient::send_alter_table(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("alter_table", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_alter_table_pargs args;
- args.dbname = &dbname;
- args.tbl_name = &tbl_name;
- args.new_tbl = &new_tbl;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_alter_table()
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- return;
-}
-
-void ThriftHiveMetastoreClient::add_partition(Partition& _return, const Partition& new_part)
-{
- send_add_partition(new_part);
- recv_add_partition(_return);
-}
-
-void ThriftHiveMetastoreClient::send_add_partition(const Partition& new_part)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("add_partition", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_add_partition_pargs args;
- args.new_part = &new_part;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_add_partition(Partition& _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- if (result.__isset.o3) {
- throw result.o3;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "add_partition failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::append_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals)
-{
- send_append_partition(db_name, tbl_name, part_vals);
- recv_append_partition(_return);
-}
-
-void ThriftHiveMetastoreClient::send_append_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("append_partition", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_append_partition_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.part_vals = &part_vals;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_append_partition(Partition& _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- if (result.__isset.o3) {
- throw result.o3;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "append_partition failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::append_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name)
-{
- send_append_partition_by_name(db_name, tbl_name, part_name);
- recv_append_partition_by_name(_return);
-}
-
-void ThriftHiveMetastoreClient::send_append_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("append_partition_by_name", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_append_partition_by_name_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.part_name = &part_name;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_append_partition_by_name(Partition& _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- if (result.__isset.o3) {
- throw result.o3;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "append_partition_by_name failed: unknown result");
-}
-
-bool ThriftHiveMetastoreClient::drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData)
-{
- send_drop_partition(db_name, tbl_name, part_vals, deleteData);
- return recv_drop_partition();
-}
-
-void ThriftHiveMetastoreClient::send_drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("drop_partition", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_drop_partition_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.part_vals = &part_vals;
- args.deleteData = &deleteData;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-bool ThriftHiveMetastoreClient::recv_drop_partition()
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.success = &_return;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- return _return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "drop_partition failed: unknown result");
-}
-
-bool ThriftHiveMetastoreClient::drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData)
-{
- send_drop_partition_by_name(db_name, tbl_name, part_name, deleteData);
- return recv_drop_partition_by_name();
-}
-
-void ThriftHiveMetastoreClient::send_drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("drop_partition_by_name", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_drop_partition_by_name_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.part_name = &part_name;
- args.deleteData = &deleteData;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-bool ThriftHiveMetastoreClient::recv_drop_partition_by_name()
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.success = &_return;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- return _return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "drop_partition_by_name failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::get_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals)
-{
- send_get_partition(db_name, tbl_name, part_vals);
- recv_get_partition(_return);
-}
-
-void ThriftHiveMetastoreClient::send_get_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_partition", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_partition_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.part_vals = &part_vals;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_get_partition(Partition& _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "get_partition failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::get_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name)
-{
- send_get_partition_by_name(db_name, tbl_name, part_name);
- recv_get_partition_by_name(_return);
-}
-
-void ThriftHiveMetastoreClient::send_get_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_partition_by_name", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_partition_by_name_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.part_name = &part_name;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_get_partition_by_name(Partition& _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "get_partition_by_name failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::get_partitions(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts)
-{
- send_get_partitions(db_name, tbl_name, max_parts);
- recv_get_partitions(_return);
-}
-
-void ThriftHiveMetastoreClient::send_get_partitions(const std::string& db_name, const std::string& tbl_name, const int16_t max_parts)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_partitions", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_partitions_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.max_parts = &max_parts;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_get_partitions(std::vector & _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::get_partition_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts)
-{
- send_get_partition_names(db_name, tbl_name, max_parts);
- recv_get_partition_names(_return);
-}
-
-void ThriftHiveMetastoreClient::send_get_partition_names(const std::string& db_name, const std::string& tbl_name, const int16_t max_parts)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_partition_names", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_partition_names_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.max_parts = &max_parts;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_get_partition_names(std::vector & _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "get_partition_names failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::get_partitions_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts)
-{
- send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts);
- recv_get_partitions_ps(_return);
-}
-
-void ThriftHiveMetastoreClient::send_get_partitions_ps(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_partitions_ps", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_partitions_ps_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.part_vals = &part_vals;
- args.max_parts = &max_parts;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_get_partitions_ps(std::vector & _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions_ps failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::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)
-{
- send_get_partition_names_ps(db_name, tbl_name, part_vals, max_parts);
- recv_get_partition_names_ps(_return);
-}
-
-void ThriftHiveMetastoreClient::send_get_partition_names_ps(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_partition_names_ps", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_partition_names_ps_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.part_vals = &part_vals;
- args.max_parts = &max_parts;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_get_partition_names_ps(std::vector & _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "get_partition_names_ps failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::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)
-{
- send_get_partitions_by_filter(db_name, tbl_name, filter, max_parts);
- recv_get_partitions_by_filter(_return);
-}
-
-void ThriftHiveMetastoreClient::send_get_partitions_by_filter(const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_partitions_by_filter", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_partitions_by_filter_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.filter = &filter;
- args.max_parts = &max_parts;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_get_partitions_by_filter(std::vector & _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions_by_filter failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::alter_partition(const std::string& db_name, const std::string& tbl_name, const Partition& new_part)
-{
- send_alter_partition(db_name, tbl_name, new_part);
- recv_alter_partition();
-}
-
-void ThriftHiveMetastoreClient::send_alter_partition(const std::string& db_name, const std::string& tbl_name, const Partition& new_part)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("alter_partition", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_alter_partition_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.new_part = &new_part;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_alter_partition()
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- return;
-}
-
-void ThriftHiveMetastoreClient::get_config_value(std::string& _return, const std::string& name, const std::string& defaultValue)
-{
- send_get_config_value(name, defaultValue);
- recv_get_config_value(_return);
-}
-
-void ThriftHiveMetastoreClient::send_get_config_value(const std::string& name, const std::string& defaultValue)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_config_value", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_config_value_pargs args;
- args.name = &name;
- args.defaultValue = &defaultValue;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_get_config_value(std::string& _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "get_config_value failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::partition_name_to_vals(std::vector & _return, const std::string& part_name)
-{
- send_partition_name_to_vals(part_name);
- recv_partition_name_to_vals(_return);
-}
-
-void ThriftHiveMetastoreClient::send_partition_name_to_vals(const std::string& part_name)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("partition_name_to_vals", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_partition_name_to_vals_pargs args;
- args.part_name = &part_name;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_partition_name_to_vals(std::vector & _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "partition_name_to_vals failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::partition_name_to_spec(std::map & _return, const std::string& part_name)
-{
- send_partition_name_to_spec(part_name);
- recv_partition_name_to_spec(_return);
-}
-
-void ThriftHiveMetastoreClient::send_partition_name_to_spec(const std::string& part_name)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("partition_name_to_spec", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_partition_name_to_spec_pargs args;
- args.part_name = &part_name;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_partition_name_to_spec(std::map & _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "partition_name_to_spec failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::add_index(Index& _return, const Index& new_index, const Table& index_table)
-{
- send_add_index(new_index, index_table);
- recv_add_index(_return);
-}
-
-void ThriftHiveMetastoreClient::send_add_index(const Index& new_index, const Table& index_table)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("add_index", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_add_index_pargs args;
- args.new_index = &new_index;
- args.index_table = &index_table;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_add_index(Index& _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- if (result.__isset.o3) {
- throw result.o3;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "add_index failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::alter_index(const std::string& dbname, const std::string& base_tbl_name, const std::string& idx_name, const Index& new_idx)
-{
- send_alter_index(dbname, base_tbl_name, idx_name, new_idx);
- recv_alter_index();
-}
-
-void ThriftHiveMetastoreClient::send_alter_index(const std::string& dbname, const std::string& base_tbl_name, const std::string& idx_name, const Index& new_idx)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("alter_index", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_alter_index_pargs args;
- args.dbname = &dbname;
- args.base_tbl_name = &base_tbl_name;
- args.idx_name = &idx_name;
- args.new_idx = &new_idx;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_alter_index()
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- return;
-}
-
-bool ThriftHiveMetastoreClient::drop_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name, const bool deleteData)
-{
- send_drop_index_by_name(db_name, tbl_name, index_name, deleteData);
- return recv_drop_index_by_name();
-}
-
-void ThriftHiveMetastoreClient::send_drop_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name, const bool deleteData)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("drop_index_by_name", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_drop_index_by_name_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.index_name = &index_name;
- args.deleteData = &deleteData;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-bool ThriftHiveMetastoreClient::recv_drop_index_by_name()
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.success = &_return;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- return _return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "drop_index_by_name failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::get_index_by_name(Index& _return, const std::string& db_name, const std::string& tbl_name, const std::string& index_name)
-{
- send_get_index_by_name(db_name, tbl_name, index_name);
- recv_get_index_by_name(_return);
-}
-
-void ThriftHiveMetastoreClient::send_get_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_index_by_name", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_index_by_name_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.index_name = &index_name;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_get_index_by_name(Index& _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "get_index_by_name failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::get_indexes(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes)
-{
- send_get_indexes(db_name, tbl_name, max_indexes);
- recv_get_indexes(_return);
-}
-
-void ThriftHiveMetastoreClient::send_get_indexes(const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_indexes", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_indexes_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.max_indexes = &max_indexes;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_get_indexes(std::vector & _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "get_indexes failed: unknown result");
-}
-
-void ThriftHiveMetastoreClient::get_index_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes)
-{
- send_get_index_names(db_name, tbl_name, max_indexes);
- recv_get_index_names(_return);
-}
-
-void ThriftHiveMetastoreClient::send_get_index_names(const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_index_names", apache::thrift::protocol::T_CALL, cseqid);
-
- ThriftHiveMetastore_get_index_names_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.max_indexes = &max_indexes;
- args.write(oprot_);
-
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreClient::recv_get_index_names(std::vector & _return)
-{
-
- int32_t rseqid = 0;
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == apache::thrift::protocol::T_EXCEPTION) {
- apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != apache::thrift::protocol::T_REPLY) {
- iprot_->skip(apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- 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;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
-
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw apache::thrift::TApplicationException(apache::thrift::TApplicationException::MISSING_RESULT, "get_index_names failed: unknown result");
-}
-
-bool ThriftHiveMetastoreProcessor::process(boost::shared_ptr piprot, boost::shared_ptr poprot) {
-
- apache::thrift::protocol::TProtocol* iprot = piprot.get();
- apache::thrift::protocol::TProtocol* oprot = poprot.get();
- std::string fname;
- apache::thrift::protocol::TMessageType mtype;
- int32_t seqid;
-
- iprot->readMessageBegin(fname, mtype, seqid);
-
- if (mtype != apache::thrift::protocol::T_CALL && mtype != apache::thrift::protocol::T_ONEWAY) {
- iprot->skip(apache::thrift::protocol::T_STRUCT);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
- apache::thrift::TApplicationException x(apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
- oprot->writeMessageBegin(fname, apache::thrift::protocol::T_EXCEPTION, seqid);
- x.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
- return true;
- }
-
- return process_fn(iprot, oprot, fname, seqid);
-}
-
-bool ThriftHiveMetastoreProcessor::process_fn(apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot, std::string& fname, int32_t seqid) {
- std::map::iterator pfn;
- pfn = processMap_.find(fname);
- if (pfn == processMap_.end()) {
- return facebook::fb303::FacebookServiceProcessor::process_fn(iprot, oprot, fname, seqid);
- }
- (this->*(pfn->second))(seqid, iprot, oprot);
- return true;
-}
-
-void ThriftHiveMetastoreProcessor::process_create_database(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_create_database_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_create_database_result result;
- try {
- iface_->create_database(args.database);
- } catch (AlreadyExistsException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (InvalidObjectException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (MetaException &o3) {
- result.o3 = o3;
- result.__isset.o3 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("create_database", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_get_database(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_get_database_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_get_database_result result;
- try {
- iface_->get_database(result.success, args.name);
- result.__isset.success = true;
- } catch (NoSuchObjectException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (MetaException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("get_database", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_drop_database(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_drop_database_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_drop_database_result result;
- try {
- iface_->drop_database(args.name, args.deleteData);
- } catch (NoSuchObjectException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (InvalidOperationException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (MetaException &o3) {
- result.o3 = o3;
- result.__isset.o3 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("drop_database", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_get_databases(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_get_databases_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_get_databases_result result;
- try {
- iface_->get_databases(result.success, args.pattern);
- result.__isset.success = true;
- } catch (MetaException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("get_databases", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_get_all_databases(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_get_all_databases_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_get_all_databases_result result;
- try {
- iface_->get_all_databases(result.success);
- result.__isset.success = true;
- } catch (MetaException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("get_all_databases", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_get_type(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_get_type_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_get_type_result result;
- try {
- iface_->get_type(result.success, args.name);
- result.__isset.success = true;
- } catch (MetaException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (NoSuchObjectException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("get_type", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_create_type(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_create_type_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_create_type_result result;
- try {
- result.success = iface_->create_type(args.type);
- result.__isset.success = true;
- } catch (AlreadyExistsException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (InvalidObjectException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (MetaException &o3) {
- result.o3 = o3;
- result.__isset.o3 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("create_type", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_drop_type(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_drop_type_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_drop_type_result result;
- try {
- result.success = iface_->drop_type(args.type);
- result.__isset.success = true;
- } catch (MetaException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (NoSuchObjectException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("drop_type", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_get_type_all(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_get_type_all_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_get_type_all_result result;
- try {
- iface_->get_type_all(result.success, args.name);
- result.__isset.success = true;
- } catch (MetaException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("get_type_all", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_get_fields(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_get_fields_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_get_fields_result result;
- try {
- iface_->get_fields(result.success, args.db_name, args.table_name);
- result.__isset.success = true;
- } catch (MetaException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (UnknownTableException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (UnknownDBException &o3) {
- result.o3 = o3;
- result.__isset.o3 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("get_fields", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_get_schema(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_get_schema_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_get_schema_result result;
- try {
- iface_->get_schema(result.success, args.db_name, args.table_name);
- result.__isset.success = true;
- } catch (MetaException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (UnknownTableException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (UnknownDBException &o3) {
- result.o3 = o3;
- result.__isset.o3 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("get_schema", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_create_table(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_create_table_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_create_table_result result;
- try {
- iface_->create_table(args.tbl);
- } catch (AlreadyExistsException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (InvalidObjectException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (MetaException &o3) {
- result.o3 = o3;
- result.__isset.o3 = true;
- } catch (NoSuchObjectException &o4) {
- result.o4 = o4;
- result.__isset.o4 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("create_table", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_drop_table(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_drop_table_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_drop_table_result result;
- try {
- iface_->drop_table(args.dbname, args.name, args.deleteData);
- } catch (NoSuchObjectException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (MetaException &o3) {
- result.o3 = o3;
- result.__isset.o3 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("drop_table", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_get_tables(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_get_tables_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_get_tables_result result;
- try {
- iface_->get_tables(result.success, args.db_name, args.pattern);
- result.__isset.success = true;
- } catch (MetaException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("get_tables", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_get_all_tables(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_get_all_tables_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_get_all_tables_result result;
- try {
- iface_->get_all_tables(result.success, args.db_name);
- result.__isset.success = true;
- } catch (MetaException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("get_all_tables", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_get_table(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_get_table_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_get_table_result result;
- try {
- iface_->get_table(result.success, args.dbname, args.tbl_name);
- result.__isset.success = true;
- } catch (MetaException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (NoSuchObjectException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("get_table", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_alter_table(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_alter_table_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_alter_table_result result;
- try {
- iface_->alter_table(args.dbname, args.tbl_name, args.new_tbl);
- } catch (InvalidOperationException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (MetaException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("alter_table", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_add_partition(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_add_partition_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_add_partition_result result;
- try {
- iface_->add_partition(result.success, args.new_part);
- result.__isset.success = true;
- } catch (InvalidObjectException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (AlreadyExistsException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (MetaException &o3) {
- result.o3 = o3;
- result.__isset.o3 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("add_partition", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_append_partition(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_append_partition_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_append_partition_result result;
- try {
- iface_->append_partition(result.success, args.db_name, args.tbl_name, args.part_vals);
- result.__isset.success = true;
- } catch (InvalidObjectException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (AlreadyExistsException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (MetaException &o3) {
- result.o3 = o3;
- result.__isset.o3 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("append_partition", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_append_partition_by_name(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_append_partition_by_name_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_append_partition_by_name_result result;
- try {
- iface_->append_partition_by_name(result.success, args.db_name, args.tbl_name, args.part_name);
- result.__isset.success = true;
- } catch (InvalidObjectException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (AlreadyExistsException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (MetaException &o3) {
- result.o3 = o3;
- result.__isset.o3 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("append_partition_by_name", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_drop_partition(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_drop_partition_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_drop_partition_result result;
- try {
- result.success = iface_->drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData);
- result.__isset.success = true;
- } catch (NoSuchObjectException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (MetaException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("drop_partition", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_drop_partition_by_name(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_drop_partition_by_name_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_drop_partition_by_name_result result;
- try {
- result.success = iface_->drop_partition_by_name(args.db_name, args.tbl_name, args.part_name, args.deleteData);
- result.__isset.success = true;
- } catch (NoSuchObjectException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (MetaException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("drop_partition_by_name", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_get_partition(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_get_partition_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_get_partition_result result;
- try {
- iface_->get_partition(result.success, args.db_name, args.tbl_name, args.part_vals);
- result.__isset.success = true;
- } catch (MetaException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (NoSuchObjectException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("get_partition", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_get_partition_by_name(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_get_partition_by_name_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_get_partition_by_name_result result;
- try {
- iface_->get_partition_by_name(result.success, args.db_name, args.tbl_name, args.part_name);
- result.__isset.success = true;
- } catch (MetaException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (NoSuchObjectException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("get_partition_by_name", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_get_partitions(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_get_partitions_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_get_partitions_result result;
- try {
- iface_->get_partitions(result.success, args.db_name, args.tbl_name, args.max_parts);
- result.__isset.success = true;
- } catch (NoSuchObjectException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (MetaException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("get_partitions", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_get_partition_names(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_get_partition_names_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_get_partition_names_result result;
- try {
- iface_->get_partition_names(result.success, args.db_name, args.tbl_name, args.max_parts);
- result.__isset.success = true;
- } catch (MetaException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("get_partition_names", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_get_partitions_ps(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_get_partitions_ps_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_get_partitions_ps_result result;
- try {
- iface_->get_partitions_ps(result.success, args.db_name, args.tbl_name, args.part_vals, args.max_parts);
- result.__isset.success = true;
- } catch (MetaException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("get_partitions_ps", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_get_partition_names_ps(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_get_partition_names_ps_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_get_partition_names_ps_result result;
- try {
- iface_->get_partition_names_ps(result.success, args.db_name, args.tbl_name, args.part_vals, args.max_parts);
- result.__isset.success = true;
- } catch (MetaException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("get_partition_names_ps", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_get_partitions_by_filter(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_get_partitions_by_filter_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_get_partitions_by_filter_result result;
- try {
- iface_->get_partitions_by_filter(result.success, args.db_name, args.tbl_name, args.filter, args.max_parts);
- result.__isset.success = true;
- } catch (MetaException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (NoSuchObjectException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("get_partitions_by_filter", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_alter_partition(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_alter_partition_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_alter_partition_result result;
- try {
- iface_->alter_partition(args.db_name, args.tbl_name, args.new_part);
- } catch (InvalidOperationException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (MetaException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("alter_partition", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_get_config_value(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_get_config_value_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_get_config_value_result result;
- try {
- iface_->get_config_value(result.success, args.name, args.defaultValue);
- result.__isset.success = true;
- } catch (ConfigValSecurityException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("get_config_value", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_partition_name_to_vals(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_partition_name_to_vals_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_partition_name_to_vals_result result;
- try {
- iface_->partition_name_to_vals(result.success, args.part_name);
- result.__isset.success = true;
- } catch (MetaException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("partition_name_to_vals", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_partition_name_to_spec(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_partition_name_to_spec_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_partition_name_to_spec_result result;
- try {
- iface_->partition_name_to_spec(result.success, args.part_name);
- result.__isset.success = true;
- } catch (MetaException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("partition_name_to_spec", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_add_index(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_add_index_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_add_index_result result;
- try {
- iface_->add_index(result.success, args.new_index, args.index_table);
- result.__isset.success = true;
- } catch (InvalidObjectException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (AlreadyExistsException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (MetaException &o3) {
- result.o3 = o3;
- result.__isset.o3 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("add_index", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_alter_index(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_alter_index_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_alter_index_result result;
- try {
- iface_->alter_index(args.dbname, args.base_tbl_name, args.idx_name, args.new_idx);
- } catch (InvalidOperationException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (MetaException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("alter_index", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_drop_index_by_name(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_drop_index_by_name_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_drop_index_by_name_result result;
- try {
- result.success = iface_->drop_index_by_name(args.db_name, args.tbl_name, args.index_name, args.deleteData);
- result.__isset.success = true;
- } catch (NoSuchObjectException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (MetaException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("drop_index_by_name", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_get_index_by_name(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_get_index_by_name_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_get_index_by_name_result result;
- try {
- iface_->get_index_by_name(result.success, args.db_name, args.tbl_name, args.index_name);
- result.__isset.success = true;
- } catch (MetaException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (NoSuchObjectException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("get_index_by_name", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_get_indexes(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_get_indexes_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_get_indexes_result result;
- try {
- iface_->get_indexes(result.success, args.db_name, args.tbl_name, args.max_indexes);
- result.__isset.success = true;
- } catch (NoSuchObjectException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (MetaException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("get_indexes", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-void ThriftHiveMetastoreProcessor::process_get_index_names(int32_t seqid, apache::thrift::protocol::TProtocol* iprot, apache::thrift::protocol::TProtocol* oprot)
-{
- ThriftHiveMetastore_get_index_names_args args;
- args.read(iprot);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
-
- ThriftHiveMetastore_get_index_names_result result;
- try {
- iface_->get_index_names(result.success, args.db_name, args.tbl_name, args.max_indexes);
- result.__isset.success = true;
- } catch (MetaException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (const std::exception& e) {
- 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();
- return;
- }
-
- oprot->writeMessageBegin("get_index_names", apache::thrift::protocol::T_REPLY, seqid);
- result.write(oprot);
- oprot->writeMessageEnd();
- oprot->getTransport()->flush();
- oprot->getTransport()->writeEnd();
-}
-
-}}} // namespace
-
diff --git metastore/src/gen-cpp/ThriftHiveMetastore.h metastore/src/gen-cpp/ThriftHiveMetastore.h
deleted file mode 100644
index d7f3bc3..0000000
--- metastore/src/gen-cpp/ThriftHiveMetastore.h
+++ /dev/null
@@ -1,5158 +0,0 @@
-/**
- * Autogenerated by Thrift
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- */
-#ifndef ThriftHiveMetastore_H
-#define ThriftHiveMetastore_H
-
-#include
-#include "hive_metastore_types.h"
-#include "FacebookService.h"
-
-namespace Apache { namespace Hadoop { namespace Hive {
-
-class ThriftHiveMetastoreIf : virtual public facebook::fb303::FacebookServiceIf {
- public:
- virtual ~ThriftHiveMetastoreIf() {}
- virtual void create_database(const Database& database) = 0;
- virtual void get_database(Database& _return, const std::string& name) = 0;
- virtual void drop_database(const std::string& name, const bool deleteData) = 0;
- virtual void get_databases(std::vector & _return, const std::string& pattern) = 0;
- virtual void get_all_databases(std::vector & _return) = 0;
- virtual void get_type(Type& _return, const std::string& name) = 0;
- virtual bool create_type(const Type& type) = 0;
- virtual bool drop_type(const std::string& type) = 0;
- virtual void get_type_all(std::map & _return, const std::string& name) = 0;
- virtual void get_fields(std::vector & _return, const std::string& db_name, const std::string& table_name) = 0;
- virtual void get_schema(std::vector & _return, const std::string& db_name, const std::string& table_name) = 0;
- virtual void create_table(const Table& tbl) = 0;
- virtual void drop_table(const std::string& dbname, const std::string& name, const bool deleteData) = 0;
- virtual void get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern) = 0;
- virtual void get_all_tables(std::vector & _return, const std::string& db_name) = 0;
- virtual void get_table(Table& _return, const std::string& dbname, const std::string& tbl_name) = 0;
- virtual void alter_table(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl) = 0;
- virtual void add_partition(Partition& _return, const Partition& new_part) = 0;
- virtual void append_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals) = 0;
- virtual void append_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name) = 0;
- virtual bool drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData) = 0;
- virtual bool drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData) = 0;
- virtual void get_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals) = 0;
- virtual void get_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name) = 0;
- virtual void get_partitions(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts) = 0;
- virtual void get_partition_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts) = 0;
- virtual void get_partitions_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts) = 0;
- virtual void get_partition_names_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts) = 0;
- virtual 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) = 0;
- virtual void alter_partition(const std::string& db_name, const std::string& tbl_name, const Partition& new_part) = 0;
- virtual void get_config_value(std::string& _return, const std::string& name, const std::string& defaultValue) = 0;
- virtual void partition_name_to_vals(std::vector & _return, const std::string& part_name) = 0;
- virtual void partition_name_to_spec(std::map & _return, const std::string& part_name) = 0;
- virtual void add_index(Index& _return, const Index& new_index, const Table& index_table) = 0;
- virtual void alter_index(const std::string& dbname, const std::string& base_tbl_name, const std::string& idx_name, const Index& new_idx) = 0;
- virtual bool drop_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name, const bool deleteData) = 0;
- virtual void get_index_by_name(Index& _return, const std::string& db_name, const std::string& tbl_name, const std::string& index_name) = 0;
- virtual void get_indexes(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes) = 0;
- virtual void get_index_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes) = 0;
-};
-
-class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual public facebook::fb303::FacebookServiceNull {
- public:
- virtual ~ThriftHiveMetastoreNull() {}
- void create_database(const Database& /* database */) {
- return;
- }
- void get_database(Database& /* _return */, const std::string& /* name */) {
- return;
- }
- void drop_database(const std::string& /* name */, const bool /* deleteData */) {
- return;
- }
- void get_databases(std::vector & /* _return */, const std::string& /* pattern */) {
- return;
- }
- void get_all_databases(std::vector & /* _return */) {
- return;
- }
- void get_type(Type& /* _return */, const std::string& /* name */) {
- return;
- }
- bool create_type(const Type& /* type */) {
- bool _return = false;
- return _return;
- }
- bool drop_type(const std::string& /* type */) {
- bool _return = false;
- return _return;
- }
- void get_type_all(std::map & /* _return */, const std::string& /* name */) {
- return;
- }
- void get_fields(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* table_name */) {
- return;
- }
- void get_schema(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* table_name */) {
- return;
- }
- void create_table(const Table& /* tbl */) {
- return;
- }
- void drop_table(const std::string& /* dbname */, const std::string& /* name */, const bool /* deleteData */) {
- return;
- }
- void get_tables(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* pattern */) {
- return;
- }
- void get_all_tables(std::vector & /* _return */, const std::string& /* db_name */) {
- return;
- }
- void get_table(Table& /* _return */, const std::string& /* dbname */, const std::string& /* tbl_name */) {
- return;
- }
- void alter_table(const std::string& /* dbname */, const std::string& /* tbl_name */, const Table& /* new_tbl */) {
- return;
- }
- void add_partition(Partition& /* _return */, const Partition& /* new_part */) {
- return;
- }
- void append_partition(Partition& /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::vector & /* part_vals */) {
- return;
- }
- void append_partition_by_name(Partition& /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::string& /* part_name */) {
- return;
- }
- bool drop_partition(const std::string& /* db_name */, const std::string& /* tbl_name */, const std::vector & /* part_vals */, const bool /* deleteData */) {
- bool _return = false;
- return _return;
- }
- bool drop_partition_by_name(const std::string& /* db_name */, const std::string& /* tbl_name */, const std::string& /* part_name */, const bool /* deleteData */) {
- bool _return = false;
- return _return;
- }
- void get_partition(Partition& /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::vector & /* part_vals */) {
- return;
- }
- void get_partition_by_name(Partition& /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::string& /* part_name */) {
- return;
- }
- void get_partitions(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const int16_t /* max_parts */) {
- return;
- }
- void get_partition_names(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const int16_t /* max_parts */) {
- return;
- }
- void get_partitions_ps(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::vector & /* part_vals */, const int16_t /* max_parts */) {
- return;
- }
- 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 */) {
- return;
- }
- 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 */) {
- return;
- }
- void alter_partition(const std::string& /* db_name */, const std::string& /* tbl_name */, const Partition& /* new_part */) {
- return;
- }
- void get_config_value(std::string& /* _return */, const std::string& /* name */, const std::string& /* defaultValue */) {
- return;
- }
- void partition_name_to_vals(std::vector & /* _return */, const std::string& /* part_name */) {
- return;
- }
- void partition_name_to_spec(std::map & /* _return */, const std::string& /* part_name */) {
- return;
- }
- void add_index(Index& /* _return */, const Index& /* new_index */, const Table& /* index_table */) {
- return;
- }
- void alter_index(const std::string& /* dbname */, const std::string& /* base_tbl_name */, const std::string& /* idx_name */, const Index& /* new_idx */) {
- return;
- }
- bool drop_index_by_name(const std::string& /* db_name */, const std::string& /* tbl_name */, const std::string& /* index_name */, const bool /* deleteData */) {
- bool _return = false;
- return _return;
- }
- void get_index_by_name(Index& /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::string& /* index_name */) {
- return;
- }
- void get_indexes(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const int16_t /* max_indexes */) {
- return;
- }
- void get_index_names(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const int16_t /* max_indexes */) {
- return;
- }
-};
-
-class ThriftHiveMetastore_create_database_args {
- public:
-
- ThriftHiveMetastore_create_database_args() {
- }
-
- virtual ~ThriftHiveMetastore_create_database_args() throw() {}
-
- Database database;
-
- struct __isset {
- __isset() : database(false) {}
- bool database;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_create_database_args & rhs) const
- {
- if (!(database == rhs.database))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_create_database_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_create_database_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_create_database_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_create_database_pargs() throw() {}
-
- const Database* database;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_create_database_result {
- public:
-
- ThriftHiveMetastore_create_database_result() {
- }
-
- virtual ~ThriftHiveMetastore_create_database_result() throw() {}
-
- AlreadyExistsException o1;
- InvalidObjectException o2;
- MetaException o3;
-
- struct __isset {
- __isset() : o1(false), o2(false), o3(false) {}
- bool o1;
- bool o2;
- bool o3;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_create_database_result & rhs) const
- {
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- if (!(o3 == rhs.o3))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_create_database_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_create_database_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_create_database_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_create_database_presult() throw() {}
-
- AlreadyExistsException o1;
- InvalidObjectException o2;
- MetaException o3;
-
- struct __isset {
- __isset() : o1(false), o2(false), o3(false) {}
- bool o1;
- bool o2;
- bool o3;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_get_database_args {
- public:
-
- ThriftHiveMetastore_get_database_args() : name("") {
- }
-
- virtual ~ThriftHiveMetastore_get_database_args() throw() {}
-
- std::string name;
-
- struct __isset {
- __isset() : name(false) {}
- bool name;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_database_args & rhs) const
- {
- if (!(name == rhs.name))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_database_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_database_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_database_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_database_pargs() throw() {}
-
- const std::string* name;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_database_result {
- public:
-
- ThriftHiveMetastore_get_database_result() {
- }
-
- virtual ~ThriftHiveMetastore_get_database_result() throw() {}
-
- Database success;
- NoSuchObjectException o1;
- MetaException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_database_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_database_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_database_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_database_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_database_presult() throw() {}
-
- Database* success;
- NoSuchObjectException o1;
- MetaException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_drop_database_args {
- public:
-
- ThriftHiveMetastore_drop_database_args() : name(""), deleteData(0) {
- }
-
- virtual ~ThriftHiveMetastore_drop_database_args() throw() {}
-
- std::string name;
- bool deleteData;
-
- struct __isset {
- __isset() : name(false), deleteData(false) {}
- bool name;
- bool deleteData;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_drop_database_args & rhs) const
- {
- if (!(name == rhs.name))
- return false;
- if (!(deleteData == rhs.deleteData))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_drop_database_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_drop_database_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_drop_database_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_drop_database_pargs() throw() {}
-
- const std::string* name;
- const bool* deleteData;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_drop_database_result {
- public:
-
- ThriftHiveMetastore_drop_database_result() {
- }
-
- virtual ~ThriftHiveMetastore_drop_database_result() throw() {}
-
- NoSuchObjectException o1;
- InvalidOperationException o2;
- MetaException o3;
-
- struct __isset {
- __isset() : o1(false), o2(false), o3(false) {}
- bool o1;
- bool o2;
- bool o3;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_drop_database_result & rhs) const
- {
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- if (!(o3 == rhs.o3))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_drop_database_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_drop_database_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_drop_database_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_drop_database_presult() throw() {}
-
- NoSuchObjectException o1;
- InvalidOperationException o2;
- MetaException o3;
-
- struct __isset {
- __isset() : o1(false), o2(false), o3(false) {}
- bool o1;
- bool o2;
- bool o3;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_get_databases_args {
- public:
-
- ThriftHiveMetastore_get_databases_args() : pattern("") {
- }
-
- virtual ~ThriftHiveMetastore_get_databases_args() throw() {}
-
- std::string pattern;
-
- struct __isset {
- __isset() : pattern(false) {}
- bool pattern;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_databases_args & rhs) const
- {
- if (!(pattern == rhs.pattern))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_databases_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_databases_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_databases_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_databases_pargs() throw() {}
-
- const std::string* pattern;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_databases_result {
- public:
-
- ThriftHiveMetastore_get_databases_result() {
- }
-
- virtual ~ThriftHiveMetastore_get_databases_result() throw() {}
-
- std::vector success;
- MetaException o1;
-
- struct __isset {
- __isset() : success(false), o1(false) {}
- bool success;
- bool o1;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_databases_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_databases_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_databases_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_databases_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_databases_presult() throw() {}
-
- std::vector * success;
- MetaException o1;
-
- struct __isset {
- __isset() : success(false), o1(false) {}
- bool success;
- bool o1;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_get_all_databases_args {
- public:
-
- ThriftHiveMetastore_get_all_databases_args() {
- }
-
- virtual ~ThriftHiveMetastore_get_all_databases_args() throw() {}
-
-
- bool operator == (const ThriftHiveMetastore_get_all_databases_args & /* rhs */) const
- {
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_all_databases_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_all_databases_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_all_databases_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_all_databases_pargs() throw() {}
-
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_all_databases_result {
- public:
-
- ThriftHiveMetastore_get_all_databases_result() {
- }
-
- virtual ~ThriftHiveMetastore_get_all_databases_result() throw() {}
-
- std::vector success;
- MetaException o1;
-
- struct __isset {
- __isset() : success(false), o1(false) {}
- bool success;
- bool o1;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_all_databases_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_all_databases_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_all_databases_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_all_databases_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_all_databases_presult() throw() {}
-
- std::vector * success;
- MetaException o1;
-
- struct __isset {
- __isset() : success(false), o1(false) {}
- bool success;
- bool o1;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_get_type_args {
- public:
-
- ThriftHiveMetastore_get_type_args() : name("") {
- }
-
- virtual ~ThriftHiveMetastore_get_type_args() throw() {}
-
- std::string name;
-
- struct __isset {
- __isset() : name(false) {}
- bool name;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_type_args & rhs) const
- {
- if (!(name == rhs.name))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_type_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_type_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_type_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_type_pargs() throw() {}
-
- const std::string* name;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_type_result {
- public:
-
- ThriftHiveMetastore_get_type_result() {
- }
-
- virtual ~ThriftHiveMetastore_get_type_result() throw() {}
-
- Type success;
- MetaException o1;
- NoSuchObjectException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_type_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_type_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_type_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_type_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_type_presult() throw() {}
-
- Type* success;
- MetaException o1;
- NoSuchObjectException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_create_type_args {
- public:
-
- ThriftHiveMetastore_create_type_args() {
- }
-
- virtual ~ThriftHiveMetastore_create_type_args() throw() {}
-
- Type type;
-
- struct __isset {
- __isset() : type(false) {}
- bool type;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_create_type_args & rhs) const
- {
- if (!(type == rhs.type))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_create_type_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_create_type_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_create_type_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_create_type_pargs() throw() {}
-
- const Type* type;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_create_type_result {
- public:
-
- ThriftHiveMetastore_create_type_result() : success(0) {
- }
-
- virtual ~ThriftHiveMetastore_create_type_result() throw() {}
-
- bool success;
- AlreadyExistsException o1;
- InvalidObjectException o2;
- MetaException o3;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false), o3(false) {}
- bool success;
- bool o1;
- bool o2;
- bool o3;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_create_type_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- if (!(o3 == rhs.o3))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_create_type_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_create_type_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_create_type_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_create_type_presult() throw() {}
-
- bool* success;
- AlreadyExistsException o1;
- InvalidObjectException o2;
- MetaException o3;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false), o3(false) {}
- bool success;
- bool o1;
- bool o2;
- bool o3;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_drop_type_args {
- public:
-
- ThriftHiveMetastore_drop_type_args() : type("") {
- }
-
- virtual ~ThriftHiveMetastore_drop_type_args() throw() {}
-
- std::string type;
-
- struct __isset {
- __isset() : type(false) {}
- bool type;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_drop_type_args & rhs) const
- {
- if (!(type == rhs.type))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_drop_type_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_drop_type_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_drop_type_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_drop_type_pargs() throw() {}
-
- const std::string* type;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_drop_type_result {
- public:
-
- ThriftHiveMetastore_drop_type_result() : success(0) {
- }
-
- virtual ~ThriftHiveMetastore_drop_type_result() throw() {}
-
- bool success;
- MetaException o1;
- NoSuchObjectException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_drop_type_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_drop_type_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_drop_type_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_drop_type_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_drop_type_presult() throw() {}
-
- bool* success;
- MetaException o1;
- NoSuchObjectException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_get_type_all_args {
- public:
-
- ThriftHiveMetastore_get_type_all_args() : name("") {
- }
-
- virtual ~ThriftHiveMetastore_get_type_all_args() throw() {}
-
- std::string name;
-
- struct __isset {
- __isset() : name(false) {}
- bool name;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_type_all_args & rhs) const
- {
- if (!(name == rhs.name))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_type_all_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_type_all_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_type_all_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_type_all_pargs() throw() {}
-
- const std::string* name;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_type_all_result {
- public:
-
- ThriftHiveMetastore_get_type_all_result() {
- }
-
- virtual ~ThriftHiveMetastore_get_type_all_result() throw() {}
-
- std::map success;
- MetaException o2;
-
- struct __isset {
- __isset() : success(false), o2(false) {}
- bool success;
- bool o2;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_type_all_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_type_all_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_type_all_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_type_all_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_type_all_presult() throw() {}
-
- std::map * success;
- MetaException o2;
-
- struct __isset {
- __isset() : success(false), o2(false) {}
- bool success;
- bool o2;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_get_fields_args {
- public:
-
- ThriftHiveMetastore_get_fields_args() : db_name(""), table_name("") {
- }
-
- virtual ~ThriftHiveMetastore_get_fields_args() throw() {}
-
- std::string db_name;
- std::string table_name;
-
- struct __isset {
- __isset() : db_name(false), table_name(false) {}
- bool db_name;
- bool table_name;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_fields_args & rhs) const
- {
- if (!(db_name == rhs.db_name))
- return false;
- if (!(table_name == rhs.table_name))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_fields_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_fields_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_fields_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_fields_pargs() throw() {}
-
- const std::string* db_name;
- const std::string* table_name;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_fields_result {
- public:
-
- ThriftHiveMetastore_get_fields_result() {
- }
-
- virtual ~ThriftHiveMetastore_get_fields_result() throw() {}
-
- std::vector success;
- MetaException o1;
- UnknownTableException o2;
- UnknownDBException o3;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false), o3(false) {}
- bool success;
- bool o1;
- bool o2;
- bool o3;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_fields_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- if (!(o3 == rhs.o3))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_fields_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_fields_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_fields_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_fields_presult() throw() {}
-
- std::vector * success;
- MetaException o1;
- UnknownTableException o2;
- UnknownDBException o3;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false), o3(false) {}
- bool success;
- bool o1;
- bool o2;
- bool o3;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_get_schema_args {
- public:
-
- ThriftHiveMetastore_get_schema_args() : db_name(""), table_name("") {
- }
-
- virtual ~ThriftHiveMetastore_get_schema_args() throw() {}
-
- std::string db_name;
- std::string table_name;
-
- struct __isset {
- __isset() : db_name(false), table_name(false) {}
- bool db_name;
- bool table_name;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_schema_args & rhs) const
- {
- if (!(db_name == rhs.db_name))
- return false;
- if (!(table_name == rhs.table_name))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_schema_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_schema_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_schema_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_schema_pargs() throw() {}
-
- const std::string* db_name;
- const std::string* table_name;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_schema_result {
- public:
-
- ThriftHiveMetastore_get_schema_result() {
- }
-
- virtual ~ThriftHiveMetastore_get_schema_result() throw() {}
-
- std::vector success;
- MetaException o1;
- UnknownTableException o2;
- UnknownDBException o3;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false), o3(false) {}
- bool success;
- bool o1;
- bool o2;
- bool o3;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_schema_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- if (!(o3 == rhs.o3))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_schema_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_schema_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_schema_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_schema_presult() throw() {}
-
- std::vector * success;
- MetaException o1;
- UnknownTableException o2;
- UnknownDBException o3;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false), o3(false) {}
- bool success;
- bool o1;
- bool o2;
- bool o3;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_create_table_args {
- public:
-
- ThriftHiveMetastore_create_table_args() {
- }
-
- virtual ~ThriftHiveMetastore_create_table_args() throw() {}
-
- Table tbl;
-
- struct __isset {
- __isset() : tbl(false) {}
- bool tbl;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_create_table_args & rhs) const
- {
- if (!(tbl == rhs.tbl))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_create_table_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_create_table_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_create_table_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_create_table_pargs() throw() {}
-
- const Table* tbl;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_create_table_result {
- public:
-
- ThriftHiveMetastore_create_table_result() {
- }
-
- virtual ~ThriftHiveMetastore_create_table_result() throw() {}
-
- AlreadyExistsException o1;
- InvalidObjectException o2;
- MetaException o3;
- NoSuchObjectException o4;
-
- struct __isset {
- __isset() : o1(false), o2(false), o3(false), o4(false) {}
- bool o1;
- bool o2;
- bool o3;
- bool o4;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_create_table_result & rhs) const
- {
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- if (!(o3 == rhs.o3))
- return false;
- if (!(o4 == rhs.o4))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_create_table_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_create_table_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_create_table_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_create_table_presult() throw() {}
-
- AlreadyExistsException o1;
- InvalidObjectException o2;
- MetaException o3;
- NoSuchObjectException o4;
-
- struct __isset {
- __isset() : o1(false), o2(false), o3(false), o4(false) {}
- bool o1;
- bool o2;
- bool o3;
- bool o4;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_drop_table_args {
- public:
-
- ThriftHiveMetastore_drop_table_args() : dbname(""), name(""), deleteData(0) {
- }
-
- virtual ~ThriftHiveMetastore_drop_table_args() throw() {}
-
- std::string dbname;
- std::string name;
- bool deleteData;
-
- struct __isset {
- __isset() : dbname(false), name(false), deleteData(false) {}
- bool dbname;
- bool name;
- bool deleteData;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_drop_table_args & rhs) const
- {
- if (!(dbname == rhs.dbname))
- return false;
- if (!(name == rhs.name))
- return false;
- if (!(deleteData == rhs.deleteData))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_drop_table_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_drop_table_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_drop_table_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_drop_table_pargs() throw() {}
-
- const std::string* dbname;
- const std::string* name;
- const bool* deleteData;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_drop_table_result {
- public:
-
- ThriftHiveMetastore_drop_table_result() {
- }
-
- virtual ~ThriftHiveMetastore_drop_table_result() throw() {}
-
- NoSuchObjectException o1;
- MetaException o3;
-
- struct __isset {
- __isset() : o1(false), o3(false) {}
- bool o1;
- bool o3;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_drop_table_result & rhs) const
- {
- if (!(o1 == rhs.o1))
- return false;
- if (!(o3 == rhs.o3))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_drop_table_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_drop_table_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_drop_table_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_drop_table_presult() throw() {}
-
- NoSuchObjectException o1;
- MetaException o3;
-
- struct __isset {
- __isset() : o1(false), o3(false) {}
- bool o1;
- bool o3;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_get_tables_args {
- public:
-
- ThriftHiveMetastore_get_tables_args() : db_name(""), pattern("") {
- }
-
- virtual ~ThriftHiveMetastore_get_tables_args() throw() {}
-
- std::string db_name;
- std::string pattern;
-
- struct __isset {
- __isset() : db_name(false), pattern(false) {}
- bool db_name;
- bool pattern;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_tables_args & rhs) const
- {
- if (!(db_name == rhs.db_name))
- return false;
- if (!(pattern == rhs.pattern))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_tables_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_tables_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_tables_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_tables_pargs() throw() {}
-
- const std::string* db_name;
- const std::string* pattern;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_tables_result {
- public:
-
- ThriftHiveMetastore_get_tables_result() {
- }
-
- virtual ~ThriftHiveMetastore_get_tables_result() throw() {}
-
- std::vector success;
- MetaException o1;
-
- struct __isset {
- __isset() : success(false), o1(false) {}
- bool success;
- bool o1;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_tables_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_tables_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_tables_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_tables_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_tables_presult() throw() {}
-
- std::vector * success;
- MetaException o1;
-
- struct __isset {
- __isset() : success(false), o1(false) {}
- bool success;
- bool o1;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_get_all_tables_args {
- public:
-
- ThriftHiveMetastore_get_all_tables_args() : db_name("") {
- }
-
- virtual ~ThriftHiveMetastore_get_all_tables_args() throw() {}
-
- std::string db_name;
-
- struct __isset {
- __isset() : db_name(false) {}
- bool db_name;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_all_tables_args & rhs) const
- {
- if (!(db_name == rhs.db_name))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_all_tables_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_all_tables_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_all_tables_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_all_tables_pargs() throw() {}
-
- const std::string* db_name;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_all_tables_result {
- public:
-
- ThriftHiveMetastore_get_all_tables_result() {
- }
-
- virtual ~ThriftHiveMetastore_get_all_tables_result() throw() {}
-
- std::vector success;
- MetaException o1;
-
- struct __isset {
- __isset() : success(false), o1(false) {}
- bool success;
- bool o1;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_all_tables_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_all_tables_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_all_tables_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_all_tables_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_all_tables_presult() throw() {}
-
- std::vector * success;
- MetaException o1;
-
- struct __isset {
- __isset() : success(false), o1(false) {}
- bool success;
- bool o1;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_get_table_args {
- public:
-
- ThriftHiveMetastore_get_table_args() : dbname(""), tbl_name("") {
- }
-
- virtual ~ThriftHiveMetastore_get_table_args() throw() {}
-
- std::string dbname;
- std::string tbl_name;
-
- struct __isset {
- __isset() : dbname(false), tbl_name(false) {}
- bool dbname;
- bool tbl_name;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_table_args & rhs) const
- {
- if (!(dbname == rhs.dbname))
- return false;
- if (!(tbl_name == rhs.tbl_name))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_table_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_table_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_table_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_table_pargs() throw() {}
-
- const std::string* dbname;
- const std::string* tbl_name;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_table_result {
- public:
-
- ThriftHiveMetastore_get_table_result() {
- }
-
- virtual ~ThriftHiveMetastore_get_table_result() throw() {}
-
- Table success;
- MetaException o1;
- NoSuchObjectException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_table_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_table_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_table_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_table_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_table_presult() throw() {}
-
- Table* success;
- MetaException o1;
- NoSuchObjectException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_alter_table_args {
- public:
-
- ThriftHiveMetastore_alter_table_args() : dbname(""), tbl_name("") {
- }
-
- virtual ~ThriftHiveMetastore_alter_table_args() throw() {}
-
- std::string dbname;
- std::string tbl_name;
- Table new_tbl;
-
- struct __isset {
- __isset() : dbname(false), tbl_name(false), new_tbl(false) {}
- bool dbname;
- bool tbl_name;
- bool new_tbl;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_alter_table_args & rhs) const
- {
- if (!(dbname == rhs.dbname))
- return false;
- if (!(tbl_name == rhs.tbl_name))
- return false;
- if (!(new_tbl == rhs.new_tbl))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_alter_table_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_alter_table_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_alter_table_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_alter_table_pargs() throw() {}
-
- const std::string* dbname;
- const std::string* tbl_name;
- const Table* new_tbl;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_alter_table_result {
- public:
-
- ThriftHiveMetastore_alter_table_result() {
- }
-
- virtual ~ThriftHiveMetastore_alter_table_result() throw() {}
-
- InvalidOperationException o1;
- MetaException o2;
-
- struct __isset {
- __isset() : o1(false), o2(false) {}
- bool o1;
- bool o2;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_alter_table_result & rhs) const
- {
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_alter_table_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_alter_table_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_alter_table_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_alter_table_presult() throw() {}
-
- InvalidOperationException o1;
- MetaException o2;
-
- struct __isset {
- __isset() : o1(false), o2(false) {}
- bool o1;
- bool o2;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_add_partition_args {
- public:
-
- ThriftHiveMetastore_add_partition_args() {
- }
-
- virtual ~ThriftHiveMetastore_add_partition_args() throw() {}
-
- Partition new_part;
-
- struct __isset {
- __isset() : new_part(false) {}
- bool new_part;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_add_partition_args & rhs) const
- {
- if (!(new_part == rhs.new_part))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_add_partition_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_add_partition_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_add_partition_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_add_partition_pargs() throw() {}
-
- const Partition* new_part;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_add_partition_result {
- public:
-
- ThriftHiveMetastore_add_partition_result() {
- }
-
- virtual ~ThriftHiveMetastore_add_partition_result() throw() {}
-
- Partition success;
- InvalidObjectException o1;
- AlreadyExistsException o2;
- MetaException o3;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false), o3(false) {}
- bool success;
- bool o1;
- bool o2;
- bool o3;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_add_partition_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- if (!(o3 == rhs.o3))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_add_partition_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_add_partition_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_add_partition_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_add_partition_presult() throw() {}
-
- Partition* success;
- InvalidObjectException o1;
- AlreadyExistsException o2;
- MetaException o3;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false), o3(false) {}
- bool success;
- bool o1;
- bool o2;
- bool o3;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_append_partition_args {
- public:
-
- ThriftHiveMetastore_append_partition_args() : db_name(""), tbl_name("") {
- }
-
- virtual ~ThriftHiveMetastore_append_partition_args() throw() {}
-
- std::string db_name;
- std::string tbl_name;
- std::vector part_vals;
-
- struct __isset {
- __isset() : db_name(false), tbl_name(false), part_vals(false) {}
- bool db_name;
- bool tbl_name;
- bool part_vals;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_append_partition_args & rhs) const
- {
- if (!(db_name == rhs.db_name))
- return false;
- if (!(tbl_name == rhs.tbl_name))
- return false;
- if (!(part_vals == rhs.part_vals))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_append_partition_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_append_partition_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_append_partition_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_append_partition_pargs() throw() {}
-
- const std::string* db_name;
- const std::string* tbl_name;
- const std::vector * part_vals;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_append_partition_result {
- public:
-
- ThriftHiveMetastore_append_partition_result() {
- }
-
- virtual ~ThriftHiveMetastore_append_partition_result() throw() {}
-
- Partition success;
- InvalidObjectException o1;
- AlreadyExistsException o2;
- MetaException o3;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false), o3(false) {}
- bool success;
- bool o1;
- bool o2;
- bool o3;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_append_partition_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- if (!(o3 == rhs.o3))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_append_partition_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_append_partition_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_append_partition_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_append_partition_presult() throw() {}
-
- Partition* success;
- InvalidObjectException o1;
- AlreadyExistsException o2;
- MetaException o3;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false), o3(false) {}
- bool success;
- bool o1;
- bool o2;
- bool o3;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_append_partition_by_name_args {
- public:
-
- ThriftHiveMetastore_append_partition_by_name_args() : db_name(""), tbl_name(""), part_name("") {
- }
-
- virtual ~ThriftHiveMetastore_append_partition_by_name_args() throw() {}
-
- std::string db_name;
- std::string tbl_name;
- std::string part_name;
-
- struct __isset {
- __isset() : db_name(false), tbl_name(false), part_name(false) {}
- bool db_name;
- bool tbl_name;
- bool part_name;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_append_partition_by_name_args & rhs) const
- {
- if (!(db_name == rhs.db_name))
- return false;
- if (!(tbl_name == rhs.tbl_name))
- return false;
- if (!(part_name == rhs.part_name))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_append_partition_by_name_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_append_partition_by_name_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_append_partition_by_name_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_append_partition_by_name_pargs() throw() {}
-
- const std::string* db_name;
- const std::string* tbl_name;
- const std::string* part_name;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_append_partition_by_name_result {
- public:
-
- ThriftHiveMetastore_append_partition_by_name_result() {
- }
-
- virtual ~ThriftHiveMetastore_append_partition_by_name_result() throw() {}
-
- Partition success;
- InvalidObjectException o1;
- AlreadyExistsException o2;
- MetaException o3;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false), o3(false) {}
- bool success;
- bool o1;
- bool o2;
- bool o3;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_append_partition_by_name_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- if (!(o3 == rhs.o3))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_append_partition_by_name_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_append_partition_by_name_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_append_partition_by_name_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_append_partition_by_name_presult() throw() {}
-
- Partition* success;
- InvalidObjectException o1;
- AlreadyExistsException o2;
- MetaException o3;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false), o3(false) {}
- bool success;
- bool o1;
- bool o2;
- bool o3;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_drop_partition_args {
- public:
-
- ThriftHiveMetastore_drop_partition_args() : db_name(""), tbl_name(""), deleteData(0) {
- }
-
- virtual ~ThriftHiveMetastore_drop_partition_args() throw() {}
-
- std::string db_name;
- std::string tbl_name;
- std::vector part_vals;
- bool deleteData;
-
- struct __isset {
- __isset() : db_name(false), tbl_name(false), part_vals(false), deleteData(false) {}
- bool db_name;
- bool tbl_name;
- bool part_vals;
- bool deleteData;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_drop_partition_args & rhs) const
- {
- if (!(db_name == rhs.db_name))
- return false;
- if (!(tbl_name == rhs.tbl_name))
- return false;
- if (!(part_vals == rhs.part_vals))
- return false;
- if (!(deleteData == rhs.deleteData))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_drop_partition_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_drop_partition_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_drop_partition_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_drop_partition_pargs() throw() {}
-
- const std::string* db_name;
- const std::string* tbl_name;
- const std::vector * part_vals;
- const bool* deleteData;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_drop_partition_result {
- public:
-
- ThriftHiveMetastore_drop_partition_result() : success(0) {
- }
-
- virtual ~ThriftHiveMetastore_drop_partition_result() throw() {}
-
- bool success;
- NoSuchObjectException o1;
- MetaException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_drop_partition_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_drop_partition_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_drop_partition_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_drop_partition_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_drop_partition_presult() throw() {}
-
- bool* success;
- NoSuchObjectException o1;
- MetaException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_drop_partition_by_name_args {
- public:
-
- ThriftHiveMetastore_drop_partition_by_name_args() : db_name(""), tbl_name(""), part_name(""), deleteData(0) {
- }
-
- virtual ~ThriftHiveMetastore_drop_partition_by_name_args() throw() {}
-
- std::string db_name;
- std::string tbl_name;
- std::string part_name;
- bool deleteData;
-
- struct __isset {
- __isset() : db_name(false), tbl_name(false), part_name(false), deleteData(false) {}
- bool db_name;
- bool tbl_name;
- bool part_name;
- bool deleteData;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_drop_partition_by_name_args & rhs) const
- {
- if (!(db_name == rhs.db_name))
- return false;
- if (!(tbl_name == rhs.tbl_name))
- return false;
- if (!(part_name == rhs.part_name))
- return false;
- if (!(deleteData == rhs.deleteData))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_drop_partition_by_name_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_drop_partition_by_name_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_drop_partition_by_name_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_drop_partition_by_name_pargs() throw() {}
-
- const std::string* db_name;
- const std::string* tbl_name;
- const std::string* part_name;
- const bool* deleteData;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_drop_partition_by_name_result {
- public:
-
- ThriftHiveMetastore_drop_partition_by_name_result() : success(0) {
- }
-
- virtual ~ThriftHiveMetastore_drop_partition_by_name_result() throw() {}
-
- bool success;
- NoSuchObjectException o1;
- MetaException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_drop_partition_by_name_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_drop_partition_by_name_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_drop_partition_by_name_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_drop_partition_by_name_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_drop_partition_by_name_presult() throw() {}
-
- bool* success;
- NoSuchObjectException o1;
- MetaException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_get_partition_args {
- public:
-
- ThriftHiveMetastore_get_partition_args() : db_name(""), tbl_name("") {
- }
-
- virtual ~ThriftHiveMetastore_get_partition_args() throw() {}
-
- std::string db_name;
- std::string tbl_name;
- std::vector part_vals;
-
- struct __isset {
- __isset() : db_name(false), tbl_name(false), part_vals(false) {}
- bool db_name;
- bool tbl_name;
- bool part_vals;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_partition_args & rhs) const
- {
- if (!(db_name == rhs.db_name))
- return false;
- if (!(tbl_name == rhs.tbl_name))
- return false;
- if (!(part_vals == rhs.part_vals))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_partition_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_partition_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_partition_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_partition_pargs() throw() {}
-
- const std::string* db_name;
- const std::string* tbl_name;
- const std::vector * part_vals;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_partition_result {
- public:
-
- ThriftHiveMetastore_get_partition_result() {
- }
-
- virtual ~ThriftHiveMetastore_get_partition_result() throw() {}
-
- Partition success;
- MetaException o1;
- NoSuchObjectException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_partition_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_partition_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_partition_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_partition_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_partition_presult() throw() {}
-
- Partition* success;
- MetaException o1;
- NoSuchObjectException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_get_partition_by_name_args {
- public:
-
- ThriftHiveMetastore_get_partition_by_name_args() : db_name(""), tbl_name(""), part_name("") {
- }
-
- virtual ~ThriftHiveMetastore_get_partition_by_name_args() throw() {}
-
- std::string db_name;
- std::string tbl_name;
- std::string part_name;
-
- struct __isset {
- __isset() : db_name(false), tbl_name(false), part_name(false) {}
- bool db_name;
- bool tbl_name;
- bool part_name;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_partition_by_name_args & rhs) const
- {
- if (!(db_name == rhs.db_name))
- return false;
- if (!(tbl_name == rhs.tbl_name))
- return false;
- if (!(part_name == rhs.part_name))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_partition_by_name_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_partition_by_name_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_partition_by_name_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_partition_by_name_pargs() throw() {}
-
- const std::string* db_name;
- const std::string* tbl_name;
- const std::string* part_name;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_partition_by_name_result {
- public:
-
- ThriftHiveMetastore_get_partition_by_name_result() {
- }
-
- virtual ~ThriftHiveMetastore_get_partition_by_name_result() throw() {}
-
- Partition success;
- MetaException o1;
- NoSuchObjectException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_partition_by_name_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_partition_by_name_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_partition_by_name_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_partition_by_name_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_partition_by_name_presult() throw() {}
-
- Partition* success;
- MetaException o1;
- NoSuchObjectException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_get_partitions_args {
- public:
-
- ThriftHiveMetastore_get_partitions_args() : db_name(""), tbl_name(""), max_parts(-1) {
- }
-
- virtual ~ThriftHiveMetastore_get_partitions_args() throw() {}
-
- std::string db_name;
- std::string tbl_name;
- int16_t max_parts;
-
- struct __isset {
- __isset() : db_name(false), tbl_name(false), max_parts(false) {}
- bool db_name;
- bool tbl_name;
- bool max_parts;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_partitions_args & rhs) const
- {
- if (!(db_name == rhs.db_name))
- return false;
- if (!(tbl_name == rhs.tbl_name))
- return false;
- if (!(max_parts == rhs.max_parts))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_partitions_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_partitions_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_partitions_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_partitions_pargs() throw() {}
-
- const std::string* db_name;
- const std::string* tbl_name;
- const int16_t* max_parts;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_partitions_result {
- public:
-
- ThriftHiveMetastore_get_partitions_result() {
- }
-
- virtual ~ThriftHiveMetastore_get_partitions_result() throw() {}
-
- std::vector success;
- NoSuchObjectException o1;
- MetaException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_partitions_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_partitions_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_partitions_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_partitions_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_partitions_presult() throw() {}
-
- std::vector * success;
- NoSuchObjectException o1;
- MetaException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_get_partition_names_args {
- public:
-
- ThriftHiveMetastore_get_partition_names_args() : db_name(""), tbl_name(""), max_parts(-1) {
- }
-
- virtual ~ThriftHiveMetastore_get_partition_names_args() throw() {}
-
- std::string db_name;
- std::string tbl_name;
- int16_t max_parts;
-
- struct __isset {
- __isset() : db_name(false), tbl_name(false), max_parts(false) {}
- bool db_name;
- bool tbl_name;
- bool max_parts;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_partition_names_args & rhs) const
- {
- if (!(db_name == rhs.db_name))
- return false;
- if (!(tbl_name == rhs.tbl_name))
- return false;
- if (!(max_parts == rhs.max_parts))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_partition_names_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_partition_names_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_partition_names_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_partition_names_pargs() throw() {}
-
- const std::string* db_name;
- const std::string* tbl_name;
- const int16_t* max_parts;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_partition_names_result {
- public:
-
- ThriftHiveMetastore_get_partition_names_result() {
- }
-
- virtual ~ThriftHiveMetastore_get_partition_names_result() throw() {}
-
- std::vector success;
- MetaException o2;
-
- struct __isset {
- __isset() : success(false), o2(false) {}
- bool success;
- bool o2;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_partition_names_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_partition_names_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_partition_names_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_partition_names_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_partition_names_presult() throw() {}
-
- std::vector * success;
- MetaException o2;
-
- struct __isset {
- __isset() : success(false), o2(false) {}
- bool success;
- bool o2;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_get_partitions_ps_args {
- public:
-
- ThriftHiveMetastore_get_partitions_ps_args() : db_name(""), tbl_name(""), max_parts(-1) {
- }
-
- virtual ~ThriftHiveMetastore_get_partitions_ps_args() throw() {}
-
- std::string db_name;
- std::string tbl_name;
- std::vector part_vals;
- int16_t max_parts;
-
- struct __isset {
- __isset() : db_name(false), tbl_name(false), part_vals(false), max_parts(false) {}
- bool db_name;
- bool tbl_name;
- bool part_vals;
- bool max_parts;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_partitions_ps_args & rhs) const
- {
- if (!(db_name == rhs.db_name))
- return false;
- if (!(tbl_name == rhs.tbl_name))
- return false;
- if (!(part_vals == rhs.part_vals))
- return false;
- if (!(max_parts == rhs.max_parts))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_partitions_ps_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_partitions_ps_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_partitions_ps_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_partitions_ps_pargs() throw() {}
-
- const std::string* db_name;
- const std::string* tbl_name;
- const std::vector * part_vals;
- const int16_t* max_parts;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_partitions_ps_result {
- public:
-
- ThriftHiveMetastore_get_partitions_ps_result() {
- }
-
- virtual ~ThriftHiveMetastore_get_partitions_ps_result() throw() {}
-
- std::vector success;
- MetaException o1;
-
- struct __isset {
- __isset() : success(false), o1(false) {}
- bool success;
- bool o1;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_partitions_ps_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_partitions_ps_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_partitions_ps_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_partitions_ps_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_partitions_ps_presult() throw() {}
-
- std::vector * success;
- MetaException o1;
-
- struct __isset {
- __isset() : success(false), o1(false) {}
- bool success;
- bool o1;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_get_partition_names_ps_args {
- public:
-
- ThriftHiveMetastore_get_partition_names_ps_args() : db_name(""), tbl_name(""), max_parts(-1) {
- }
-
- virtual ~ThriftHiveMetastore_get_partition_names_ps_args() throw() {}
-
- std::string db_name;
- std::string tbl_name;
- std::vector part_vals;
- int16_t max_parts;
-
- struct __isset {
- __isset() : db_name(false), tbl_name(false), part_vals(false), max_parts(false) {}
- bool db_name;
- bool tbl_name;
- bool part_vals;
- bool max_parts;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_partition_names_ps_args & rhs) const
- {
- if (!(db_name == rhs.db_name))
- return false;
- if (!(tbl_name == rhs.tbl_name))
- return false;
- if (!(part_vals == rhs.part_vals))
- return false;
- if (!(max_parts == rhs.max_parts))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_partition_names_ps_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_partition_names_ps_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_partition_names_ps_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_partition_names_ps_pargs() throw() {}
-
- const std::string* db_name;
- const std::string* tbl_name;
- const std::vector * part_vals;
- const int16_t* max_parts;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_partition_names_ps_result {
- public:
-
- ThriftHiveMetastore_get_partition_names_ps_result() {
- }
-
- virtual ~ThriftHiveMetastore_get_partition_names_ps_result() throw() {}
-
- std::vector success;
- MetaException o1;
-
- struct __isset {
- __isset() : success(false), o1(false) {}
- bool success;
- bool o1;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_partition_names_ps_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_partition_names_ps_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_partition_names_ps_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_partition_names_ps_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_partition_names_ps_presult() throw() {}
-
- std::vector * success;
- MetaException o1;
-
- struct __isset {
- __isset() : success(false), o1(false) {}
- bool success;
- bool o1;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_get_partitions_by_filter_args {
- public:
-
- ThriftHiveMetastore_get_partitions_by_filter_args() : db_name(""), tbl_name(""), filter(""), max_parts(-1) {
- }
-
- virtual ~ThriftHiveMetastore_get_partitions_by_filter_args() throw() {}
-
- std::string db_name;
- std::string tbl_name;
- std::string filter;
- int16_t max_parts;
-
- struct __isset {
- __isset() : db_name(false), tbl_name(false), filter(false), max_parts(false) {}
- bool db_name;
- bool tbl_name;
- bool filter;
- bool max_parts;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_partitions_by_filter_args & rhs) const
- {
- if (!(db_name == rhs.db_name))
- return false;
- if (!(tbl_name == rhs.tbl_name))
- return false;
- if (!(filter == rhs.filter))
- return false;
- if (!(max_parts == rhs.max_parts))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_partitions_by_filter_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_partitions_by_filter_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_partitions_by_filter_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_partitions_by_filter_pargs() throw() {}
-
- const std::string* db_name;
- const std::string* tbl_name;
- const std::string* filter;
- const int16_t* max_parts;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_partitions_by_filter_result {
- public:
-
- ThriftHiveMetastore_get_partitions_by_filter_result() {
- }
-
- virtual ~ThriftHiveMetastore_get_partitions_by_filter_result() throw() {}
-
- std::vector success;
- MetaException o1;
- NoSuchObjectException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_partitions_by_filter_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_partitions_by_filter_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_partitions_by_filter_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_partitions_by_filter_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_partitions_by_filter_presult() throw() {}
-
- std::vector * success;
- MetaException o1;
- NoSuchObjectException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_alter_partition_args {
- public:
-
- ThriftHiveMetastore_alter_partition_args() : db_name(""), tbl_name("") {
- }
-
- virtual ~ThriftHiveMetastore_alter_partition_args() throw() {}
-
- std::string db_name;
- std::string tbl_name;
- Partition new_part;
-
- struct __isset {
- __isset() : db_name(false), tbl_name(false), new_part(false) {}
- bool db_name;
- bool tbl_name;
- bool new_part;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_alter_partition_args & rhs) const
- {
- if (!(db_name == rhs.db_name))
- return false;
- if (!(tbl_name == rhs.tbl_name))
- return false;
- if (!(new_part == rhs.new_part))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_alter_partition_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_alter_partition_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_alter_partition_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_alter_partition_pargs() throw() {}
-
- const std::string* db_name;
- const std::string* tbl_name;
- const Partition* new_part;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_alter_partition_result {
- public:
-
- ThriftHiveMetastore_alter_partition_result() {
- }
-
- virtual ~ThriftHiveMetastore_alter_partition_result() throw() {}
-
- InvalidOperationException o1;
- MetaException o2;
-
- struct __isset {
- __isset() : o1(false), o2(false) {}
- bool o1;
- bool o2;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_alter_partition_result & rhs) const
- {
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_alter_partition_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_alter_partition_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_alter_partition_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_alter_partition_presult() throw() {}
-
- InvalidOperationException o1;
- MetaException o2;
-
- struct __isset {
- __isset() : o1(false), o2(false) {}
- bool o1;
- bool o2;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_get_config_value_args {
- public:
-
- ThriftHiveMetastore_get_config_value_args() : name(""), defaultValue("") {
- }
-
- virtual ~ThriftHiveMetastore_get_config_value_args() throw() {}
-
- std::string name;
- std::string defaultValue;
-
- struct __isset {
- __isset() : name(false), defaultValue(false) {}
- bool name;
- bool defaultValue;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_config_value_args & rhs) const
- {
- if (!(name == rhs.name))
- return false;
- if (!(defaultValue == rhs.defaultValue))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_config_value_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_config_value_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_config_value_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_config_value_pargs() throw() {}
-
- const std::string* name;
- const std::string* defaultValue;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_config_value_result {
- public:
-
- ThriftHiveMetastore_get_config_value_result() : success("") {
- }
-
- virtual ~ThriftHiveMetastore_get_config_value_result() throw() {}
-
- std::string success;
- ConfigValSecurityException o1;
-
- struct __isset {
- __isset() : success(false), o1(false) {}
- bool success;
- bool o1;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_config_value_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_config_value_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_config_value_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_config_value_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_config_value_presult() throw() {}
-
- std::string* success;
- ConfigValSecurityException o1;
-
- struct __isset {
- __isset() : success(false), o1(false) {}
- bool success;
- bool o1;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_partition_name_to_vals_args {
- public:
-
- ThriftHiveMetastore_partition_name_to_vals_args() : part_name("") {
- }
-
- virtual ~ThriftHiveMetastore_partition_name_to_vals_args() throw() {}
-
- std::string part_name;
-
- struct __isset {
- __isset() : part_name(false) {}
- bool part_name;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_partition_name_to_vals_args & rhs) const
- {
- if (!(part_name == rhs.part_name))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_partition_name_to_vals_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_partition_name_to_vals_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_partition_name_to_vals_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_partition_name_to_vals_pargs() throw() {}
-
- const std::string* part_name;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_partition_name_to_vals_result {
- public:
-
- ThriftHiveMetastore_partition_name_to_vals_result() {
- }
-
- virtual ~ThriftHiveMetastore_partition_name_to_vals_result() throw() {}
-
- std::vector success;
- MetaException o1;
-
- struct __isset {
- __isset() : success(false), o1(false) {}
- bool success;
- bool o1;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_partition_name_to_vals_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_partition_name_to_vals_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_partition_name_to_vals_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_partition_name_to_vals_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_partition_name_to_vals_presult() throw() {}
-
- std::vector * success;
- MetaException o1;
-
- struct __isset {
- __isset() : success(false), o1(false) {}
- bool success;
- bool o1;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_partition_name_to_spec_args {
- public:
-
- ThriftHiveMetastore_partition_name_to_spec_args() : part_name("") {
- }
-
- virtual ~ThriftHiveMetastore_partition_name_to_spec_args() throw() {}
-
- std::string part_name;
-
- struct __isset {
- __isset() : part_name(false) {}
- bool part_name;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_partition_name_to_spec_args & rhs) const
- {
- if (!(part_name == rhs.part_name))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_partition_name_to_spec_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_partition_name_to_spec_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_partition_name_to_spec_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_partition_name_to_spec_pargs() throw() {}
-
- const std::string* part_name;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_partition_name_to_spec_result {
- public:
-
- ThriftHiveMetastore_partition_name_to_spec_result() {
- }
-
- virtual ~ThriftHiveMetastore_partition_name_to_spec_result() throw() {}
-
- std::map success;
- MetaException o1;
-
- struct __isset {
- __isset() : success(false), o1(false) {}
- bool success;
- bool o1;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_partition_name_to_spec_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_partition_name_to_spec_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_partition_name_to_spec_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_partition_name_to_spec_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_partition_name_to_spec_presult() throw() {}
-
- std::map * success;
- MetaException o1;
-
- struct __isset {
- __isset() : success(false), o1(false) {}
- bool success;
- bool o1;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_add_index_args {
- public:
-
- ThriftHiveMetastore_add_index_args() {
- }
-
- virtual ~ThriftHiveMetastore_add_index_args() throw() {}
-
- Index new_index;
- Table index_table;
-
- struct __isset {
- __isset() : new_index(false), index_table(false) {}
- bool new_index;
- bool index_table;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_add_index_args & rhs) const
- {
- if (!(new_index == rhs.new_index))
- return false;
- if (!(index_table == rhs.index_table))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_add_index_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_add_index_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_add_index_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_add_index_pargs() throw() {}
-
- const Index* new_index;
- const Table* index_table;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_add_index_result {
- public:
-
- ThriftHiveMetastore_add_index_result() {
- }
-
- virtual ~ThriftHiveMetastore_add_index_result() throw() {}
-
- Index success;
- InvalidObjectException o1;
- AlreadyExistsException o2;
- MetaException o3;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false), o3(false) {}
- bool success;
- bool o1;
- bool o2;
- bool o3;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_add_index_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- if (!(o3 == rhs.o3))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_add_index_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_add_index_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_add_index_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_add_index_presult() throw() {}
-
- Index* success;
- InvalidObjectException o1;
- AlreadyExistsException o2;
- MetaException o3;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false), o3(false) {}
- bool success;
- bool o1;
- bool o2;
- bool o3;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_alter_index_args {
- public:
-
- ThriftHiveMetastore_alter_index_args() : dbname(""), base_tbl_name(""), idx_name("") {
- }
-
- virtual ~ThriftHiveMetastore_alter_index_args() throw() {}
-
- std::string dbname;
- std::string base_tbl_name;
- std::string idx_name;
- Index new_idx;
-
- struct __isset {
- __isset() : dbname(false), base_tbl_name(false), idx_name(false), new_idx(false) {}
- bool dbname;
- bool base_tbl_name;
- bool idx_name;
- bool new_idx;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_alter_index_args & rhs) const
- {
- if (!(dbname == rhs.dbname))
- return false;
- if (!(base_tbl_name == rhs.base_tbl_name))
- return false;
- if (!(idx_name == rhs.idx_name))
- return false;
- if (!(new_idx == rhs.new_idx))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_alter_index_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_alter_index_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_alter_index_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_alter_index_pargs() throw() {}
-
- const std::string* dbname;
- const std::string* base_tbl_name;
- const std::string* idx_name;
- const Index* new_idx;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_alter_index_result {
- public:
-
- ThriftHiveMetastore_alter_index_result() {
- }
-
- virtual ~ThriftHiveMetastore_alter_index_result() throw() {}
-
- InvalidOperationException o1;
- MetaException o2;
-
- struct __isset {
- __isset() : o1(false), o2(false) {}
- bool o1;
- bool o2;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_alter_index_result & rhs) const
- {
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_alter_index_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_alter_index_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_alter_index_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_alter_index_presult() throw() {}
-
- InvalidOperationException o1;
- MetaException o2;
-
- struct __isset {
- __isset() : o1(false), o2(false) {}
- bool o1;
- bool o2;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_drop_index_by_name_args {
- public:
-
- ThriftHiveMetastore_drop_index_by_name_args() : db_name(""), tbl_name(""), index_name(""), deleteData(0) {
- }
-
- virtual ~ThriftHiveMetastore_drop_index_by_name_args() throw() {}
-
- std::string db_name;
- std::string tbl_name;
- std::string index_name;
- bool deleteData;
-
- struct __isset {
- __isset() : db_name(false), tbl_name(false), index_name(false), deleteData(false) {}
- bool db_name;
- bool tbl_name;
- bool index_name;
- bool deleteData;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_drop_index_by_name_args & rhs) const
- {
- if (!(db_name == rhs.db_name))
- return false;
- if (!(tbl_name == rhs.tbl_name))
- return false;
- if (!(index_name == rhs.index_name))
- return false;
- if (!(deleteData == rhs.deleteData))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_drop_index_by_name_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_drop_index_by_name_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_drop_index_by_name_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_drop_index_by_name_pargs() throw() {}
-
- const std::string* db_name;
- const std::string* tbl_name;
- const std::string* index_name;
- const bool* deleteData;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_drop_index_by_name_result {
- public:
-
- ThriftHiveMetastore_drop_index_by_name_result() : success(0) {
- }
-
- virtual ~ThriftHiveMetastore_drop_index_by_name_result() throw() {}
-
- bool success;
- NoSuchObjectException o1;
- MetaException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_drop_index_by_name_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_drop_index_by_name_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_drop_index_by_name_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_drop_index_by_name_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_drop_index_by_name_presult() throw() {}
-
- bool* success;
- NoSuchObjectException o1;
- MetaException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_get_index_by_name_args {
- public:
-
- ThriftHiveMetastore_get_index_by_name_args() : db_name(""), tbl_name(""), index_name("") {
- }
-
- virtual ~ThriftHiveMetastore_get_index_by_name_args() throw() {}
-
- std::string db_name;
- std::string tbl_name;
- std::string index_name;
-
- struct __isset {
- __isset() : db_name(false), tbl_name(false), index_name(false) {}
- bool db_name;
- bool tbl_name;
- bool index_name;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_index_by_name_args & rhs) const
- {
- if (!(db_name == rhs.db_name))
- return false;
- if (!(tbl_name == rhs.tbl_name))
- return false;
- if (!(index_name == rhs.index_name))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_index_by_name_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_index_by_name_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_index_by_name_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_index_by_name_pargs() throw() {}
-
- const std::string* db_name;
- const std::string* tbl_name;
- const std::string* index_name;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_index_by_name_result {
- public:
-
- ThriftHiveMetastore_get_index_by_name_result() {
- }
-
- virtual ~ThriftHiveMetastore_get_index_by_name_result() throw() {}
-
- Index success;
- MetaException o1;
- NoSuchObjectException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_index_by_name_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_index_by_name_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_index_by_name_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_index_by_name_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_index_by_name_presult() throw() {}
-
- Index* success;
- MetaException o1;
- NoSuchObjectException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_get_indexes_args {
- public:
-
- ThriftHiveMetastore_get_indexes_args() : db_name(""), tbl_name(""), max_indexes(-1) {
- }
-
- virtual ~ThriftHiveMetastore_get_indexes_args() throw() {}
-
- std::string db_name;
- std::string tbl_name;
- int16_t max_indexes;
-
- struct __isset {
- __isset() : db_name(false), tbl_name(false), max_indexes(false) {}
- bool db_name;
- bool tbl_name;
- bool max_indexes;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_indexes_args & rhs) const
- {
- if (!(db_name == rhs.db_name))
- return false;
- if (!(tbl_name == rhs.tbl_name))
- return false;
- if (!(max_indexes == rhs.max_indexes))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_indexes_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_indexes_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_indexes_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_indexes_pargs() throw() {}
-
- const std::string* db_name;
- const std::string* tbl_name;
- const int16_t* max_indexes;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_indexes_result {
- public:
-
- ThriftHiveMetastore_get_indexes_result() {
- }
-
- virtual ~ThriftHiveMetastore_get_indexes_result() throw() {}
-
- std::vector success;
- NoSuchObjectException o1;
- MetaException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_indexes_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o1 == rhs.o1))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_indexes_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_indexes_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_indexes_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_indexes_presult() throw() {}
-
- std::vector * success;
- NoSuchObjectException o1;
- MetaException o2;
-
- struct __isset {
- __isset() : success(false), o1(false), o2(false) {}
- bool success;
- bool o1;
- bool o2;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastore_get_index_names_args {
- public:
-
- ThriftHiveMetastore_get_index_names_args() : db_name(""), tbl_name(""), max_indexes(-1) {
- }
-
- virtual ~ThriftHiveMetastore_get_index_names_args() throw() {}
-
- std::string db_name;
- std::string tbl_name;
- int16_t max_indexes;
-
- struct __isset {
- __isset() : db_name(false), tbl_name(false), max_indexes(false) {}
- bool db_name;
- bool tbl_name;
- bool max_indexes;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_index_names_args & rhs) const
- {
- if (!(db_name == rhs.db_name))
- return false;
- if (!(tbl_name == rhs.tbl_name))
- return false;
- if (!(max_indexes == rhs.max_indexes))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_index_names_args &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_index_names_args & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_index_names_pargs {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_index_names_pargs() throw() {}
-
- const std::string* db_name;
- const std::string* tbl_name;
- const int16_t* max_indexes;
-
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_index_names_result {
- public:
-
- ThriftHiveMetastore_get_index_names_result() {
- }
-
- virtual ~ThriftHiveMetastore_get_index_names_result() throw() {}
-
- std::vector success;
- MetaException o2;
-
- struct __isset {
- __isset() : success(false), o2(false) {}
- bool success;
- bool o2;
- } __isset;
-
- bool operator == (const ThriftHiveMetastore_get_index_names_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- if (!(o2 == rhs.o2))
- return false;
- return true;
- }
- bool operator != (const ThriftHiveMetastore_get_index_names_result &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ThriftHiveMetastore_get_index_names_result & ) const;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(apache::thrift::protocol::TProtocol* oprot) const;
-
-};
-
-class ThriftHiveMetastore_get_index_names_presult {
- public:
-
-
- virtual ~ThriftHiveMetastore_get_index_names_presult() throw() {}
-
- std::vector * success;
- MetaException o2;
-
- struct __isset {
- __isset() : success(false), o2(false) {}
- bool success;
- bool o2;
- } __isset;
-
- uint32_t read(apache::thrift::protocol::TProtocol* iprot);
-
-};
-
-class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public facebook::fb303::FacebookServiceClient {
- public:
- ThriftHiveMetastoreClient(boost::shared_ptr prot) :
- facebook::fb303::FacebookServiceClient(prot, prot) {}
- ThriftHiveMetastoreClient(boost::shared_ptr iprot, boost::shared_ptr oprot) :
- facebook::fb303::FacebookServiceClient(iprot, oprot) {}
- boost::shared_ptr getInputProtocol() {
- return piprot_;
- }
- boost::shared_ptr getOutputProtocol() {
- return poprot_;
- }
- void create_database(const Database& database);
- void send_create_database(const Database& database);
- void recv_create_database();
- void get_database(Database& _return, const std::string& name);
- void send_get_database(const std::string& name);
- void recv_get_database(Database& _return);
- void drop_database(const std::string& name, const bool deleteData);
- void send_drop_database(const std::string& name, const bool deleteData);
- void recv_drop_database();
- void get_databases(std::vector & _return, const std::string& pattern);
- void send_get_databases(const std::string& pattern);
- void recv_get_databases(std::vector & _return);
- void get_all_databases(std::vector & _return);
- void send_get_all_databases();
- void recv_get_all_databases(std::vector & _return);
- void get_type(Type& _return, const std::string& name);
- void send_get_type(const std::string& name);
- void recv_get_type(Type& _return);
- bool create_type(const Type& type);
- void send_create_type(const Type& type);
- bool recv_create_type();
- bool drop_type(const std::string& type);
- void send_drop_type(const std::string& type);
- bool recv_drop_type();
- void get_type_all(std::map & _return, const std::string& name);
- void send_get_type_all(const std::string& name);
- void recv_get_type_all(std::map & _return);
- void get_fields(std::vector & _return, const std::string& db_name, const std::string& table_name);
- void send_get_fields(const std::string& db_name, const std::string& table_name);
- void recv_get_fields(std::vector & _return);
- void get_schema(std::vector & _return, const std::string& db_name, const std::string& table_name);
- void send_get_schema(const std::string& db_name, const std::string& table_name);
- void recv_get_schema(std::vector & _return);
- void create_table(const Table& tbl);
- void send_create_table(const Table& tbl);
- void recv_create_table();
- void drop_table(const std::string& dbname, const std::string& name, const bool deleteData);
- void send_drop_table(const std::string& dbname, const std::string& name, const bool deleteData);
- void recv_drop_table();
- void get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern);
- void send_get_tables(const std::string& db_name, const std::string& pattern);
- void recv_get_tables(std::vector & _return);
- void get_all_tables(std::vector & _return, const std::string& db_name);
- void send_get_all_tables(const std::string& db_name);
- void recv_get_all_tables(std::vector & _return);
- void get_table(Table& _return, const std::string& dbname, const std::string& tbl_name);
- void send_get_table(const std::string& dbname, const std::string& tbl_name);
- void recv_get_table(Table& _return);
- void alter_table(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl);
- void send_alter_table(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl);
- void recv_alter_table();
- void add_partition(Partition& _return, const Partition& new_part);
- void send_add_partition(const Partition& new_part);
- void recv_add_partition(Partition& _return);
- void append_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals);
- void send_append_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals);
- void recv_append_partition(Partition& _return);
- void append_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name);
- void send_append_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name);
- void recv_append_partition_by_name(Partition& _return);
- bool drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData);
- void send_drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData);
- bool recv_drop_partition();
- bool drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData);
- void send_drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData);
- bool recv_drop_partition_by_name();
- void get_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals);
- void send_get_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals);
- void recv_get_partition(Partition& _return);
- void get_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name);
- void send_get_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name);
- void recv_get_partition_by_name(Partition& _return);
- void get_partitions(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts);
- void send_get_partitions(const std::string& db_name, const std::string& tbl_name, const int16_t max_parts);
- void recv_get_partitions(std::vector & _return);
- void get_partition_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts);
- void send_get_partition_names(const std::string& db_name, const std::string& tbl_name, const int16_t max_parts);
- void recv_get_partition_names(std::vector & _return);
- void get_partitions_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts);
- void send_get_partitions_ps(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts);
- void recv_get_partitions_ps(std::vector & _return);
- 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);
- void send_get_partition_names_ps(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts);
- void recv_get_partition_names_ps(std::vector & _return);
- 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);
- void send_get_partitions_by_filter(const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts);
- void recv_get_partitions_by_filter(std::vector & _return);
- void alter_partition(const std::string& db_name, const std::string& tbl_name, const Partition& new_part);
- void send_alter_partition(const std::string& db_name, const std::string& tbl_name, const Partition& new_part);
- void recv_alter_partition();
- void get_config_value(std::string& _return, const std::string& name, const std::string& defaultValue);
- void send_get_config_value(const std::string& name, const std::string& defaultValue);
- void recv_get_config_value(std::string& _return);
- void partition_name_to_vals(std::vector & _return, const std::string& part_name);
- void send_partition_name_to_vals(const std::string& part_name);
- void recv_partition_name_to_vals(std::vector & _return);
- void partition_name_to_spec(std::map & _return, const std::string& part_name);
- void send_partition_name_to_spec(const std::string& part_name);
- void recv_partition_name_to_spec(std::map & _return);
- void add_index(Index& _return, const Index& new_index, const Table& index_table);
- void send_add_index(const Index& new_index, const Table& index_table);
- void recv_add_index(Index& _return);
- void alter_index(const std::string& dbname, const std::string& base_tbl_name, const std::string& idx_name, const Index& new_idx);
- void send_alter_index(const std::string& dbname, const std::string& base_tbl_name, const std::string& idx_name, const Index& new_idx);
- void recv_alter_index();
- bool drop_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name, const bool deleteData);
- void send_drop_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name, const bool deleteData);
- bool recv_drop_index_by_name();
- void get_index_by_name(Index& _return, const std::string& db_name, const std::string& tbl_name, const std::string& index_name);
- void send_get_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name);
- void recv_get_index_by_name(Index& _return);
- void get_indexes(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes);
- void send_get_indexes(const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes);
- void recv_get_indexes(std::vector & _return);
- void get_index_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes);
- void send_get_index_names(const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes);
- void recv_get_index_names(std::vector & _return);
-};
-
-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);
- 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_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_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_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_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_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_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_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_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);
- public:
- ThriftHiveMetastoreProcessor(boost::shared_ptr iface) :
- facebook::fb303::FacebookServiceProcessor(iface),
- iface_(iface) {
- processMap_["create_database"] = &ThriftHiveMetastoreProcessor::process_create_database;
- processMap_["get_database"] = &ThriftHiveMetastoreProcessor::process_get_database;
- processMap_["drop_database"] = &ThriftHiveMetastoreProcessor::process_drop_database;
- processMap_["get_databases"] = &ThriftHiveMetastoreProcessor::process_get_databases;
- processMap_["get_all_databases"] = &ThriftHiveMetastoreProcessor::process_get_all_databases;
- processMap_["get_type"] = &ThriftHiveMetastoreProcessor::process_get_type;
- processMap_["create_type"] = &ThriftHiveMetastoreProcessor::process_create_type;
- processMap_["drop_type"] = &ThriftHiveMetastoreProcessor::process_drop_type;
- processMap_["get_type_all"] = &ThriftHiveMetastoreProcessor::process_get_type_all;
- processMap_["get_fields"] = &ThriftHiveMetastoreProcessor::process_get_fields;
- processMap_["get_schema"] = &ThriftHiveMetastoreProcessor::process_get_schema;
- processMap_["create_table"] = &ThriftHiveMetastoreProcessor::process_create_table;
- processMap_["drop_table"] = &ThriftHiveMetastoreProcessor::process_drop_table;
- processMap_["get_tables"] = &ThriftHiveMetastoreProcessor::process_get_tables;
- processMap_["get_all_tables"] = &ThriftHiveMetastoreProcessor::process_get_all_tables;
- processMap_["get_table"] = &ThriftHiveMetastoreProcessor::process_get_table;
- processMap_["alter_table"] = &ThriftHiveMetastoreProcessor::process_alter_table;
- processMap_["add_partition"] = &ThriftHiveMetastoreProcessor::process_add_partition;
- processMap_["append_partition"] = &ThriftHiveMetastoreProcessor::process_append_partition;
- processMap_["append_partition_by_name"] = &ThriftHiveMetastoreProcessor::process_append_partition_by_name;
- processMap_["drop_partition"] = &ThriftHiveMetastoreProcessor::process_drop_partition;
- processMap_["drop_partition_by_name"] = &ThriftHiveMetastoreProcessor::process_drop_partition_by_name;
- processMap_["get_partition"] = &ThriftHiveMetastoreProcessor::process_get_partition;
- processMap_["get_partition_by_name"] = &ThriftHiveMetastoreProcessor::process_get_partition_by_name;
- processMap_["get_partitions"] = &ThriftHiveMetastoreProcessor::process_get_partitions;
- processMap_["get_partition_names"] = &ThriftHiveMetastoreProcessor::process_get_partition_names;
- processMap_["get_partitions_ps"] = &ThriftHiveMetastoreProcessor::process_get_partitions_ps;
- processMap_["get_partition_names_ps"] = &ThriftHiveMetastoreProcessor::process_get_partition_names_ps;
- processMap_["get_partitions_by_filter"] = &ThriftHiveMetastoreProcessor::process_get_partitions_by_filter;
- processMap_["alter_partition"] = &ThriftHiveMetastoreProcessor::process_alter_partition;
- processMap_["get_config_value"] = &ThriftHiveMetastoreProcessor::process_get_config_value;
- processMap_["partition_name_to_vals"] = &ThriftHiveMetastoreProcessor::process_partition_name_to_vals;
- processMap_["partition_name_to_spec"] = &ThriftHiveMetastoreProcessor::process_partition_name_to_spec;
- processMap_["add_index"] = &ThriftHiveMetastoreProcessor::process_add_index;
- processMap_["alter_index"] = &ThriftHiveMetastoreProcessor::process_alter_index;
- processMap_["drop_index_by_name"] = &ThriftHiveMetastoreProcessor::process_drop_index_by_name;
- processMap_["get_index_by_name"] = &ThriftHiveMetastoreProcessor::process_get_index_by_name;
- processMap_["get_indexes"] = &ThriftHiveMetastoreProcessor::process_get_indexes;
- processMap_["get_index_names"] = &ThriftHiveMetastoreProcessor::process_get_index_names;
- }
-
- virtual bool process(boost::shared_ptr piprot, boost::shared_ptr poprot);
- virtual ~ThriftHiveMetastoreProcessor() {}
-};
-
-class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, public facebook::fb303::FacebookServiceMultiface {
- public:
- ThriftHiveMetastoreMultiface(std::vector >& ifaces) : ifaces_(ifaces) {
- std::vector >::iterator iter;
- for (iter = ifaces.begin(); iter != ifaces.end(); ++iter) {
- facebook::fb303::FacebookServiceMultiface::add(*iter);
- }
- }
- virtual ~ThriftHiveMetastoreMultiface() {}
- protected:
- std::vector > ifaces_;
- ThriftHiveMetastoreMultiface() {}
- void add(boost::shared_ptr iface) {
- facebook::fb303::FacebookServiceMultiface::add(iface);
- ifaces_.push_back(iface);
- }
- public:
- void create_database(const Database& database) {
- uint32_t sz = ifaces_.size();
- for (uint32_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) {
- if (i == sz - 1) {
- ifaces_[i]->get_database(_return, name);
- return;
- } else {
- ifaces_[i]->get_database(_return, name);
- }
- }
- }
-
- void drop_database(const std::string& name, const bool deleteData) {
- uint32_t sz = ifaces_.size();
- for (uint32_t i = 0; i < sz; ++i) {
- ifaces_[i]->drop_database(name, deleteData);
- }
- }
-
- void get_databases(std::vector & _return, const std::string& pattern) {
- uint32_t sz = ifaces_.size();
- for (uint32_t i = 0; i < sz; ++i) {
- if (i == sz - 1) {
- ifaces_[i]->get_databases(_return, pattern);
- return;
- } else {
- ifaces_[i]->get_databases(_return, pattern);
- }
- }
- }
-
- void get_all_databases(std::vector & _return) {
- uint32_t sz = ifaces_.size();
- for (uint32_t i = 0; i < sz; ++i) {
- if (i == sz - 1) {
- ifaces_[i]->get_all_databases(_return);
- return;
- } else {
- ifaces_[i]->get_all_databases(_return);
- }
- }
- }
-
- void get_type(Type& _return, const std::string& name) {
- uint32_t sz = ifaces_.size();
- for (uint32_t i = 0; i < sz; ++i) {
- if (i == sz - 1) {
- ifaces_[i]->get_type(_return, name);
- return;
- } else {
- ifaces_[i]->get_type(_return, name);
- }
- }
- }
-
- bool create_type(const Type& type) {
- uint32_t sz = ifaces_.size();
- for (uint32_t i = 0; i < sz; ++i) {
- if (i == sz - 1) {
- return ifaces_[i]->create_type(type);
- } else {
- ifaces_[i]->create_type(type);
- }
- }
- }
-
- bool drop_type(const std::string& type) {
- uint32_t sz = ifaces_.size();
- for (uint32_t i = 0; i < sz; ++i) {
- if (i == sz - 1) {
- return ifaces_[i]->drop_type(type);
- } else {
- ifaces_[i]->drop_type(type);
- }
- }
- }
-
- void get_type_all(std::map & _return, const std::string& name) {
- uint32_t sz = ifaces_.size();
- for (uint32_t i = 0; i < sz; ++i) {
- if (i == sz - 1) {
- ifaces_[i]->get_type_all(_return, name);
- return;
- } else {
- ifaces_[i]->get_type_all(_return, name);
- }
- }
- }
-
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->get_fields(_return, db_name, table_name);
- return;
- } else {
- ifaces_[i]->get_fields(_return, db_name, table_name);
- }
- }
- }
-
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->get_schema(_return, db_name, table_name);
- return;
- } else {
- ifaces_[i]->get_schema(_return, db_name, table_name);
- }
- }
- }
-
- void create_table(const Table& tbl) {
- uint32_t sz = ifaces_.size();
- for (uint32_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) {
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->get_tables(_return, db_name, pattern);
- return;
- } else {
- ifaces_[i]->get_tables(_return, db_name, pattern);
- }
- }
- }
-
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->get_all_tables(_return, db_name);
- return;
- } else {
- ifaces_[i]->get_all_tables(_return, db_name);
- }
- }
- }
-
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->get_table(_return, dbname, tbl_name);
- return;
- } else {
- ifaces_[i]->get_table(_return, dbname, tbl_name);
- }
- }
- }
-
- 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) {
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->add_partition(_return, new_part);
- return;
- } else {
- ifaces_[i]->add_partition(_return, new_part);
- }
- }
- }
-
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->append_partition(_return, db_name, tbl_name, part_vals);
- return;
- } else {
- ifaces_[i]->append_partition(_return, db_name, tbl_name, part_vals);
- }
- }
- }
-
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->append_partition_by_name(_return, db_name, tbl_name, part_name);
- return;
- } else {
- ifaces_[i]->append_partition_by_name(_return, db_name, tbl_name, part_name);
- }
- }
- }
-
- 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) {
- if (i == sz - 1) {
- return ifaces_[i]->drop_partition(db_name, tbl_name, part_vals, deleteData);
- } else {
- ifaces_[i]->drop_partition(db_name, tbl_name, part_vals, deleteData);
- }
- }
- }
-
- 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) {
- if (i == sz - 1) {
- return ifaces_[i]->drop_partition_by_name(db_name, tbl_name, part_name, deleteData);
- } else {
- ifaces_[i]->drop_partition_by_name(db_name, tbl_name, part_name, deleteData);
- }
- }
- }
-
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->get_partition(_return, db_name, tbl_name, part_vals);
- return;
- } else {
- ifaces_[i]->get_partition(_return, db_name, tbl_name, part_vals);
- }
- }
- }
-
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->get_partition_by_name(_return, db_name, tbl_name, part_name);
- return;
- } else {
- ifaces_[i]->get_partition_by_name(_return, db_name, tbl_name, part_name);
- }
- }
- }
-
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->get_partitions(_return, db_name, tbl_name, max_parts);
- return;
- } else {
- ifaces_[i]->get_partitions(_return, db_name, tbl_name, max_parts);
- }
- }
- }
-
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->get_partition_names(_return, db_name, tbl_name, max_parts);
- return;
- } else {
- ifaces_[i]->get_partition_names(_return, db_name, tbl_name, max_parts);
- }
- }
- }
-
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->get_partitions_ps(_return, db_name, tbl_name, part_vals, max_parts);
- return;
- } else {
- ifaces_[i]->get_partitions_ps(_return, db_name, tbl_name, part_vals, max_parts);
- }
- }
- }
-
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->get_partition_names_ps(_return, db_name, tbl_name, part_vals, max_parts);
- return;
- } else {
- ifaces_[i]->get_partition_names_ps(_return, db_name, tbl_name, part_vals, max_parts);
- }
- }
- }
-
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->get_partitions_by_filter(_return, db_name, tbl_name, filter, max_parts);
- return;
- } else {
- ifaces_[i]->get_partitions_by_filter(_return, db_name, tbl_name, filter, max_parts);
- }
- }
- }
-
- 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) {
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->get_config_value(_return, name, defaultValue);
- return;
- } else {
- ifaces_[i]->get_config_value(_return, name, defaultValue);
- }
- }
- }
-
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->partition_name_to_vals(_return, part_name);
- return;
- } else {
- ifaces_[i]->partition_name_to_vals(_return, part_name);
- }
- }
- }
-
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->partition_name_to_spec(_return, part_name);
- return;
- } else {
- ifaces_[i]->partition_name_to_spec(_return, part_name);
- }
- }
- }
-
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->add_index(_return, new_index, index_table);
- return;
- } else {
- ifaces_[i]->add_index(_return, new_index, index_table);
- }
- }
- }
-
- 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) {
- 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) {
- if (i == sz - 1) {
- return ifaces_[i]->drop_index_by_name(db_name, tbl_name, index_name, deleteData);
- } else {
- ifaces_[i]->drop_index_by_name(db_name, tbl_name, index_name, deleteData);
- }
- }
- }
-
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->get_index_by_name(_return, db_name, tbl_name, index_name);
- return;
- } else {
- ifaces_[i]->get_index_by_name(_return, db_name, tbl_name, index_name);
- }
- }
- }
-
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->get_indexes(_return, db_name, tbl_name, max_indexes);
- return;
- } else {
- ifaces_[i]->get_indexes(_return, db_name, tbl_name, max_indexes);
- }
- }
- }
-
- 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) {
- if (i == sz - 1) {
- ifaces_[i]->get_index_names(_return, db_name, tbl_name, max_indexes);
- return;
- } else {
- ifaces_[i]->get_index_names(_return, db_name, tbl_name, max_indexes);
- }
- }
- }
-
-};
-
-}}} // namespace
-
-#endif
diff --git metastore/src/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp metastore/src/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp
deleted file mode 100644
index 3ef03b5..0000000
--- metastore/src/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp
+++ /dev/null
@@ -1,234 +0,0 @@
-// This autogenerated skeleton file illustrates how to build a server.
-// You should copy it to another filename to avoid overwriting it.
-
-#include "ThriftHiveMetastore.h"
-#include
-#include
-#include
-#include
-
-using namespace apache::thrift;
-using namespace apache::thrift::protocol;
-using namespace apache::thrift::transport;
-using namespace apache::thrift::server;
-
-using boost::shared_ptr;
-
-using namespace Apache::Hadoop::Hive;
-
-class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf {
- public:
- ThriftHiveMetastoreHandler() {
- // Your initialization goes here
- }
-
- void create_database(const Database& database) {
- // Your implementation goes here
- printf("create_database\n");
- }
-
- void get_database(Database& _return, const std::string& name) {
- // Your implementation goes here
- printf("get_database\n");
- }
-
- void drop_database(const std::string& name, const bool deleteData) {
- // Your implementation goes here
- printf("drop_database\n");
- }
-
- void get_databases(std::vector & _return, const std::string& pattern) {
- // Your implementation goes here
- printf("get_databases\n");
- }
-
- void get_all_databases(std::vector & _return) {
- // Your implementation goes here
- printf("get_all_databases\n");
- }
-
- void get_type(Type& _return, const std::string& name) {
- // Your implementation goes here
- printf("get_type\n");
- }
-
- bool create_type(const Type& type) {
- // Your implementation goes here
- printf("create_type\n");
- }
-
- bool drop_type(const std::string& type) {
- // Your implementation goes here
- printf("drop_type\n");
- }
-
- void get_type_all(std::map & _return, const std::string& name) {
- // Your implementation goes here
- printf("get_type_all\n");
- }
-
- void get_fields(std::vector & _return, const std::string& db_name, const std::string& table_name) {
- // Your implementation goes here
- printf("get_fields\n");
- }
-
- void get_schema(std::vector & _return, const std::string& db_name, const std::string& table_name) {
- // Your implementation goes here
- printf("get_schema\n");
- }
-
- void create_table(const Table& tbl) {
- // Your implementation goes here
- printf("create_table\n");
- }
-
- void drop_table(const std::string& dbname, const std::string& name, const bool deleteData) {
- // Your implementation goes here
- printf("drop_table\n");
- }
-
- void get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern) {
- // Your implementation goes here
- printf("get_tables\n");
- }
-
- void get_all_tables(std::vector & _return, const std::string& db_name) {
- // Your implementation goes here
- printf("get_all_tables\n");
- }
-
- void get_table(Table& _return, const std::string& dbname, const std::string& tbl_name) {
- // Your implementation goes here
- printf("get_table\n");
- }
-
- void alter_table(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl) {
- // Your implementation goes here
- printf("alter_table\n");
- }
-
- void add_partition(Partition& _return, const Partition& new_part) {
- // Your implementation goes here
- printf("add_partition\n");
- }
-
- void append_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals) {
- // Your implementation goes here
- printf("append_partition\n");
- }
-
- void append_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name) {
- // Your implementation goes here
- printf("append_partition_by_name\n");
- }
-
- bool drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData) {
- // Your implementation goes here
- printf("drop_partition\n");
- }
-
- bool drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData) {
- // Your implementation goes here
- printf("drop_partition_by_name\n");
- }
-
- void get_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector