diff --git bin/ext/hiveserver2.sh bin/ext/hiveserver2.sh
index 42d3d79..1f02bb4 100644
--- bin/ext/hiveserver2.sh
+++ bin/ext/hiveserver2.sh
@@ -21,7 +21,7 @@ hiveserver2() {
if $cygwin; then
HIVE_LIB=`cygpath -w "$HIVE_LIB"`
fi
- JAR=${HIVE_LIB}/hive-service-*.jar
+ JAR=${HIVE_LIB}/hive-service-[0-9].*.jar
exec $HADOOP jar $JAR $CLASS $HIVE_OPTS "$@"
}
diff --git bin/ext/metastore.sh bin/ext/metastore.sh
index 22b2d5d..095e6e2 100644
--- bin/ext/metastore.sh
+++ bin/ext/metastore.sh
@@ -22,7 +22,7 @@ metastore() {
if $cygwin; then
HIVE_LIB=`cygpath -w "$HIVE_LIB"`
fi
- JAR=${HIVE_LIB}/hive-service-*.jar
+ JAR=${HIVE_LIB}/hive-metastore-*.jar
# hadoop 20 or newer - skip the aux_jars option and hiveconf
diff --git itests/hive-unit/src/test/java/org/apache/hive/service/cli/session/TestHiveSessionImpl.java itests/hive-unit/src/test/java/org/apache/hive/service/cli/session/TestHiveSessionImpl.java
index 8a32a07..4b23385 100644
--- itests/hive-unit/src/test/java/org/apache/hive/service/cli/session/TestHiveSessionImpl.java
+++ itests/hive-unit/src/test/java/org/apache/hive/service/cli/session/TestHiveSessionImpl.java
@@ -23,7 +23,7 @@
import org.apache.hive.service.cli.OperationHandle;
import org.apache.hive.service.cli.operation.ExecuteStatementOperation;
import org.apache.hive.service.cli.operation.OperationManager;
-import org.apache.hive.service.cli.thrift.TProtocolVersion;
+import org.apache.hive.service.rpc.thrift.TProtocolVersion;
import org.junit.Assert;
import org.junit.Test;
import org.mockito.Mockito;
diff --git itests/hive-unit/src/test/java/org/apache/hive/service/cli/thrift/TestThriftHttpCLIService.java itests/hive-unit/src/test/java/org/apache/hive/service/cli/thrift/TestThriftHttpCLIService.java
index b1e53a6..3ed6dd8 100644
--- itests/hive-unit/src/test/java/org/apache/hive/service/cli/thrift/TestThriftHttpCLIService.java
+++ itests/hive-unit/src/test/java/org/apache/hive/service/cli/thrift/TestThriftHttpCLIService.java
@@ -30,6 +30,8 @@
import org.apache.hive.jdbc.HttpBasicAuthInterceptor;
import org.apache.hive.service.auth.HiveAuthFactory;
import org.apache.hive.service.auth.HiveAuthFactory.AuthTypes;
+import org.apache.hive.service.rpc.thrift.TCLIService;
+import org.apache.hive.service.rpc.thrift.TOpenSessionReq;
import org.apache.http.HttpException;
import org.apache.http.HttpRequest;
import org.apache.http.client.CookieStore;
@@ -236,4 +238,4 @@ public void testAdditionalHttpHeaders() throws Exception {
assertTrue(h.contains("key2:value2"));
}
}
-}
\ No newline at end of file
+}
diff --git jdbc/pom.xml jdbc/pom.xml
index da6c291..f87ab59 100644
--- jdbc/pom.xml
+++ jdbc/pom.xml
@@ -66,6 +66,11 @@
hive-shims
${project.version}
+
+ org.apache.hive
+ hive-service-rpc
+ ${project.version}
+
org.apache.httpcomponents
diff --git jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java
index 3c5dc0c..24a6edd 100644
--- jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java
+++ jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java
@@ -24,18 +24,18 @@
import org.apache.hive.service.auth.PlainSaslHelper;
import org.apache.hive.service.auth.SaslQOP;
import org.apache.hive.service.cli.thrift.EmbeddedThriftBinaryCLIService;
-import org.apache.hive.service.cli.thrift.TCLIService;
-import org.apache.hive.service.cli.thrift.TCancelDelegationTokenReq;
-import org.apache.hive.service.cli.thrift.TCancelDelegationTokenResp;
-import org.apache.hive.service.cli.thrift.TCloseSessionReq;
-import org.apache.hive.service.cli.thrift.TGetDelegationTokenReq;
-import org.apache.hive.service.cli.thrift.TGetDelegationTokenResp;
-import org.apache.hive.service.cli.thrift.TOpenSessionReq;
-import org.apache.hive.service.cli.thrift.TOpenSessionResp;
-import org.apache.hive.service.cli.thrift.TProtocolVersion;
-import org.apache.hive.service.cli.thrift.TRenewDelegationTokenReq;
-import org.apache.hive.service.cli.thrift.TRenewDelegationTokenResp;
-import org.apache.hive.service.cli.thrift.TSessionHandle;
+import org.apache.hive.service.rpc.thrift.TCLIService;
+import org.apache.hive.service.rpc.thrift.TCancelDelegationTokenReq;
+import org.apache.hive.service.rpc.thrift.TCancelDelegationTokenResp;
+import org.apache.hive.service.rpc.thrift.TCloseSessionReq;
+import org.apache.hive.service.rpc.thrift.TGetDelegationTokenReq;
+import org.apache.hive.service.rpc.thrift.TGetDelegationTokenResp;
+import org.apache.hive.service.rpc.thrift.TOpenSessionReq;
+import org.apache.hive.service.rpc.thrift.TOpenSessionResp;
+import org.apache.hive.service.rpc.thrift.TProtocolVersion;
+import org.apache.hive.service.rpc.thrift.TRenewDelegationTokenReq;
+import org.apache.hive.service.rpc.thrift.TRenewDelegationTokenResp;
+import org.apache.hive.service.rpc.thrift.TSessionHandle;
import org.apache.http.HttpRequestInterceptor;
import org.apache.http.HttpResponse;
import org.apache.http.client.CookieStore;
diff --git jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java
index a73f443..7e54d1f 100644
--- jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java
+++ jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java
@@ -29,25 +29,26 @@
import org.apache.hadoop.hive.metastore.TableType;
import org.apache.hive.service.cli.GetInfoType;
-import org.apache.hive.service.cli.thrift.TCLIService;
-import org.apache.hive.service.cli.thrift.TGetCatalogsReq;
-import org.apache.hive.service.cli.thrift.TGetCatalogsResp;
-import org.apache.hive.service.cli.thrift.TGetColumnsReq;
-import org.apache.hive.service.cli.thrift.TGetColumnsResp;
-import org.apache.hive.service.cli.thrift.TGetFunctionsReq;
-import org.apache.hive.service.cli.thrift.TGetFunctionsResp;
-import org.apache.hive.service.cli.thrift.TGetInfoReq;
-import org.apache.hive.service.cli.thrift.TGetInfoResp;
-import org.apache.hive.service.cli.thrift.TGetInfoType;
-import org.apache.hive.service.cli.thrift.TGetSchemasReq;
-import org.apache.hive.service.cli.thrift.TGetSchemasResp;
-import org.apache.hive.service.cli.thrift.TGetTableTypesReq;
-import org.apache.hive.service.cli.thrift.TGetTableTypesResp;
-import org.apache.hive.service.cli.thrift.TGetTablesReq;
-import org.apache.hive.service.cli.thrift.TGetTablesResp;
-import org.apache.hive.service.cli.thrift.TGetTypeInfoReq;
-import org.apache.hive.service.cli.thrift.TGetTypeInfoResp;
-import org.apache.hive.service.cli.thrift.TSessionHandle;
+import org.apache.hive.service.rpc.thrift.TCLIService;
+import org.apache.hive.service.rpc.thrift.TCLIService.Iface;
+import org.apache.hive.service.rpc.thrift.TGetCatalogsReq;
+import org.apache.hive.service.rpc.thrift.TGetCatalogsResp;
+import org.apache.hive.service.rpc.thrift.TGetColumnsReq;
+import org.apache.hive.service.rpc.thrift.TGetColumnsResp;
+import org.apache.hive.service.rpc.thrift.TGetFunctionsReq;
+import org.apache.hive.service.rpc.thrift.TGetFunctionsResp;
+import org.apache.hive.service.rpc.thrift.TGetInfoReq;
+import org.apache.hive.service.rpc.thrift.TGetInfoResp;
+import org.apache.hive.service.rpc.thrift.TGetInfoType;
+import org.apache.hive.service.rpc.thrift.TGetSchemasReq;
+import org.apache.hive.service.rpc.thrift.TGetSchemasResp;
+import org.apache.hive.service.rpc.thrift.TGetTableTypesReq;
+import org.apache.hive.service.rpc.thrift.TGetTableTypesResp;
+import org.apache.hive.service.rpc.thrift.TGetTablesReq;
+import org.apache.hive.service.rpc.thrift.TGetTablesResp;
+import org.apache.hive.service.rpc.thrift.TGetTypeInfoReq;
+import org.apache.hive.service.rpc.thrift.TGetTypeInfoResp;
+import org.apache.hive.service.rpc.thrift.TSessionHandle;
import org.apache.thrift.TException;
/**
diff --git jdbc/src/java/org/apache/hive/jdbc/HivePreparedStatement.java jdbc/src/java/org/apache/hive/jdbc/HivePreparedStatement.java
index c28b7d6..705a32a 100644
--- jdbc/src/java/org/apache/hive/jdbc/HivePreparedStatement.java
+++ jdbc/src/java/org/apache/hive/jdbc/HivePreparedStatement.java
@@ -43,8 +43,8 @@
import java.util.HashMap;
import java.util.Scanner;
-import org.apache.hive.service.cli.thrift.TCLIService;
-import org.apache.hive.service.cli.thrift.TSessionHandle;
+import org.apache.hive.service.rpc.thrift.TCLIService;
+import org.apache.hive.service.rpc.thrift.TSessionHandle;
/**
* HivePreparedStatement.
diff --git jdbc/src/java/org/apache/hive/jdbc/HiveQueryResultSet.java jdbc/src/java/org/apache/hive/jdbc/HiveQueryResultSet.java
index 245c6a3..8f67209 100644
--- jdbc/src/java/org/apache/hive/jdbc/HiveQueryResultSet.java
+++ jdbc/src/java/org/apache/hive/jdbc/HiveQueryResultSet.java
@@ -18,42 +18,42 @@
package org.apache.hive.jdbc;
-import static org.apache.hive.service.cli.thrift.TCLIServiceConstants.TYPE_NAMES;
+import static org.apache.hive.service.rpc.thrift.TCLIServiceConstants.TYPE_NAMES;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
-import java.sql.Statement;
import java.sql.SQLException;
+import java.sql.Statement;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.locks.ReentrantLock;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
import org.apache.hadoop.hive.common.type.HiveDecimal;
import org.apache.hive.service.cli.RowSet;
import org.apache.hive.service.cli.RowSetFactory;
import org.apache.hive.service.cli.TableSchema;
-import org.apache.hive.service.cli.thrift.TCLIService;
-import org.apache.hive.service.cli.thrift.TCLIServiceConstants;
-import org.apache.hive.service.cli.thrift.TCloseOperationReq;
-import org.apache.hive.service.cli.thrift.TCloseOperationResp;
-import org.apache.hive.service.cli.thrift.TColumnDesc;
-import org.apache.hive.service.cli.thrift.TFetchOrientation;
-import org.apache.hive.service.cli.thrift.TFetchResultsReq;
-import org.apache.hive.service.cli.thrift.TFetchResultsResp;
-import org.apache.hive.service.cli.thrift.TGetResultSetMetadataReq;
-import org.apache.hive.service.cli.thrift.TGetResultSetMetadataResp;
-import org.apache.hive.service.cli.thrift.TOperationHandle;
-import org.apache.hive.service.cli.thrift.TPrimitiveTypeEntry;
-import org.apache.hive.service.cli.thrift.TProtocolVersion;
-import org.apache.hive.service.cli.thrift.TRowSet;
-import org.apache.hive.service.cli.thrift.TSessionHandle;
-import org.apache.hive.service.cli.thrift.TTableSchema;
-import org.apache.hive.service.cli.thrift.TTypeQualifierValue;
-import org.apache.hive.service.cli.thrift.TTypeQualifiers;
+import org.apache.hive.service.rpc.thrift.TCLIService;
+import org.apache.hive.service.rpc.thrift.TCLIServiceConstants;
+import org.apache.hive.service.rpc.thrift.TCloseOperationReq;
+import org.apache.hive.service.rpc.thrift.TCloseOperationResp;
+import org.apache.hive.service.rpc.thrift.TColumnDesc;
+import org.apache.hive.service.rpc.thrift.TFetchOrientation;
+import org.apache.hive.service.rpc.thrift.TFetchResultsReq;
+import org.apache.hive.service.rpc.thrift.TFetchResultsResp;
+import org.apache.hive.service.rpc.thrift.TGetResultSetMetadataReq;
+import org.apache.hive.service.rpc.thrift.TGetResultSetMetadataResp;
+import org.apache.hive.service.rpc.thrift.TOperationHandle;
+import org.apache.hive.service.rpc.thrift.TPrimitiveTypeEntry;
+import org.apache.hive.service.rpc.thrift.TProtocolVersion;
+import org.apache.hive.service.rpc.thrift.TRowSet;
+import org.apache.hive.service.rpc.thrift.TSessionHandle;
+import org.apache.hive.service.rpc.thrift.TTableSchema;
+import org.apache.hive.service.rpc.thrift.TTypeQualifierValue;
+import org.apache.hive.service.rpc.thrift.TTypeQualifiers;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
/**
* HiveQueryResultSet.
diff --git jdbc/src/java/org/apache/hive/jdbc/HiveResultSetMetaData.java jdbc/src/java/org/apache/hive/jdbc/HiveResultSetMetaData.java
index aa6f58a..16a0894 100644
--- jdbc/src/java/org/apache/hive/jdbc/HiveResultSetMetaData.java
+++ jdbc/src/java/org/apache/hive/jdbc/HiveResultSetMetaData.java
@@ -21,6 +21,7 @@
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.List;
+
import org.apache.hive.service.cli.Type;
/**
diff --git jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java
index 3f9024a..b4dba44 100644
--- jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java
+++ jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java
@@ -20,20 +20,20 @@
import org.apache.hive.service.cli.RowSet;
import org.apache.hive.service.cli.RowSetFactory;
-import org.apache.hive.service.cli.thrift.TCLIService;
-import org.apache.hive.service.cli.thrift.TCancelOperationReq;
-import org.apache.hive.service.cli.thrift.TCancelOperationResp;
-import org.apache.hive.service.cli.thrift.TCloseOperationReq;
-import org.apache.hive.service.cli.thrift.TCloseOperationResp;
-import org.apache.hive.service.cli.thrift.TExecuteStatementReq;
-import org.apache.hive.service.cli.thrift.TExecuteStatementResp;
-import org.apache.hive.service.cli.thrift.TFetchOrientation;
-import org.apache.hive.service.cli.thrift.TFetchResultsReq;
-import org.apache.hive.service.cli.thrift.TFetchResultsResp;
-import org.apache.hive.service.cli.thrift.TGetOperationStatusReq;
-import org.apache.hive.service.cli.thrift.TGetOperationStatusResp;
-import org.apache.hive.service.cli.thrift.TOperationHandle;
-import org.apache.hive.service.cli.thrift.TSessionHandle;
+import org.apache.hive.service.rpc.thrift.TCLIService;
+import org.apache.hive.service.rpc.thrift.TCancelOperationReq;
+import org.apache.hive.service.rpc.thrift.TCancelOperationResp;
+import org.apache.hive.service.rpc.thrift.TCloseOperationReq;
+import org.apache.hive.service.rpc.thrift.TCloseOperationResp;
+import org.apache.hive.service.rpc.thrift.TExecuteStatementReq;
+import org.apache.hive.service.rpc.thrift.TExecuteStatementResp;
+import org.apache.hive.service.rpc.thrift.TFetchOrientation;
+import org.apache.hive.service.rpc.thrift.TFetchResultsReq;
+import org.apache.hive.service.rpc.thrift.TFetchResultsResp;
+import org.apache.hive.service.rpc.thrift.TGetOperationStatusReq;
+import org.apache.hive.service.rpc.thrift.TGetOperationStatusResp;
+import org.apache.hive.service.rpc.thrift.TOperationHandle;
+import org.apache.hive.service.rpc.thrift.TSessionHandle;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
diff --git jdbc/src/java/org/apache/hive/jdbc/JdbcColumn.java jdbc/src/java/org/apache/hive/jdbc/JdbcColumn.java
index a941f3d..691fd0e 100644
--- jdbc/src/java/org/apache/hive/jdbc/JdbcColumn.java
+++ jdbc/src/java/org/apache/hive/jdbc/JdbcColumn.java
@@ -18,17 +18,17 @@
package org.apache.hive.jdbc;
-import org.apache.hadoop.hive.common.type.HiveIntervalDayTime;
-import org.apache.hadoop.hive.common.type.HiveIntervalYearMonth;
-import org.apache.hadoop.hive.serde.serdeConstants;
-import org.apache.hive.service.cli.Type;
-
import java.math.BigInteger;
import java.sql.Date;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.sql.Types;
+import org.apache.hadoop.hive.common.type.HiveIntervalDayTime;
+import org.apache.hadoop.hive.common.type.HiveIntervalYearMonth;
+import org.apache.hadoop.hive.serde.serdeConstants;
+import org.apache.hive.service.cli.Type;
+
/**
* Column metadata.
diff --git jdbc/src/java/org/apache/hive/jdbc/Utils.java jdbc/src/java/org/apache/hive/jdbc/Utils.java
index c9fbe1f..b27e7bf 100644
--- jdbc/src/java/org/apache/hive/jdbc/Utils.java
+++ jdbc/src/java/org/apache/hive/jdbc/Utils.java
@@ -30,8 +30,8 @@
import java.util.regex.Pattern;
import org.apache.hive.service.cli.HiveSQLException;
-import org.apache.hive.service.cli.thrift.TStatus;
-import org.apache.hive.service.cli.thrift.TStatusCode;
+import org.apache.hive.service.rpc.thrift.TStatus;
+import org.apache.hive.service.rpc.thrift.TStatusCode;
import org.apache.http.client.CookieStore;
import org.apache.http.cookie.Cookie;
import org.slf4j.Logger;
diff --git jdbc/src/test/org/apache/hive/jdbc/HiveStatementTest.java jdbc/src/test/org/apache/hive/jdbc/HiveStatementTest.java
index 1acdb4c..3ccd5df 100644
--- jdbc/src/test/org/apache/hive/jdbc/HiveStatementTest.java
+++ jdbc/src/test/org/apache/hive/jdbc/HiveStatementTest.java
@@ -17,11 +17,11 @@
*/
package org.apache.hive.jdbc;
-import org.junit.Test;
+import static org.junit.Assert.assertEquals;
import java.sql.SQLException;
-import static org.junit.Assert.assertEquals;
+import org.junit.Test;
public class HiveStatementTest {
diff --git packaging/pom.xml packaging/pom.xml
index 9ad3bde..4ebd386 100644
--- packaging/pom.xml
+++ packaging/pom.xml
@@ -121,6 +121,11 @@
org.apache.hive
+ hive-service-rpc
+ ${project.version}
+
+
+ org.apache.hive
hive-service
${project.version}
diff --git pom.xml pom.xml
index fb62e2d..eab8290 100644
--- pom.xml
+++ pom.xml
@@ -44,9 +44,9 @@
jdbc
metastore
odbc
- orc
ql
serde
+ service-rpc
service
llap-server
llap-client
diff --git service-rpc/if/TCLIService.thrift service-rpc/if/TCLIService.thrift
new file mode 100644
index 0000000..65a0382
--- /dev/null
+++ service-rpc/if/TCLIService.thrift
@@ -0,0 +1,1174 @@
+// 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.
+
+// Coding Conventions for this file:
+//
+// Structs/Enums/Unions
+// * Struct, Enum, and Union names begin with a "T",
+// and use a capital letter for each new word, with no underscores.
+// * All fields should be declared as either optional or required.
+//
+// Functions
+// * Function names start with a capital letter and have a capital letter for
+// each new word, with no underscores.
+// * Each function should take exactly one parameter, named TFunctionNameReq,
+// and should return either void or TFunctionNameResp. This convention allows
+// incremental updates.
+//
+// Services
+// * Service names begin with the letter "T", use a capital letter for each
+// new word (with no underscores), and end with the word "Service".
+
+namespace java org.apache.hive.service.rpc.thrift
+namespace cpp apache.hive.service.rpc.thrift
+
+// List of protocol versions. A new token should be
+// added to the end of this list every time a change is made.
+enum TProtocolVersion {
+ HIVE_CLI_SERVICE_PROTOCOL_V1,
+
+ // V2 adds support for asynchronous execution
+ HIVE_CLI_SERVICE_PROTOCOL_V2
+
+ // V3 add varchar type, primitive type qualifiers
+ HIVE_CLI_SERVICE_PROTOCOL_V3
+
+ // V4 add decimal precision/scale, char type
+ HIVE_CLI_SERVICE_PROTOCOL_V4
+
+ // V5 adds error details when GetOperationStatus returns in error state
+ HIVE_CLI_SERVICE_PROTOCOL_V5
+
+ // V6 uses binary type for binary payload (was string) and uses columnar result set
+ HIVE_CLI_SERVICE_PROTOCOL_V6
+
+ // V7 adds support for delegation token based connection
+ HIVE_CLI_SERVICE_PROTOCOL_V7
+
+ // V8 adds support for interval types
+ HIVE_CLI_SERVICE_PROTOCOL_V8
+}
+
+enum TTypeId {
+ BOOLEAN_TYPE,
+ TINYINT_TYPE,
+ SMALLINT_TYPE,
+ INT_TYPE,
+ BIGINT_TYPE,
+ FLOAT_TYPE,
+ DOUBLE_TYPE,
+ STRING_TYPE,
+ TIMESTAMP_TYPE,
+ BINARY_TYPE,
+ ARRAY_TYPE,
+ MAP_TYPE,
+ STRUCT_TYPE,
+ UNION_TYPE,
+ USER_DEFINED_TYPE,
+ DECIMAL_TYPE,
+ NULL_TYPE,
+ DATE_TYPE,
+ VARCHAR_TYPE,
+ CHAR_TYPE,
+ INTERVAL_YEAR_MONTH_TYPE,
+ INTERVAL_DAY_TIME_TYPE
+}
+
+const set PRIMITIVE_TYPES = [
+ TTypeId.BOOLEAN_TYPE,
+ TTypeId.TINYINT_TYPE,
+ TTypeId.SMALLINT_TYPE,
+ TTypeId.INT_TYPE,
+ TTypeId.BIGINT_TYPE,
+ TTypeId.FLOAT_TYPE,
+ TTypeId.DOUBLE_TYPE,
+ TTypeId.STRING_TYPE,
+ TTypeId.TIMESTAMP_TYPE,
+ TTypeId.BINARY_TYPE,
+ TTypeId.DECIMAL_TYPE,
+ TTypeId.NULL_TYPE,
+ TTypeId.DATE_TYPE,
+ TTypeId.VARCHAR_TYPE,
+ TTypeId.CHAR_TYPE,
+ TTypeId.INTERVAL_YEAR_MONTH_TYPE,
+ TTypeId.INTERVAL_DAY_TIME_TYPE
+]
+
+const set COMPLEX_TYPES = [
+ TTypeId.ARRAY_TYPE
+ TTypeId.MAP_TYPE
+ TTypeId.STRUCT_TYPE
+ TTypeId.UNION_TYPE
+ TTypeId.USER_DEFINED_TYPE
+]
+
+const set COLLECTION_TYPES = [
+ TTypeId.ARRAY_TYPE
+ TTypeId.MAP_TYPE
+]
+
+const map TYPE_NAMES = {
+ TTypeId.BOOLEAN_TYPE: "BOOLEAN",
+ TTypeId.TINYINT_TYPE: "TINYINT",
+ TTypeId.SMALLINT_TYPE: "SMALLINT",
+ TTypeId.INT_TYPE: "INT",
+ TTypeId.BIGINT_TYPE: "BIGINT",
+ TTypeId.FLOAT_TYPE: "FLOAT",
+ TTypeId.DOUBLE_TYPE: "DOUBLE",
+ TTypeId.STRING_TYPE: "STRING",
+ TTypeId.TIMESTAMP_TYPE: "TIMESTAMP",
+ TTypeId.BINARY_TYPE: "BINARY",
+ TTypeId.ARRAY_TYPE: "ARRAY",
+ TTypeId.MAP_TYPE: "MAP",
+ TTypeId.STRUCT_TYPE: "STRUCT",
+ TTypeId.UNION_TYPE: "UNIONTYPE",
+ TTypeId.DECIMAL_TYPE: "DECIMAL",
+ TTypeId.NULL_TYPE: "NULL"
+ TTypeId.DATE_TYPE: "DATE"
+ TTypeId.VARCHAR_TYPE: "VARCHAR"
+ TTypeId.CHAR_TYPE: "CHAR"
+ TTypeId.INTERVAL_YEAR_MONTH_TYPE: "INTERVAL_YEAR_MONTH"
+ TTypeId.INTERVAL_DAY_TIME_TYPE: "INTERVAL_DAY_TIME"
+}
+
+// Thrift does not support recursively defined types or forward declarations,
+// which makes it difficult to represent Hive's nested types.
+// To get around these limitations TTypeDesc employs a type list that maps
+// integer "pointers" to TTypeEntry objects. The following examples show
+// how different types are represented using this scheme:
+//
+// "INT":
+// TTypeDesc {
+// types = [
+// TTypeEntry.primitive_entry {
+// type = INT_TYPE
+// }
+// ]
+// }
+//
+// "ARRAY":
+// TTypeDesc {
+// types = [
+// TTypeEntry.array_entry {
+// object_type_ptr = 1
+// },
+// TTypeEntry.primitive_entry {
+// type = INT_TYPE
+// }
+// ]
+// }
+//
+// "MAP":
+// TTypeDesc {
+// types = [
+// TTypeEntry.map_entry {
+// key_type_ptr = 1
+// value_type_ptr = 2
+// },
+// TTypeEntry.primitive_entry {
+// type = INT_TYPE
+// },
+// TTypeEntry.primitive_entry {
+// type = STRING_TYPE
+// }
+// ]
+// }
+
+typedef i32 TTypeEntryPtr
+
+// Valid TTypeQualifiers key names
+const string CHARACTER_MAXIMUM_LENGTH = "characterMaximumLength"
+
+// Type qualifier key name for decimal
+const string PRECISION = "precision"
+const string SCALE = "scale"
+
+union TTypeQualifierValue {
+ 1: optional i32 i32Value
+ 2: optional string stringValue
+}
+
+// Type qualifiers for primitive type.
+struct TTypeQualifiers {
+ 1: required map qualifiers
+}
+
+// Type entry for a primitive type.
+struct TPrimitiveTypeEntry {
+ // The primitive type token. This must satisfy the condition
+ // that type is in the PRIMITIVE_TYPES set.
+ 1: required TTypeId type
+ 2: optional TTypeQualifiers typeQualifiers
+}
+
+// Type entry for an ARRAY type.
+struct TArrayTypeEntry {
+ 1: required TTypeEntryPtr objectTypePtr
+}
+
+// Type entry for a MAP type.
+struct TMapTypeEntry {
+ 1: required TTypeEntryPtr keyTypePtr
+ 2: required TTypeEntryPtr valueTypePtr
+}
+
+// Type entry for a STRUCT type.
+struct TStructTypeEntry {
+ 1: required map nameToTypePtr
+}
+
+// Type entry for a UNIONTYPE type.
+struct TUnionTypeEntry {
+ 1: required map nameToTypePtr
+}
+
+struct TUserDefinedTypeEntry {
+ // The fully qualified name of the class implementing this type.
+ 1: required string typeClassName
+}
+
+// We use a union here since Thrift does not support inheritance.
+union TTypeEntry {
+ 1: TPrimitiveTypeEntry primitiveEntry
+ 2: TArrayTypeEntry arrayEntry
+ 3: TMapTypeEntry mapEntry
+ 4: TStructTypeEntry structEntry
+ 5: TUnionTypeEntry unionEntry
+ 6: TUserDefinedTypeEntry userDefinedTypeEntry
+}
+
+// Type descriptor for columns.
+struct TTypeDesc {
+ // The "top" type is always the first element of the list.
+ // If the top type is an ARRAY, MAP, STRUCT, or UNIONTYPE
+ // type, then subsequent elements represent nested types.
+ 1: required list types
+}
+
+// A result set column descriptor.
+struct TColumnDesc {
+ // The name of the column
+ 1: required string columnName
+
+ // The type descriptor for this column
+ 2: required TTypeDesc typeDesc
+
+ // The ordinal position of this column in the schema
+ 3: required i32 position
+
+ 4: optional string comment
+}
+
+// Metadata used to describe the schema (column names, types, comments)
+// of result sets.
+struct TTableSchema {
+ 1: required list columns
+}
+
+// A Boolean column value.
+struct TBoolValue {
+ // NULL if value is unset.
+ 1: optional bool value
+}
+
+// A Byte column value.
+struct TByteValue {
+ // NULL if value is unset.
+ 1: optional byte value
+}
+
+// A signed, 16 bit column value.
+struct TI16Value {
+ // NULL if value is unset
+ 1: optional i16 value
+}
+
+// A signed, 32 bit column value
+struct TI32Value {
+ // NULL if value is unset
+ 1: optional i32 value
+}
+
+// A signed 64 bit column value
+struct TI64Value {
+ // NULL if value is unset
+ 1: optional i64 value
+}
+
+// A floating point 64 bit column value
+struct TDoubleValue {
+ // NULL if value is unset
+ 1: optional double value
+}
+
+struct TStringValue {
+ // NULL if value is unset
+ 1: optional string value
+}
+
+// A single column value in a result set.
+// Note that Hive's type system is richer than Thrift's,
+// so in some cases we have to map multiple Hive types
+// to the same Thrift type. On the client-side this is
+// disambiguated by looking at the Schema of the
+// result set.
+union TColumnValue {
+ 1: TBoolValue boolVal // BOOLEAN
+ 2: TByteValue byteVal // TINYINT
+ 3: TI16Value i16Val // SMALLINT
+ 4: TI32Value i32Val // INT
+ 5: TI64Value i64Val // BIGINT, TIMESTAMP
+ 6: TDoubleValue doubleVal // FLOAT, DOUBLE
+ 7: TStringValue stringVal // STRING, LIST, MAP, STRUCT, UNIONTYPE, BINARY, DECIMAL, NULL, INTERVAL_YEAR_MONTH, INTERVAL_DAY_TIME
+}
+
+// Represents a row in a rowset.
+struct TRow {
+ 1: required list colVals
+}
+
+struct TBoolColumn {
+ 1: required list values
+ 2: required binary nulls
+}
+
+struct TByteColumn {
+ 1: required list values
+ 2: required binary nulls
+}
+
+struct TI16Column {
+ 1: required list values
+ 2: required binary nulls
+}
+
+struct TI32Column {
+ 1: required list values
+ 2: required binary nulls
+}
+
+struct TI64Column {
+ 1: required list values
+ 2: required binary nulls
+}
+
+struct TDoubleColumn {
+ 1: required list values
+ 2: required binary nulls
+}
+
+struct TStringColumn {
+ 1: required list values
+ 2: required binary nulls
+}
+
+struct TBinaryColumn {
+ 1: required list values
+ 2: required binary nulls
+}
+
+// Note that Hive's type system is richer than Thrift's,
+// so in some cases we have to map multiple Hive types
+// to the same Thrift type. On the client-side this is
+// disambiguated by looking at the Schema of the
+// result set.
+union TColumn {
+ 1: TBoolColumn boolVal // BOOLEAN
+ 2: TByteColumn byteVal // TINYINT
+ 3: TI16Column i16Val // SMALLINT
+ 4: TI32Column i32Val // INT
+ 5: TI64Column i64Val // BIGINT, TIMESTAMP
+ 6: TDoubleColumn doubleVal // FLOAT, DOUBLE
+ 7: TStringColumn stringVal // STRING, LIST, MAP, STRUCT, UNIONTYPE, DECIMAL, NULL
+ 8: TBinaryColumn binaryVal // BINARY
+}
+
+// Represents a rowset
+struct TRowSet {
+ // The starting row offset of this rowset.
+ 1: required i64 startRowOffset
+ 2: required list rows
+ 3: optional list columns
+}
+
+// The return status code contained in each response.
+enum TStatusCode {
+ SUCCESS_STATUS,
+ SUCCESS_WITH_INFO_STATUS,
+ STILL_EXECUTING_STATUS,
+ ERROR_STATUS,
+ INVALID_HANDLE_STATUS
+}
+
+// The return status of a remote request
+struct TStatus {
+ 1: required TStatusCode statusCode
+
+ // If status is SUCCESS_WITH_INFO, info_msgs may be populated with
+ // additional diagnostic information.
+ 2: optional list infoMessages
+
+ // If status is ERROR, then the following fields may be set
+ 3: optional string sqlState // as defined in the ISO/IEF CLI specification
+ 4: optional i32 errorCode // internal error code
+ 5: optional string errorMessage
+}
+
+// The state of an operation (i.e. a query or other
+// asynchronous operation that generates a result set)
+// on the server.
+enum TOperationState {
+ // The operation has been initialized
+ INITIALIZED_STATE,
+
+ // The operation is running. In this state the result
+ // set is not available.
+ RUNNING_STATE,
+
+ // The operation has completed. When an operation is in
+ // this state its result set may be fetched.
+ FINISHED_STATE,
+
+ // The operation was canceled by a client
+ CANCELED_STATE,
+
+ // The operation was closed by a client
+ CLOSED_STATE,
+
+ // The operation failed due to an error
+ ERROR_STATE,
+
+ // The operation is in an unrecognized state
+ UKNOWN_STATE,
+
+ // The operation is in an pending state
+ PENDING_STATE,
+}
+
+// A string identifier. This is interpreted literally.
+typedef string TIdentifier
+
+// A search pattern.
+//
+// Valid search pattern characters:
+// '_': Any single character.
+// '%': Any sequence of zero or more characters.
+// '\': Escape character used to include special characters,
+// e.g. '_', '%', '\'. If a '\' precedes a non-special
+// character it has no special meaning and is interpreted
+// literally.
+typedef string TPattern
+
+
+// A search pattern or identifier. Used as input
+// parameter for many of the catalog functions.
+typedef string TPatternOrIdentifier
+
+struct THandleIdentifier {
+ // 16 byte globally unique identifier
+ // This is the public ID of the handle and
+ // can be used for reporting.
+ 1: required binary guid,
+
+ // 16 byte secret generated by the server
+ // and used to verify that the handle is not
+ // being hijacked by another user.
+ 2: required binary secret,
+}
+
+// Client-side handle to persistent
+// session information on the server-side.
+struct TSessionHandle {
+ 1: required THandleIdentifier sessionId
+}
+
+// The subtype of an OperationHandle.
+enum TOperationType {
+ EXECUTE_STATEMENT,
+ GET_TYPE_INFO,
+ GET_CATALOGS,
+ GET_SCHEMAS,
+ GET_TABLES,
+ GET_TABLE_TYPES,
+ GET_COLUMNS,
+ GET_FUNCTIONS,
+ UNKNOWN,
+}
+
+// Client-side reference to a task running
+// asynchronously on the server.
+struct TOperationHandle {
+ 1: required THandleIdentifier operationId
+ 2: required TOperationType operationType
+
+ // If hasResultSet = TRUE, then this operation
+ // generates a result set that can be fetched.
+ // Note that the result set may be empty.
+ //
+ // If hasResultSet = FALSE, then this operation
+ // does not generate a result set, and calling
+ // GetResultSetMetadata or FetchResults against
+ // this OperationHandle will generate an error.
+ 3: required bool hasResultSet
+
+ // For operations that don't generate result sets,
+ // modifiedRowCount is either:
+ //
+ // 1) The number of rows that were modified by
+ // the DML operation (e.g. number of rows inserted,
+ // number of rows deleted, etc).
+ //
+ // 2) 0 for operations that don't modify or add rows.
+ //
+ // 3) < 0 if the operation is capable of modifiying rows,
+ // but Hive is unable to determine how many rows were
+ // modified. For example, Hive's LOAD DATA command
+ // doesn't generate row count information because
+ // Hive doesn't inspect the data as it is loaded.
+ //
+ // modifiedRowCount is unset if the operation generates
+ // a result set.
+ 4: optional double modifiedRowCount
+}
+
+
+// OpenSession()
+//
+// Open a session (connection) on the server against
+// which operations may be executed.
+struct TOpenSessionReq {
+ // The version of the HiveServer2 protocol that the client is using.
+ 1: required TProtocolVersion client_protocol = TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V8
+
+ // Username and password for authentication.
+ // Depending on the authentication scheme being used,
+ // this information may instead be provided by a lower
+ // protocol layer, in which case these fields may be
+ // left unset.
+ 2: optional string username
+ 3: optional string password
+
+ // Configuration overlay which is applied when the session is
+ // first created.
+ 4: optional map configuration
+}
+
+struct TOpenSessionResp {
+ 1: required TStatus status
+
+ // The protocol version that the server is using.
+ 2: required TProtocolVersion serverProtocolVersion = TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V8
+
+ // Session Handle
+ 3: optional TSessionHandle sessionHandle
+
+ // The configuration settings for this session.
+ 4: optional map configuration
+}
+
+
+// CloseSession()
+//
+// Closes the specified session and frees any resources
+// currently allocated to that session. Any open
+// operations in that session will be canceled.
+struct TCloseSessionReq {
+ 1: required TSessionHandle sessionHandle
+}
+
+struct TCloseSessionResp {
+ 1: required TStatus status
+}
+
+
+
+enum TGetInfoType {
+ CLI_MAX_DRIVER_CONNECTIONS = 0,
+ CLI_MAX_CONCURRENT_ACTIVITIES = 1,
+ CLI_DATA_SOURCE_NAME = 2,
+ CLI_FETCH_DIRECTION = 8,
+ CLI_SERVER_NAME = 13,
+ CLI_SEARCH_PATTERN_ESCAPE = 14,
+ CLI_DBMS_NAME = 17,
+ CLI_DBMS_VER = 18,
+ CLI_ACCESSIBLE_TABLES = 19,
+ CLI_ACCESSIBLE_PROCEDURES = 20,
+ CLI_CURSOR_COMMIT_BEHAVIOR = 23,
+ CLI_DATA_SOURCE_READ_ONLY = 25,
+ CLI_DEFAULT_TXN_ISOLATION = 26,
+ CLI_IDENTIFIER_CASE = 28,
+ CLI_IDENTIFIER_QUOTE_CHAR = 29,
+ CLI_MAX_COLUMN_NAME_LEN = 30,
+ CLI_MAX_CURSOR_NAME_LEN = 31,
+ CLI_MAX_SCHEMA_NAME_LEN = 32,
+ CLI_MAX_CATALOG_NAME_LEN = 34,
+ CLI_MAX_TABLE_NAME_LEN = 35,
+ CLI_SCROLL_CONCURRENCY = 43,
+ CLI_TXN_CAPABLE = 46,
+ CLI_USER_NAME = 47,
+ CLI_TXN_ISOLATION_OPTION = 72,
+ CLI_INTEGRITY = 73,
+ CLI_GETDATA_EXTENSIONS = 81,
+ CLI_NULL_COLLATION = 85,
+ CLI_ALTER_TABLE = 86,
+ CLI_ORDER_BY_COLUMNS_IN_SELECT = 90,
+ CLI_SPECIAL_CHARACTERS = 94,
+ CLI_MAX_COLUMNS_IN_GROUP_BY = 97,
+ CLI_MAX_COLUMNS_IN_INDEX = 98,
+ CLI_MAX_COLUMNS_IN_ORDER_BY = 99,
+ CLI_MAX_COLUMNS_IN_SELECT = 100,
+ CLI_MAX_COLUMNS_IN_TABLE = 101,
+ CLI_MAX_INDEX_SIZE = 102,
+ CLI_MAX_ROW_SIZE = 104,
+ CLI_MAX_STATEMENT_LEN = 105,
+ CLI_MAX_TABLES_IN_SELECT = 106,
+ CLI_MAX_USER_NAME_LEN = 107,
+ CLI_OJ_CAPABILITIES = 115,
+
+ CLI_XOPEN_CLI_YEAR = 10000,
+ CLI_CURSOR_SENSITIVITY = 10001,
+ CLI_DESCRIBE_PARAMETER = 10002,
+ CLI_CATALOG_NAME = 10003,
+ CLI_COLLATION_SEQ = 10004,
+ CLI_MAX_IDENTIFIER_LEN = 10005,
+}
+
+union TGetInfoValue {
+ 1: string stringValue
+ 2: i16 smallIntValue
+ 3: i32 integerBitmask
+ 4: i32 integerFlag
+ 5: i32 binaryValue
+ 6: i64 lenValue
+}
+
+// GetInfo()
+//
+// This function is based on ODBC's CLIGetInfo() function.
+// The function returns general information about the data source
+// using the same keys as ODBC.
+struct TGetInfoReq {
+ // The sesssion to run this request against
+ 1: required TSessionHandle sessionHandle
+
+ 2: required TGetInfoType infoType
+}
+
+struct TGetInfoResp {
+ 1: required TStatus status
+
+ 2: required TGetInfoValue infoValue
+}
+
+
+// ExecuteStatement()
+//
+// Execute a statement.
+// The returned OperationHandle can be used to check on the
+// status of the statement, and to fetch results once the
+// statement has finished executing.
+struct TExecuteStatementReq {
+ // The session to execute the statement against
+ 1: required TSessionHandle sessionHandle
+
+ // The statement to be executed (DML, DDL, SET, etc)
+ 2: required string statement
+
+ // Configuration properties that are overlayed on top of the
+ // the existing session configuration before this statement
+ // is executed. These properties apply to this statement
+ // only and will not affect the subsequent state of the Session.
+ 3: optional map confOverlay
+
+ // Execute asynchronously when runAsync is true
+ 4: optional bool runAsync = false
+}
+
+struct TExecuteStatementResp {
+ 1: required TStatus status
+ 2: optional TOperationHandle operationHandle
+}
+
+// GetTypeInfo()
+//
+// Get information about types supported by the HiveServer instance.
+// The information is returned as a result set which can be fetched
+// using the OperationHandle provided in the response.
+//
+// Refer to the documentation for ODBC's CLIGetTypeInfo function for
+// the format of the result set.
+struct TGetTypeInfoReq {
+ // The session to run this request against.
+ 1: required TSessionHandle sessionHandle
+}
+
+struct TGetTypeInfoResp {
+ 1: required TStatus status
+ 2: optional TOperationHandle operationHandle
+}
+
+
+// GetCatalogs()
+//
+// Returns the list of catalogs (databases)
+// Results are ordered by TABLE_CATALOG
+//
+// Resultset columns :
+// col1
+// name: TABLE_CAT
+// type: STRING
+// desc: Catalog name. NULL if not applicable.
+//
+struct TGetCatalogsReq {
+ // Session to run this request against
+ 1: required TSessionHandle sessionHandle
+}
+
+struct TGetCatalogsResp {
+ 1: required TStatus status
+ 2: optional TOperationHandle operationHandle
+}
+
+
+// GetSchemas()
+//
+// Retrieves the schema names available in this database.
+// The results are ordered by TABLE_CATALOG and TABLE_SCHEM.
+// col1
+// name: TABLE_SCHEM
+// type: STRING
+// desc: schema name
+// col2
+// name: TABLE_CATALOG
+// type: STRING
+// desc: catalog name
+struct TGetSchemasReq {
+ // Session to run this request against
+ 1: required TSessionHandle sessionHandle
+
+ // Name of the catalog. Must not contain a search pattern.
+ 2: optional TIdentifier catalogName
+
+ // schema name or pattern
+ 3: optional TPatternOrIdentifier schemaName
+}
+
+struct TGetSchemasResp {
+ 1: required TStatus status
+ 2: optional TOperationHandle operationHandle
+}
+
+
+// GetTables()
+//
+// Returns a list of tables with catalog, schema, and table
+// type information. The information is returned as a result
+// set which can be fetched using the OperationHandle
+// provided in the response.
+// Results are ordered by TABLE_TYPE, TABLE_CAT, TABLE_SCHEM, and TABLE_NAME
+//
+// Result Set Columns:
+//
+// col1
+// name: TABLE_CAT
+// type: STRING
+// desc: Catalog name. NULL if not applicable.
+//
+// col2
+// name: TABLE_SCHEM
+// type: STRING
+// desc: Schema name.
+//
+// col3
+// name: TABLE_NAME
+// type: STRING
+// desc: Table name.
+//
+// col4
+// name: TABLE_TYPE
+// type: STRING
+// desc: The table type, e.g. "TABLE", "VIEW", etc.
+//
+// col5
+// name: REMARKS
+// type: STRING
+// desc: Comments about the table
+//
+struct TGetTablesReq {
+ // Session to run this request against
+ 1: required TSessionHandle sessionHandle
+
+ // Name of the catalog or a search pattern.
+ 2: optional TPatternOrIdentifier catalogName
+
+ // Name of the schema or a search pattern.
+ 3: optional TPatternOrIdentifier schemaName
+
+ // Name of the table or a search pattern.
+ 4: optional TPatternOrIdentifier tableName
+
+ // List of table types to match
+ // e.g. "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY",
+ // "LOCAL TEMPORARY", "ALIAS", "SYNONYM", etc.
+ 5: optional list tableTypes
+}
+
+struct TGetTablesResp {
+ 1: required TStatus status
+ 2: optional TOperationHandle operationHandle
+}
+
+
+// GetTableTypes()
+//
+// Returns the table types available in this database.
+// The results are ordered by table type.
+//
+// col1
+// name: TABLE_TYPE
+// type: STRING
+// desc: Table type name.
+struct TGetTableTypesReq {
+ // Session to run this request against
+ 1: required TSessionHandle sessionHandle
+}
+
+struct TGetTableTypesResp {
+ 1: required TStatus status
+ 2: optional TOperationHandle operationHandle
+}
+
+
+// GetColumns()
+//
+// Returns a list of columns in the specified tables.
+// The information is returned as a result set which can be fetched
+// using the OperationHandle provided in the response.
+// Results are ordered by TABLE_CAT, TABLE_SCHEM, TABLE_NAME,
+// and ORDINAL_POSITION.
+//
+// Result Set Columns are the same as those for the ODBC CLIColumns
+// function.
+//
+struct TGetColumnsReq {
+ // Session to run this request against
+ 1: required TSessionHandle sessionHandle
+
+ // Name of the catalog. Must not contain a search pattern.
+ 2: optional TIdentifier catalogName
+
+ // Schema name or search pattern
+ 3: optional TPatternOrIdentifier schemaName
+
+ // Table name or search pattern
+ 4: optional TPatternOrIdentifier tableName
+
+ // Column name or search pattern
+ 5: optional TPatternOrIdentifier columnName
+}
+
+struct TGetColumnsResp {
+ 1: required TStatus status
+ 2: optional TOperationHandle operationHandle
+}
+
+
+// GetFunctions()
+//
+// Returns a list of functions supported by the data source. The
+// behavior of this function matches
+// java.sql.DatabaseMetaData.getFunctions() both in terms of
+// inputs and outputs.
+//
+// Result Set Columns:
+//
+// col1
+// name: FUNCTION_CAT
+// type: STRING
+// desc: Function catalog (may be null)
+//
+// col2
+// name: FUNCTION_SCHEM
+// type: STRING
+// desc: Function schema (may be null)
+//
+// col3
+// name: FUNCTION_NAME
+// type: STRING
+// desc: Function name. This is the name used to invoke the function.
+//
+// col4
+// name: REMARKS
+// type: STRING
+// desc: Explanatory comment on the function.
+//
+// col5
+// name: FUNCTION_TYPE
+// type: SMALLINT
+// desc: Kind of function. One of:
+// * functionResultUnknown - Cannot determine if a return value or a table
+// will be returned.
+// * functionNoTable - Does not a return a table.
+// * functionReturnsTable - Returns a table.
+//
+// col6
+// name: SPECIFIC_NAME
+// type: STRING
+// desc: The name which uniquely identifies this function within its schema.
+// In this case this is the fully qualified class name of the class
+// that implements this function.
+//
+struct TGetFunctionsReq {
+ // Session to run this request against
+ 1: required TSessionHandle sessionHandle
+
+ // A catalog name; must match the catalog name as it is stored in the
+ // database; "" retrieves those without a catalog; null means
+ // that the catalog name should not be used to narrow the search.
+ 2: optional TIdentifier catalogName
+
+ // A schema name pattern; must match the schema name as it is stored
+ // in the database; "" retrieves those without a schema; null means
+ // that the schema name should not be used to narrow the search.
+ 3: optional TPatternOrIdentifier schemaName
+
+ // A function name pattern; must match the function name as it is stored
+ // in the database.
+ 4: required TPatternOrIdentifier functionName
+}
+
+struct TGetFunctionsResp {
+ 1: required TStatus status
+ 2: optional TOperationHandle operationHandle
+}
+
+
+// GetOperationStatus()
+//
+// Get the status of an operation running on the server.
+struct TGetOperationStatusReq {
+ // Session to run this request against
+ 1: required TOperationHandle operationHandle
+}
+
+struct TGetOperationStatusResp {
+ 1: required TStatus status
+ 2: optional TOperationState operationState
+
+ // If operationState is ERROR_STATE, then the following fields may be set
+ // sqlState as defined in the ISO/IEF CLI specification
+ 3: optional string sqlState
+
+ // Internal error code
+ 4: optional i32 errorCode
+
+ // Error message
+ 5: optional string errorMessage
+}
+
+
+// CancelOperation()
+//
+// Cancels processing on the specified operation handle and
+// frees any resources which were allocated.
+struct TCancelOperationReq {
+ // Operation to cancel
+ 1: required TOperationHandle operationHandle
+}
+
+struct TCancelOperationResp {
+ 1: required TStatus status
+}
+
+
+// CloseOperation()
+//
+// Given an operation in the FINISHED, CANCELED,
+// or ERROR states, CloseOperation() will free
+// all of the resources which were allocated on
+// the server to service the operation.
+struct TCloseOperationReq {
+ 1: required TOperationHandle operationHandle
+}
+
+struct TCloseOperationResp {
+ 1: required TStatus status
+}
+
+
+// GetResultSetMetadata()
+//
+// Retrieves schema information for the specified operation
+struct TGetResultSetMetadataReq {
+ // Operation for which to fetch result set schema information
+ 1: required TOperationHandle operationHandle
+}
+
+struct TGetResultSetMetadataResp {
+ 1: required TStatus status
+ 2: optional TTableSchema schema
+}
+
+
+enum TFetchOrientation {
+ // Get the next rowset. The fetch offset is ignored.
+ FETCH_NEXT,
+
+ // Get the previous rowset. The fetch offset is ignored.
+ // NOT SUPPORTED
+ FETCH_PRIOR,
+
+ // Return the rowset at the given fetch offset relative
+ // to the curren rowset.
+ // NOT SUPPORTED
+ FETCH_RELATIVE,
+
+ // Return the rowset at the specified fetch offset.
+ // NOT SUPPORTED
+ FETCH_ABSOLUTE,
+
+ // Get the first rowset in the result set.
+ FETCH_FIRST,
+
+ // Get the last rowset in the result set.
+ // NOT SUPPORTED
+ FETCH_LAST
+}
+
+// FetchResults()
+//
+// Fetch rows from the server corresponding to
+// a particular OperationHandle.
+struct TFetchResultsReq {
+ // Operation from which to fetch results.
+ 1: required TOperationHandle operationHandle
+
+ // The fetch orientation. For V1 this must be either
+ // FETCH_NEXT or FETCH_FIRST. Defaults to FETCH_NEXT.
+ 2: required TFetchOrientation orientation = TFetchOrientation.FETCH_NEXT
+
+ // Max number of rows that should be returned in
+ // the rowset.
+ 3: required i64 maxRows
+
+ // The type of a fetch results request. 0 represents Query output. 1 represents Log
+ 4: optional i16 fetchType = 0
+}
+
+struct TFetchResultsResp {
+ 1: required TStatus status
+
+ // TRUE if there are more rows left to fetch from the server.
+ 2: optional bool hasMoreRows
+
+ // The rowset. This is optional so that we have the
+ // option in the future of adding alternate formats for
+ // representing result set data, e.g. delimited strings,
+ // binary encoded, etc.
+ 3: optional TRowSet results
+}
+
+// GetDelegationToken()
+// Retrieve delegation token for the current user
+struct TGetDelegationTokenReq {
+ // session handle
+ 1: required TSessionHandle sessionHandle
+
+ // userid for the proxy user
+ 2: required string owner
+
+ // designated renewer userid
+ 3: required string renewer
+}
+
+struct TGetDelegationTokenResp {
+ // status of the request
+ 1: required TStatus status
+
+ // delegation token string
+ 2: optional string delegationToken
+}
+
+// CancelDelegationToken()
+// Cancel the given delegation token
+struct TCancelDelegationTokenReq {
+ // session handle
+ 1: required TSessionHandle sessionHandle
+
+ // delegation token to cancel
+ 2: required string delegationToken
+}
+
+struct TCancelDelegationTokenResp {
+ // status of the request
+ 1: required TStatus status
+}
+
+// RenewDelegationToken()
+// Renew the given delegation token
+struct TRenewDelegationTokenReq {
+ // session handle
+ 1: required TSessionHandle sessionHandle
+
+ // delegation token to renew
+ 2: required string delegationToken
+}
+
+struct TRenewDelegationTokenResp {
+ // status of the request
+ 1: required TStatus status
+}
+
+service TCLIService {
+
+ TOpenSessionResp OpenSession(1:TOpenSessionReq req);
+
+ TCloseSessionResp CloseSession(1:TCloseSessionReq req);
+
+ TGetInfoResp GetInfo(1:TGetInfoReq req);
+
+ TExecuteStatementResp ExecuteStatement(1:TExecuteStatementReq req);
+
+ TGetTypeInfoResp GetTypeInfo(1:TGetTypeInfoReq req);
+
+ TGetCatalogsResp GetCatalogs(1:TGetCatalogsReq req);
+
+ TGetSchemasResp GetSchemas(1:TGetSchemasReq req);
+
+ TGetTablesResp GetTables(1:TGetTablesReq req);
+
+ TGetTableTypesResp GetTableTypes(1:TGetTableTypesReq req);
+
+ TGetColumnsResp GetColumns(1:TGetColumnsReq req);
+
+ TGetFunctionsResp GetFunctions(1:TGetFunctionsReq req);
+
+ TGetOperationStatusResp GetOperationStatus(1:TGetOperationStatusReq req);
+
+ TCancelOperationResp CancelOperation(1:TCancelOperationReq req);
+
+ TCloseOperationResp CloseOperation(1:TCloseOperationReq req);
+
+ TGetResultSetMetadataResp GetResultSetMetadata(1:TGetResultSetMetadataReq req);
+
+ TFetchResultsResp FetchResults(1:TFetchResultsReq req);
+
+ TGetDelegationTokenResp GetDelegationToken(1:TGetDelegationTokenReq req);
+
+ TCancelDelegationTokenResp CancelDelegationToken(1:TCancelDelegationTokenReq req);
+
+ TRenewDelegationTokenResp RenewDelegationToken(1:TRenewDelegationTokenReq req);
+}
diff --git service-rpc/pom.xml service-rpc/pom.xml
new file mode 100644
index 0000000..9a70f9c
--- /dev/null
+++ service-rpc/pom.xml
@@ -0,0 +1,143 @@
+
+
+
+ 4.0.0
+
+ org.apache.hive
+ hive
+ 2.1.0-SNAPSHOT
+ ../pom.xml
+
+
+ hive-service-rpc
+ jar
+ Hive Service RPC
+
+
+ ..
+
+
+
+
+
+ commons-codec
+ commons-codec
+ ${commons-codec.version}
+
+
+ commons-cli
+ commons-cli
+ ${commons-cli.version}
+
+
+ net.sf.jpam
+ jpam
+ ${jpam.version}
+
+
+ org.slf4j
+ slf4j-log4j12
+
+
+ commmons-logging
+ commons-logging
+
+
+
+
+
+ commons-lang
+ commons-lang
+ ${commons-lang.version}
+
+
+ org.eclipse.jetty.aggregate
+ jetty-all
+ ${jetty.version}
+
+
+ tomcat
+ jasper-compiler
+ ${jasper.version}
+
+
+ tomcat
+ jasper-runtime
+ ${jasper.version}
+
+
+ org.apache.thrift
+ libfb303
+ ${libfb303.version}
+
+
+ org.apache.thrift
+ libthrift
+ ${libthrift.version}
+
+
+ org.apache.hadoop
+ hadoop-mapreduce-client-core
+ ${hadoop.version}
+ true
+
+
+
+ junit
+ junit
+ ${junit.version}
+ test
+
+
+
+
+ ${basedir}/src/java
+ ${basedir}/src/test
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ add-source
+ generate-sources
+
+ add-source
+
+
+
+ src/gen/thrift/gen-javabean
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+
+
+
+ test-jar
+
+
+
+
+
+
+
+
diff --git service-rpc/src/gen/thrift/gen-cpp/TCLIService.cpp service-rpc/src/gen/thrift/gen-cpp/TCLIService.cpp
new file mode 100644
index 0000000..24794f0
--- /dev/null
+++ service-rpc/src/gen/thrift/gen-cpp/TCLIService.cpp
@@ -0,0 +1,5699 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.2)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+#include "TCLIService.h"
+
+namespace apache { namespace hive { namespace service { namespace rpc { namespace thrift {
+
+
+TCLIService_OpenSession_args::~TCLIService_OpenSession_args() throw() {
+}
+
+
+uint32_t TCLIService_OpenSession_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->req.read(iprot);
+ this->__isset.req = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_OpenSession_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_OpenSession_args");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->req.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_OpenSession_pargs::~TCLIService_OpenSession_pargs() throw() {
+}
+
+
+uint32_t TCLIService_OpenSession_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_OpenSession_pargs");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->req)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_OpenSession_result::~TCLIService_OpenSession_result() throw() {
+}
+
+
+uint32_t TCLIService_OpenSession_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_OpenSession_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("TCLIService_OpenSession_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+TCLIService_OpenSession_presult::~TCLIService_OpenSession_presult() throw() {
+}
+
+
+uint32_t TCLIService_OpenSession_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+
+TCLIService_CloseSession_args::~TCLIService_CloseSession_args() throw() {
+}
+
+
+uint32_t TCLIService_CloseSession_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->req.read(iprot);
+ this->__isset.req = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_CloseSession_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_CloseSession_args");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->req.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_CloseSession_pargs::~TCLIService_CloseSession_pargs() throw() {
+}
+
+
+uint32_t TCLIService_CloseSession_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_CloseSession_pargs");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->req)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_CloseSession_result::~TCLIService_CloseSession_result() throw() {
+}
+
+
+uint32_t TCLIService_CloseSession_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_CloseSession_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("TCLIService_CloseSession_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+TCLIService_CloseSession_presult::~TCLIService_CloseSession_presult() throw() {
+}
+
+
+uint32_t TCLIService_CloseSession_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+
+TCLIService_GetInfo_args::~TCLIService_GetInfo_args() throw() {
+}
+
+
+uint32_t TCLIService_GetInfo_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->req.read(iprot);
+ this->__isset.req = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetInfo_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetInfo_args");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->req.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetInfo_pargs::~TCLIService_GetInfo_pargs() throw() {
+}
+
+
+uint32_t TCLIService_GetInfo_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetInfo_pargs");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->req)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetInfo_result::~TCLIService_GetInfo_result() throw() {
+}
+
+
+uint32_t TCLIService_GetInfo_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetInfo_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("TCLIService_GetInfo_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+TCLIService_GetInfo_presult::~TCLIService_GetInfo_presult() throw() {
+}
+
+
+uint32_t TCLIService_GetInfo_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+
+TCLIService_ExecuteStatement_args::~TCLIService_ExecuteStatement_args() throw() {
+}
+
+
+uint32_t TCLIService_ExecuteStatement_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->req.read(iprot);
+ this->__isset.req = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_ExecuteStatement_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_ExecuteStatement_args");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->req.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_ExecuteStatement_pargs::~TCLIService_ExecuteStatement_pargs() throw() {
+}
+
+
+uint32_t TCLIService_ExecuteStatement_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_ExecuteStatement_pargs");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->req)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_ExecuteStatement_result::~TCLIService_ExecuteStatement_result() throw() {
+}
+
+
+uint32_t TCLIService_ExecuteStatement_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_ExecuteStatement_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("TCLIService_ExecuteStatement_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+TCLIService_ExecuteStatement_presult::~TCLIService_ExecuteStatement_presult() throw() {
+}
+
+
+uint32_t TCLIService_ExecuteStatement_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+
+TCLIService_GetTypeInfo_args::~TCLIService_GetTypeInfo_args() throw() {
+}
+
+
+uint32_t TCLIService_GetTypeInfo_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->req.read(iprot);
+ this->__isset.req = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetTypeInfo_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetTypeInfo_args");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->req.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetTypeInfo_pargs::~TCLIService_GetTypeInfo_pargs() throw() {
+}
+
+
+uint32_t TCLIService_GetTypeInfo_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetTypeInfo_pargs");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->req)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetTypeInfo_result::~TCLIService_GetTypeInfo_result() throw() {
+}
+
+
+uint32_t TCLIService_GetTypeInfo_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetTypeInfo_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("TCLIService_GetTypeInfo_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+TCLIService_GetTypeInfo_presult::~TCLIService_GetTypeInfo_presult() throw() {
+}
+
+
+uint32_t TCLIService_GetTypeInfo_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+
+TCLIService_GetCatalogs_args::~TCLIService_GetCatalogs_args() throw() {
+}
+
+
+uint32_t TCLIService_GetCatalogs_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->req.read(iprot);
+ this->__isset.req = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetCatalogs_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetCatalogs_args");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->req.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetCatalogs_pargs::~TCLIService_GetCatalogs_pargs() throw() {
+}
+
+
+uint32_t TCLIService_GetCatalogs_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetCatalogs_pargs");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->req)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetCatalogs_result::~TCLIService_GetCatalogs_result() throw() {
+}
+
+
+uint32_t TCLIService_GetCatalogs_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetCatalogs_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("TCLIService_GetCatalogs_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+TCLIService_GetCatalogs_presult::~TCLIService_GetCatalogs_presult() throw() {
+}
+
+
+uint32_t TCLIService_GetCatalogs_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+
+TCLIService_GetSchemas_args::~TCLIService_GetSchemas_args() throw() {
+}
+
+
+uint32_t TCLIService_GetSchemas_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->req.read(iprot);
+ this->__isset.req = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetSchemas_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetSchemas_args");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->req.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetSchemas_pargs::~TCLIService_GetSchemas_pargs() throw() {
+}
+
+
+uint32_t TCLIService_GetSchemas_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetSchemas_pargs");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->req)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetSchemas_result::~TCLIService_GetSchemas_result() throw() {
+}
+
+
+uint32_t TCLIService_GetSchemas_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetSchemas_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("TCLIService_GetSchemas_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+TCLIService_GetSchemas_presult::~TCLIService_GetSchemas_presult() throw() {
+}
+
+
+uint32_t TCLIService_GetSchemas_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+
+TCLIService_GetTables_args::~TCLIService_GetTables_args() throw() {
+}
+
+
+uint32_t TCLIService_GetTables_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->req.read(iprot);
+ this->__isset.req = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetTables_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetTables_args");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->req.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetTables_pargs::~TCLIService_GetTables_pargs() throw() {
+}
+
+
+uint32_t TCLIService_GetTables_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetTables_pargs");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->req)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetTables_result::~TCLIService_GetTables_result() throw() {
+}
+
+
+uint32_t TCLIService_GetTables_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetTables_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("TCLIService_GetTables_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+TCLIService_GetTables_presult::~TCLIService_GetTables_presult() throw() {
+}
+
+
+uint32_t TCLIService_GetTables_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+
+TCLIService_GetTableTypes_args::~TCLIService_GetTableTypes_args() throw() {
+}
+
+
+uint32_t TCLIService_GetTableTypes_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->req.read(iprot);
+ this->__isset.req = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetTableTypes_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetTableTypes_args");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->req.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetTableTypes_pargs::~TCLIService_GetTableTypes_pargs() throw() {
+}
+
+
+uint32_t TCLIService_GetTableTypes_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetTableTypes_pargs");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->req)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetTableTypes_result::~TCLIService_GetTableTypes_result() throw() {
+}
+
+
+uint32_t TCLIService_GetTableTypes_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetTableTypes_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("TCLIService_GetTableTypes_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+TCLIService_GetTableTypes_presult::~TCLIService_GetTableTypes_presult() throw() {
+}
+
+
+uint32_t TCLIService_GetTableTypes_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+
+TCLIService_GetColumns_args::~TCLIService_GetColumns_args() throw() {
+}
+
+
+uint32_t TCLIService_GetColumns_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->req.read(iprot);
+ this->__isset.req = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetColumns_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetColumns_args");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->req.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetColumns_pargs::~TCLIService_GetColumns_pargs() throw() {
+}
+
+
+uint32_t TCLIService_GetColumns_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetColumns_pargs");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->req)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetColumns_result::~TCLIService_GetColumns_result() throw() {
+}
+
+
+uint32_t TCLIService_GetColumns_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetColumns_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("TCLIService_GetColumns_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+TCLIService_GetColumns_presult::~TCLIService_GetColumns_presult() throw() {
+}
+
+
+uint32_t TCLIService_GetColumns_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+
+TCLIService_GetFunctions_args::~TCLIService_GetFunctions_args() throw() {
+}
+
+
+uint32_t TCLIService_GetFunctions_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->req.read(iprot);
+ this->__isset.req = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetFunctions_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetFunctions_args");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->req.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetFunctions_pargs::~TCLIService_GetFunctions_pargs() throw() {
+}
+
+
+uint32_t TCLIService_GetFunctions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetFunctions_pargs");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->req)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetFunctions_result::~TCLIService_GetFunctions_result() throw() {
+}
+
+
+uint32_t TCLIService_GetFunctions_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetFunctions_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("TCLIService_GetFunctions_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+TCLIService_GetFunctions_presult::~TCLIService_GetFunctions_presult() throw() {
+}
+
+
+uint32_t TCLIService_GetFunctions_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+
+TCLIService_GetOperationStatus_args::~TCLIService_GetOperationStatus_args() throw() {
+}
+
+
+uint32_t TCLIService_GetOperationStatus_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->req.read(iprot);
+ this->__isset.req = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetOperationStatus_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetOperationStatus_args");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->req.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetOperationStatus_pargs::~TCLIService_GetOperationStatus_pargs() throw() {
+}
+
+
+uint32_t TCLIService_GetOperationStatus_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetOperationStatus_pargs");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->req)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetOperationStatus_result::~TCLIService_GetOperationStatus_result() throw() {
+}
+
+
+uint32_t TCLIService_GetOperationStatus_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetOperationStatus_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("TCLIService_GetOperationStatus_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+TCLIService_GetOperationStatus_presult::~TCLIService_GetOperationStatus_presult() throw() {
+}
+
+
+uint32_t TCLIService_GetOperationStatus_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+
+TCLIService_CancelOperation_args::~TCLIService_CancelOperation_args() throw() {
+}
+
+
+uint32_t TCLIService_CancelOperation_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->req.read(iprot);
+ this->__isset.req = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_CancelOperation_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_CancelOperation_args");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->req.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_CancelOperation_pargs::~TCLIService_CancelOperation_pargs() throw() {
+}
+
+
+uint32_t TCLIService_CancelOperation_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_CancelOperation_pargs");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->req)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_CancelOperation_result::~TCLIService_CancelOperation_result() throw() {
+}
+
+
+uint32_t TCLIService_CancelOperation_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_CancelOperation_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("TCLIService_CancelOperation_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+TCLIService_CancelOperation_presult::~TCLIService_CancelOperation_presult() throw() {
+}
+
+
+uint32_t TCLIService_CancelOperation_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+
+TCLIService_CloseOperation_args::~TCLIService_CloseOperation_args() throw() {
+}
+
+
+uint32_t TCLIService_CloseOperation_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->req.read(iprot);
+ this->__isset.req = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_CloseOperation_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_CloseOperation_args");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->req.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_CloseOperation_pargs::~TCLIService_CloseOperation_pargs() throw() {
+}
+
+
+uint32_t TCLIService_CloseOperation_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_CloseOperation_pargs");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->req)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_CloseOperation_result::~TCLIService_CloseOperation_result() throw() {
+}
+
+
+uint32_t TCLIService_CloseOperation_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_CloseOperation_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("TCLIService_CloseOperation_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+TCLIService_CloseOperation_presult::~TCLIService_CloseOperation_presult() throw() {
+}
+
+
+uint32_t TCLIService_CloseOperation_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+
+TCLIService_GetResultSetMetadata_args::~TCLIService_GetResultSetMetadata_args() throw() {
+}
+
+
+uint32_t TCLIService_GetResultSetMetadata_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->req.read(iprot);
+ this->__isset.req = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetResultSetMetadata_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetResultSetMetadata_args");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->req.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetResultSetMetadata_pargs::~TCLIService_GetResultSetMetadata_pargs() throw() {
+}
+
+
+uint32_t TCLIService_GetResultSetMetadata_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetResultSetMetadata_pargs");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->req)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetResultSetMetadata_result::~TCLIService_GetResultSetMetadata_result() throw() {
+}
+
+
+uint32_t TCLIService_GetResultSetMetadata_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetResultSetMetadata_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("TCLIService_GetResultSetMetadata_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+TCLIService_GetResultSetMetadata_presult::~TCLIService_GetResultSetMetadata_presult() throw() {
+}
+
+
+uint32_t TCLIService_GetResultSetMetadata_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+
+TCLIService_FetchResults_args::~TCLIService_FetchResults_args() throw() {
+}
+
+
+uint32_t TCLIService_FetchResults_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->req.read(iprot);
+ this->__isset.req = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_FetchResults_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_FetchResults_args");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->req.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_FetchResults_pargs::~TCLIService_FetchResults_pargs() throw() {
+}
+
+
+uint32_t TCLIService_FetchResults_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_FetchResults_pargs");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->req)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_FetchResults_result::~TCLIService_FetchResults_result() throw() {
+}
+
+
+uint32_t TCLIService_FetchResults_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_FetchResults_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("TCLIService_FetchResults_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+TCLIService_FetchResults_presult::~TCLIService_FetchResults_presult() throw() {
+}
+
+
+uint32_t TCLIService_FetchResults_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+
+TCLIService_GetDelegationToken_args::~TCLIService_GetDelegationToken_args() throw() {
+}
+
+
+uint32_t TCLIService_GetDelegationToken_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->req.read(iprot);
+ this->__isset.req = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetDelegationToken_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetDelegationToken_args");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->req.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetDelegationToken_pargs::~TCLIService_GetDelegationToken_pargs() throw() {
+}
+
+
+uint32_t TCLIService_GetDelegationToken_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_GetDelegationToken_pargs");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->req)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_GetDelegationToken_result::~TCLIService_GetDelegationToken_result() throw() {
+}
+
+
+uint32_t TCLIService_GetDelegationToken_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_GetDelegationToken_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("TCLIService_GetDelegationToken_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+TCLIService_GetDelegationToken_presult::~TCLIService_GetDelegationToken_presult() throw() {
+}
+
+
+uint32_t TCLIService_GetDelegationToken_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+
+TCLIService_CancelDelegationToken_args::~TCLIService_CancelDelegationToken_args() throw() {
+}
+
+
+uint32_t TCLIService_CancelDelegationToken_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->req.read(iprot);
+ this->__isset.req = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_CancelDelegationToken_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_CancelDelegationToken_args");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->req.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_CancelDelegationToken_pargs::~TCLIService_CancelDelegationToken_pargs() throw() {
+}
+
+
+uint32_t TCLIService_CancelDelegationToken_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_CancelDelegationToken_pargs");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->req)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_CancelDelegationToken_result::~TCLIService_CancelDelegationToken_result() throw() {
+}
+
+
+uint32_t TCLIService_CancelDelegationToken_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_CancelDelegationToken_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("TCLIService_CancelDelegationToken_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+TCLIService_CancelDelegationToken_presult::~TCLIService_CancelDelegationToken_presult() throw() {
+}
+
+
+uint32_t TCLIService_CancelDelegationToken_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+
+TCLIService_RenewDelegationToken_args::~TCLIService_RenewDelegationToken_args() throw() {
+}
+
+
+uint32_t TCLIService_RenewDelegationToken_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->req.read(iprot);
+ this->__isset.req = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_RenewDelegationToken_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_RenewDelegationToken_args");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->req.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_RenewDelegationToken_pargs::~TCLIService_RenewDelegationToken_pargs() throw() {
+}
+
+
+uint32_t TCLIService_RenewDelegationToken_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCLIService_RenewDelegationToken_pargs");
+
+ xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->req)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+
+TCLIService_RenewDelegationToken_result::~TCLIService_RenewDelegationToken_result() throw() {
+}
+
+
+uint32_t TCLIService_RenewDelegationToken_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TCLIService_RenewDelegationToken_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("TCLIService_RenewDelegationToken_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+TCLIService_RenewDelegationToken_presult::~TCLIService_RenewDelegationToken_presult() throw() {
+}
+
+
+uint32_t TCLIService_RenewDelegationToken_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;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+void TCLIServiceClient::OpenSession(TOpenSessionResp& _return, const TOpenSessionReq& req)
+{
+ send_OpenSession(req);
+ recv_OpenSession(_return);
+}
+
+void TCLIServiceClient::send_OpenSession(const TOpenSessionReq& req)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("OpenSession", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ TCLIService_OpenSession_pargs args;
+ args.req = &req;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void TCLIServiceClient::recv_OpenSession(TOpenSessionResp& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("OpenSession") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ TCLIService_OpenSession_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "OpenSession failed: unknown result");
+}
+
+void TCLIServiceClient::CloseSession(TCloseSessionResp& _return, const TCloseSessionReq& req)
+{
+ send_CloseSession(req);
+ recv_CloseSession(_return);
+}
+
+void TCLIServiceClient::send_CloseSession(const TCloseSessionReq& req)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("CloseSession", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ TCLIService_CloseSession_pargs args;
+ args.req = &req;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void TCLIServiceClient::recv_CloseSession(TCloseSessionResp& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("CloseSession") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ TCLIService_CloseSession_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "CloseSession failed: unknown result");
+}
+
+void TCLIServiceClient::GetInfo(TGetInfoResp& _return, const TGetInfoReq& req)
+{
+ send_GetInfo(req);
+ recv_GetInfo(_return);
+}
+
+void TCLIServiceClient::send_GetInfo(const TGetInfoReq& req)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("GetInfo", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ TCLIService_GetInfo_pargs args;
+ args.req = &req;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void TCLIServiceClient::recv_GetInfo(TGetInfoResp& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("GetInfo") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ TCLIService_GetInfo_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetInfo failed: unknown result");
+}
+
+void TCLIServiceClient::ExecuteStatement(TExecuteStatementResp& _return, const TExecuteStatementReq& req)
+{
+ send_ExecuteStatement(req);
+ recv_ExecuteStatement(_return);
+}
+
+void TCLIServiceClient::send_ExecuteStatement(const TExecuteStatementReq& req)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("ExecuteStatement", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ TCLIService_ExecuteStatement_pargs args;
+ args.req = &req;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void TCLIServiceClient::recv_ExecuteStatement(TExecuteStatementResp& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("ExecuteStatement") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ TCLIService_ExecuteStatement_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "ExecuteStatement failed: unknown result");
+}
+
+void TCLIServiceClient::GetTypeInfo(TGetTypeInfoResp& _return, const TGetTypeInfoReq& req)
+{
+ send_GetTypeInfo(req);
+ recv_GetTypeInfo(_return);
+}
+
+void TCLIServiceClient::send_GetTypeInfo(const TGetTypeInfoReq& req)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("GetTypeInfo", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ TCLIService_GetTypeInfo_pargs args;
+ args.req = &req;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void TCLIServiceClient::recv_GetTypeInfo(TGetTypeInfoResp& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("GetTypeInfo") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ TCLIService_GetTypeInfo_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetTypeInfo failed: unknown result");
+}
+
+void TCLIServiceClient::GetCatalogs(TGetCatalogsResp& _return, const TGetCatalogsReq& req)
+{
+ send_GetCatalogs(req);
+ recv_GetCatalogs(_return);
+}
+
+void TCLIServiceClient::send_GetCatalogs(const TGetCatalogsReq& req)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("GetCatalogs", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ TCLIService_GetCatalogs_pargs args;
+ args.req = &req;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void TCLIServiceClient::recv_GetCatalogs(TGetCatalogsResp& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("GetCatalogs") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ TCLIService_GetCatalogs_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetCatalogs failed: unknown result");
+}
+
+void TCLIServiceClient::GetSchemas(TGetSchemasResp& _return, const TGetSchemasReq& req)
+{
+ send_GetSchemas(req);
+ recv_GetSchemas(_return);
+}
+
+void TCLIServiceClient::send_GetSchemas(const TGetSchemasReq& req)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("GetSchemas", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ TCLIService_GetSchemas_pargs args;
+ args.req = &req;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void TCLIServiceClient::recv_GetSchemas(TGetSchemasResp& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("GetSchemas") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ TCLIService_GetSchemas_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetSchemas failed: unknown result");
+}
+
+void TCLIServiceClient::GetTables(TGetTablesResp& _return, const TGetTablesReq& req)
+{
+ send_GetTables(req);
+ recv_GetTables(_return);
+}
+
+void TCLIServiceClient::send_GetTables(const TGetTablesReq& req)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("GetTables", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ TCLIService_GetTables_pargs args;
+ args.req = &req;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void TCLIServiceClient::recv_GetTables(TGetTablesResp& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("GetTables") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ TCLIService_GetTables_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetTables failed: unknown result");
+}
+
+void TCLIServiceClient::GetTableTypes(TGetTableTypesResp& _return, const TGetTableTypesReq& req)
+{
+ send_GetTableTypes(req);
+ recv_GetTableTypes(_return);
+}
+
+void TCLIServiceClient::send_GetTableTypes(const TGetTableTypesReq& req)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("GetTableTypes", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ TCLIService_GetTableTypes_pargs args;
+ args.req = &req;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void TCLIServiceClient::recv_GetTableTypes(TGetTableTypesResp& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("GetTableTypes") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ TCLIService_GetTableTypes_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetTableTypes failed: unknown result");
+}
+
+void TCLIServiceClient::GetColumns(TGetColumnsResp& _return, const TGetColumnsReq& req)
+{
+ send_GetColumns(req);
+ recv_GetColumns(_return);
+}
+
+void TCLIServiceClient::send_GetColumns(const TGetColumnsReq& req)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("GetColumns", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ TCLIService_GetColumns_pargs args;
+ args.req = &req;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void TCLIServiceClient::recv_GetColumns(TGetColumnsResp& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("GetColumns") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ TCLIService_GetColumns_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetColumns failed: unknown result");
+}
+
+void TCLIServiceClient::GetFunctions(TGetFunctionsResp& _return, const TGetFunctionsReq& req)
+{
+ send_GetFunctions(req);
+ recv_GetFunctions(_return);
+}
+
+void TCLIServiceClient::send_GetFunctions(const TGetFunctionsReq& req)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("GetFunctions", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ TCLIService_GetFunctions_pargs args;
+ args.req = &req;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void TCLIServiceClient::recv_GetFunctions(TGetFunctionsResp& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("GetFunctions") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ TCLIService_GetFunctions_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetFunctions failed: unknown result");
+}
+
+void TCLIServiceClient::GetOperationStatus(TGetOperationStatusResp& _return, const TGetOperationStatusReq& req)
+{
+ send_GetOperationStatus(req);
+ recv_GetOperationStatus(_return);
+}
+
+void TCLIServiceClient::send_GetOperationStatus(const TGetOperationStatusReq& req)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("GetOperationStatus", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ TCLIService_GetOperationStatus_pargs args;
+ args.req = &req;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void TCLIServiceClient::recv_GetOperationStatus(TGetOperationStatusResp& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("GetOperationStatus") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ TCLIService_GetOperationStatus_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetOperationStatus failed: unknown result");
+}
+
+void TCLIServiceClient::CancelOperation(TCancelOperationResp& _return, const TCancelOperationReq& req)
+{
+ send_CancelOperation(req);
+ recv_CancelOperation(_return);
+}
+
+void TCLIServiceClient::send_CancelOperation(const TCancelOperationReq& req)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("CancelOperation", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ TCLIService_CancelOperation_pargs args;
+ args.req = &req;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void TCLIServiceClient::recv_CancelOperation(TCancelOperationResp& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("CancelOperation") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ TCLIService_CancelOperation_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "CancelOperation failed: unknown result");
+}
+
+void TCLIServiceClient::CloseOperation(TCloseOperationResp& _return, const TCloseOperationReq& req)
+{
+ send_CloseOperation(req);
+ recv_CloseOperation(_return);
+}
+
+void TCLIServiceClient::send_CloseOperation(const TCloseOperationReq& req)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("CloseOperation", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ TCLIService_CloseOperation_pargs args;
+ args.req = &req;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void TCLIServiceClient::recv_CloseOperation(TCloseOperationResp& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("CloseOperation") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ TCLIService_CloseOperation_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "CloseOperation failed: unknown result");
+}
+
+void TCLIServiceClient::GetResultSetMetadata(TGetResultSetMetadataResp& _return, const TGetResultSetMetadataReq& req)
+{
+ send_GetResultSetMetadata(req);
+ recv_GetResultSetMetadata(_return);
+}
+
+void TCLIServiceClient::send_GetResultSetMetadata(const TGetResultSetMetadataReq& req)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("GetResultSetMetadata", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ TCLIService_GetResultSetMetadata_pargs args;
+ args.req = &req;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void TCLIServiceClient::recv_GetResultSetMetadata(TGetResultSetMetadataResp& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("GetResultSetMetadata") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ TCLIService_GetResultSetMetadata_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetResultSetMetadata failed: unknown result");
+}
+
+void TCLIServiceClient::FetchResults(TFetchResultsResp& _return, const TFetchResultsReq& req)
+{
+ send_FetchResults(req);
+ recv_FetchResults(_return);
+}
+
+void TCLIServiceClient::send_FetchResults(const TFetchResultsReq& req)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("FetchResults", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ TCLIService_FetchResults_pargs args;
+ args.req = &req;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void TCLIServiceClient::recv_FetchResults(TFetchResultsResp& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("FetchResults") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ TCLIService_FetchResults_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "FetchResults failed: unknown result");
+}
+
+void TCLIServiceClient::GetDelegationToken(TGetDelegationTokenResp& _return, const TGetDelegationTokenReq& req)
+{
+ send_GetDelegationToken(req);
+ recv_GetDelegationToken(_return);
+}
+
+void TCLIServiceClient::send_GetDelegationToken(const TGetDelegationTokenReq& req)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("GetDelegationToken", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ TCLIService_GetDelegationToken_pargs args;
+ args.req = &req;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void TCLIServiceClient::recv_GetDelegationToken(TGetDelegationTokenResp& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("GetDelegationToken") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ TCLIService_GetDelegationToken_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetDelegationToken failed: unknown result");
+}
+
+void TCLIServiceClient::CancelDelegationToken(TCancelDelegationTokenResp& _return, const TCancelDelegationTokenReq& req)
+{
+ send_CancelDelegationToken(req);
+ recv_CancelDelegationToken(_return);
+}
+
+void TCLIServiceClient::send_CancelDelegationToken(const TCancelDelegationTokenReq& req)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("CancelDelegationToken", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ TCLIService_CancelDelegationToken_pargs args;
+ args.req = &req;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void TCLIServiceClient::recv_CancelDelegationToken(TCancelDelegationTokenResp& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("CancelDelegationToken") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ TCLIService_CancelDelegationToken_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "CancelDelegationToken failed: unknown result");
+}
+
+void TCLIServiceClient::RenewDelegationToken(TRenewDelegationTokenResp& _return, const TRenewDelegationTokenReq& req)
+{
+ send_RenewDelegationToken(req);
+ recv_RenewDelegationToken(_return);
+}
+
+void TCLIServiceClient::send_RenewDelegationToken(const TRenewDelegationTokenReq& req)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("RenewDelegationToken", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ TCLIService_RenewDelegationToken_pargs args;
+ args.req = &req;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->writeEnd();
+ oprot_->getTransport()->flush();
+}
+
+void TCLIServiceClient::recv_RenewDelegationToken(TRenewDelegationTokenResp& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ if (fname.compare("RenewDelegationToken") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ }
+ TCLIService_RenewDelegationToken_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "RenewDelegationToken failed: unknown result");
+}
+
+bool TCLIServiceProcessor::dispatchCall(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, const std::string& fname, int32_t seqid, void* callContext) {
+ ProcessMap::iterator pfn;
+ pfn = processMap_.find(fname);
+ if (pfn == processMap_.end()) {
+ iprot->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot->readMessageEnd();
+ iprot->getTransport()->readEnd();
+ ::apache::thrift::TApplicationException x(::apache::thrift::TApplicationException::UNKNOWN_METHOD, "Invalid method name: '"+fname+"'");
+ oprot->writeMessageBegin(fname, ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return true;
+ }
+ (this->*(pfn->second))(seqid, iprot, oprot, callContext);
+ return true;
+}
+
+void TCLIServiceProcessor::process_OpenSession(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
+{
+ void* ctx = NULL;
+ if (this->eventHandler_.get() != NULL) {
+ ctx = this->eventHandler_->getContext("TCLIService.OpenSession", callContext);
+ }
+ ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.OpenSession");
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preRead(ctx, "TCLIService.OpenSession");
+ }
+
+ TCLIService_OpenSession_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ uint32_t bytes = iprot->getTransport()->readEnd();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postRead(ctx, "TCLIService.OpenSession", bytes);
+ }
+
+ TCLIService_OpenSession_result result;
+ try {
+ iface_->OpenSession(result.success, args.req);
+ result.__isset.success = true;
+ } catch (const std::exception& e) {
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->handlerError(ctx, "TCLIService.OpenSession");
+ }
+
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("OpenSession", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return;
+ }
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preWrite(ctx, "TCLIService.OpenSession");
+ }
+
+ oprot->writeMessageBegin("OpenSession", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ bytes = oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postWrite(ctx, "TCLIService.OpenSession", bytes);
+ }
+}
+
+void TCLIServiceProcessor::process_CloseSession(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
+{
+ void* ctx = NULL;
+ if (this->eventHandler_.get() != NULL) {
+ ctx = this->eventHandler_->getContext("TCLIService.CloseSession", callContext);
+ }
+ ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.CloseSession");
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preRead(ctx, "TCLIService.CloseSession");
+ }
+
+ TCLIService_CloseSession_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ uint32_t bytes = iprot->getTransport()->readEnd();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postRead(ctx, "TCLIService.CloseSession", bytes);
+ }
+
+ TCLIService_CloseSession_result result;
+ try {
+ iface_->CloseSession(result.success, args.req);
+ result.__isset.success = true;
+ } catch (const std::exception& e) {
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->handlerError(ctx, "TCLIService.CloseSession");
+ }
+
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("CloseSession", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return;
+ }
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preWrite(ctx, "TCLIService.CloseSession");
+ }
+
+ oprot->writeMessageBegin("CloseSession", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ bytes = oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postWrite(ctx, "TCLIService.CloseSession", bytes);
+ }
+}
+
+void TCLIServiceProcessor::process_GetInfo(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
+{
+ void* ctx = NULL;
+ if (this->eventHandler_.get() != NULL) {
+ ctx = this->eventHandler_->getContext("TCLIService.GetInfo", callContext);
+ }
+ ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetInfo");
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preRead(ctx, "TCLIService.GetInfo");
+ }
+
+ TCLIService_GetInfo_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ uint32_t bytes = iprot->getTransport()->readEnd();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postRead(ctx, "TCLIService.GetInfo", bytes);
+ }
+
+ TCLIService_GetInfo_result result;
+ try {
+ iface_->GetInfo(result.success, args.req);
+ result.__isset.success = true;
+ } catch (const std::exception& e) {
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->handlerError(ctx, "TCLIService.GetInfo");
+ }
+
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("GetInfo", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return;
+ }
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preWrite(ctx, "TCLIService.GetInfo");
+ }
+
+ oprot->writeMessageBegin("GetInfo", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ bytes = oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postWrite(ctx, "TCLIService.GetInfo", bytes);
+ }
+}
+
+void TCLIServiceProcessor::process_ExecuteStatement(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
+{
+ void* ctx = NULL;
+ if (this->eventHandler_.get() != NULL) {
+ ctx = this->eventHandler_->getContext("TCLIService.ExecuteStatement", callContext);
+ }
+ ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.ExecuteStatement");
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preRead(ctx, "TCLIService.ExecuteStatement");
+ }
+
+ TCLIService_ExecuteStatement_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ uint32_t bytes = iprot->getTransport()->readEnd();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postRead(ctx, "TCLIService.ExecuteStatement", bytes);
+ }
+
+ TCLIService_ExecuteStatement_result result;
+ try {
+ iface_->ExecuteStatement(result.success, args.req);
+ result.__isset.success = true;
+ } catch (const std::exception& e) {
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->handlerError(ctx, "TCLIService.ExecuteStatement");
+ }
+
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("ExecuteStatement", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return;
+ }
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preWrite(ctx, "TCLIService.ExecuteStatement");
+ }
+
+ oprot->writeMessageBegin("ExecuteStatement", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ bytes = oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postWrite(ctx, "TCLIService.ExecuteStatement", bytes);
+ }
+}
+
+void TCLIServiceProcessor::process_GetTypeInfo(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
+{
+ void* ctx = NULL;
+ if (this->eventHandler_.get() != NULL) {
+ ctx = this->eventHandler_->getContext("TCLIService.GetTypeInfo", callContext);
+ }
+ ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetTypeInfo");
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preRead(ctx, "TCLIService.GetTypeInfo");
+ }
+
+ TCLIService_GetTypeInfo_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ uint32_t bytes = iprot->getTransport()->readEnd();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postRead(ctx, "TCLIService.GetTypeInfo", bytes);
+ }
+
+ TCLIService_GetTypeInfo_result result;
+ try {
+ iface_->GetTypeInfo(result.success, args.req);
+ result.__isset.success = true;
+ } catch (const std::exception& e) {
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->handlerError(ctx, "TCLIService.GetTypeInfo");
+ }
+
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("GetTypeInfo", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return;
+ }
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preWrite(ctx, "TCLIService.GetTypeInfo");
+ }
+
+ oprot->writeMessageBegin("GetTypeInfo", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ bytes = oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postWrite(ctx, "TCLIService.GetTypeInfo", bytes);
+ }
+}
+
+void TCLIServiceProcessor::process_GetCatalogs(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
+{
+ void* ctx = NULL;
+ if (this->eventHandler_.get() != NULL) {
+ ctx = this->eventHandler_->getContext("TCLIService.GetCatalogs", callContext);
+ }
+ ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetCatalogs");
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preRead(ctx, "TCLIService.GetCatalogs");
+ }
+
+ TCLIService_GetCatalogs_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ uint32_t bytes = iprot->getTransport()->readEnd();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postRead(ctx, "TCLIService.GetCatalogs", bytes);
+ }
+
+ TCLIService_GetCatalogs_result result;
+ try {
+ iface_->GetCatalogs(result.success, args.req);
+ result.__isset.success = true;
+ } catch (const std::exception& e) {
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->handlerError(ctx, "TCLIService.GetCatalogs");
+ }
+
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("GetCatalogs", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return;
+ }
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preWrite(ctx, "TCLIService.GetCatalogs");
+ }
+
+ oprot->writeMessageBegin("GetCatalogs", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ bytes = oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postWrite(ctx, "TCLIService.GetCatalogs", bytes);
+ }
+}
+
+void TCLIServiceProcessor::process_GetSchemas(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
+{
+ void* ctx = NULL;
+ if (this->eventHandler_.get() != NULL) {
+ ctx = this->eventHandler_->getContext("TCLIService.GetSchemas", callContext);
+ }
+ ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetSchemas");
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preRead(ctx, "TCLIService.GetSchemas");
+ }
+
+ TCLIService_GetSchemas_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ uint32_t bytes = iprot->getTransport()->readEnd();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postRead(ctx, "TCLIService.GetSchemas", bytes);
+ }
+
+ TCLIService_GetSchemas_result result;
+ try {
+ iface_->GetSchemas(result.success, args.req);
+ result.__isset.success = true;
+ } catch (const std::exception& e) {
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->handlerError(ctx, "TCLIService.GetSchemas");
+ }
+
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("GetSchemas", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return;
+ }
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preWrite(ctx, "TCLIService.GetSchemas");
+ }
+
+ oprot->writeMessageBegin("GetSchemas", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ bytes = oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postWrite(ctx, "TCLIService.GetSchemas", bytes);
+ }
+}
+
+void TCLIServiceProcessor::process_GetTables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
+{
+ void* ctx = NULL;
+ if (this->eventHandler_.get() != NULL) {
+ ctx = this->eventHandler_->getContext("TCLIService.GetTables", callContext);
+ }
+ ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetTables");
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preRead(ctx, "TCLIService.GetTables");
+ }
+
+ TCLIService_GetTables_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ uint32_t bytes = iprot->getTransport()->readEnd();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postRead(ctx, "TCLIService.GetTables", bytes);
+ }
+
+ TCLIService_GetTables_result result;
+ try {
+ iface_->GetTables(result.success, args.req);
+ result.__isset.success = true;
+ } catch (const std::exception& e) {
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->handlerError(ctx, "TCLIService.GetTables");
+ }
+
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("GetTables", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return;
+ }
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preWrite(ctx, "TCLIService.GetTables");
+ }
+
+ oprot->writeMessageBegin("GetTables", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ bytes = oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postWrite(ctx, "TCLIService.GetTables", bytes);
+ }
+}
+
+void TCLIServiceProcessor::process_GetTableTypes(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
+{
+ void* ctx = NULL;
+ if (this->eventHandler_.get() != NULL) {
+ ctx = this->eventHandler_->getContext("TCLIService.GetTableTypes", callContext);
+ }
+ ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetTableTypes");
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preRead(ctx, "TCLIService.GetTableTypes");
+ }
+
+ TCLIService_GetTableTypes_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ uint32_t bytes = iprot->getTransport()->readEnd();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postRead(ctx, "TCLIService.GetTableTypes", bytes);
+ }
+
+ TCLIService_GetTableTypes_result result;
+ try {
+ iface_->GetTableTypes(result.success, args.req);
+ result.__isset.success = true;
+ } catch (const std::exception& e) {
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->handlerError(ctx, "TCLIService.GetTableTypes");
+ }
+
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("GetTableTypes", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return;
+ }
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preWrite(ctx, "TCLIService.GetTableTypes");
+ }
+
+ oprot->writeMessageBegin("GetTableTypes", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ bytes = oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postWrite(ctx, "TCLIService.GetTableTypes", bytes);
+ }
+}
+
+void TCLIServiceProcessor::process_GetColumns(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
+{
+ void* ctx = NULL;
+ if (this->eventHandler_.get() != NULL) {
+ ctx = this->eventHandler_->getContext("TCLIService.GetColumns", callContext);
+ }
+ ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetColumns");
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preRead(ctx, "TCLIService.GetColumns");
+ }
+
+ TCLIService_GetColumns_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ uint32_t bytes = iprot->getTransport()->readEnd();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postRead(ctx, "TCLIService.GetColumns", bytes);
+ }
+
+ TCLIService_GetColumns_result result;
+ try {
+ iface_->GetColumns(result.success, args.req);
+ result.__isset.success = true;
+ } catch (const std::exception& e) {
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->handlerError(ctx, "TCLIService.GetColumns");
+ }
+
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("GetColumns", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return;
+ }
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preWrite(ctx, "TCLIService.GetColumns");
+ }
+
+ oprot->writeMessageBegin("GetColumns", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ bytes = oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postWrite(ctx, "TCLIService.GetColumns", bytes);
+ }
+}
+
+void TCLIServiceProcessor::process_GetFunctions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
+{
+ void* ctx = NULL;
+ if (this->eventHandler_.get() != NULL) {
+ ctx = this->eventHandler_->getContext("TCLIService.GetFunctions", callContext);
+ }
+ ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetFunctions");
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preRead(ctx, "TCLIService.GetFunctions");
+ }
+
+ TCLIService_GetFunctions_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ uint32_t bytes = iprot->getTransport()->readEnd();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postRead(ctx, "TCLIService.GetFunctions", bytes);
+ }
+
+ TCLIService_GetFunctions_result result;
+ try {
+ iface_->GetFunctions(result.success, args.req);
+ result.__isset.success = true;
+ } catch (const std::exception& e) {
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->handlerError(ctx, "TCLIService.GetFunctions");
+ }
+
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("GetFunctions", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return;
+ }
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preWrite(ctx, "TCLIService.GetFunctions");
+ }
+
+ oprot->writeMessageBegin("GetFunctions", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ bytes = oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postWrite(ctx, "TCLIService.GetFunctions", bytes);
+ }
+}
+
+void TCLIServiceProcessor::process_GetOperationStatus(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
+{
+ void* ctx = NULL;
+ if (this->eventHandler_.get() != NULL) {
+ ctx = this->eventHandler_->getContext("TCLIService.GetOperationStatus", callContext);
+ }
+ ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetOperationStatus");
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preRead(ctx, "TCLIService.GetOperationStatus");
+ }
+
+ TCLIService_GetOperationStatus_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ uint32_t bytes = iprot->getTransport()->readEnd();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postRead(ctx, "TCLIService.GetOperationStatus", bytes);
+ }
+
+ TCLIService_GetOperationStatus_result result;
+ try {
+ iface_->GetOperationStatus(result.success, args.req);
+ result.__isset.success = true;
+ } catch (const std::exception& e) {
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->handlerError(ctx, "TCLIService.GetOperationStatus");
+ }
+
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("GetOperationStatus", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return;
+ }
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preWrite(ctx, "TCLIService.GetOperationStatus");
+ }
+
+ oprot->writeMessageBegin("GetOperationStatus", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ bytes = oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postWrite(ctx, "TCLIService.GetOperationStatus", bytes);
+ }
+}
+
+void TCLIServiceProcessor::process_CancelOperation(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
+{
+ void* ctx = NULL;
+ if (this->eventHandler_.get() != NULL) {
+ ctx = this->eventHandler_->getContext("TCLIService.CancelOperation", callContext);
+ }
+ ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.CancelOperation");
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preRead(ctx, "TCLIService.CancelOperation");
+ }
+
+ TCLIService_CancelOperation_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ uint32_t bytes = iprot->getTransport()->readEnd();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postRead(ctx, "TCLIService.CancelOperation", bytes);
+ }
+
+ TCLIService_CancelOperation_result result;
+ try {
+ iface_->CancelOperation(result.success, args.req);
+ result.__isset.success = true;
+ } catch (const std::exception& e) {
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->handlerError(ctx, "TCLIService.CancelOperation");
+ }
+
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("CancelOperation", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return;
+ }
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preWrite(ctx, "TCLIService.CancelOperation");
+ }
+
+ oprot->writeMessageBegin("CancelOperation", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ bytes = oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postWrite(ctx, "TCLIService.CancelOperation", bytes);
+ }
+}
+
+void TCLIServiceProcessor::process_CloseOperation(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
+{
+ void* ctx = NULL;
+ if (this->eventHandler_.get() != NULL) {
+ ctx = this->eventHandler_->getContext("TCLIService.CloseOperation", callContext);
+ }
+ ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.CloseOperation");
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preRead(ctx, "TCLIService.CloseOperation");
+ }
+
+ TCLIService_CloseOperation_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ uint32_t bytes = iprot->getTransport()->readEnd();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postRead(ctx, "TCLIService.CloseOperation", bytes);
+ }
+
+ TCLIService_CloseOperation_result result;
+ try {
+ iface_->CloseOperation(result.success, args.req);
+ result.__isset.success = true;
+ } catch (const std::exception& e) {
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->handlerError(ctx, "TCLIService.CloseOperation");
+ }
+
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("CloseOperation", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return;
+ }
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preWrite(ctx, "TCLIService.CloseOperation");
+ }
+
+ oprot->writeMessageBegin("CloseOperation", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ bytes = oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postWrite(ctx, "TCLIService.CloseOperation", bytes);
+ }
+}
+
+void TCLIServiceProcessor::process_GetResultSetMetadata(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
+{
+ void* ctx = NULL;
+ if (this->eventHandler_.get() != NULL) {
+ ctx = this->eventHandler_->getContext("TCLIService.GetResultSetMetadata", callContext);
+ }
+ ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetResultSetMetadata");
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preRead(ctx, "TCLIService.GetResultSetMetadata");
+ }
+
+ TCLIService_GetResultSetMetadata_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ uint32_t bytes = iprot->getTransport()->readEnd();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postRead(ctx, "TCLIService.GetResultSetMetadata", bytes);
+ }
+
+ TCLIService_GetResultSetMetadata_result result;
+ try {
+ iface_->GetResultSetMetadata(result.success, args.req);
+ result.__isset.success = true;
+ } catch (const std::exception& e) {
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->handlerError(ctx, "TCLIService.GetResultSetMetadata");
+ }
+
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("GetResultSetMetadata", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return;
+ }
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preWrite(ctx, "TCLIService.GetResultSetMetadata");
+ }
+
+ oprot->writeMessageBegin("GetResultSetMetadata", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ bytes = oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postWrite(ctx, "TCLIService.GetResultSetMetadata", bytes);
+ }
+}
+
+void TCLIServiceProcessor::process_FetchResults(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
+{
+ void* ctx = NULL;
+ if (this->eventHandler_.get() != NULL) {
+ ctx = this->eventHandler_->getContext("TCLIService.FetchResults", callContext);
+ }
+ ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.FetchResults");
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preRead(ctx, "TCLIService.FetchResults");
+ }
+
+ TCLIService_FetchResults_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ uint32_t bytes = iprot->getTransport()->readEnd();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postRead(ctx, "TCLIService.FetchResults", bytes);
+ }
+
+ TCLIService_FetchResults_result result;
+ try {
+ iface_->FetchResults(result.success, args.req);
+ result.__isset.success = true;
+ } catch (const std::exception& e) {
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->handlerError(ctx, "TCLIService.FetchResults");
+ }
+
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("FetchResults", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return;
+ }
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preWrite(ctx, "TCLIService.FetchResults");
+ }
+
+ oprot->writeMessageBegin("FetchResults", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ bytes = oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postWrite(ctx, "TCLIService.FetchResults", bytes);
+ }
+}
+
+void TCLIServiceProcessor::process_GetDelegationToken(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
+{
+ void* ctx = NULL;
+ if (this->eventHandler_.get() != NULL) {
+ ctx = this->eventHandler_->getContext("TCLIService.GetDelegationToken", callContext);
+ }
+ ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetDelegationToken");
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preRead(ctx, "TCLIService.GetDelegationToken");
+ }
+
+ TCLIService_GetDelegationToken_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ uint32_t bytes = iprot->getTransport()->readEnd();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postRead(ctx, "TCLIService.GetDelegationToken", bytes);
+ }
+
+ TCLIService_GetDelegationToken_result result;
+ try {
+ iface_->GetDelegationToken(result.success, args.req);
+ result.__isset.success = true;
+ } catch (const std::exception& e) {
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->handlerError(ctx, "TCLIService.GetDelegationToken");
+ }
+
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("GetDelegationToken", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return;
+ }
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preWrite(ctx, "TCLIService.GetDelegationToken");
+ }
+
+ oprot->writeMessageBegin("GetDelegationToken", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ bytes = oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postWrite(ctx, "TCLIService.GetDelegationToken", bytes);
+ }
+}
+
+void TCLIServiceProcessor::process_CancelDelegationToken(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
+{
+ void* ctx = NULL;
+ if (this->eventHandler_.get() != NULL) {
+ ctx = this->eventHandler_->getContext("TCLIService.CancelDelegationToken", callContext);
+ }
+ ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.CancelDelegationToken");
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preRead(ctx, "TCLIService.CancelDelegationToken");
+ }
+
+ TCLIService_CancelDelegationToken_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ uint32_t bytes = iprot->getTransport()->readEnd();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postRead(ctx, "TCLIService.CancelDelegationToken", bytes);
+ }
+
+ TCLIService_CancelDelegationToken_result result;
+ try {
+ iface_->CancelDelegationToken(result.success, args.req);
+ result.__isset.success = true;
+ } catch (const std::exception& e) {
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->handlerError(ctx, "TCLIService.CancelDelegationToken");
+ }
+
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("CancelDelegationToken", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return;
+ }
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preWrite(ctx, "TCLIService.CancelDelegationToken");
+ }
+
+ oprot->writeMessageBegin("CancelDelegationToken", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ bytes = oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postWrite(ctx, "TCLIService.CancelDelegationToken", bytes);
+ }
+}
+
+void TCLIServiceProcessor::process_RenewDelegationToken(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
+{
+ void* ctx = NULL;
+ if (this->eventHandler_.get() != NULL) {
+ ctx = this->eventHandler_->getContext("TCLIService.RenewDelegationToken", callContext);
+ }
+ ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.RenewDelegationToken");
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preRead(ctx, "TCLIService.RenewDelegationToken");
+ }
+
+ TCLIService_RenewDelegationToken_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ uint32_t bytes = iprot->getTransport()->readEnd();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postRead(ctx, "TCLIService.RenewDelegationToken", bytes);
+ }
+
+ TCLIService_RenewDelegationToken_result result;
+ try {
+ iface_->RenewDelegationToken(result.success, args.req);
+ result.__isset.success = true;
+ } catch (const std::exception& e) {
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->handlerError(ctx, "TCLIService.RenewDelegationToken");
+ }
+
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("RenewDelegationToken", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+ return;
+ }
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->preWrite(ctx, "TCLIService.RenewDelegationToken");
+ }
+
+ oprot->writeMessageBegin("RenewDelegationToken", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ bytes = oprot->getTransport()->writeEnd();
+ oprot->getTransport()->flush();
+
+ if (this->eventHandler_.get() != NULL) {
+ this->eventHandler_->postWrite(ctx, "TCLIService.RenewDelegationToken", bytes);
+ }
+}
+
+::boost::shared_ptr< ::apache::thrift::TProcessor > TCLIServiceProcessorFactory::getProcessor(const ::apache::thrift::TConnectionInfo& connInfo) {
+ ::apache::thrift::ReleaseHandler< TCLIServiceIfFactory > cleanup(handlerFactory_);
+ ::boost::shared_ptr< TCLIServiceIf > handler(handlerFactory_->getHandler(connInfo), cleanup);
+ ::boost::shared_ptr< ::apache::thrift::TProcessor > processor(new TCLIServiceProcessor(handler));
+ return processor;
+}
+}}}}} // namespace
+
diff --git service-rpc/src/gen/thrift/gen-cpp/TCLIService.h service-rpc/src/gen/thrift/gen-cpp/TCLIService.h
new file mode 100644
index 0000000..d17edd3
--- /dev/null
+++ service-rpc/src/gen/thrift/gen-cpp/TCLIService.h
@@ -0,0 +1,2765 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.2)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+#ifndef TCLIService_H
+#define TCLIService_H
+
+#include
+#include "TCLIService_types.h"
+
+namespace apache { namespace hive { namespace service { namespace rpc { namespace thrift {
+
+class TCLIServiceIf {
+ public:
+ virtual ~TCLIServiceIf() {}
+ virtual void OpenSession(TOpenSessionResp& _return, const TOpenSessionReq& req) = 0;
+ virtual void CloseSession(TCloseSessionResp& _return, const TCloseSessionReq& req) = 0;
+ virtual void GetInfo(TGetInfoResp& _return, const TGetInfoReq& req) = 0;
+ virtual void ExecuteStatement(TExecuteStatementResp& _return, const TExecuteStatementReq& req) = 0;
+ virtual void GetTypeInfo(TGetTypeInfoResp& _return, const TGetTypeInfoReq& req) = 0;
+ virtual void GetCatalogs(TGetCatalogsResp& _return, const TGetCatalogsReq& req) = 0;
+ virtual void GetSchemas(TGetSchemasResp& _return, const TGetSchemasReq& req) = 0;
+ virtual void GetTables(TGetTablesResp& _return, const TGetTablesReq& req) = 0;
+ virtual void GetTableTypes(TGetTableTypesResp& _return, const TGetTableTypesReq& req) = 0;
+ virtual void GetColumns(TGetColumnsResp& _return, const TGetColumnsReq& req) = 0;
+ virtual void GetFunctions(TGetFunctionsResp& _return, const TGetFunctionsReq& req) = 0;
+ virtual void GetOperationStatus(TGetOperationStatusResp& _return, const TGetOperationStatusReq& req) = 0;
+ virtual void CancelOperation(TCancelOperationResp& _return, const TCancelOperationReq& req) = 0;
+ virtual void CloseOperation(TCloseOperationResp& _return, const TCloseOperationReq& req) = 0;
+ virtual void GetResultSetMetadata(TGetResultSetMetadataResp& _return, const TGetResultSetMetadataReq& req) = 0;
+ virtual void FetchResults(TFetchResultsResp& _return, const TFetchResultsReq& req) = 0;
+ virtual void GetDelegationToken(TGetDelegationTokenResp& _return, const TGetDelegationTokenReq& req) = 0;
+ virtual void CancelDelegationToken(TCancelDelegationTokenResp& _return, const TCancelDelegationTokenReq& req) = 0;
+ virtual void RenewDelegationToken(TRenewDelegationTokenResp& _return, const TRenewDelegationTokenReq& req) = 0;
+};
+
+class TCLIServiceIfFactory {
+ public:
+ typedef TCLIServiceIf Handler;
+
+ virtual ~TCLIServiceIfFactory() {}
+
+ virtual TCLIServiceIf* getHandler(const ::apache::thrift::TConnectionInfo& connInfo) = 0;
+ virtual void releaseHandler(TCLIServiceIf* /* handler */) = 0;
+};
+
+class TCLIServiceIfSingletonFactory : virtual public TCLIServiceIfFactory {
+ public:
+ TCLIServiceIfSingletonFactory(const boost::shared_ptr& iface) : iface_(iface) {}
+ virtual ~TCLIServiceIfSingletonFactory() {}
+
+ virtual TCLIServiceIf* getHandler(const ::apache::thrift::TConnectionInfo&) {
+ return iface_.get();
+ }
+ virtual void releaseHandler(TCLIServiceIf* /* handler */) {}
+
+ protected:
+ boost::shared_ptr iface_;
+};
+
+class TCLIServiceNull : virtual public TCLIServiceIf {
+ public:
+ virtual ~TCLIServiceNull() {}
+ void OpenSession(TOpenSessionResp& /* _return */, const TOpenSessionReq& /* req */) {
+ return;
+ }
+ void CloseSession(TCloseSessionResp& /* _return */, const TCloseSessionReq& /* req */) {
+ return;
+ }
+ void GetInfo(TGetInfoResp& /* _return */, const TGetInfoReq& /* req */) {
+ return;
+ }
+ void ExecuteStatement(TExecuteStatementResp& /* _return */, const TExecuteStatementReq& /* req */) {
+ return;
+ }
+ void GetTypeInfo(TGetTypeInfoResp& /* _return */, const TGetTypeInfoReq& /* req */) {
+ return;
+ }
+ void GetCatalogs(TGetCatalogsResp& /* _return */, const TGetCatalogsReq& /* req */) {
+ return;
+ }
+ void GetSchemas(TGetSchemasResp& /* _return */, const TGetSchemasReq& /* req */) {
+ return;
+ }
+ void GetTables(TGetTablesResp& /* _return */, const TGetTablesReq& /* req */) {
+ return;
+ }
+ void GetTableTypes(TGetTableTypesResp& /* _return */, const TGetTableTypesReq& /* req */) {
+ return;
+ }
+ void GetColumns(TGetColumnsResp& /* _return */, const TGetColumnsReq& /* req */) {
+ return;
+ }
+ void GetFunctions(TGetFunctionsResp& /* _return */, const TGetFunctionsReq& /* req */) {
+ return;
+ }
+ void GetOperationStatus(TGetOperationStatusResp& /* _return */, const TGetOperationStatusReq& /* req */) {
+ return;
+ }
+ void CancelOperation(TCancelOperationResp& /* _return */, const TCancelOperationReq& /* req */) {
+ return;
+ }
+ void CloseOperation(TCloseOperationResp& /* _return */, const TCloseOperationReq& /* req */) {
+ return;
+ }
+ void GetResultSetMetadata(TGetResultSetMetadataResp& /* _return */, const TGetResultSetMetadataReq& /* req */) {
+ return;
+ }
+ void FetchResults(TFetchResultsResp& /* _return */, const TFetchResultsReq& /* req */) {
+ return;
+ }
+ void GetDelegationToken(TGetDelegationTokenResp& /* _return */, const TGetDelegationTokenReq& /* req */) {
+ return;
+ }
+ void CancelDelegationToken(TCancelDelegationTokenResp& /* _return */, const TCancelDelegationTokenReq& /* req */) {
+ return;
+ }
+ void RenewDelegationToken(TRenewDelegationTokenResp& /* _return */, const TRenewDelegationTokenReq& /* req */) {
+ return;
+ }
+};
+
+typedef struct _TCLIService_OpenSession_args__isset {
+ _TCLIService_OpenSession_args__isset() : req(false) {}
+ bool req :1;
+} _TCLIService_OpenSession_args__isset;
+
+class TCLIService_OpenSession_args {
+ public:
+
+ static const char* ascii_fingerprint; // = "657FF0677838A57698AD9D58A923940A";
+ static const uint8_t binary_fingerprint[16]; // = {0x65,0x7F,0xF0,0x67,0x78,0x38,0xA5,0x76,0x98,0xAD,0x9D,0x58,0xA9,0x23,0x94,0x0A};
+
+ TCLIService_OpenSession_args(const TCLIService_OpenSession_args&);
+ TCLIService_OpenSession_args& operator=(const TCLIService_OpenSession_args&);
+ TCLIService_OpenSession_args() {
+ }
+
+ virtual ~TCLIService_OpenSession_args() throw();
+ TOpenSessionReq req;
+
+ _TCLIService_OpenSession_args__isset __isset;
+
+ void __set_req(const TOpenSessionReq& val);
+
+ bool operator == (const TCLIService_OpenSession_args & rhs) const
+ {
+ if (!(req == rhs.req))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_OpenSession_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_OpenSession_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_OpenSession_args& obj);
+};
+
+
+class TCLIService_OpenSession_pargs {
+ public:
+
+ static const char* ascii_fingerprint; // = "657FF0677838A57698AD9D58A923940A";
+ static const uint8_t binary_fingerprint[16]; // = {0x65,0x7F,0xF0,0x67,0x78,0x38,0xA5,0x76,0x98,0xAD,0x9D,0x58,0xA9,0x23,0x94,0x0A};
+
+
+ virtual ~TCLIService_OpenSession_pargs() throw();
+ const TOpenSessionReq* req;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_OpenSession_pargs& obj);
+};
+
+typedef struct _TCLIService_OpenSession_result__isset {
+ _TCLIService_OpenSession_result__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_OpenSession_result__isset;
+
+class TCLIService_OpenSession_result {
+ public:
+
+ static const char* ascii_fingerprint; // = "C55268D57D6DC6A256619A7DB419699E";
+ static const uint8_t binary_fingerprint[16]; // = {0xC5,0x52,0x68,0xD5,0x7D,0x6D,0xC6,0xA2,0x56,0x61,0x9A,0x7D,0xB4,0x19,0x69,0x9E};
+
+ TCLIService_OpenSession_result(const TCLIService_OpenSession_result&);
+ TCLIService_OpenSession_result& operator=(const TCLIService_OpenSession_result&);
+ TCLIService_OpenSession_result() {
+ }
+
+ virtual ~TCLIService_OpenSession_result() throw();
+ TOpenSessionResp success;
+
+ _TCLIService_OpenSession_result__isset __isset;
+
+ void __set_success(const TOpenSessionResp& val);
+
+ bool operator == (const TCLIService_OpenSession_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_OpenSession_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_OpenSession_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_OpenSession_result& obj);
+};
+
+typedef struct _TCLIService_OpenSession_presult__isset {
+ _TCLIService_OpenSession_presult__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_OpenSession_presult__isset;
+
+class TCLIService_OpenSession_presult {
+ public:
+
+ static const char* ascii_fingerprint; // = "C55268D57D6DC6A256619A7DB419699E";
+ static const uint8_t binary_fingerprint[16]; // = {0xC5,0x52,0x68,0xD5,0x7D,0x6D,0xC6,0xA2,0x56,0x61,0x9A,0x7D,0xB4,0x19,0x69,0x9E};
+
+
+ virtual ~TCLIService_OpenSession_presult() throw();
+ TOpenSessionResp* success;
+
+ _TCLIService_OpenSession_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_OpenSession_presult& obj);
+};
+
+typedef struct _TCLIService_CloseSession_args__isset {
+ _TCLIService_CloseSession_args__isset() : req(false) {}
+ bool req :1;
+} _TCLIService_CloseSession_args__isset;
+
+class TCLIService_CloseSession_args {
+ public:
+
+ static const char* ascii_fingerprint; // = "FD7076C37D193E2A343D9691B59D94EC";
+ static const uint8_t binary_fingerprint[16]; // = {0xFD,0x70,0x76,0xC3,0x7D,0x19,0x3E,0x2A,0x34,0x3D,0x96,0x91,0xB5,0x9D,0x94,0xEC};
+
+ TCLIService_CloseSession_args(const TCLIService_CloseSession_args&);
+ TCLIService_CloseSession_args& operator=(const TCLIService_CloseSession_args&);
+ TCLIService_CloseSession_args() {
+ }
+
+ virtual ~TCLIService_CloseSession_args() throw();
+ TCloseSessionReq req;
+
+ _TCLIService_CloseSession_args__isset __isset;
+
+ void __set_req(const TCloseSessionReq& val);
+
+ bool operator == (const TCLIService_CloseSession_args & rhs) const
+ {
+ if (!(req == rhs.req))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_CloseSession_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_CloseSession_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_CloseSession_args& obj);
+};
+
+
+class TCLIService_CloseSession_pargs {
+ public:
+
+ static const char* ascii_fingerprint; // = "FD7076C37D193E2A343D9691B59D94EC";
+ static const uint8_t binary_fingerprint[16]; // = {0xFD,0x70,0x76,0xC3,0x7D,0x19,0x3E,0x2A,0x34,0x3D,0x96,0x91,0xB5,0x9D,0x94,0xEC};
+
+
+ virtual ~TCLIService_CloseSession_pargs() throw();
+ const TCloseSessionReq* req;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_CloseSession_pargs& obj);
+};
+
+typedef struct _TCLIService_CloseSession_result__isset {
+ _TCLIService_CloseSession_result__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_CloseSession_result__isset;
+
+class TCLIService_CloseSession_result {
+ public:
+
+ static const char* ascii_fingerprint; // = "BDB51A479DCD1EB1DB636FA1B4BE02A7";
+ static const uint8_t binary_fingerprint[16]; // = {0xBD,0xB5,0x1A,0x47,0x9D,0xCD,0x1E,0xB1,0xDB,0x63,0x6F,0xA1,0xB4,0xBE,0x02,0xA7};
+
+ TCLIService_CloseSession_result(const TCLIService_CloseSession_result&);
+ TCLIService_CloseSession_result& operator=(const TCLIService_CloseSession_result&);
+ TCLIService_CloseSession_result() {
+ }
+
+ virtual ~TCLIService_CloseSession_result() throw();
+ TCloseSessionResp success;
+
+ _TCLIService_CloseSession_result__isset __isset;
+
+ void __set_success(const TCloseSessionResp& val);
+
+ bool operator == (const TCLIService_CloseSession_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_CloseSession_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_CloseSession_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_CloseSession_result& obj);
+};
+
+typedef struct _TCLIService_CloseSession_presult__isset {
+ _TCLIService_CloseSession_presult__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_CloseSession_presult__isset;
+
+class TCLIService_CloseSession_presult {
+ public:
+
+ static const char* ascii_fingerprint; // = "BDB51A479DCD1EB1DB636FA1B4BE02A7";
+ static const uint8_t binary_fingerprint[16]; // = {0xBD,0xB5,0x1A,0x47,0x9D,0xCD,0x1E,0xB1,0xDB,0x63,0x6F,0xA1,0xB4,0xBE,0x02,0xA7};
+
+
+ virtual ~TCLIService_CloseSession_presult() throw();
+ TCloseSessionResp* success;
+
+ _TCLIService_CloseSession_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_CloseSession_presult& obj);
+};
+
+typedef struct _TCLIService_GetInfo_args__isset {
+ _TCLIService_GetInfo_args__isset() : req(false) {}
+ bool req :1;
+} _TCLIService_GetInfo_args__isset;
+
+class TCLIService_GetInfo_args {
+ public:
+
+ static const char* ascii_fingerprint; // = "482A174DD6064955A19F28C5395E27FA";
+ static const uint8_t binary_fingerprint[16]; // = {0x48,0x2A,0x17,0x4D,0xD6,0x06,0x49,0x55,0xA1,0x9F,0x28,0xC5,0x39,0x5E,0x27,0xFA};
+
+ TCLIService_GetInfo_args(const TCLIService_GetInfo_args&);
+ TCLIService_GetInfo_args& operator=(const TCLIService_GetInfo_args&);
+ TCLIService_GetInfo_args() {
+ }
+
+ virtual ~TCLIService_GetInfo_args() throw();
+ TGetInfoReq req;
+
+ _TCLIService_GetInfo_args__isset __isset;
+
+ void __set_req(const TGetInfoReq& val);
+
+ bool operator == (const TCLIService_GetInfo_args & rhs) const
+ {
+ if (!(req == rhs.req))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetInfo_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetInfo_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetInfo_args& obj);
+};
+
+
+class TCLIService_GetInfo_pargs {
+ public:
+
+ static const char* ascii_fingerprint; // = "482A174DD6064955A19F28C5395E27FA";
+ static const uint8_t binary_fingerprint[16]; // = {0x48,0x2A,0x17,0x4D,0xD6,0x06,0x49,0x55,0xA1,0x9F,0x28,0xC5,0x39,0x5E,0x27,0xFA};
+
+
+ virtual ~TCLIService_GetInfo_pargs() throw();
+ const TGetInfoReq* req;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetInfo_pargs& obj);
+};
+
+typedef struct _TCLIService_GetInfo_result__isset {
+ _TCLIService_GetInfo_result__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetInfo_result__isset;
+
+class TCLIService_GetInfo_result {
+ public:
+
+ static const char* ascii_fingerprint; // = "95AE9E06990A55202EF5D96DABE20D75";
+ static const uint8_t binary_fingerprint[16]; // = {0x95,0xAE,0x9E,0x06,0x99,0x0A,0x55,0x20,0x2E,0xF5,0xD9,0x6D,0xAB,0xE2,0x0D,0x75};
+
+ TCLIService_GetInfo_result(const TCLIService_GetInfo_result&);
+ TCLIService_GetInfo_result& operator=(const TCLIService_GetInfo_result&);
+ TCLIService_GetInfo_result() {
+ }
+
+ virtual ~TCLIService_GetInfo_result() throw();
+ TGetInfoResp success;
+
+ _TCLIService_GetInfo_result__isset __isset;
+
+ void __set_success(const TGetInfoResp& val);
+
+ bool operator == (const TCLIService_GetInfo_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetInfo_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetInfo_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetInfo_result& obj);
+};
+
+typedef struct _TCLIService_GetInfo_presult__isset {
+ _TCLIService_GetInfo_presult__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetInfo_presult__isset;
+
+class TCLIService_GetInfo_presult {
+ public:
+
+ static const char* ascii_fingerprint; // = "95AE9E06990A55202EF5D96DABE20D75";
+ static const uint8_t binary_fingerprint[16]; // = {0x95,0xAE,0x9E,0x06,0x99,0x0A,0x55,0x20,0x2E,0xF5,0xD9,0x6D,0xAB,0xE2,0x0D,0x75};
+
+
+ virtual ~TCLIService_GetInfo_presult() throw();
+ TGetInfoResp* success;
+
+ _TCLIService_GetInfo_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetInfo_presult& obj);
+};
+
+typedef struct _TCLIService_ExecuteStatement_args__isset {
+ _TCLIService_ExecuteStatement_args__isset() : req(false) {}
+ bool req :1;
+} _TCLIService_ExecuteStatement_args__isset;
+
+class TCLIService_ExecuteStatement_args {
+ public:
+
+ static const char* ascii_fingerprint; // = "BD5534ACDA7A523F638927AC476C2173";
+ static const uint8_t binary_fingerprint[16]; // = {0xBD,0x55,0x34,0xAC,0xDA,0x7A,0x52,0x3F,0x63,0x89,0x27,0xAC,0x47,0x6C,0x21,0x73};
+
+ TCLIService_ExecuteStatement_args(const TCLIService_ExecuteStatement_args&);
+ TCLIService_ExecuteStatement_args& operator=(const TCLIService_ExecuteStatement_args&);
+ TCLIService_ExecuteStatement_args() {
+ }
+
+ virtual ~TCLIService_ExecuteStatement_args() throw();
+ TExecuteStatementReq req;
+
+ _TCLIService_ExecuteStatement_args__isset __isset;
+
+ void __set_req(const TExecuteStatementReq& val);
+
+ bool operator == (const TCLIService_ExecuteStatement_args & rhs) const
+ {
+ if (!(req == rhs.req))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_ExecuteStatement_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_ExecuteStatement_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_ExecuteStatement_args& obj);
+};
+
+
+class TCLIService_ExecuteStatement_pargs {
+ public:
+
+ static const char* ascii_fingerprint; // = "BD5534ACDA7A523F638927AC476C2173";
+ static const uint8_t binary_fingerprint[16]; // = {0xBD,0x55,0x34,0xAC,0xDA,0x7A,0x52,0x3F,0x63,0x89,0x27,0xAC,0x47,0x6C,0x21,0x73};
+
+
+ virtual ~TCLIService_ExecuteStatement_pargs() throw();
+ const TExecuteStatementReq* req;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_ExecuteStatement_pargs& obj);
+};
+
+typedef struct _TCLIService_ExecuteStatement_result__isset {
+ _TCLIService_ExecuteStatement_result__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_ExecuteStatement_result__isset;
+
+class TCLIService_ExecuteStatement_result {
+ public:
+
+ static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF";
+ static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF};
+
+ TCLIService_ExecuteStatement_result(const TCLIService_ExecuteStatement_result&);
+ TCLIService_ExecuteStatement_result& operator=(const TCLIService_ExecuteStatement_result&);
+ TCLIService_ExecuteStatement_result() {
+ }
+
+ virtual ~TCLIService_ExecuteStatement_result() throw();
+ TExecuteStatementResp success;
+
+ _TCLIService_ExecuteStatement_result__isset __isset;
+
+ void __set_success(const TExecuteStatementResp& val);
+
+ bool operator == (const TCLIService_ExecuteStatement_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_ExecuteStatement_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_ExecuteStatement_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_ExecuteStatement_result& obj);
+};
+
+typedef struct _TCLIService_ExecuteStatement_presult__isset {
+ _TCLIService_ExecuteStatement_presult__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_ExecuteStatement_presult__isset;
+
+class TCLIService_ExecuteStatement_presult {
+ public:
+
+ static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF";
+ static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF};
+
+
+ virtual ~TCLIService_ExecuteStatement_presult() throw();
+ TExecuteStatementResp* success;
+
+ _TCLIService_ExecuteStatement_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_ExecuteStatement_presult& obj);
+};
+
+typedef struct _TCLIService_GetTypeInfo_args__isset {
+ _TCLIService_GetTypeInfo_args__isset() : req(false) {}
+ bool req :1;
+} _TCLIService_GetTypeInfo_args__isset;
+
+class TCLIService_GetTypeInfo_args {
+ public:
+
+ static const char* ascii_fingerprint; // = "FD7076C37D193E2A343D9691B59D94EC";
+ static const uint8_t binary_fingerprint[16]; // = {0xFD,0x70,0x76,0xC3,0x7D,0x19,0x3E,0x2A,0x34,0x3D,0x96,0x91,0xB5,0x9D,0x94,0xEC};
+
+ TCLIService_GetTypeInfo_args(const TCLIService_GetTypeInfo_args&);
+ TCLIService_GetTypeInfo_args& operator=(const TCLIService_GetTypeInfo_args&);
+ TCLIService_GetTypeInfo_args() {
+ }
+
+ virtual ~TCLIService_GetTypeInfo_args() throw();
+ TGetTypeInfoReq req;
+
+ _TCLIService_GetTypeInfo_args__isset __isset;
+
+ void __set_req(const TGetTypeInfoReq& val);
+
+ bool operator == (const TCLIService_GetTypeInfo_args & rhs) const
+ {
+ if (!(req == rhs.req))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetTypeInfo_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetTypeInfo_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTypeInfo_args& obj);
+};
+
+
+class TCLIService_GetTypeInfo_pargs {
+ public:
+
+ static const char* ascii_fingerprint; // = "FD7076C37D193E2A343D9691B59D94EC";
+ static const uint8_t binary_fingerprint[16]; // = {0xFD,0x70,0x76,0xC3,0x7D,0x19,0x3E,0x2A,0x34,0x3D,0x96,0x91,0xB5,0x9D,0x94,0xEC};
+
+
+ virtual ~TCLIService_GetTypeInfo_pargs() throw();
+ const TGetTypeInfoReq* req;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTypeInfo_pargs& obj);
+};
+
+typedef struct _TCLIService_GetTypeInfo_result__isset {
+ _TCLIService_GetTypeInfo_result__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetTypeInfo_result__isset;
+
+class TCLIService_GetTypeInfo_result {
+ public:
+
+ static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF";
+ static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF};
+
+ TCLIService_GetTypeInfo_result(const TCLIService_GetTypeInfo_result&);
+ TCLIService_GetTypeInfo_result& operator=(const TCLIService_GetTypeInfo_result&);
+ TCLIService_GetTypeInfo_result() {
+ }
+
+ virtual ~TCLIService_GetTypeInfo_result() throw();
+ TGetTypeInfoResp success;
+
+ _TCLIService_GetTypeInfo_result__isset __isset;
+
+ void __set_success(const TGetTypeInfoResp& val);
+
+ bool operator == (const TCLIService_GetTypeInfo_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetTypeInfo_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetTypeInfo_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTypeInfo_result& obj);
+};
+
+typedef struct _TCLIService_GetTypeInfo_presult__isset {
+ _TCLIService_GetTypeInfo_presult__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetTypeInfo_presult__isset;
+
+class TCLIService_GetTypeInfo_presult {
+ public:
+
+ static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF";
+ static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF};
+
+
+ virtual ~TCLIService_GetTypeInfo_presult() throw();
+ TGetTypeInfoResp* success;
+
+ _TCLIService_GetTypeInfo_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTypeInfo_presult& obj);
+};
+
+typedef struct _TCLIService_GetCatalogs_args__isset {
+ _TCLIService_GetCatalogs_args__isset() : req(false) {}
+ bool req :1;
+} _TCLIService_GetCatalogs_args__isset;
+
+class TCLIService_GetCatalogs_args {
+ public:
+
+ static const char* ascii_fingerprint; // = "FD7076C37D193E2A343D9691B59D94EC";
+ static const uint8_t binary_fingerprint[16]; // = {0xFD,0x70,0x76,0xC3,0x7D,0x19,0x3E,0x2A,0x34,0x3D,0x96,0x91,0xB5,0x9D,0x94,0xEC};
+
+ TCLIService_GetCatalogs_args(const TCLIService_GetCatalogs_args&);
+ TCLIService_GetCatalogs_args& operator=(const TCLIService_GetCatalogs_args&);
+ TCLIService_GetCatalogs_args() {
+ }
+
+ virtual ~TCLIService_GetCatalogs_args() throw();
+ TGetCatalogsReq req;
+
+ _TCLIService_GetCatalogs_args__isset __isset;
+
+ void __set_req(const TGetCatalogsReq& val);
+
+ bool operator == (const TCLIService_GetCatalogs_args & rhs) const
+ {
+ if (!(req == rhs.req))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetCatalogs_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetCatalogs_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetCatalogs_args& obj);
+};
+
+
+class TCLIService_GetCatalogs_pargs {
+ public:
+
+ static const char* ascii_fingerprint; // = "FD7076C37D193E2A343D9691B59D94EC";
+ static const uint8_t binary_fingerprint[16]; // = {0xFD,0x70,0x76,0xC3,0x7D,0x19,0x3E,0x2A,0x34,0x3D,0x96,0x91,0xB5,0x9D,0x94,0xEC};
+
+
+ virtual ~TCLIService_GetCatalogs_pargs() throw();
+ const TGetCatalogsReq* req;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetCatalogs_pargs& obj);
+};
+
+typedef struct _TCLIService_GetCatalogs_result__isset {
+ _TCLIService_GetCatalogs_result__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetCatalogs_result__isset;
+
+class TCLIService_GetCatalogs_result {
+ public:
+
+ static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF";
+ static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF};
+
+ TCLIService_GetCatalogs_result(const TCLIService_GetCatalogs_result&);
+ TCLIService_GetCatalogs_result& operator=(const TCLIService_GetCatalogs_result&);
+ TCLIService_GetCatalogs_result() {
+ }
+
+ virtual ~TCLIService_GetCatalogs_result() throw();
+ TGetCatalogsResp success;
+
+ _TCLIService_GetCatalogs_result__isset __isset;
+
+ void __set_success(const TGetCatalogsResp& val);
+
+ bool operator == (const TCLIService_GetCatalogs_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetCatalogs_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetCatalogs_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetCatalogs_result& obj);
+};
+
+typedef struct _TCLIService_GetCatalogs_presult__isset {
+ _TCLIService_GetCatalogs_presult__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetCatalogs_presult__isset;
+
+class TCLIService_GetCatalogs_presult {
+ public:
+
+ static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF";
+ static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF};
+
+
+ virtual ~TCLIService_GetCatalogs_presult() throw();
+ TGetCatalogsResp* success;
+
+ _TCLIService_GetCatalogs_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetCatalogs_presult& obj);
+};
+
+typedef struct _TCLIService_GetSchemas_args__isset {
+ _TCLIService_GetSchemas_args__isset() : req(false) {}
+ bool req :1;
+} _TCLIService_GetSchemas_args__isset;
+
+class TCLIService_GetSchemas_args {
+ public:
+
+ static const char* ascii_fingerprint; // = "34B9FACB4B4C34ABAEDCF0A2B60345DE";
+ static const uint8_t binary_fingerprint[16]; // = {0x34,0xB9,0xFA,0xCB,0x4B,0x4C,0x34,0xAB,0xAE,0xDC,0xF0,0xA2,0xB6,0x03,0x45,0xDE};
+
+ TCLIService_GetSchemas_args(const TCLIService_GetSchemas_args&);
+ TCLIService_GetSchemas_args& operator=(const TCLIService_GetSchemas_args&);
+ TCLIService_GetSchemas_args() {
+ }
+
+ virtual ~TCLIService_GetSchemas_args() throw();
+ TGetSchemasReq req;
+
+ _TCLIService_GetSchemas_args__isset __isset;
+
+ void __set_req(const TGetSchemasReq& val);
+
+ bool operator == (const TCLIService_GetSchemas_args & rhs) const
+ {
+ if (!(req == rhs.req))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetSchemas_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetSchemas_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetSchemas_args& obj);
+};
+
+
+class TCLIService_GetSchemas_pargs {
+ public:
+
+ static const char* ascii_fingerprint; // = "34B9FACB4B4C34ABAEDCF0A2B60345DE";
+ static const uint8_t binary_fingerprint[16]; // = {0x34,0xB9,0xFA,0xCB,0x4B,0x4C,0x34,0xAB,0xAE,0xDC,0xF0,0xA2,0xB6,0x03,0x45,0xDE};
+
+
+ virtual ~TCLIService_GetSchemas_pargs() throw();
+ const TGetSchemasReq* req;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetSchemas_pargs& obj);
+};
+
+typedef struct _TCLIService_GetSchemas_result__isset {
+ _TCLIService_GetSchemas_result__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetSchemas_result__isset;
+
+class TCLIService_GetSchemas_result {
+ public:
+
+ static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF";
+ static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF};
+
+ TCLIService_GetSchemas_result(const TCLIService_GetSchemas_result&);
+ TCLIService_GetSchemas_result& operator=(const TCLIService_GetSchemas_result&);
+ TCLIService_GetSchemas_result() {
+ }
+
+ virtual ~TCLIService_GetSchemas_result() throw();
+ TGetSchemasResp success;
+
+ _TCLIService_GetSchemas_result__isset __isset;
+
+ void __set_success(const TGetSchemasResp& val);
+
+ bool operator == (const TCLIService_GetSchemas_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetSchemas_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetSchemas_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetSchemas_result& obj);
+};
+
+typedef struct _TCLIService_GetSchemas_presult__isset {
+ _TCLIService_GetSchemas_presult__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetSchemas_presult__isset;
+
+class TCLIService_GetSchemas_presult {
+ public:
+
+ static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF";
+ static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF};
+
+
+ virtual ~TCLIService_GetSchemas_presult() throw();
+ TGetSchemasResp* success;
+
+ _TCLIService_GetSchemas_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetSchemas_presult& obj);
+};
+
+typedef struct _TCLIService_GetTables_args__isset {
+ _TCLIService_GetTables_args__isset() : req(false) {}
+ bool req :1;
+} _TCLIService_GetTables_args__isset;
+
+class TCLIService_GetTables_args {
+ public:
+
+ static const char* ascii_fingerprint; // = "58075D8350502C9B1F3532079C1CF7A6";
+ static const uint8_t binary_fingerprint[16]; // = {0x58,0x07,0x5D,0x83,0x50,0x50,0x2C,0x9B,0x1F,0x35,0x32,0x07,0x9C,0x1C,0xF7,0xA6};
+
+ TCLIService_GetTables_args(const TCLIService_GetTables_args&);
+ TCLIService_GetTables_args& operator=(const TCLIService_GetTables_args&);
+ TCLIService_GetTables_args() {
+ }
+
+ virtual ~TCLIService_GetTables_args() throw();
+ TGetTablesReq req;
+
+ _TCLIService_GetTables_args__isset __isset;
+
+ void __set_req(const TGetTablesReq& val);
+
+ bool operator == (const TCLIService_GetTables_args & rhs) const
+ {
+ if (!(req == rhs.req))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetTables_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetTables_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTables_args& obj);
+};
+
+
+class TCLIService_GetTables_pargs {
+ public:
+
+ static const char* ascii_fingerprint; // = "58075D8350502C9B1F3532079C1CF7A6";
+ static const uint8_t binary_fingerprint[16]; // = {0x58,0x07,0x5D,0x83,0x50,0x50,0x2C,0x9B,0x1F,0x35,0x32,0x07,0x9C,0x1C,0xF7,0xA6};
+
+
+ virtual ~TCLIService_GetTables_pargs() throw();
+ const TGetTablesReq* req;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTables_pargs& obj);
+};
+
+typedef struct _TCLIService_GetTables_result__isset {
+ _TCLIService_GetTables_result__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetTables_result__isset;
+
+class TCLIService_GetTables_result {
+ public:
+
+ static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF";
+ static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF};
+
+ TCLIService_GetTables_result(const TCLIService_GetTables_result&);
+ TCLIService_GetTables_result& operator=(const TCLIService_GetTables_result&);
+ TCLIService_GetTables_result() {
+ }
+
+ virtual ~TCLIService_GetTables_result() throw();
+ TGetTablesResp success;
+
+ _TCLIService_GetTables_result__isset __isset;
+
+ void __set_success(const TGetTablesResp& val);
+
+ bool operator == (const TCLIService_GetTables_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetTables_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetTables_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTables_result& obj);
+};
+
+typedef struct _TCLIService_GetTables_presult__isset {
+ _TCLIService_GetTables_presult__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetTables_presult__isset;
+
+class TCLIService_GetTables_presult {
+ public:
+
+ static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF";
+ static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF};
+
+
+ virtual ~TCLIService_GetTables_presult() throw();
+ TGetTablesResp* success;
+
+ _TCLIService_GetTables_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTables_presult& obj);
+};
+
+typedef struct _TCLIService_GetTableTypes_args__isset {
+ _TCLIService_GetTableTypes_args__isset() : req(false) {}
+ bool req :1;
+} _TCLIService_GetTableTypes_args__isset;
+
+class TCLIService_GetTableTypes_args {
+ public:
+
+ static const char* ascii_fingerprint; // = "FD7076C37D193E2A343D9691B59D94EC";
+ static const uint8_t binary_fingerprint[16]; // = {0xFD,0x70,0x76,0xC3,0x7D,0x19,0x3E,0x2A,0x34,0x3D,0x96,0x91,0xB5,0x9D,0x94,0xEC};
+
+ TCLIService_GetTableTypes_args(const TCLIService_GetTableTypes_args&);
+ TCLIService_GetTableTypes_args& operator=(const TCLIService_GetTableTypes_args&);
+ TCLIService_GetTableTypes_args() {
+ }
+
+ virtual ~TCLIService_GetTableTypes_args() throw();
+ TGetTableTypesReq req;
+
+ _TCLIService_GetTableTypes_args__isset __isset;
+
+ void __set_req(const TGetTableTypesReq& val);
+
+ bool operator == (const TCLIService_GetTableTypes_args & rhs) const
+ {
+ if (!(req == rhs.req))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetTableTypes_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetTableTypes_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTableTypes_args& obj);
+};
+
+
+class TCLIService_GetTableTypes_pargs {
+ public:
+
+ static const char* ascii_fingerprint; // = "FD7076C37D193E2A343D9691B59D94EC";
+ static const uint8_t binary_fingerprint[16]; // = {0xFD,0x70,0x76,0xC3,0x7D,0x19,0x3E,0x2A,0x34,0x3D,0x96,0x91,0xB5,0x9D,0x94,0xEC};
+
+
+ virtual ~TCLIService_GetTableTypes_pargs() throw();
+ const TGetTableTypesReq* req;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTableTypes_pargs& obj);
+};
+
+typedef struct _TCLIService_GetTableTypes_result__isset {
+ _TCLIService_GetTableTypes_result__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetTableTypes_result__isset;
+
+class TCLIService_GetTableTypes_result {
+ public:
+
+ static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF";
+ static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF};
+
+ TCLIService_GetTableTypes_result(const TCLIService_GetTableTypes_result&);
+ TCLIService_GetTableTypes_result& operator=(const TCLIService_GetTableTypes_result&);
+ TCLIService_GetTableTypes_result() {
+ }
+
+ virtual ~TCLIService_GetTableTypes_result() throw();
+ TGetTableTypesResp success;
+
+ _TCLIService_GetTableTypes_result__isset __isset;
+
+ void __set_success(const TGetTableTypesResp& val);
+
+ bool operator == (const TCLIService_GetTableTypes_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetTableTypes_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetTableTypes_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTableTypes_result& obj);
+};
+
+typedef struct _TCLIService_GetTableTypes_presult__isset {
+ _TCLIService_GetTableTypes_presult__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetTableTypes_presult__isset;
+
+class TCLIService_GetTableTypes_presult {
+ public:
+
+ static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF";
+ static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF};
+
+
+ virtual ~TCLIService_GetTableTypes_presult() throw();
+ TGetTableTypesResp* success;
+
+ _TCLIService_GetTableTypes_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTableTypes_presult& obj);
+};
+
+typedef struct _TCLIService_GetColumns_args__isset {
+ _TCLIService_GetColumns_args__isset() : req(false) {}
+ bool req :1;
+} _TCLIService_GetColumns_args__isset;
+
+class TCLIService_GetColumns_args {
+ public:
+
+ static const char* ascii_fingerprint; // = "7894A0356591B039C72040E21BAAC3E3";
+ static const uint8_t binary_fingerprint[16]; // = {0x78,0x94,0xA0,0x35,0x65,0x91,0xB0,0x39,0xC7,0x20,0x40,0xE2,0x1B,0xAA,0xC3,0xE3};
+
+ TCLIService_GetColumns_args(const TCLIService_GetColumns_args&);
+ TCLIService_GetColumns_args& operator=(const TCLIService_GetColumns_args&);
+ TCLIService_GetColumns_args() {
+ }
+
+ virtual ~TCLIService_GetColumns_args() throw();
+ TGetColumnsReq req;
+
+ _TCLIService_GetColumns_args__isset __isset;
+
+ void __set_req(const TGetColumnsReq& val);
+
+ bool operator == (const TCLIService_GetColumns_args & rhs) const
+ {
+ if (!(req == rhs.req))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetColumns_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetColumns_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetColumns_args& obj);
+};
+
+
+class TCLIService_GetColumns_pargs {
+ public:
+
+ static const char* ascii_fingerprint; // = "7894A0356591B039C72040E21BAAC3E3";
+ static const uint8_t binary_fingerprint[16]; // = {0x78,0x94,0xA0,0x35,0x65,0x91,0xB0,0x39,0xC7,0x20,0x40,0xE2,0x1B,0xAA,0xC3,0xE3};
+
+
+ virtual ~TCLIService_GetColumns_pargs() throw();
+ const TGetColumnsReq* req;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetColumns_pargs& obj);
+};
+
+typedef struct _TCLIService_GetColumns_result__isset {
+ _TCLIService_GetColumns_result__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetColumns_result__isset;
+
+class TCLIService_GetColumns_result {
+ public:
+
+ static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF";
+ static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF};
+
+ TCLIService_GetColumns_result(const TCLIService_GetColumns_result&);
+ TCLIService_GetColumns_result& operator=(const TCLIService_GetColumns_result&);
+ TCLIService_GetColumns_result() {
+ }
+
+ virtual ~TCLIService_GetColumns_result() throw();
+ TGetColumnsResp success;
+
+ _TCLIService_GetColumns_result__isset __isset;
+
+ void __set_success(const TGetColumnsResp& val);
+
+ bool operator == (const TCLIService_GetColumns_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetColumns_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetColumns_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetColumns_result& obj);
+};
+
+typedef struct _TCLIService_GetColumns_presult__isset {
+ _TCLIService_GetColumns_presult__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetColumns_presult__isset;
+
+class TCLIService_GetColumns_presult {
+ public:
+
+ static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF";
+ static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF};
+
+
+ virtual ~TCLIService_GetColumns_presult() throw();
+ TGetColumnsResp* success;
+
+ _TCLIService_GetColumns_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetColumns_presult& obj);
+};
+
+typedef struct _TCLIService_GetFunctions_args__isset {
+ _TCLIService_GetFunctions_args__isset() : req(false) {}
+ bool req :1;
+} _TCLIService_GetFunctions_args__isset;
+
+class TCLIService_GetFunctions_args {
+ public:
+
+ static const char* ascii_fingerprint; // = "AC28BA383D0EC96F55B7C42FA3E1AF52";
+ static const uint8_t binary_fingerprint[16]; // = {0xAC,0x28,0xBA,0x38,0x3D,0x0E,0xC9,0x6F,0x55,0xB7,0xC4,0x2F,0xA3,0xE1,0xAF,0x52};
+
+ TCLIService_GetFunctions_args(const TCLIService_GetFunctions_args&);
+ TCLIService_GetFunctions_args& operator=(const TCLIService_GetFunctions_args&);
+ TCLIService_GetFunctions_args() {
+ }
+
+ virtual ~TCLIService_GetFunctions_args() throw();
+ TGetFunctionsReq req;
+
+ _TCLIService_GetFunctions_args__isset __isset;
+
+ void __set_req(const TGetFunctionsReq& val);
+
+ bool operator == (const TCLIService_GetFunctions_args & rhs) const
+ {
+ if (!(req == rhs.req))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetFunctions_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetFunctions_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetFunctions_args& obj);
+};
+
+
+class TCLIService_GetFunctions_pargs {
+ public:
+
+ static const char* ascii_fingerprint; // = "AC28BA383D0EC96F55B7C42FA3E1AF52";
+ static const uint8_t binary_fingerprint[16]; // = {0xAC,0x28,0xBA,0x38,0x3D,0x0E,0xC9,0x6F,0x55,0xB7,0xC4,0x2F,0xA3,0xE1,0xAF,0x52};
+
+
+ virtual ~TCLIService_GetFunctions_pargs() throw();
+ const TGetFunctionsReq* req;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetFunctions_pargs& obj);
+};
+
+typedef struct _TCLIService_GetFunctions_result__isset {
+ _TCLIService_GetFunctions_result__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetFunctions_result__isset;
+
+class TCLIService_GetFunctions_result {
+ public:
+
+ static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF";
+ static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF};
+
+ TCLIService_GetFunctions_result(const TCLIService_GetFunctions_result&);
+ TCLIService_GetFunctions_result& operator=(const TCLIService_GetFunctions_result&);
+ TCLIService_GetFunctions_result() {
+ }
+
+ virtual ~TCLIService_GetFunctions_result() throw();
+ TGetFunctionsResp success;
+
+ _TCLIService_GetFunctions_result__isset __isset;
+
+ void __set_success(const TGetFunctionsResp& val);
+
+ bool operator == (const TCLIService_GetFunctions_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetFunctions_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetFunctions_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetFunctions_result& obj);
+};
+
+typedef struct _TCLIService_GetFunctions_presult__isset {
+ _TCLIService_GetFunctions_presult__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetFunctions_presult__isset;
+
+class TCLIService_GetFunctions_presult {
+ public:
+
+ static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF";
+ static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF};
+
+
+ virtual ~TCLIService_GetFunctions_presult() throw();
+ TGetFunctionsResp* success;
+
+ _TCLIService_GetFunctions_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetFunctions_presult& obj);
+};
+
+typedef struct _TCLIService_GetOperationStatus_args__isset {
+ _TCLIService_GetOperationStatus_args__isset() : req(false) {}
+ bool req :1;
+} _TCLIService_GetOperationStatus_args__isset;
+
+class TCLIService_GetOperationStatus_args {
+ public:
+
+ static const char* ascii_fingerprint; // = "2A0009415DC2A8A9CDCF3A75C16ADBE7";
+ static const uint8_t binary_fingerprint[16]; // = {0x2A,0x00,0x09,0x41,0x5D,0xC2,0xA8,0xA9,0xCD,0xCF,0x3A,0x75,0xC1,0x6A,0xDB,0xE7};
+
+ TCLIService_GetOperationStatus_args(const TCLIService_GetOperationStatus_args&);
+ TCLIService_GetOperationStatus_args& operator=(const TCLIService_GetOperationStatus_args&);
+ TCLIService_GetOperationStatus_args() {
+ }
+
+ virtual ~TCLIService_GetOperationStatus_args() throw();
+ TGetOperationStatusReq req;
+
+ _TCLIService_GetOperationStatus_args__isset __isset;
+
+ void __set_req(const TGetOperationStatusReq& val);
+
+ bool operator == (const TCLIService_GetOperationStatus_args & rhs) const
+ {
+ if (!(req == rhs.req))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetOperationStatus_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetOperationStatus_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetOperationStatus_args& obj);
+};
+
+
+class TCLIService_GetOperationStatus_pargs {
+ public:
+
+ static const char* ascii_fingerprint; // = "2A0009415DC2A8A9CDCF3A75C16ADBE7";
+ static const uint8_t binary_fingerprint[16]; // = {0x2A,0x00,0x09,0x41,0x5D,0xC2,0xA8,0xA9,0xCD,0xCF,0x3A,0x75,0xC1,0x6A,0xDB,0xE7};
+
+
+ virtual ~TCLIService_GetOperationStatus_pargs() throw();
+ const TGetOperationStatusReq* req;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetOperationStatus_pargs& obj);
+};
+
+typedef struct _TCLIService_GetOperationStatus_result__isset {
+ _TCLIService_GetOperationStatus_result__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetOperationStatus_result__isset;
+
+class TCLIService_GetOperationStatus_result {
+ public:
+
+ static const char* ascii_fingerprint; // = "C399947D185D259358E6B922C40ACF85";
+ static const uint8_t binary_fingerprint[16]; // = {0xC3,0x99,0x94,0x7D,0x18,0x5D,0x25,0x93,0x58,0xE6,0xB9,0x22,0xC4,0x0A,0xCF,0x85};
+
+ TCLIService_GetOperationStatus_result(const TCLIService_GetOperationStatus_result&);
+ TCLIService_GetOperationStatus_result& operator=(const TCLIService_GetOperationStatus_result&);
+ TCLIService_GetOperationStatus_result() {
+ }
+
+ virtual ~TCLIService_GetOperationStatus_result() throw();
+ TGetOperationStatusResp success;
+
+ _TCLIService_GetOperationStatus_result__isset __isset;
+
+ void __set_success(const TGetOperationStatusResp& val);
+
+ bool operator == (const TCLIService_GetOperationStatus_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetOperationStatus_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetOperationStatus_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetOperationStatus_result& obj);
+};
+
+typedef struct _TCLIService_GetOperationStatus_presult__isset {
+ _TCLIService_GetOperationStatus_presult__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetOperationStatus_presult__isset;
+
+class TCLIService_GetOperationStatus_presult {
+ public:
+
+ static const char* ascii_fingerprint; // = "C399947D185D259358E6B922C40ACF85";
+ static const uint8_t binary_fingerprint[16]; // = {0xC3,0x99,0x94,0x7D,0x18,0x5D,0x25,0x93,0x58,0xE6,0xB9,0x22,0xC4,0x0A,0xCF,0x85};
+
+
+ virtual ~TCLIService_GetOperationStatus_presult() throw();
+ TGetOperationStatusResp* success;
+
+ _TCLIService_GetOperationStatus_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetOperationStatus_presult& obj);
+};
+
+typedef struct _TCLIService_CancelOperation_args__isset {
+ _TCLIService_CancelOperation_args__isset() : req(false) {}
+ bool req :1;
+} _TCLIService_CancelOperation_args__isset;
+
+class TCLIService_CancelOperation_args {
+ public:
+
+ static const char* ascii_fingerprint; // = "2A0009415DC2A8A9CDCF3A75C16ADBE7";
+ static const uint8_t binary_fingerprint[16]; // = {0x2A,0x00,0x09,0x41,0x5D,0xC2,0xA8,0xA9,0xCD,0xCF,0x3A,0x75,0xC1,0x6A,0xDB,0xE7};
+
+ TCLIService_CancelOperation_args(const TCLIService_CancelOperation_args&);
+ TCLIService_CancelOperation_args& operator=(const TCLIService_CancelOperation_args&);
+ TCLIService_CancelOperation_args() {
+ }
+
+ virtual ~TCLIService_CancelOperation_args() throw();
+ TCancelOperationReq req;
+
+ _TCLIService_CancelOperation_args__isset __isset;
+
+ void __set_req(const TCancelOperationReq& val);
+
+ bool operator == (const TCLIService_CancelOperation_args & rhs) const
+ {
+ if (!(req == rhs.req))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_CancelOperation_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_CancelOperation_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_CancelOperation_args& obj);
+};
+
+
+class TCLIService_CancelOperation_pargs {
+ public:
+
+ static const char* ascii_fingerprint; // = "2A0009415DC2A8A9CDCF3A75C16ADBE7";
+ static const uint8_t binary_fingerprint[16]; // = {0x2A,0x00,0x09,0x41,0x5D,0xC2,0xA8,0xA9,0xCD,0xCF,0x3A,0x75,0xC1,0x6A,0xDB,0xE7};
+
+
+ virtual ~TCLIService_CancelOperation_pargs() throw();
+ const TCancelOperationReq* req;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_CancelOperation_pargs& obj);
+};
+
+typedef struct _TCLIService_CancelOperation_result__isset {
+ _TCLIService_CancelOperation_result__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_CancelOperation_result__isset;
+
+class TCLIService_CancelOperation_result {
+ public:
+
+ static const char* ascii_fingerprint; // = "BDB51A479DCD1EB1DB636FA1B4BE02A7";
+ static const uint8_t binary_fingerprint[16]; // = {0xBD,0xB5,0x1A,0x47,0x9D,0xCD,0x1E,0xB1,0xDB,0x63,0x6F,0xA1,0xB4,0xBE,0x02,0xA7};
+
+ TCLIService_CancelOperation_result(const TCLIService_CancelOperation_result&);
+ TCLIService_CancelOperation_result& operator=(const TCLIService_CancelOperation_result&);
+ TCLIService_CancelOperation_result() {
+ }
+
+ virtual ~TCLIService_CancelOperation_result() throw();
+ TCancelOperationResp success;
+
+ _TCLIService_CancelOperation_result__isset __isset;
+
+ void __set_success(const TCancelOperationResp& val);
+
+ bool operator == (const TCLIService_CancelOperation_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_CancelOperation_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_CancelOperation_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_CancelOperation_result& obj);
+};
+
+typedef struct _TCLIService_CancelOperation_presult__isset {
+ _TCLIService_CancelOperation_presult__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_CancelOperation_presult__isset;
+
+class TCLIService_CancelOperation_presult {
+ public:
+
+ static const char* ascii_fingerprint; // = "BDB51A479DCD1EB1DB636FA1B4BE02A7";
+ static const uint8_t binary_fingerprint[16]; // = {0xBD,0xB5,0x1A,0x47,0x9D,0xCD,0x1E,0xB1,0xDB,0x63,0x6F,0xA1,0xB4,0xBE,0x02,0xA7};
+
+
+ virtual ~TCLIService_CancelOperation_presult() throw();
+ TCancelOperationResp* success;
+
+ _TCLIService_CancelOperation_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_CancelOperation_presult& obj);
+};
+
+typedef struct _TCLIService_CloseOperation_args__isset {
+ _TCLIService_CloseOperation_args__isset() : req(false) {}
+ bool req :1;
+} _TCLIService_CloseOperation_args__isset;
+
+class TCLIService_CloseOperation_args {
+ public:
+
+ static const char* ascii_fingerprint; // = "2A0009415DC2A8A9CDCF3A75C16ADBE7";
+ static const uint8_t binary_fingerprint[16]; // = {0x2A,0x00,0x09,0x41,0x5D,0xC2,0xA8,0xA9,0xCD,0xCF,0x3A,0x75,0xC1,0x6A,0xDB,0xE7};
+
+ TCLIService_CloseOperation_args(const TCLIService_CloseOperation_args&);
+ TCLIService_CloseOperation_args& operator=(const TCLIService_CloseOperation_args&);
+ TCLIService_CloseOperation_args() {
+ }
+
+ virtual ~TCLIService_CloseOperation_args() throw();
+ TCloseOperationReq req;
+
+ _TCLIService_CloseOperation_args__isset __isset;
+
+ void __set_req(const TCloseOperationReq& val);
+
+ bool operator == (const TCLIService_CloseOperation_args & rhs) const
+ {
+ if (!(req == rhs.req))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_CloseOperation_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_CloseOperation_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_CloseOperation_args& obj);
+};
+
+
+class TCLIService_CloseOperation_pargs {
+ public:
+
+ static const char* ascii_fingerprint; // = "2A0009415DC2A8A9CDCF3A75C16ADBE7";
+ static const uint8_t binary_fingerprint[16]; // = {0x2A,0x00,0x09,0x41,0x5D,0xC2,0xA8,0xA9,0xCD,0xCF,0x3A,0x75,0xC1,0x6A,0xDB,0xE7};
+
+
+ virtual ~TCLIService_CloseOperation_pargs() throw();
+ const TCloseOperationReq* req;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_CloseOperation_pargs& obj);
+};
+
+typedef struct _TCLIService_CloseOperation_result__isset {
+ _TCLIService_CloseOperation_result__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_CloseOperation_result__isset;
+
+class TCLIService_CloseOperation_result {
+ public:
+
+ static const char* ascii_fingerprint; // = "BDB51A479DCD1EB1DB636FA1B4BE02A7";
+ static const uint8_t binary_fingerprint[16]; // = {0xBD,0xB5,0x1A,0x47,0x9D,0xCD,0x1E,0xB1,0xDB,0x63,0x6F,0xA1,0xB4,0xBE,0x02,0xA7};
+
+ TCLIService_CloseOperation_result(const TCLIService_CloseOperation_result&);
+ TCLIService_CloseOperation_result& operator=(const TCLIService_CloseOperation_result&);
+ TCLIService_CloseOperation_result() {
+ }
+
+ virtual ~TCLIService_CloseOperation_result() throw();
+ TCloseOperationResp success;
+
+ _TCLIService_CloseOperation_result__isset __isset;
+
+ void __set_success(const TCloseOperationResp& val);
+
+ bool operator == (const TCLIService_CloseOperation_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_CloseOperation_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_CloseOperation_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_CloseOperation_result& obj);
+};
+
+typedef struct _TCLIService_CloseOperation_presult__isset {
+ _TCLIService_CloseOperation_presult__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_CloseOperation_presult__isset;
+
+class TCLIService_CloseOperation_presult {
+ public:
+
+ static const char* ascii_fingerprint; // = "BDB51A479DCD1EB1DB636FA1B4BE02A7";
+ static const uint8_t binary_fingerprint[16]; // = {0xBD,0xB5,0x1A,0x47,0x9D,0xCD,0x1E,0xB1,0xDB,0x63,0x6F,0xA1,0xB4,0xBE,0x02,0xA7};
+
+
+ virtual ~TCLIService_CloseOperation_presult() throw();
+ TCloseOperationResp* success;
+
+ _TCLIService_CloseOperation_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_CloseOperation_presult& obj);
+};
+
+typedef struct _TCLIService_GetResultSetMetadata_args__isset {
+ _TCLIService_GetResultSetMetadata_args__isset() : req(false) {}
+ bool req :1;
+} _TCLIService_GetResultSetMetadata_args__isset;
+
+class TCLIService_GetResultSetMetadata_args {
+ public:
+
+ static const char* ascii_fingerprint; // = "2A0009415DC2A8A9CDCF3A75C16ADBE7";
+ static const uint8_t binary_fingerprint[16]; // = {0x2A,0x00,0x09,0x41,0x5D,0xC2,0xA8,0xA9,0xCD,0xCF,0x3A,0x75,0xC1,0x6A,0xDB,0xE7};
+
+ TCLIService_GetResultSetMetadata_args(const TCLIService_GetResultSetMetadata_args&);
+ TCLIService_GetResultSetMetadata_args& operator=(const TCLIService_GetResultSetMetadata_args&);
+ TCLIService_GetResultSetMetadata_args() {
+ }
+
+ virtual ~TCLIService_GetResultSetMetadata_args() throw();
+ TGetResultSetMetadataReq req;
+
+ _TCLIService_GetResultSetMetadata_args__isset __isset;
+
+ void __set_req(const TGetResultSetMetadataReq& val);
+
+ bool operator == (const TCLIService_GetResultSetMetadata_args & rhs) const
+ {
+ if (!(req == rhs.req))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetResultSetMetadata_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetResultSetMetadata_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetResultSetMetadata_args& obj);
+};
+
+
+class TCLIService_GetResultSetMetadata_pargs {
+ public:
+
+ static const char* ascii_fingerprint; // = "2A0009415DC2A8A9CDCF3A75C16ADBE7";
+ static const uint8_t binary_fingerprint[16]; // = {0x2A,0x00,0x09,0x41,0x5D,0xC2,0xA8,0xA9,0xCD,0xCF,0x3A,0x75,0xC1,0x6A,0xDB,0xE7};
+
+
+ virtual ~TCLIService_GetResultSetMetadata_pargs() throw();
+ const TGetResultSetMetadataReq* req;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetResultSetMetadata_pargs& obj);
+};
+
+typedef struct _TCLIService_GetResultSetMetadata_result__isset {
+ _TCLIService_GetResultSetMetadata_result__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetResultSetMetadata_result__isset;
+
+class TCLIService_GetResultSetMetadata_result {
+ public:
+
+ static const char* ascii_fingerprint; // = "748CA3BE2055D5C1AD7EAAEF01F7C463";
+ static const uint8_t binary_fingerprint[16]; // = {0x74,0x8C,0xA3,0xBE,0x20,0x55,0xD5,0xC1,0xAD,0x7E,0xAA,0xEF,0x01,0xF7,0xC4,0x63};
+
+ TCLIService_GetResultSetMetadata_result(const TCLIService_GetResultSetMetadata_result&);
+ TCLIService_GetResultSetMetadata_result& operator=(const TCLIService_GetResultSetMetadata_result&);
+ TCLIService_GetResultSetMetadata_result() {
+ }
+
+ virtual ~TCLIService_GetResultSetMetadata_result() throw();
+ TGetResultSetMetadataResp success;
+
+ _TCLIService_GetResultSetMetadata_result__isset __isset;
+
+ void __set_success(const TGetResultSetMetadataResp& val);
+
+ bool operator == (const TCLIService_GetResultSetMetadata_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetResultSetMetadata_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetResultSetMetadata_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetResultSetMetadata_result& obj);
+};
+
+typedef struct _TCLIService_GetResultSetMetadata_presult__isset {
+ _TCLIService_GetResultSetMetadata_presult__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetResultSetMetadata_presult__isset;
+
+class TCLIService_GetResultSetMetadata_presult {
+ public:
+
+ static const char* ascii_fingerprint; // = "748CA3BE2055D5C1AD7EAAEF01F7C463";
+ static const uint8_t binary_fingerprint[16]; // = {0x74,0x8C,0xA3,0xBE,0x20,0x55,0xD5,0xC1,0xAD,0x7E,0xAA,0xEF,0x01,0xF7,0xC4,0x63};
+
+
+ virtual ~TCLIService_GetResultSetMetadata_presult() throw();
+ TGetResultSetMetadataResp* success;
+
+ _TCLIService_GetResultSetMetadata_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetResultSetMetadata_presult& obj);
+};
+
+typedef struct _TCLIService_FetchResults_args__isset {
+ _TCLIService_FetchResults_args__isset() : req(false) {}
+ bool req :1;
+} _TCLIService_FetchResults_args__isset;
+
+class TCLIService_FetchResults_args {
+ public:
+
+ static const char* ascii_fingerprint; // = "9861C5443566158A1DAEAC80886635C8";
+ static const uint8_t binary_fingerprint[16]; // = {0x98,0x61,0xC5,0x44,0x35,0x66,0x15,0x8A,0x1D,0xAE,0xAC,0x80,0x88,0x66,0x35,0xC8};
+
+ TCLIService_FetchResults_args(const TCLIService_FetchResults_args&);
+ TCLIService_FetchResults_args& operator=(const TCLIService_FetchResults_args&);
+ TCLIService_FetchResults_args() {
+ }
+
+ virtual ~TCLIService_FetchResults_args() throw();
+ TFetchResultsReq req;
+
+ _TCLIService_FetchResults_args__isset __isset;
+
+ void __set_req(const TFetchResultsReq& val);
+
+ bool operator == (const TCLIService_FetchResults_args & rhs) const
+ {
+ if (!(req == rhs.req))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_FetchResults_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_FetchResults_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_FetchResults_args& obj);
+};
+
+
+class TCLIService_FetchResults_pargs {
+ public:
+
+ static const char* ascii_fingerprint; // = "9861C5443566158A1DAEAC80886635C8";
+ static const uint8_t binary_fingerprint[16]; // = {0x98,0x61,0xC5,0x44,0x35,0x66,0x15,0x8A,0x1D,0xAE,0xAC,0x80,0x88,0x66,0x35,0xC8};
+
+
+ virtual ~TCLIService_FetchResults_pargs() throw();
+ const TFetchResultsReq* req;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_FetchResults_pargs& obj);
+};
+
+typedef struct _TCLIService_FetchResults_result__isset {
+ _TCLIService_FetchResults_result__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_FetchResults_result__isset;
+
+class TCLIService_FetchResults_result {
+ public:
+
+ static const char* ascii_fingerprint; // = "CDEF797B9FFCA6B2CD18163A3D78F196";
+ static const uint8_t binary_fingerprint[16]; // = {0xCD,0xEF,0x79,0x7B,0x9F,0xFC,0xA6,0xB2,0xCD,0x18,0x16,0x3A,0x3D,0x78,0xF1,0x96};
+
+ TCLIService_FetchResults_result(const TCLIService_FetchResults_result&);
+ TCLIService_FetchResults_result& operator=(const TCLIService_FetchResults_result&);
+ TCLIService_FetchResults_result() {
+ }
+
+ virtual ~TCLIService_FetchResults_result() throw();
+ TFetchResultsResp success;
+
+ _TCLIService_FetchResults_result__isset __isset;
+
+ void __set_success(const TFetchResultsResp& val);
+
+ bool operator == (const TCLIService_FetchResults_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_FetchResults_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_FetchResults_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_FetchResults_result& obj);
+};
+
+typedef struct _TCLIService_FetchResults_presult__isset {
+ _TCLIService_FetchResults_presult__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_FetchResults_presult__isset;
+
+class TCLIService_FetchResults_presult {
+ public:
+
+ static const char* ascii_fingerprint; // = "CDEF797B9FFCA6B2CD18163A3D78F196";
+ static const uint8_t binary_fingerprint[16]; // = {0xCD,0xEF,0x79,0x7B,0x9F,0xFC,0xA6,0xB2,0xCD,0x18,0x16,0x3A,0x3D,0x78,0xF1,0x96};
+
+
+ virtual ~TCLIService_FetchResults_presult() throw();
+ TFetchResultsResp* success;
+
+ _TCLIService_FetchResults_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_FetchResults_presult& obj);
+};
+
+typedef struct _TCLIService_GetDelegationToken_args__isset {
+ _TCLIService_GetDelegationToken_args__isset() : req(false) {}
+ bool req :1;
+} _TCLIService_GetDelegationToken_args__isset;
+
+class TCLIService_GetDelegationToken_args {
+ public:
+
+ static const char* ascii_fingerprint; // = "BF8EEEB8C67FB6195D3D9BA5BA2C58A4";
+ static const uint8_t binary_fingerprint[16]; // = {0xBF,0x8E,0xEE,0xB8,0xC6,0x7F,0xB6,0x19,0x5D,0x3D,0x9B,0xA5,0xBA,0x2C,0x58,0xA4};
+
+ TCLIService_GetDelegationToken_args(const TCLIService_GetDelegationToken_args&);
+ TCLIService_GetDelegationToken_args& operator=(const TCLIService_GetDelegationToken_args&);
+ TCLIService_GetDelegationToken_args() {
+ }
+
+ virtual ~TCLIService_GetDelegationToken_args() throw();
+ TGetDelegationTokenReq req;
+
+ _TCLIService_GetDelegationToken_args__isset __isset;
+
+ void __set_req(const TGetDelegationTokenReq& val);
+
+ bool operator == (const TCLIService_GetDelegationToken_args & rhs) const
+ {
+ if (!(req == rhs.req))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetDelegationToken_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetDelegationToken_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetDelegationToken_args& obj);
+};
+
+
+class TCLIService_GetDelegationToken_pargs {
+ public:
+
+ static const char* ascii_fingerprint; // = "BF8EEEB8C67FB6195D3D9BA5BA2C58A4";
+ static const uint8_t binary_fingerprint[16]; // = {0xBF,0x8E,0xEE,0xB8,0xC6,0x7F,0xB6,0x19,0x5D,0x3D,0x9B,0xA5,0xBA,0x2C,0x58,0xA4};
+
+
+ virtual ~TCLIService_GetDelegationToken_pargs() throw();
+ const TGetDelegationTokenReq* req;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetDelegationToken_pargs& obj);
+};
+
+typedef struct _TCLIService_GetDelegationToken_result__isset {
+ _TCLIService_GetDelegationToken_result__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetDelegationToken_result__isset;
+
+class TCLIService_GetDelegationToken_result {
+ public:
+
+ static const char* ascii_fingerprint; // = "58C1B84BE91071117FFEBB0AFA1636F7";
+ static const uint8_t binary_fingerprint[16]; // = {0x58,0xC1,0xB8,0x4B,0xE9,0x10,0x71,0x11,0x7F,0xFE,0xBB,0x0A,0xFA,0x16,0x36,0xF7};
+
+ TCLIService_GetDelegationToken_result(const TCLIService_GetDelegationToken_result&);
+ TCLIService_GetDelegationToken_result& operator=(const TCLIService_GetDelegationToken_result&);
+ TCLIService_GetDelegationToken_result() {
+ }
+
+ virtual ~TCLIService_GetDelegationToken_result() throw();
+ TGetDelegationTokenResp success;
+
+ _TCLIService_GetDelegationToken_result__isset __isset;
+
+ void __set_success(const TGetDelegationTokenResp& val);
+
+ bool operator == (const TCLIService_GetDelegationToken_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_GetDelegationToken_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_GetDelegationToken_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetDelegationToken_result& obj);
+};
+
+typedef struct _TCLIService_GetDelegationToken_presult__isset {
+ _TCLIService_GetDelegationToken_presult__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_GetDelegationToken_presult__isset;
+
+class TCLIService_GetDelegationToken_presult {
+ public:
+
+ static const char* ascii_fingerprint; // = "58C1B84BE91071117FFEBB0AFA1636F7";
+ static const uint8_t binary_fingerprint[16]; // = {0x58,0xC1,0xB8,0x4B,0xE9,0x10,0x71,0x11,0x7F,0xFE,0xBB,0x0A,0xFA,0x16,0x36,0xF7};
+
+
+ virtual ~TCLIService_GetDelegationToken_presult() throw();
+ TGetDelegationTokenResp* success;
+
+ _TCLIService_GetDelegationToken_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetDelegationToken_presult& obj);
+};
+
+typedef struct _TCLIService_CancelDelegationToken_args__isset {
+ _TCLIService_CancelDelegationToken_args__isset() : req(false) {}
+ bool req :1;
+} _TCLIService_CancelDelegationToken_args__isset;
+
+class TCLIService_CancelDelegationToken_args {
+ public:
+
+ static const char* ascii_fingerprint; // = "9C6A93D9444D84C6B888C2DA30E4CB54";
+ static const uint8_t binary_fingerprint[16]; // = {0x9C,0x6A,0x93,0xD9,0x44,0x4D,0x84,0xC6,0xB8,0x88,0xC2,0xDA,0x30,0xE4,0xCB,0x54};
+
+ TCLIService_CancelDelegationToken_args(const TCLIService_CancelDelegationToken_args&);
+ TCLIService_CancelDelegationToken_args& operator=(const TCLIService_CancelDelegationToken_args&);
+ TCLIService_CancelDelegationToken_args() {
+ }
+
+ virtual ~TCLIService_CancelDelegationToken_args() throw();
+ TCancelDelegationTokenReq req;
+
+ _TCLIService_CancelDelegationToken_args__isset __isset;
+
+ void __set_req(const TCancelDelegationTokenReq& val);
+
+ bool operator == (const TCLIService_CancelDelegationToken_args & rhs) const
+ {
+ if (!(req == rhs.req))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_CancelDelegationToken_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_CancelDelegationToken_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_CancelDelegationToken_args& obj);
+};
+
+
+class TCLIService_CancelDelegationToken_pargs {
+ public:
+
+ static const char* ascii_fingerprint; // = "9C6A93D9444D84C6B888C2DA30E4CB54";
+ static const uint8_t binary_fingerprint[16]; // = {0x9C,0x6A,0x93,0xD9,0x44,0x4D,0x84,0xC6,0xB8,0x88,0xC2,0xDA,0x30,0xE4,0xCB,0x54};
+
+
+ virtual ~TCLIService_CancelDelegationToken_pargs() throw();
+ const TCancelDelegationTokenReq* req;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_CancelDelegationToken_pargs& obj);
+};
+
+typedef struct _TCLIService_CancelDelegationToken_result__isset {
+ _TCLIService_CancelDelegationToken_result__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_CancelDelegationToken_result__isset;
+
+class TCLIService_CancelDelegationToken_result {
+ public:
+
+ static const char* ascii_fingerprint; // = "BDB51A479DCD1EB1DB636FA1B4BE02A7";
+ static const uint8_t binary_fingerprint[16]; // = {0xBD,0xB5,0x1A,0x47,0x9D,0xCD,0x1E,0xB1,0xDB,0x63,0x6F,0xA1,0xB4,0xBE,0x02,0xA7};
+
+ TCLIService_CancelDelegationToken_result(const TCLIService_CancelDelegationToken_result&);
+ TCLIService_CancelDelegationToken_result& operator=(const TCLIService_CancelDelegationToken_result&);
+ TCLIService_CancelDelegationToken_result() {
+ }
+
+ virtual ~TCLIService_CancelDelegationToken_result() throw();
+ TCancelDelegationTokenResp success;
+
+ _TCLIService_CancelDelegationToken_result__isset __isset;
+
+ void __set_success(const TCancelDelegationTokenResp& val);
+
+ bool operator == (const TCLIService_CancelDelegationToken_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_CancelDelegationToken_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_CancelDelegationToken_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_CancelDelegationToken_result& obj);
+};
+
+typedef struct _TCLIService_CancelDelegationToken_presult__isset {
+ _TCLIService_CancelDelegationToken_presult__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_CancelDelegationToken_presult__isset;
+
+class TCLIService_CancelDelegationToken_presult {
+ public:
+
+ static const char* ascii_fingerprint; // = "BDB51A479DCD1EB1DB636FA1B4BE02A7";
+ static const uint8_t binary_fingerprint[16]; // = {0xBD,0xB5,0x1A,0x47,0x9D,0xCD,0x1E,0xB1,0xDB,0x63,0x6F,0xA1,0xB4,0xBE,0x02,0xA7};
+
+
+ virtual ~TCLIService_CancelDelegationToken_presult() throw();
+ TCancelDelegationTokenResp* success;
+
+ _TCLIService_CancelDelegationToken_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_CancelDelegationToken_presult& obj);
+};
+
+typedef struct _TCLIService_RenewDelegationToken_args__isset {
+ _TCLIService_RenewDelegationToken_args__isset() : req(false) {}
+ bool req :1;
+} _TCLIService_RenewDelegationToken_args__isset;
+
+class TCLIService_RenewDelegationToken_args {
+ public:
+
+ static const char* ascii_fingerprint; // = "9C6A93D9444D84C6B888C2DA30E4CB54";
+ static const uint8_t binary_fingerprint[16]; // = {0x9C,0x6A,0x93,0xD9,0x44,0x4D,0x84,0xC6,0xB8,0x88,0xC2,0xDA,0x30,0xE4,0xCB,0x54};
+
+ TCLIService_RenewDelegationToken_args(const TCLIService_RenewDelegationToken_args&);
+ TCLIService_RenewDelegationToken_args& operator=(const TCLIService_RenewDelegationToken_args&);
+ TCLIService_RenewDelegationToken_args() {
+ }
+
+ virtual ~TCLIService_RenewDelegationToken_args() throw();
+ TRenewDelegationTokenReq req;
+
+ _TCLIService_RenewDelegationToken_args__isset __isset;
+
+ void __set_req(const TRenewDelegationTokenReq& val);
+
+ bool operator == (const TCLIService_RenewDelegationToken_args & rhs) const
+ {
+ if (!(req == rhs.req))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_RenewDelegationToken_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_RenewDelegationToken_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_RenewDelegationToken_args& obj);
+};
+
+
+class TCLIService_RenewDelegationToken_pargs {
+ public:
+
+ static const char* ascii_fingerprint; // = "9C6A93D9444D84C6B888C2DA30E4CB54";
+ static const uint8_t binary_fingerprint[16]; // = {0x9C,0x6A,0x93,0xD9,0x44,0x4D,0x84,0xC6,0xB8,0x88,0xC2,0xDA,0x30,0xE4,0xCB,0x54};
+
+
+ virtual ~TCLIService_RenewDelegationToken_pargs() throw();
+ const TRenewDelegationTokenReq* req;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_RenewDelegationToken_pargs& obj);
+};
+
+typedef struct _TCLIService_RenewDelegationToken_result__isset {
+ _TCLIService_RenewDelegationToken_result__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_RenewDelegationToken_result__isset;
+
+class TCLIService_RenewDelegationToken_result {
+ public:
+
+ static const char* ascii_fingerprint; // = "BDB51A479DCD1EB1DB636FA1B4BE02A7";
+ static const uint8_t binary_fingerprint[16]; // = {0xBD,0xB5,0x1A,0x47,0x9D,0xCD,0x1E,0xB1,0xDB,0x63,0x6F,0xA1,0xB4,0xBE,0x02,0xA7};
+
+ TCLIService_RenewDelegationToken_result(const TCLIService_RenewDelegationToken_result&);
+ TCLIService_RenewDelegationToken_result& operator=(const TCLIService_RenewDelegationToken_result&);
+ TCLIService_RenewDelegationToken_result() {
+ }
+
+ virtual ~TCLIService_RenewDelegationToken_result() throw();
+ TRenewDelegationTokenResp success;
+
+ _TCLIService_RenewDelegationToken_result__isset __isset;
+
+ void __set_success(const TRenewDelegationTokenResp& val);
+
+ bool operator == (const TCLIService_RenewDelegationToken_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ return true;
+ }
+ bool operator != (const TCLIService_RenewDelegationToken_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCLIService_RenewDelegationToken_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_RenewDelegationToken_result& obj);
+};
+
+typedef struct _TCLIService_RenewDelegationToken_presult__isset {
+ _TCLIService_RenewDelegationToken_presult__isset() : success(false) {}
+ bool success :1;
+} _TCLIService_RenewDelegationToken_presult__isset;
+
+class TCLIService_RenewDelegationToken_presult {
+ public:
+
+ static const char* ascii_fingerprint; // = "BDB51A479DCD1EB1DB636FA1B4BE02A7";
+ static const uint8_t binary_fingerprint[16]; // = {0xBD,0xB5,0x1A,0x47,0x9D,0xCD,0x1E,0xB1,0xDB,0x63,0x6F,0xA1,0xB4,0xBE,0x02,0xA7};
+
+
+ virtual ~TCLIService_RenewDelegationToken_presult() throw();
+ TRenewDelegationTokenResp* success;
+
+ _TCLIService_RenewDelegationToken_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+ friend std::ostream& operator<<(std::ostream& out, const TCLIService_RenewDelegationToken_presult& obj);
+};
+
+class TCLIServiceClient : virtual public TCLIServiceIf {
+ public:
+ TCLIServiceClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) {
+ setProtocol(prot);
+ }
+ TCLIServiceClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) {
+ setProtocol(iprot,oprot);
+ }
+ private:
+ void setProtocol(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) {
+ setProtocol(prot,prot);
+ }
+ void setProtocol(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) {
+ piprot_=iprot;
+ poprot_=oprot;
+ iprot_ = iprot.get();
+ oprot_ = oprot.get();
+ }
+ public:
+ boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getInputProtocol() {
+ return piprot_;
+ }
+ boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getOutputProtocol() {
+ return poprot_;
+ }
+ void OpenSession(TOpenSessionResp& _return, const TOpenSessionReq& req);
+ void send_OpenSession(const TOpenSessionReq& req);
+ void recv_OpenSession(TOpenSessionResp& _return);
+ void CloseSession(TCloseSessionResp& _return, const TCloseSessionReq& req);
+ void send_CloseSession(const TCloseSessionReq& req);
+ void recv_CloseSession(TCloseSessionResp& _return);
+ void GetInfo(TGetInfoResp& _return, const TGetInfoReq& req);
+ void send_GetInfo(const TGetInfoReq& req);
+ void recv_GetInfo(TGetInfoResp& _return);
+ void ExecuteStatement(TExecuteStatementResp& _return, const TExecuteStatementReq& req);
+ void send_ExecuteStatement(const TExecuteStatementReq& req);
+ void recv_ExecuteStatement(TExecuteStatementResp& _return);
+ void GetTypeInfo(TGetTypeInfoResp& _return, const TGetTypeInfoReq& req);
+ void send_GetTypeInfo(const TGetTypeInfoReq& req);
+ void recv_GetTypeInfo(TGetTypeInfoResp& _return);
+ void GetCatalogs(TGetCatalogsResp& _return, const TGetCatalogsReq& req);
+ void send_GetCatalogs(const TGetCatalogsReq& req);
+ void recv_GetCatalogs(TGetCatalogsResp& _return);
+ void GetSchemas(TGetSchemasResp& _return, const TGetSchemasReq& req);
+ void send_GetSchemas(const TGetSchemasReq& req);
+ void recv_GetSchemas(TGetSchemasResp& _return);
+ void GetTables(TGetTablesResp& _return, const TGetTablesReq& req);
+ void send_GetTables(const TGetTablesReq& req);
+ void recv_GetTables(TGetTablesResp& _return);
+ void GetTableTypes(TGetTableTypesResp& _return, const TGetTableTypesReq& req);
+ void send_GetTableTypes(const TGetTableTypesReq& req);
+ void recv_GetTableTypes(TGetTableTypesResp& _return);
+ void GetColumns(TGetColumnsResp& _return, const TGetColumnsReq& req);
+ void send_GetColumns(const TGetColumnsReq& req);
+ void recv_GetColumns(TGetColumnsResp& _return);
+ void GetFunctions(TGetFunctionsResp& _return, const TGetFunctionsReq& req);
+ void send_GetFunctions(const TGetFunctionsReq& req);
+ void recv_GetFunctions(TGetFunctionsResp& _return);
+ void GetOperationStatus(TGetOperationStatusResp& _return, const TGetOperationStatusReq& req);
+ void send_GetOperationStatus(const TGetOperationStatusReq& req);
+ void recv_GetOperationStatus(TGetOperationStatusResp& _return);
+ void CancelOperation(TCancelOperationResp& _return, const TCancelOperationReq& req);
+ void send_CancelOperation(const TCancelOperationReq& req);
+ void recv_CancelOperation(TCancelOperationResp& _return);
+ void CloseOperation(TCloseOperationResp& _return, const TCloseOperationReq& req);
+ void send_CloseOperation(const TCloseOperationReq& req);
+ void recv_CloseOperation(TCloseOperationResp& _return);
+ void GetResultSetMetadata(TGetResultSetMetadataResp& _return, const TGetResultSetMetadataReq& req);
+ void send_GetResultSetMetadata(const TGetResultSetMetadataReq& req);
+ void recv_GetResultSetMetadata(TGetResultSetMetadataResp& _return);
+ void FetchResults(TFetchResultsResp& _return, const TFetchResultsReq& req);
+ void send_FetchResults(const TFetchResultsReq& req);
+ void recv_FetchResults(TFetchResultsResp& _return);
+ void GetDelegationToken(TGetDelegationTokenResp& _return, const TGetDelegationTokenReq& req);
+ void send_GetDelegationToken(const TGetDelegationTokenReq& req);
+ void recv_GetDelegationToken(TGetDelegationTokenResp& _return);
+ void CancelDelegationToken(TCancelDelegationTokenResp& _return, const TCancelDelegationTokenReq& req);
+ void send_CancelDelegationToken(const TCancelDelegationTokenReq& req);
+ void recv_CancelDelegationToken(TCancelDelegationTokenResp& _return);
+ void RenewDelegationToken(TRenewDelegationTokenResp& _return, const TRenewDelegationTokenReq& req);
+ void send_RenewDelegationToken(const TRenewDelegationTokenReq& req);
+ void recv_RenewDelegationToken(TRenewDelegationTokenResp& _return);
+ protected:
+ boost::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot_;
+ boost::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot_;
+ ::apache::thrift::protocol::TProtocol* iprot_;
+ ::apache::thrift::protocol::TProtocol* oprot_;
+};
+
+class TCLIServiceProcessor : public ::apache::thrift::TDispatchProcessor {
+ protected:
+ boost::shared_ptr iface_;
+ virtual bool dispatchCall(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, const std::string& fname, int32_t seqid, void* callContext);
+ private:
+ typedef void (TCLIServiceProcessor::*ProcessFunction)(int32_t, ::apache::thrift::protocol::TProtocol*, ::apache::thrift::protocol::TProtocol*, void*);
+ typedef std::map ProcessMap;
+ ProcessMap processMap_;
+ void process_OpenSession(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_CloseSession(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_GetInfo(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_ExecuteStatement(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_GetTypeInfo(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_GetCatalogs(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_GetSchemas(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_GetTables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_GetTableTypes(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_GetColumns(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_GetFunctions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_GetOperationStatus(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_CancelOperation(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_CloseOperation(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_GetResultSetMetadata(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_FetchResults(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_GetDelegationToken(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_CancelDelegationToken(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_RenewDelegationToken(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ public:
+ TCLIServiceProcessor(boost::shared_ptr iface) :
+ iface_(iface) {
+ processMap_["OpenSession"] = &TCLIServiceProcessor::process_OpenSession;
+ processMap_["CloseSession"] = &TCLIServiceProcessor::process_CloseSession;
+ processMap_["GetInfo"] = &TCLIServiceProcessor::process_GetInfo;
+ processMap_["ExecuteStatement"] = &TCLIServiceProcessor::process_ExecuteStatement;
+ processMap_["GetTypeInfo"] = &TCLIServiceProcessor::process_GetTypeInfo;
+ processMap_["GetCatalogs"] = &TCLIServiceProcessor::process_GetCatalogs;
+ processMap_["GetSchemas"] = &TCLIServiceProcessor::process_GetSchemas;
+ processMap_["GetTables"] = &TCLIServiceProcessor::process_GetTables;
+ processMap_["GetTableTypes"] = &TCLIServiceProcessor::process_GetTableTypes;
+ processMap_["GetColumns"] = &TCLIServiceProcessor::process_GetColumns;
+ processMap_["GetFunctions"] = &TCLIServiceProcessor::process_GetFunctions;
+ processMap_["GetOperationStatus"] = &TCLIServiceProcessor::process_GetOperationStatus;
+ processMap_["CancelOperation"] = &TCLIServiceProcessor::process_CancelOperation;
+ processMap_["CloseOperation"] = &TCLIServiceProcessor::process_CloseOperation;
+ processMap_["GetResultSetMetadata"] = &TCLIServiceProcessor::process_GetResultSetMetadata;
+ processMap_["FetchResults"] = &TCLIServiceProcessor::process_FetchResults;
+ processMap_["GetDelegationToken"] = &TCLIServiceProcessor::process_GetDelegationToken;
+ processMap_["CancelDelegationToken"] = &TCLIServiceProcessor::process_CancelDelegationToken;
+ processMap_["RenewDelegationToken"] = &TCLIServiceProcessor::process_RenewDelegationToken;
+ }
+
+ virtual ~TCLIServiceProcessor() {}
+};
+
+class TCLIServiceProcessorFactory : public ::apache::thrift::TProcessorFactory {
+ public:
+ TCLIServiceProcessorFactory(const ::boost::shared_ptr< TCLIServiceIfFactory >& handlerFactory) :
+ handlerFactory_(handlerFactory) {}
+
+ ::boost::shared_ptr< ::apache::thrift::TProcessor > getProcessor(const ::apache::thrift::TConnectionInfo& connInfo);
+
+ protected:
+ ::boost::shared_ptr< TCLIServiceIfFactory > handlerFactory_;
+};
+
+class TCLIServiceMultiface : virtual public TCLIServiceIf {
+ public:
+ TCLIServiceMultiface(std::vector >& ifaces) : ifaces_(ifaces) {
+ }
+ virtual ~TCLIServiceMultiface() {}
+ protected:
+ std::vector > ifaces_;
+ TCLIServiceMultiface() {}
+ void add(boost::shared_ptr iface) {
+ ifaces_.push_back(iface);
+ }
+ public:
+ void OpenSession(TOpenSessionResp& _return, const TOpenSessionReq& req) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->OpenSession(_return, req);
+ }
+ ifaces_[i]->OpenSession(_return, req);
+ return;
+ }
+
+ void CloseSession(TCloseSessionResp& _return, const TCloseSessionReq& req) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->CloseSession(_return, req);
+ }
+ ifaces_[i]->CloseSession(_return, req);
+ return;
+ }
+
+ void GetInfo(TGetInfoResp& _return, const TGetInfoReq& req) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->GetInfo(_return, req);
+ }
+ ifaces_[i]->GetInfo(_return, req);
+ return;
+ }
+
+ void ExecuteStatement(TExecuteStatementResp& _return, const TExecuteStatementReq& req) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->ExecuteStatement(_return, req);
+ }
+ ifaces_[i]->ExecuteStatement(_return, req);
+ return;
+ }
+
+ void GetTypeInfo(TGetTypeInfoResp& _return, const TGetTypeInfoReq& req) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->GetTypeInfo(_return, req);
+ }
+ ifaces_[i]->GetTypeInfo(_return, req);
+ return;
+ }
+
+ void GetCatalogs(TGetCatalogsResp& _return, const TGetCatalogsReq& req) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->GetCatalogs(_return, req);
+ }
+ ifaces_[i]->GetCatalogs(_return, req);
+ return;
+ }
+
+ void GetSchemas(TGetSchemasResp& _return, const TGetSchemasReq& req) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->GetSchemas(_return, req);
+ }
+ ifaces_[i]->GetSchemas(_return, req);
+ return;
+ }
+
+ void GetTables(TGetTablesResp& _return, const TGetTablesReq& req) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->GetTables(_return, req);
+ }
+ ifaces_[i]->GetTables(_return, req);
+ return;
+ }
+
+ void GetTableTypes(TGetTableTypesResp& _return, const TGetTableTypesReq& req) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->GetTableTypes(_return, req);
+ }
+ ifaces_[i]->GetTableTypes(_return, req);
+ return;
+ }
+
+ void GetColumns(TGetColumnsResp& _return, const TGetColumnsReq& req) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->GetColumns(_return, req);
+ }
+ ifaces_[i]->GetColumns(_return, req);
+ return;
+ }
+
+ void GetFunctions(TGetFunctionsResp& _return, const TGetFunctionsReq& req) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->GetFunctions(_return, req);
+ }
+ ifaces_[i]->GetFunctions(_return, req);
+ return;
+ }
+
+ void GetOperationStatus(TGetOperationStatusResp& _return, const TGetOperationStatusReq& req) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->GetOperationStatus(_return, req);
+ }
+ ifaces_[i]->GetOperationStatus(_return, req);
+ return;
+ }
+
+ void CancelOperation(TCancelOperationResp& _return, const TCancelOperationReq& req) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->CancelOperation(_return, req);
+ }
+ ifaces_[i]->CancelOperation(_return, req);
+ return;
+ }
+
+ void CloseOperation(TCloseOperationResp& _return, const TCloseOperationReq& req) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->CloseOperation(_return, req);
+ }
+ ifaces_[i]->CloseOperation(_return, req);
+ return;
+ }
+
+ void GetResultSetMetadata(TGetResultSetMetadataResp& _return, const TGetResultSetMetadataReq& req) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->GetResultSetMetadata(_return, req);
+ }
+ ifaces_[i]->GetResultSetMetadata(_return, req);
+ return;
+ }
+
+ void FetchResults(TFetchResultsResp& _return, const TFetchResultsReq& req) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->FetchResults(_return, req);
+ }
+ ifaces_[i]->FetchResults(_return, req);
+ return;
+ }
+
+ void GetDelegationToken(TGetDelegationTokenResp& _return, const TGetDelegationTokenReq& req) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->GetDelegationToken(_return, req);
+ }
+ ifaces_[i]->GetDelegationToken(_return, req);
+ return;
+ }
+
+ void CancelDelegationToken(TCancelDelegationTokenResp& _return, const TCancelDelegationTokenReq& req) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->CancelDelegationToken(_return, req);
+ }
+ ifaces_[i]->CancelDelegationToken(_return, req);
+ return;
+ }
+
+ void RenewDelegationToken(TRenewDelegationTokenResp& _return, const TRenewDelegationTokenReq& req) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->RenewDelegationToken(_return, req);
+ }
+ ifaces_[i]->RenewDelegationToken(_return, req);
+ return;
+ }
+
+};
+
+}}}}} // namespace
+
+#endif
diff --git service-rpc/src/gen/thrift/gen-cpp/TCLIService_constants.cpp service-rpc/src/gen/thrift/gen-cpp/TCLIService_constants.cpp
new file mode 100644
index 0000000..a86fca8
--- /dev/null
+++ service-rpc/src/gen/thrift/gen-cpp/TCLIService_constants.cpp
@@ -0,0 +1,72 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.2)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+#include "TCLIService_constants.h"
+
+namespace apache { namespace hive { namespace service { namespace rpc { namespace thrift {
+
+const TCLIServiceConstants g_TCLIService_constants;
+
+TCLIServiceConstants::TCLIServiceConstants() {
+ PRIMITIVE_TYPES.insert((TTypeId::type)0);
+ PRIMITIVE_TYPES.insert((TTypeId::type)1);
+ PRIMITIVE_TYPES.insert((TTypeId::type)2);
+ PRIMITIVE_TYPES.insert((TTypeId::type)3);
+ PRIMITIVE_TYPES.insert((TTypeId::type)4);
+ PRIMITIVE_TYPES.insert((TTypeId::type)5);
+ PRIMITIVE_TYPES.insert((TTypeId::type)6);
+ PRIMITIVE_TYPES.insert((TTypeId::type)7);
+ PRIMITIVE_TYPES.insert((TTypeId::type)8);
+ PRIMITIVE_TYPES.insert((TTypeId::type)9);
+ PRIMITIVE_TYPES.insert((TTypeId::type)15);
+ PRIMITIVE_TYPES.insert((TTypeId::type)16);
+ PRIMITIVE_TYPES.insert((TTypeId::type)17);
+ PRIMITIVE_TYPES.insert((TTypeId::type)18);
+ PRIMITIVE_TYPES.insert((TTypeId::type)19);
+ PRIMITIVE_TYPES.insert((TTypeId::type)20);
+ PRIMITIVE_TYPES.insert((TTypeId::type)21);
+
+ COMPLEX_TYPES.insert((TTypeId::type)10);
+ COMPLEX_TYPES.insert((TTypeId::type)11);
+ COMPLEX_TYPES.insert((TTypeId::type)12);
+ COMPLEX_TYPES.insert((TTypeId::type)13);
+ COMPLEX_TYPES.insert((TTypeId::type)14);
+
+ COLLECTION_TYPES.insert((TTypeId::type)10);
+ COLLECTION_TYPES.insert((TTypeId::type)11);
+
+ TYPE_NAMES.insert(std::make_pair((TTypeId::type)0, "BOOLEAN"));
+ TYPE_NAMES.insert(std::make_pair((TTypeId::type)1, "TINYINT"));
+ TYPE_NAMES.insert(std::make_pair((TTypeId::type)2, "SMALLINT"));
+ TYPE_NAMES.insert(std::make_pair((TTypeId::type)3, "INT"));
+ TYPE_NAMES.insert(std::make_pair((TTypeId::type)4, "BIGINT"));
+ TYPE_NAMES.insert(std::make_pair((TTypeId::type)5, "FLOAT"));
+ TYPE_NAMES.insert(std::make_pair((TTypeId::type)6, "DOUBLE"));
+ TYPE_NAMES.insert(std::make_pair((TTypeId::type)7, "STRING"));
+ TYPE_NAMES.insert(std::make_pair((TTypeId::type)8, "TIMESTAMP"));
+ TYPE_NAMES.insert(std::make_pair((TTypeId::type)9, "BINARY"));
+ TYPE_NAMES.insert(std::make_pair((TTypeId::type)10, "ARRAY"));
+ TYPE_NAMES.insert(std::make_pair((TTypeId::type)11, "MAP"));
+ TYPE_NAMES.insert(std::make_pair((TTypeId::type)12, "STRUCT"));
+ TYPE_NAMES.insert(std::make_pair((TTypeId::type)13, "UNIONTYPE"));
+ TYPE_NAMES.insert(std::make_pair((TTypeId::type)15, "DECIMAL"));
+ TYPE_NAMES.insert(std::make_pair((TTypeId::type)16, "NULL"));
+ TYPE_NAMES.insert(std::make_pair((TTypeId::type)17, "DATE"));
+ TYPE_NAMES.insert(std::make_pair((TTypeId::type)18, "VARCHAR"));
+ TYPE_NAMES.insert(std::make_pair((TTypeId::type)19, "CHAR"));
+ TYPE_NAMES.insert(std::make_pair((TTypeId::type)20, "INTERVAL_YEAR_MONTH"));
+ TYPE_NAMES.insert(std::make_pair((TTypeId::type)21, "INTERVAL_DAY_TIME"));
+
+ CHARACTER_MAXIMUM_LENGTH = "characterMaximumLength";
+
+ PRECISION = "precision";
+
+ SCALE = "scale";
+
+}
+
+}}}}} // namespace
+
diff --git service-rpc/src/gen/thrift/gen-cpp/TCLIService_constants.h service-rpc/src/gen/thrift/gen-cpp/TCLIService_constants.h
new file mode 100644
index 0000000..8411ae8
--- /dev/null
+++ service-rpc/src/gen/thrift/gen-cpp/TCLIService_constants.h
@@ -0,0 +1,31 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.2)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+#ifndef TCLIService_CONSTANTS_H
+#define TCLIService_CONSTANTS_H
+
+#include "TCLIService_types.h"
+
+namespace apache { namespace hive { namespace service { namespace rpc { namespace thrift {
+
+class TCLIServiceConstants {
+ public:
+ TCLIServiceConstants();
+
+ std::set PRIMITIVE_TYPES;
+ std::set COMPLEX_TYPES;
+ std::set COLLECTION_TYPES;
+ std::map TYPE_NAMES;
+ std::string CHARACTER_MAXIMUM_LENGTH;
+ std::string PRECISION;
+ std::string SCALE;
+};
+
+extern const TCLIServiceConstants g_TCLIService_constants;
+
+}}}}} // namespace
+
+#endif
diff --git service-rpc/src/gen/thrift/gen-cpp/TCLIService_server.skeleton.cpp service-rpc/src/gen/thrift/gen-cpp/TCLIService_server.skeleton.cpp
new file mode 100644
index 0000000..66ed6a7
--- /dev/null
+++ service-rpc/src/gen/thrift/gen-cpp/TCLIService_server.skeleton.cpp
@@ -0,0 +1,134 @@
+// This autogenerated skeleton file illustrates how to build a server.
+// You should copy it to another filename to avoid overwriting it.
+
+#include "TCLIService.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::hive::service::rpc::thrift;
+
+class TCLIServiceHandler : virtual public TCLIServiceIf {
+ public:
+ TCLIServiceHandler() {
+ // Your initialization goes here
+ }
+
+ void OpenSession(TOpenSessionResp& _return, const TOpenSessionReq& req) {
+ // Your implementation goes here
+ printf("OpenSession\n");
+ }
+
+ void CloseSession(TCloseSessionResp& _return, const TCloseSessionReq& req) {
+ // Your implementation goes here
+ printf("CloseSession\n");
+ }
+
+ void GetInfo(TGetInfoResp& _return, const TGetInfoReq& req) {
+ // Your implementation goes here
+ printf("GetInfo\n");
+ }
+
+ void ExecuteStatement(TExecuteStatementResp& _return, const TExecuteStatementReq& req) {
+ // Your implementation goes here
+ printf("ExecuteStatement\n");
+ }
+
+ void GetTypeInfo(TGetTypeInfoResp& _return, const TGetTypeInfoReq& req) {
+ // Your implementation goes here
+ printf("GetTypeInfo\n");
+ }
+
+ void GetCatalogs(TGetCatalogsResp& _return, const TGetCatalogsReq& req) {
+ // Your implementation goes here
+ printf("GetCatalogs\n");
+ }
+
+ void GetSchemas(TGetSchemasResp& _return, const TGetSchemasReq& req) {
+ // Your implementation goes here
+ printf("GetSchemas\n");
+ }
+
+ void GetTables(TGetTablesResp& _return, const TGetTablesReq& req) {
+ // Your implementation goes here
+ printf("GetTables\n");
+ }
+
+ void GetTableTypes(TGetTableTypesResp& _return, const TGetTableTypesReq& req) {
+ // Your implementation goes here
+ printf("GetTableTypes\n");
+ }
+
+ void GetColumns(TGetColumnsResp& _return, const TGetColumnsReq& req) {
+ // Your implementation goes here
+ printf("GetColumns\n");
+ }
+
+ void GetFunctions(TGetFunctionsResp& _return, const TGetFunctionsReq& req) {
+ // Your implementation goes here
+ printf("GetFunctions\n");
+ }
+
+ void GetOperationStatus(TGetOperationStatusResp& _return, const TGetOperationStatusReq& req) {
+ // Your implementation goes here
+ printf("GetOperationStatus\n");
+ }
+
+ void CancelOperation(TCancelOperationResp& _return, const TCancelOperationReq& req) {
+ // Your implementation goes here
+ printf("CancelOperation\n");
+ }
+
+ void CloseOperation(TCloseOperationResp& _return, const TCloseOperationReq& req) {
+ // Your implementation goes here
+ printf("CloseOperation\n");
+ }
+
+ void GetResultSetMetadata(TGetResultSetMetadataResp& _return, const TGetResultSetMetadataReq& req) {
+ // Your implementation goes here
+ printf("GetResultSetMetadata\n");
+ }
+
+ void FetchResults(TFetchResultsResp& _return, const TFetchResultsReq& req) {
+ // Your implementation goes here
+ printf("FetchResults\n");
+ }
+
+ void GetDelegationToken(TGetDelegationTokenResp& _return, const TGetDelegationTokenReq& req) {
+ // Your implementation goes here
+ printf("GetDelegationToken\n");
+ }
+
+ void CancelDelegationToken(TCancelDelegationTokenResp& _return, const TCancelDelegationTokenReq& req) {
+ // Your implementation goes here
+ printf("CancelDelegationToken\n");
+ }
+
+ void RenewDelegationToken(TRenewDelegationTokenResp& _return, const TRenewDelegationTokenReq& req) {
+ // Your implementation goes here
+ printf("RenewDelegationToken\n");
+ }
+
+};
+
+int main(int argc, char **argv) {
+ int port = 9090;
+ shared_ptr handler(new TCLIServiceHandler());
+ shared_ptr processor(new TCLIServiceProcessor(handler));
+ shared_ptr serverTransport(new TServerSocket(port));
+ shared_ptr transportFactory(new TBufferedTransportFactory());
+ shared_ptr protocolFactory(new TBinaryProtocolFactory());
+
+ TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
+ server.serve();
+ return 0;
+}
+
diff --git service-rpc/src/gen/thrift/gen-cpp/TCLIService_types.cpp service-rpc/src/gen/thrift/gen-cpp/TCLIService_types.cpp
new file mode 100644
index 0000000..000589d
--- /dev/null
+++ service-rpc/src/gen/thrift/gen-cpp/TCLIService_types.cpp
@@ -0,0 +1,9527 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.2)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+#include "TCLIService_types.h"
+
+#include
+#include
+
+#include
+
+namespace apache { namespace hive { namespace service { namespace rpc { namespace thrift {
+
+int _kTProtocolVersionValues[] = {
+ TProtocolVersion::HIVE_CLI_SERVICE_PROTOCOL_V1,
+ TProtocolVersion::HIVE_CLI_SERVICE_PROTOCOL_V2,
+ TProtocolVersion::HIVE_CLI_SERVICE_PROTOCOL_V3,
+ TProtocolVersion::HIVE_CLI_SERVICE_PROTOCOL_V4,
+ TProtocolVersion::HIVE_CLI_SERVICE_PROTOCOL_V5,
+ TProtocolVersion::HIVE_CLI_SERVICE_PROTOCOL_V6,
+ TProtocolVersion::HIVE_CLI_SERVICE_PROTOCOL_V7,
+ TProtocolVersion::HIVE_CLI_SERVICE_PROTOCOL_V8
+};
+const char* _kTProtocolVersionNames[] = {
+ "HIVE_CLI_SERVICE_PROTOCOL_V1",
+ "HIVE_CLI_SERVICE_PROTOCOL_V2",
+ "HIVE_CLI_SERVICE_PROTOCOL_V3",
+ "HIVE_CLI_SERVICE_PROTOCOL_V4",
+ "HIVE_CLI_SERVICE_PROTOCOL_V5",
+ "HIVE_CLI_SERVICE_PROTOCOL_V6",
+ "HIVE_CLI_SERVICE_PROTOCOL_V7",
+ "HIVE_CLI_SERVICE_PROTOCOL_V8"
+};
+const std::map _TProtocolVersion_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(8, _kTProtocolVersionValues, _kTProtocolVersionNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL));
+
+int _kTTypeIdValues[] = {
+ TTypeId::BOOLEAN_TYPE,
+ TTypeId::TINYINT_TYPE,
+ TTypeId::SMALLINT_TYPE,
+ TTypeId::INT_TYPE,
+ TTypeId::BIGINT_TYPE,
+ TTypeId::FLOAT_TYPE,
+ TTypeId::DOUBLE_TYPE,
+ TTypeId::STRING_TYPE,
+ TTypeId::TIMESTAMP_TYPE,
+ TTypeId::BINARY_TYPE,
+ TTypeId::ARRAY_TYPE,
+ TTypeId::MAP_TYPE,
+ TTypeId::STRUCT_TYPE,
+ TTypeId::UNION_TYPE,
+ TTypeId::USER_DEFINED_TYPE,
+ TTypeId::DECIMAL_TYPE,
+ TTypeId::NULL_TYPE,
+ TTypeId::DATE_TYPE,
+ TTypeId::VARCHAR_TYPE,
+ TTypeId::CHAR_TYPE,
+ TTypeId::INTERVAL_YEAR_MONTH_TYPE,
+ TTypeId::INTERVAL_DAY_TIME_TYPE
+};
+const char* _kTTypeIdNames[] = {
+ "BOOLEAN_TYPE",
+ "TINYINT_TYPE",
+ "SMALLINT_TYPE",
+ "INT_TYPE",
+ "BIGINT_TYPE",
+ "FLOAT_TYPE",
+ "DOUBLE_TYPE",
+ "STRING_TYPE",
+ "TIMESTAMP_TYPE",
+ "BINARY_TYPE",
+ "ARRAY_TYPE",
+ "MAP_TYPE",
+ "STRUCT_TYPE",
+ "UNION_TYPE",
+ "USER_DEFINED_TYPE",
+ "DECIMAL_TYPE",
+ "NULL_TYPE",
+ "DATE_TYPE",
+ "VARCHAR_TYPE",
+ "CHAR_TYPE",
+ "INTERVAL_YEAR_MONTH_TYPE",
+ "INTERVAL_DAY_TIME_TYPE"
+};
+const std::map _TTypeId_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(22, _kTTypeIdValues, _kTTypeIdNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL));
+
+int _kTStatusCodeValues[] = {
+ TStatusCode::SUCCESS_STATUS,
+ TStatusCode::SUCCESS_WITH_INFO_STATUS,
+ TStatusCode::STILL_EXECUTING_STATUS,
+ TStatusCode::ERROR_STATUS,
+ TStatusCode::INVALID_HANDLE_STATUS
+};
+const char* _kTStatusCodeNames[] = {
+ "SUCCESS_STATUS",
+ "SUCCESS_WITH_INFO_STATUS",
+ "STILL_EXECUTING_STATUS",
+ "ERROR_STATUS",
+ "INVALID_HANDLE_STATUS"
+};
+const std::map _TStatusCode_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(5, _kTStatusCodeValues, _kTStatusCodeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL));
+
+int _kTOperationStateValues[] = {
+ TOperationState::INITIALIZED_STATE,
+ TOperationState::RUNNING_STATE,
+ TOperationState::FINISHED_STATE,
+ TOperationState::CANCELED_STATE,
+ TOperationState::CLOSED_STATE,
+ TOperationState::ERROR_STATE,
+ TOperationState::UKNOWN_STATE,
+ TOperationState::PENDING_STATE
+};
+const char* _kTOperationStateNames[] = {
+ "INITIALIZED_STATE",
+ "RUNNING_STATE",
+ "FINISHED_STATE",
+ "CANCELED_STATE",
+ "CLOSED_STATE",
+ "ERROR_STATE",
+ "UKNOWN_STATE",
+ "PENDING_STATE"
+};
+const std::map _TOperationState_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(8, _kTOperationStateValues, _kTOperationStateNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL));
+
+int _kTOperationTypeValues[] = {
+ TOperationType::EXECUTE_STATEMENT,
+ TOperationType::GET_TYPE_INFO,
+ TOperationType::GET_CATALOGS,
+ TOperationType::GET_SCHEMAS,
+ TOperationType::GET_TABLES,
+ TOperationType::GET_TABLE_TYPES,
+ TOperationType::GET_COLUMNS,
+ TOperationType::GET_FUNCTIONS,
+ TOperationType::UNKNOWN
+};
+const char* _kTOperationTypeNames[] = {
+ "EXECUTE_STATEMENT",
+ "GET_TYPE_INFO",
+ "GET_CATALOGS",
+ "GET_SCHEMAS",
+ "GET_TABLES",
+ "GET_TABLE_TYPES",
+ "GET_COLUMNS",
+ "GET_FUNCTIONS",
+ "UNKNOWN"
+};
+const std::map _TOperationType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(9, _kTOperationTypeValues, _kTOperationTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL));
+
+int _kTGetInfoTypeValues[] = {
+ TGetInfoType::CLI_MAX_DRIVER_CONNECTIONS,
+ TGetInfoType::CLI_MAX_CONCURRENT_ACTIVITIES,
+ TGetInfoType::CLI_DATA_SOURCE_NAME,
+ TGetInfoType::CLI_FETCH_DIRECTION,
+ TGetInfoType::CLI_SERVER_NAME,
+ TGetInfoType::CLI_SEARCH_PATTERN_ESCAPE,
+ TGetInfoType::CLI_DBMS_NAME,
+ TGetInfoType::CLI_DBMS_VER,
+ TGetInfoType::CLI_ACCESSIBLE_TABLES,
+ TGetInfoType::CLI_ACCESSIBLE_PROCEDURES,
+ TGetInfoType::CLI_CURSOR_COMMIT_BEHAVIOR,
+ TGetInfoType::CLI_DATA_SOURCE_READ_ONLY,
+ TGetInfoType::CLI_DEFAULT_TXN_ISOLATION,
+ TGetInfoType::CLI_IDENTIFIER_CASE,
+ TGetInfoType::CLI_IDENTIFIER_QUOTE_CHAR,
+ TGetInfoType::CLI_MAX_COLUMN_NAME_LEN,
+ TGetInfoType::CLI_MAX_CURSOR_NAME_LEN,
+ TGetInfoType::CLI_MAX_SCHEMA_NAME_LEN,
+ TGetInfoType::CLI_MAX_CATALOG_NAME_LEN,
+ TGetInfoType::CLI_MAX_TABLE_NAME_LEN,
+ TGetInfoType::CLI_SCROLL_CONCURRENCY,
+ TGetInfoType::CLI_TXN_CAPABLE,
+ TGetInfoType::CLI_USER_NAME,
+ TGetInfoType::CLI_TXN_ISOLATION_OPTION,
+ TGetInfoType::CLI_INTEGRITY,
+ TGetInfoType::CLI_GETDATA_EXTENSIONS,
+ TGetInfoType::CLI_NULL_COLLATION,
+ TGetInfoType::CLI_ALTER_TABLE,
+ TGetInfoType::CLI_ORDER_BY_COLUMNS_IN_SELECT,
+ TGetInfoType::CLI_SPECIAL_CHARACTERS,
+ TGetInfoType::CLI_MAX_COLUMNS_IN_GROUP_BY,
+ TGetInfoType::CLI_MAX_COLUMNS_IN_INDEX,
+ TGetInfoType::CLI_MAX_COLUMNS_IN_ORDER_BY,
+ TGetInfoType::CLI_MAX_COLUMNS_IN_SELECT,
+ TGetInfoType::CLI_MAX_COLUMNS_IN_TABLE,
+ TGetInfoType::CLI_MAX_INDEX_SIZE,
+ TGetInfoType::CLI_MAX_ROW_SIZE,
+ TGetInfoType::CLI_MAX_STATEMENT_LEN,
+ TGetInfoType::CLI_MAX_TABLES_IN_SELECT,
+ TGetInfoType::CLI_MAX_USER_NAME_LEN,
+ TGetInfoType::CLI_OJ_CAPABILITIES,
+ TGetInfoType::CLI_XOPEN_CLI_YEAR,
+ TGetInfoType::CLI_CURSOR_SENSITIVITY,
+ TGetInfoType::CLI_DESCRIBE_PARAMETER,
+ TGetInfoType::CLI_CATALOG_NAME,
+ TGetInfoType::CLI_COLLATION_SEQ,
+ TGetInfoType::CLI_MAX_IDENTIFIER_LEN
+};
+const char* _kTGetInfoTypeNames[] = {
+ "CLI_MAX_DRIVER_CONNECTIONS",
+ "CLI_MAX_CONCURRENT_ACTIVITIES",
+ "CLI_DATA_SOURCE_NAME",
+ "CLI_FETCH_DIRECTION",
+ "CLI_SERVER_NAME",
+ "CLI_SEARCH_PATTERN_ESCAPE",
+ "CLI_DBMS_NAME",
+ "CLI_DBMS_VER",
+ "CLI_ACCESSIBLE_TABLES",
+ "CLI_ACCESSIBLE_PROCEDURES",
+ "CLI_CURSOR_COMMIT_BEHAVIOR",
+ "CLI_DATA_SOURCE_READ_ONLY",
+ "CLI_DEFAULT_TXN_ISOLATION",
+ "CLI_IDENTIFIER_CASE",
+ "CLI_IDENTIFIER_QUOTE_CHAR",
+ "CLI_MAX_COLUMN_NAME_LEN",
+ "CLI_MAX_CURSOR_NAME_LEN",
+ "CLI_MAX_SCHEMA_NAME_LEN",
+ "CLI_MAX_CATALOG_NAME_LEN",
+ "CLI_MAX_TABLE_NAME_LEN",
+ "CLI_SCROLL_CONCURRENCY",
+ "CLI_TXN_CAPABLE",
+ "CLI_USER_NAME",
+ "CLI_TXN_ISOLATION_OPTION",
+ "CLI_INTEGRITY",
+ "CLI_GETDATA_EXTENSIONS",
+ "CLI_NULL_COLLATION",
+ "CLI_ALTER_TABLE",
+ "CLI_ORDER_BY_COLUMNS_IN_SELECT",
+ "CLI_SPECIAL_CHARACTERS",
+ "CLI_MAX_COLUMNS_IN_GROUP_BY",
+ "CLI_MAX_COLUMNS_IN_INDEX",
+ "CLI_MAX_COLUMNS_IN_ORDER_BY",
+ "CLI_MAX_COLUMNS_IN_SELECT",
+ "CLI_MAX_COLUMNS_IN_TABLE",
+ "CLI_MAX_INDEX_SIZE",
+ "CLI_MAX_ROW_SIZE",
+ "CLI_MAX_STATEMENT_LEN",
+ "CLI_MAX_TABLES_IN_SELECT",
+ "CLI_MAX_USER_NAME_LEN",
+ "CLI_OJ_CAPABILITIES",
+ "CLI_XOPEN_CLI_YEAR",
+ "CLI_CURSOR_SENSITIVITY",
+ "CLI_DESCRIBE_PARAMETER",
+ "CLI_CATALOG_NAME",
+ "CLI_COLLATION_SEQ",
+ "CLI_MAX_IDENTIFIER_LEN"
+};
+const std::map _TGetInfoType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(47, _kTGetInfoTypeValues, _kTGetInfoTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL));
+
+int _kTFetchOrientationValues[] = {
+ TFetchOrientation::FETCH_NEXT,
+ TFetchOrientation::FETCH_PRIOR,
+ TFetchOrientation::FETCH_RELATIVE,
+ TFetchOrientation::FETCH_ABSOLUTE,
+ TFetchOrientation::FETCH_FIRST,
+ TFetchOrientation::FETCH_LAST
+};
+const char* _kTFetchOrientationNames[] = {
+ "FETCH_NEXT",
+ "FETCH_PRIOR",
+ "FETCH_RELATIVE",
+ "FETCH_ABSOLUTE",
+ "FETCH_FIRST",
+ "FETCH_LAST"
+};
+const std::map _TFetchOrientation_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(6, _kTFetchOrientationValues, _kTFetchOrientationNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL));
+
+
+TTypeQualifierValue::~TTypeQualifierValue() throw() {
+}
+
+
+void TTypeQualifierValue::__set_i32Value(const int32_t val) {
+ this->i32Value = val;
+__isset.i32Value = true;
+}
+
+void TTypeQualifierValue::__set_stringValue(const std::string& val) {
+ this->stringValue = val;
+__isset.stringValue = true;
+}
+
+const char* TTypeQualifierValue::ascii_fingerprint = "A7801670116150C65ACA43E6F679BA79";
+const uint8_t TTypeQualifierValue::binary_fingerprint[16] = {0xA7,0x80,0x16,0x70,0x11,0x61,0x50,0xC6,0x5A,0xCA,0x43,0xE6,0xF6,0x79,0xBA,0x79};
+
+uint32_t TTypeQualifierValue::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_I32) {
+ xfer += iprot->readI32(this->i32Value);
+ this->__isset.i32Value = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->stringValue);
+ this->__isset.stringValue = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TTypeQualifierValue::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TTypeQualifierValue");
+
+ if (this->__isset.i32Value) {
+ xfer += oprot->writeFieldBegin("i32Value", ::apache::thrift::protocol::T_I32, 1);
+ xfer += oprot->writeI32(this->i32Value);
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.stringValue) {
+ xfer += oprot->writeFieldBegin("stringValue", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->stringValue);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TTypeQualifierValue &a, TTypeQualifierValue &b) {
+ using ::std::swap;
+ swap(a.i32Value, b.i32Value);
+ swap(a.stringValue, b.stringValue);
+ swap(a.__isset, b.__isset);
+}
+
+TTypeQualifierValue::TTypeQualifierValue(const TTypeQualifierValue& other0) {
+ i32Value = other0.i32Value;
+ stringValue = other0.stringValue;
+ __isset = other0.__isset;
+}
+TTypeQualifierValue& TTypeQualifierValue::operator=(const TTypeQualifierValue& other1) {
+ i32Value = other1.i32Value;
+ stringValue = other1.stringValue;
+ __isset = other1.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TTypeQualifierValue& obj) {
+ using apache::thrift::to_string;
+ out << "TTypeQualifierValue(";
+ out << "i32Value="; (obj.__isset.i32Value ? (out << to_string(obj.i32Value)) : (out << ""));
+ out << ", " << "stringValue="; (obj.__isset.stringValue ? (out << to_string(obj.stringValue)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TTypeQualifiers::~TTypeQualifiers() throw() {
+}
+
+
+void TTypeQualifiers::__set_qualifiers(const std::map & val) {
+ this->qualifiers = val;
+}
+
+const char* TTypeQualifiers::ascii_fingerprint = "6C72981CFA989214285648FA8C196C47";
+const uint8_t TTypeQualifiers::binary_fingerprint[16] = {0x6C,0x72,0x98,0x1C,0xFA,0x98,0x92,0x14,0x28,0x56,0x48,0xFA,0x8C,0x19,0x6C,0x47};
+
+uint32_t TTypeQualifiers::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;
+
+ bool isset_qualifiers = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_MAP) {
+ {
+ this->qualifiers.clear();
+ uint32_t _size2;
+ ::apache::thrift::protocol::TType _ktype3;
+ ::apache::thrift::protocol::TType _vtype4;
+ xfer += iprot->readMapBegin(_ktype3, _vtype4, _size2);
+ uint32_t _i6;
+ for (_i6 = 0; _i6 < _size2; ++_i6)
+ {
+ std::string _key7;
+ xfer += iprot->readString(_key7);
+ TTypeQualifierValue& _val8 = this->qualifiers[_key7];
+ xfer += _val8.read(iprot);
+ }
+ xfer += iprot->readMapEnd();
+ }
+ isset_qualifiers = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_qualifiers)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TTypeQualifiers::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TTypeQualifiers");
+
+ xfer += oprot->writeFieldBegin("qualifiers", ::apache::thrift::protocol::T_MAP, 1);
+ {
+ xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast(this->qualifiers.size()));
+ std::map ::const_iterator _iter9;
+ for (_iter9 = this->qualifiers.begin(); _iter9 != this->qualifiers.end(); ++_iter9)
+ {
+ xfer += oprot->writeString(_iter9->first);
+ xfer += _iter9->second.write(oprot);
+ }
+ xfer += oprot->writeMapEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TTypeQualifiers &a, TTypeQualifiers &b) {
+ using ::std::swap;
+ swap(a.qualifiers, b.qualifiers);
+}
+
+TTypeQualifiers::TTypeQualifiers(const TTypeQualifiers& other10) {
+ qualifiers = other10.qualifiers;
+}
+TTypeQualifiers& TTypeQualifiers::operator=(const TTypeQualifiers& other11) {
+ qualifiers = other11.qualifiers;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TTypeQualifiers& obj) {
+ using apache::thrift::to_string;
+ out << "TTypeQualifiers(";
+ out << "qualifiers=" << to_string(obj.qualifiers);
+ out << ")";
+ return out;
+}
+
+
+TPrimitiveTypeEntry::~TPrimitiveTypeEntry() throw() {
+}
+
+
+void TPrimitiveTypeEntry::__set_type(const TTypeId::type val) {
+ this->type = val;
+}
+
+void TPrimitiveTypeEntry::__set_typeQualifiers(const TTypeQualifiers& val) {
+ this->typeQualifiers = val;
+__isset.typeQualifiers = true;
+}
+
+const char* TPrimitiveTypeEntry::ascii_fingerprint = "755674F6A5C8EB47868686AE386FBC1C";
+const uint8_t TPrimitiveTypeEntry::binary_fingerprint[16] = {0x75,0x56,0x74,0xF6,0xA5,0xC8,0xEB,0x47,0x86,0x86,0x86,0xAE,0x38,0x6F,0xBC,0x1C};
+
+uint32_t TPrimitiveTypeEntry::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;
+
+ bool isset_type = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ int32_t ecast12;
+ xfer += iprot->readI32(ecast12);
+ this->type = (TTypeId::type)ecast12;
+ isset_type = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->typeQualifiers.read(iprot);
+ this->__isset.typeQualifiers = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_type)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TPrimitiveTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TPrimitiveTypeEntry");
+
+ xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 1);
+ xfer += oprot->writeI32((int32_t)this->type);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.typeQualifiers) {
+ xfer += oprot->writeFieldBegin("typeQualifiers", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->typeQualifiers.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TPrimitiveTypeEntry &a, TPrimitiveTypeEntry &b) {
+ using ::std::swap;
+ swap(a.type, b.type);
+ swap(a.typeQualifiers, b.typeQualifiers);
+ swap(a.__isset, b.__isset);
+}
+
+TPrimitiveTypeEntry::TPrimitiveTypeEntry(const TPrimitiveTypeEntry& other13) {
+ type = other13.type;
+ typeQualifiers = other13.typeQualifiers;
+ __isset = other13.__isset;
+}
+TPrimitiveTypeEntry& TPrimitiveTypeEntry::operator=(const TPrimitiveTypeEntry& other14) {
+ type = other14.type;
+ typeQualifiers = other14.typeQualifiers;
+ __isset = other14.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TPrimitiveTypeEntry& obj) {
+ using apache::thrift::to_string;
+ out << "TPrimitiveTypeEntry(";
+ out << "type=" << to_string(obj.type);
+ out << ", " << "typeQualifiers="; (obj.__isset.typeQualifiers ? (out << to_string(obj.typeQualifiers)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TArrayTypeEntry::~TArrayTypeEntry() throw() {
+}
+
+
+void TArrayTypeEntry::__set_objectTypePtr(const TTypeEntryPtr val) {
+ this->objectTypePtr = val;
+}
+
+const char* TArrayTypeEntry::ascii_fingerprint = "E86CACEB22240450EDCBEFC3A83970E4";
+const uint8_t TArrayTypeEntry::binary_fingerprint[16] = {0xE8,0x6C,0xAC,0xEB,0x22,0x24,0x04,0x50,0xED,0xCB,0xEF,0xC3,0xA8,0x39,0x70,0xE4};
+
+uint32_t TArrayTypeEntry::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;
+
+ bool isset_objectTypePtr = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ xfer += iprot->readI32(this->objectTypePtr);
+ isset_objectTypePtr = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_objectTypePtr)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TArrayTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TArrayTypeEntry");
+
+ xfer += oprot->writeFieldBegin("objectTypePtr", ::apache::thrift::protocol::T_I32, 1);
+ xfer += oprot->writeI32(this->objectTypePtr);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TArrayTypeEntry &a, TArrayTypeEntry &b) {
+ using ::std::swap;
+ swap(a.objectTypePtr, b.objectTypePtr);
+}
+
+TArrayTypeEntry::TArrayTypeEntry(const TArrayTypeEntry& other15) {
+ objectTypePtr = other15.objectTypePtr;
+}
+TArrayTypeEntry& TArrayTypeEntry::operator=(const TArrayTypeEntry& other16) {
+ objectTypePtr = other16.objectTypePtr;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TArrayTypeEntry& obj) {
+ using apache::thrift::to_string;
+ out << "TArrayTypeEntry(";
+ out << "objectTypePtr=" << to_string(obj.objectTypePtr);
+ out << ")";
+ return out;
+}
+
+
+TMapTypeEntry::~TMapTypeEntry() throw() {
+}
+
+
+void TMapTypeEntry::__set_keyTypePtr(const TTypeEntryPtr val) {
+ this->keyTypePtr = val;
+}
+
+void TMapTypeEntry::__set_valueTypePtr(const TTypeEntryPtr val) {
+ this->valueTypePtr = val;
+}
+
+const char* TMapTypeEntry::ascii_fingerprint = "989D1F1AE8D148D5E2119FFEC4BBBEE3";
+const uint8_t TMapTypeEntry::binary_fingerprint[16] = {0x98,0x9D,0x1F,0x1A,0xE8,0xD1,0x48,0xD5,0xE2,0x11,0x9F,0xFE,0xC4,0xBB,0xBE,0xE3};
+
+uint32_t TMapTypeEntry::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;
+
+ bool isset_keyTypePtr = false;
+ bool isset_valueTypePtr = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ xfer += iprot->readI32(this->keyTypePtr);
+ isset_keyTypePtr = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ xfer += iprot->readI32(this->valueTypePtr);
+ isset_valueTypePtr = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_keyTypePtr)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_valueTypePtr)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TMapTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TMapTypeEntry");
+
+ xfer += oprot->writeFieldBegin("keyTypePtr", ::apache::thrift::protocol::T_I32, 1);
+ xfer += oprot->writeI32(this->keyTypePtr);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("valueTypePtr", ::apache::thrift::protocol::T_I32, 2);
+ xfer += oprot->writeI32(this->valueTypePtr);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TMapTypeEntry &a, TMapTypeEntry &b) {
+ using ::std::swap;
+ swap(a.keyTypePtr, b.keyTypePtr);
+ swap(a.valueTypePtr, b.valueTypePtr);
+}
+
+TMapTypeEntry::TMapTypeEntry(const TMapTypeEntry& other17) {
+ keyTypePtr = other17.keyTypePtr;
+ valueTypePtr = other17.valueTypePtr;
+}
+TMapTypeEntry& TMapTypeEntry::operator=(const TMapTypeEntry& other18) {
+ keyTypePtr = other18.keyTypePtr;
+ valueTypePtr = other18.valueTypePtr;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TMapTypeEntry& obj) {
+ using apache::thrift::to_string;
+ out << "TMapTypeEntry(";
+ out << "keyTypePtr=" << to_string(obj.keyTypePtr);
+ out << ", " << "valueTypePtr=" << to_string(obj.valueTypePtr);
+ out << ")";
+ return out;
+}
+
+
+TStructTypeEntry::~TStructTypeEntry() throw() {
+}
+
+
+void TStructTypeEntry::__set_nameToTypePtr(const std::map & val) {
+ this->nameToTypePtr = val;
+}
+
+const char* TStructTypeEntry::ascii_fingerprint = "91F548CA159B4AB4291F5741AC161402";
+const uint8_t TStructTypeEntry::binary_fingerprint[16] = {0x91,0xF5,0x48,0xCA,0x15,0x9B,0x4A,0xB4,0x29,0x1F,0x57,0x41,0xAC,0x16,0x14,0x02};
+
+uint32_t TStructTypeEntry::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;
+
+ bool isset_nameToTypePtr = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_MAP) {
+ {
+ this->nameToTypePtr.clear();
+ uint32_t _size19;
+ ::apache::thrift::protocol::TType _ktype20;
+ ::apache::thrift::protocol::TType _vtype21;
+ xfer += iprot->readMapBegin(_ktype20, _vtype21, _size19);
+ uint32_t _i23;
+ for (_i23 = 0; _i23 < _size19; ++_i23)
+ {
+ std::string _key24;
+ xfer += iprot->readString(_key24);
+ TTypeEntryPtr& _val25 = this->nameToTypePtr[_key24];
+ xfer += iprot->readI32(_val25);
+ }
+ xfer += iprot->readMapEnd();
+ }
+ isset_nameToTypePtr = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_nameToTypePtr)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TStructTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TStructTypeEntry");
+
+ xfer += oprot->writeFieldBegin("nameToTypePtr", ::apache::thrift::protocol::T_MAP, 1);
+ {
+ xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast(this->nameToTypePtr.size()));
+ std::map ::const_iterator _iter26;
+ for (_iter26 = this->nameToTypePtr.begin(); _iter26 != this->nameToTypePtr.end(); ++_iter26)
+ {
+ xfer += oprot->writeString(_iter26->first);
+ xfer += oprot->writeI32(_iter26->second);
+ }
+ xfer += oprot->writeMapEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TStructTypeEntry &a, TStructTypeEntry &b) {
+ using ::std::swap;
+ swap(a.nameToTypePtr, b.nameToTypePtr);
+}
+
+TStructTypeEntry::TStructTypeEntry(const TStructTypeEntry& other27) {
+ nameToTypePtr = other27.nameToTypePtr;
+}
+TStructTypeEntry& TStructTypeEntry::operator=(const TStructTypeEntry& other28) {
+ nameToTypePtr = other28.nameToTypePtr;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TStructTypeEntry& obj) {
+ using apache::thrift::to_string;
+ out << "TStructTypeEntry(";
+ out << "nameToTypePtr=" << to_string(obj.nameToTypePtr);
+ out << ")";
+ return out;
+}
+
+
+TUnionTypeEntry::~TUnionTypeEntry() throw() {
+}
+
+
+void TUnionTypeEntry::__set_nameToTypePtr(const std::map & val) {
+ this->nameToTypePtr = val;
+}
+
+const char* TUnionTypeEntry::ascii_fingerprint = "91F548CA159B4AB4291F5741AC161402";
+const uint8_t TUnionTypeEntry::binary_fingerprint[16] = {0x91,0xF5,0x48,0xCA,0x15,0x9B,0x4A,0xB4,0x29,0x1F,0x57,0x41,0xAC,0x16,0x14,0x02};
+
+uint32_t TUnionTypeEntry::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;
+
+ bool isset_nameToTypePtr = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_MAP) {
+ {
+ this->nameToTypePtr.clear();
+ uint32_t _size29;
+ ::apache::thrift::protocol::TType _ktype30;
+ ::apache::thrift::protocol::TType _vtype31;
+ xfer += iprot->readMapBegin(_ktype30, _vtype31, _size29);
+ uint32_t _i33;
+ for (_i33 = 0; _i33 < _size29; ++_i33)
+ {
+ std::string _key34;
+ xfer += iprot->readString(_key34);
+ TTypeEntryPtr& _val35 = this->nameToTypePtr[_key34];
+ xfer += iprot->readI32(_val35);
+ }
+ xfer += iprot->readMapEnd();
+ }
+ isset_nameToTypePtr = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_nameToTypePtr)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TUnionTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TUnionTypeEntry");
+
+ xfer += oprot->writeFieldBegin("nameToTypePtr", ::apache::thrift::protocol::T_MAP, 1);
+ {
+ xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast(this->nameToTypePtr.size()));
+ std::map ::const_iterator _iter36;
+ for (_iter36 = this->nameToTypePtr.begin(); _iter36 != this->nameToTypePtr.end(); ++_iter36)
+ {
+ xfer += oprot->writeString(_iter36->first);
+ xfer += oprot->writeI32(_iter36->second);
+ }
+ xfer += oprot->writeMapEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TUnionTypeEntry &a, TUnionTypeEntry &b) {
+ using ::std::swap;
+ swap(a.nameToTypePtr, b.nameToTypePtr);
+}
+
+TUnionTypeEntry::TUnionTypeEntry(const TUnionTypeEntry& other37) {
+ nameToTypePtr = other37.nameToTypePtr;
+}
+TUnionTypeEntry& TUnionTypeEntry::operator=(const TUnionTypeEntry& other38) {
+ nameToTypePtr = other38.nameToTypePtr;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TUnionTypeEntry& obj) {
+ using apache::thrift::to_string;
+ out << "TUnionTypeEntry(";
+ out << "nameToTypePtr=" << to_string(obj.nameToTypePtr);
+ out << ")";
+ return out;
+}
+
+
+TUserDefinedTypeEntry::~TUserDefinedTypeEntry() throw() {
+}
+
+
+void TUserDefinedTypeEntry::__set_typeClassName(const std::string& val) {
+ this->typeClassName = val;
+}
+
+const char* TUserDefinedTypeEntry::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1";
+const uint8_t TUserDefinedTypeEntry::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
+
+uint32_t TUserDefinedTypeEntry::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;
+
+ bool isset_typeClassName = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->typeClassName);
+ isset_typeClassName = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_typeClassName)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TUserDefinedTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TUserDefinedTypeEntry");
+
+ xfer += oprot->writeFieldBegin("typeClassName", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->typeClassName);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TUserDefinedTypeEntry &a, TUserDefinedTypeEntry &b) {
+ using ::std::swap;
+ swap(a.typeClassName, b.typeClassName);
+}
+
+TUserDefinedTypeEntry::TUserDefinedTypeEntry(const TUserDefinedTypeEntry& other39) {
+ typeClassName = other39.typeClassName;
+}
+TUserDefinedTypeEntry& TUserDefinedTypeEntry::operator=(const TUserDefinedTypeEntry& other40) {
+ typeClassName = other40.typeClassName;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TUserDefinedTypeEntry& obj) {
+ using apache::thrift::to_string;
+ out << "TUserDefinedTypeEntry(";
+ out << "typeClassName=" << to_string(obj.typeClassName);
+ out << ")";
+ return out;
+}
+
+
+TTypeEntry::~TTypeEntry() throw() {
+}
+
+
+void TTypeEntry::__set_primitiveEntry(const TPrimitiveTypeEntry& val) {
+ this->primitiveEntry = val;
+}
+
+void TTypeEntry::__set_arrayEntry(const TArrayTypeEntry& val) {
+ this->arrayEntry = val;
+}
+
+void TTypeEntry::__set_mapEntry(const TMapTypeEntry& val) {
+ this->mapEntry = val;
+}
+
+void TTypeEntry::__set_structEntry(const TStructTypeEntry& val) {
+ this->structEntry = val;
+}
+
+void TTypeEntry::__set_unionEntry(const TUnionTypeEntry& val) {
+ this->unionEntry = val;
+}
+
+void TTypeEntry::__set_userDefinedTypeEntry(const TUserDefinedTypeEntry& val) {
+ this->userDefinedTypeEntry = val;
+}
+
+const char* TTypeEntry::ascii_fingerprint = "2FE56D9097E325DAA7E933738C6D325F";
+const uint8_t TTypeEntry::binary_fingerprint[16] = {0x2F,0xE5,0x6D,0x90,0x97,0xE3,0x25,0xDA,0xA7,0xE9,0x33,0x73,0x8C,0x6D,0x32,0x5F};
+
+uint32_t TTypeEntry::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->primitiveEntry.read(iprot);
+ this->__isset.primitiveEntry = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->arrayEntry.read(iprot);
+ this->__isset.arrayEntry = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->mapEntry.read(iprot);
+ this->__isset.mapEntry = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->structEntry.read(iprot);
+ this->__isset.structEntry = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 5:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->unionEntry.read(iprot);
+ this->__isset.unionEntry = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 6:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->userDefinedTypeEntry.read(iprot);
+ this->__isset.userDefinedTypeEntry = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TTypeEntry");
+
+ xfer += oprot->writeFieldBegin("primitiveEntry", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->primitiveEntry.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("arrayEntry", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->arrayEntry.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("mapEntry", ::apache::thrift::protocol::T_STRUCT, 3);
+ xfer += this->mapEntry.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("structEntry", ::apache::thrift::protocol::T_STRUCT, 4);
+ xfer += this->structEntry.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("unionEntry", ::apache::thrift::protocol::T_STRUCT, 5);
+ xfer += this->unionEntry.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("userDefinedTypeEntry", ::apache::thrift::protocol::T_STRUCT, 6);
+ xfer += this->userDefinedTypeEntry.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TTypeEntry &a, TTypeEntry &b) {
+ using ::std::swap;
+ swap(a.primitiveEntry, b.primitiveEntry);
+ swap(a.arrayEntry, b.arrayEntry);
+ swap(a.mapEntry, b.mapEntry);
+ swap(a.structEntry, b.structEntry);
+ swap(a.unionEntry, b.unionEntry);
+ swap(a.userDefinedTypeEntry, b.userDefinedTypeEntry);
+ swap(a.__isset, b.__isset);
+}
+
+TTypeEntry::TTypeEntry(const TTypeEntry& other41) {
+ primitiveEntry = other41.primitiveEntry;
+ arrayEntry = other41.arrayEntry;
+ mapEntry = other41.mapEntry;
+ structEntry = other41.structEntry;
+ unionEntry = other41.unionEntry;
+ userDefinedTypeEntry = other41.userDefinedTypeEntry;
+ __isset = other41.__isset;
+}
+TTypeEntry& TTypeEntry::operator=(const TTypeEntry& other42) {
+ primitiveEntry = other42.primitiveEntry;
+ arrayEntry = other42.arrayEntry;
+ mapEntry = other42.mapEntry;
+ structEntry = other42.structEntry;
+ unionEntry = other42.unionEntry;
+ userDefinedTypeEntry = other42.userDefinedTypeEntry;
+ __isset = other42.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TTypeEntry& obj) {
+ using apache::thrift::to_string;
+ out << "TTypeEntry(";
+ out << "primitiveEntry=" << to_string(obj.primitiveEntry);
+ out << ", " << "arrayEntry=" << to_string(obj.arrayEntry);
+ out << ", " << "mapEntry=" << to_string(obj.mapEntry);
+ out << ", " << "structEntry=" << to_string(obj.structEntry);
+ out << ", " << "unionEntry=" << to_string(obj.unionEntry);
+ out << ", " << "userDefinedTypeEntry=" << to_string(obj.userDefinedTypeEntry);
+ out << ")";
+ return out;
+}
+
+
+TTypeDesc::~TTypeDesc() throw() {
+}
+
+
+void TTypeDesc::__set_types(const std::vector & val) {
+ this->types = val;
+}
+
+const char* TTypeDesc::ascii_fingerprint = "90B3C5A0B73419A84E85E0E48C452AA5";
+const uint8_t TTypeDesc::binary_fingerprint[16] = {0x90,0xB3,0xC5,0xA0,0xB7,0x34,0x19,0xA8,0x4E,0x85,0xE0,0xE4,0x8C,0x45,0x2A,0xA5};
+
+uint32_t TTypeDesc::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;
+
+ bool isset_types = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->types.clear();
+ uint32_t _size43;
+ ::apache::thrift::protocol::TType _etype46;
+ xfer += iprot->readListBegin(_etype46, _size43);
+ this->types.resize(_size43);
+ uint32_t _i47;
+ for (_i47 = 0; _i47 < _size43; ++_i47)
+ {
+ xfer += this->types[_i47].read(iprot);
+ }
+ xfer += iprot->readListEnd();
+ }
+ isset_types = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_types)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TTypeDesc::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TTypeDesc");
+
+ xfer += oprot->writeFieldBegin("types", ::apache::thrift::protocol::T_LIST, 1);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->types.size()));
+ std::vector ::const_iterator _iter48;
+ for (_iter48 = this->types.begin(); _iter48 != this->types.end(); ++_iter48)
+ {
+ xfer += (*_iter48).write(oprot);
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TTypeDesc &a, TTypeDesc &b) {
+ using ::std::swap;
+ swap(a.types, b.types);
+}
+
+TTypeDesc::TTypeDesc(const TTypeDesc& other49) {
+ types = other49.types;
+}
+TTypeDesc& TTypeDesc::operator=(const TTypeDesc& other50) {
+ types = other50.types;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TTypeDesc& obj) {
+ using apache::thrift::to_string;
+ out << "TTypeDesc(";
+ out << "types=" << to_string(obj.types);
+ out << ")";
+ return out;
+}
+
+
+TColumnDesc::~TColumnDesc() throw() {
+}
+
+
+void TColumnDesc::__set_columnName(const std::string& val) {
+ this->columnName = val;
+}
+
+void TColumnDesc::__set_typeDesc(const TTypeDesc& val) {
+ this->typeDesc = val;
+}
+
+void TColumnDesc::__set_position(const int32_t val) {
+ this->position = val;
+}
+
+void TColumnDesc::__set_comment(const std::string& val) {
+ this->comment = val;
+__isset.comment = true;
+}
+
+const char* TColumnDesc::ascii_fingerprint = "EABED9009D5FCABFCA65612069F2A849";
+const uint8_t TColumnDesc::binary_fingerprint[16] = {0xEA,0xBE,0xD9,0x00,0x9D,0x5F,0xCA,0xBF,0xCA,0x65,0x61,0x20,0x69,0xF2,0xA8,0x49};
+
+uint32_t TColumnDesc::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;
+
+ bool isset_columnName = false;
+ bool isset_typeDesc = false;
+ bool isset_position = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->columnName);
+ isset_columnName = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->typeDesc.read(iprot);
+ isset_typeDesc = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ xfer += iprot->readI32(this->position);
+ isset_position = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->comment);
+ this->__isset.comment = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_columnName)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_typeDesc)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_position)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TColumnDesc::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TColumnDesc");
+
+ xfer += oprot->writeFieldBegin("columnName", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->columnName);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("typeDesc", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->typeDesc.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("position", ::apache::thrift::protocol::T_I32, 3);
+ xfer += oprot->writeI32(this->position);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.comment) {
+ xfer += oprot->writeFieldBegin("comment", ::apache::thrift::protocol::T_STRING, 4);
+ xfer += oprot->writeString(this->comment);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TColumnDesc &a, TColumnDesc &b) {
+ using ::std::swap;
+ swap(a.columnName, b.columnName);
+ swap(a.typeDesc, b.typeDesc);
+ swap(a.position, b.position);
+ swap(a.comment, b.comment);
+ swap(a.__isset, b.__isset);
+}
+
+TColumnDesc::TColumnDesc(const TColumnDesc& other51) {
+ columnName = other51.columnName;
+ typeDesc = other51.typeDesc;
+ position = other51.position;
+ comment = other51.comment;
+ __isset = other51.__isset;
+}
+TColumnDesc& TColumnDesc::operator=(const TColumnDesc& other52) {
+ columnName = other52.columnName;
+ typeDesc = other52.typeDesc;
+ position = other52.position;
+ comment = other52.comment;
+ __isset = other52.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TColumnDesc& obj) {
+ using apache::thrift::to_string;
+ out << "TColumnDesc(";
+ out << "columnName=" << to_string(obj.columnName);
+ out << ", " << "typeDesc=" << to_string(obj.typeDesc);
+ out << ", " << "position=" << to_string(obj.position);
+ out << ", " << "comment="; (obj.__isset.comment ? (out << to_string(obj.comment)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TTableSchema::~TTableSchema() throw() {
+}
+
+
+void TTableSchema::__set_columns(const std::vector & val) {
+ this->columns = val;
+}
+
+const char* TTableSchema::ascii_fingerprint = "7A1811E49313E5977107FC667B20E39D";
+const uint8_t TTableSchema::binary_fingerprint[16] = {0x7A,0x18,0x11,0xE4,0x93,0x13,0xE5,0x97,0x71,0x07,0xFC,0x66,0x7B,0x20,0xE3,0x9D};
+
+uint32_t TTableSchema::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;
+
+ bool isset_columns = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->columns.clear();
+ uint32_t _size53;
+ ::apache::thrift::protocol::TType _etype56;
+ xfer += iprot->readListBegin(_etype56, _size53);
+ this->columns.resize(_size53);
+ uint32_t _i57;
+ for (_i57 = 0; _i57 < _size53; ++_i57)
+ {
+ xfer += this->columns[_i57].read(iprot);
+ }
+ xfer += iprot->readListEnd();
+ }
+ isset_columns = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_columns)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TTableSchema::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TTableSchema");
+
+ xfer += oprot->writeFieldBegin("columns", ::apache::thrift::protocol::T_LIST, 1);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->columns.size()));
+ std::vector ::const_iterator _iter58;
+ for (_iter58 = this->columns.begin(); _iter58 != this->columns.end(); ++_iter58)
+ {
+ xfer += (*_iter58).write(oprot);
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TTableSchema &a, TTableSchema &b) {
+ using ::std::swap;
+ swap(a.columns, b.columns);
+}
+
+TTableSchema::TTableSchema(const TTableSchema& other59) {
+ columns = other59.columns;
+}
+TTableSchema& TTableSchema::operator=(const TTableSchema& other60) {
+ columns = other60.columns;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TTableSchema& obj) {
+ using apache::thrift::to_string;
+ out << "TTableSchema(";
+ out << "columns=" << to_string(obj.columns);
+ out << ")";
+ return out;
+}
+
+
+TBoolValue::~TBoolValue() throw() {
+}
+
+
+void TBoolValue::__set_value(const bool val) {
+ this->value = val;
+__isset.value = true;
+}
+
+const char* TBoolValue::ascii_fingerprint = "BF054652DEF86253C2BEE7D947F167DD";
+const uint8_t TBoolValue::binary_fingerprint[16] = {0xBF,0x05,0x46,0x52,0xDE,0xF8,0x62,0x53,0xC2,0xBE,0xE7,0xD9,0x47,0xF1,0x67,0xDD};
+
+uint32_t TBoolValue::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_BOOL) {
+ xfer += iprot->readBool(this->value);
+ this->__isset.value = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TBoolValue::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TBoolValue");
+
+ if (this->__isset.value) {
+ xfer += oprot->writeFieldBegin("value", ::apache::thrift::protocol::T_BOOL, 1);
+ xfer += oprot->writeBool(this->value);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TBoolValue &a, TBoolValue &b) {
+ using ::std::swap;
+ swap(a.value, b.value);
+ swap(a.__isset, b.__isset);
+}
+
+TBoolValue::TBoolValue(const TBoolValue& other61) {
+ value = other61.value;
+ __isset = other61.__isset;
+}
+TBoolValue& TBoolValue::operator=(const TBoolValue& other62) {
+ value = other62.value;
+ __isset = other62.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TBoolValue& obj) {
+ using apache::thrift::to_string;
+ out << "TBoolValue(";
+ out << "value="; (obj.__isset.value ? (out << to_string(obj.value)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TByteValue::~TByteValue() throw() {
+}
+
+
+void TByteValue::__set_value(const int8_t val) {
+ this->value = val;
+__isset.value = true;
+}
+
+const char* TByteValue::ascii_fingerprint = "9C15298ACB5D04AEA9B52D5DDE6F9208";
+const uint8_t TByteValue::binary_fingerprint[16] = {0x9C,0x15,0x29,0x8A,0xCB,0x5D,0x04,0xAE,0xA9,0xB5,0x2D,0x5D,0xDE,0x6F,0x92,0x08};
+
+uint32_t TByteValue::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_BYTE) {
+ xfer += iprot->readByte(this->value);
+ this->__isset.value = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TByteValue::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TByteValue");
+
+ if (this->__isset.value) {
+ xfer += oprot->writeFieldBegin("value", ::apache::thrift::protocol::T_BYTE, 1);
+ xfer += oprot->writeByte(this->value);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TByteValue &a, TByteValue &b) {
+ using ::std::swap;
+ swap(a.value, b.value);
+ swap(a.__isset, b.__isset);
+}
+
+TByteValue::TByteValue(const TByteValue& other63) {
+ value = other63.value;
+ __isset = other63.__isset;
+}
+TByteValue& TByteValue::operator=(const TByteValue& other64) {
+ value = other64.value;
+ __isset = other64.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TByteValue& obj) {
+ using apache::thrift::to_string;
+ out << "TByteValue(";
+ out << "value="; (obj.__isset.value ? (out << to_string(obj.value)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TI16Value::~TI16Value() throw() {
+}
+
+
+void TI16Value::__set_value(const int16_t val) {
+ this->value = val;
+__isset.value = true;
+}
+
+const char* TI16Value::ascii_fingerprint = "5DAC9C51C7E1106BF936FC71860BE9D5";
+const uint8_t TI16Value::binary_fingerprint[16] = {0x5D,0xAC,0x9C,0x51,0xC7,0xE1,0x10,0x6B,0xF9,0x36,0xFC,0x71,0x86,0x0B,0xE9,0xD5};
+
+uint32_t TI16Value::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_I16) {
+ xfer += iprot->readI16(this->value);
+ this->__isset.value = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TI16Value::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TI16Value");
+
+ if (this->__isset.value) {
+ xfer += oprot->writeFieldBegin("value", ::apache::thrift::protocol::T_I16, 1);
+ xfer += oprot->writeI16(this->value);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TI16Value &a, TI16Value &b) {
+ using ::std::swap;
+ swap(a.value, b.value);
+ swap(a.__isset, b.__isset);
+}
+
+TI16Value::TI16Value(const TI16Value& other65) {
+ value = other65.value;
+ __isset = other65.__isset;
+}
+TI16Value& TI16Value::operator=(const TI16Value& other66) {
+ value = other66.value;
+ __isset = other66.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TI16Value& obj) {
+ using apache::thrift::to_string;
+ out << "TI16Value(";
+ out << "value="; (obj.__isset.value ? (out << to_string(obj.value)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TI32Value::~TI32Value() throw() {
+}
+
+
+void TI32Value::__set_value(const int32_t val) {
+ this->value = val;
+__isset.value = true;
+}
+
+const char* TI32Value::ascii_fingerprint = "E7A96B151330359E84C0A3AC91BCBACD";
+const uint8_t TI32Value::binary_fingerprint[16] = {0xE7,0xA9,0x6B,0x15,0x13,0x30,0x35,0x9E,0x84,0xC0,0xA3,0xAC,0x91,0xBC,0xBA,0xCD};
+
+uint32_t TI32Value::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_I32) {
+ xfer += iprot->readI32(this->value);
+ this->__isset.value = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TI32Value::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TI32Value");
+
+ if (this->__isset.value) {
+ xfer += oprot->writeFieldBegin("value", ::apache::thrift::protocol::T_I32, 1);
+ xfer += oprot->writeI32(this->value);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TI32Value &a, TI32Value &b) {
+ using ::std::swap;
+ swap(a.value, b.value);
+ swap(a.__isset, b.__isset);
+}
+
+TI32Value::TI32Value(const TI32Value& other67) {
+ value = other67.value;
+ __isset = other67.__isset;
+}
+TI32Value& TI32Value::operator=(const TI32Value& other68) {
+ value = other68.value;
+ __isset = other68.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TI32Value& obj) {
+ using apache::thrift::to_string;
+ out << "TI32Value(";
+ out << "value="; (obj.__isset.value ? (out << to_string(obj.value)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TI64Value::~TI64Value() throw() {
+}
+
+
+void TI64Value::__set_value(const int64_t val) {
+ this->value = val;
+__isset.value = true;
+}
+
+const char* TI64Value::ascii_fingerprint = "148F3AAAC1D9859963D5E800D187BF26";
+const uint8_t TI64Value::binary_fingerprint[16] = {0x14,0x8F,0x3A,0xAA,0xC1,0xD9,0x85,0x99,0x63,0xD5,0xE8,0x00,0xD1,0x87,0xBF,0x26};
+
+uint32_t TI64Value::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_I64) {
+ xfer += iprot->readI64(this->value);
+ this->__isset.value = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TI64Value::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TI64Value");
+
+ if (this->__isset.value) {
+ xfer += oprot->writeFieldBegin("value", ::apache::thrift::protocol::T_I64, 1);
+ xfer += oprot->writeI64(this->value);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TI64Value &a, TI64Value &b) {
+ using ::std::swap;
+ swap(a.value, b.value);
+ swap(a.__isset, b.__isset);
+}
+
+TI64Value::TI64Value(const TI64Value& other69) {
+ value = other69.value;
+ __isset = other69.__isset;
+}
+TI64Value& TI64Value::operator=(const TI64Value& other70) {
+ value = other70.value;
+ __isset = other70.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TI64Value& obj) {
+ using apache::thrift::to_string;
+ out << "TI64Value(";
+ out << "value="; (obj.__isset.value ? (out << to_string(obj.value)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TDoubleValue::~TDoubleValue() throw() {
+}
+
+
+void TDoubleValue::__set_value(const double val) {
+ this->value = val;
+__isset.value = true;
+}
+
+const char* TDoubleValue::ascii_fingerprint = "3586E570A474C4A8603B4FF74903B3A6";
+const uint8_t TDoubleValue::binary_fingerprint[16] = {0x35,0x86,0xE5,0x70,0xA4,0x74,0xC4,0xA8,0x60,0x3B,0x4F,0xF7,0x49,0x03,0xB3,0xA6};
+
+uint32_t TDoubleValue::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_DOUBLE) {
+ xfer += iprot->readDouble(this->value);
+ this->__isset.value = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TDoubleValue::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TDoubleValue");
+
+ if (this->__isset.value) {
+ xfer += oprot->writeFieldBegin("value", ::apache::thrift::protocol::T_DOUBLE, 1);
+ xfer += oprot->writeDouble(this->value);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TDoubleValue &a, TDoubleValue &b) {
+ using ::std::swap;
+ swap(a.value, b.value);
+ swap(a.__isset, b.__isset);
+}
+
+TDoubleValue::TDoubleValue(const TDoubleValue& other71) {
+ value = other71.value;
+ __isset = other71.__isset;
+}
+TDoubleValue& TDoubleValue::operator=(const TDoubleValue& other72) {
+ value = other72.value;
+ __isset = other72.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TDoubleValue& obj) {
+ using apache::thrift::to_string;
+ out << "TDoubleValue(";
+ out << "value="; (obj.__isset.value ? (out << to_string(obj.value)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TStringValue::~TStringValue() throw() {
+}
+
+
+void TStringValue::__set_value(const std::string& val) {
+ this->value = val;
+__isset.value = true;
+}
+
+const char* TStringValue::ascii_fingerprint = "66E694018C17E5B65A59AE8F55CCA3CD";
+const uint8_t TStringValue::binary_fingerprint[16] = {0x66,0xE6,0x94,0x01,0x8C,0x17,0xE5,0xB6,0x5A,0x59,0xAE,0x8F,0x55,0xCC,0xA3,0xCD};
+
+uint32_t TStringValue::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->value);
+ this->__isset.value = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TStringValue::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TStringValue");
+
+ if (this->__isset.value) {
+ xfer += oprot->writeFieldBegin("value", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->value);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TStringValue &a, TStringValue &b) {
+ using ::std::swap;
+ swap(a.value, b.value);
+ swap(a.__isset, b.__isset);
+}
+
+TStringValue::TStringValue(const TStringValue& other73) {
+ value = other73.value;
+ __isset = other73.__isset;
+}
+TStringValue& TStringValue::operator=(const TStringValue& other74) {
+ value = other74.value;
+ __isset = other74.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TStringValue& obj) {
+ using apache::thrift::to_string;
+ out << "TStringValue(";
+ out << "value="; (obj.__isset.value ? (out << to_string(obj.value)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TColumnValue::~TColumnValue() throw() {
+}
+
+
+void TColumnValue::__set_boolVal(const TBoolValue& val) {
+ this->boolVal = val;
+}
+
+void TColumnValue::__set_byteVal(const TByteValue& val) {
+ this->byteVal = val;
+}
+
+void TColumnValue::__set_i16Val(const TI16Value& val) {
+ this->i16Val = val;
+}
+
+void TColumnValue::__set_i32Val(const TI32Value& val) {
+ this->i32Val = val;
+}
+
+void TColumnValue::__set_i64Val(const TI64Value& val) {
+ this->i64Val = val;
+}
+
+void TColumnValue::__set_doubleVal(const TDoubleValue& val) {
+ this->doubleVal = val;
+}
+
+void TColumnValue::__set_stringVal(const TStringValue& val) {
+ this->stringVal = val;
+}
+
+const char* TColumnValue::ascii_fingerprint = "C2DDD988447EA7999A8285AA38AAE9AD";
+const uint8_t TColumnValue::binary_fingerprint[16] = {0xC2,0xDD,0xD9,0x88,0x44,0x7E,0xA7,0x99,0x9A,0x82,0x85,0xAA,0x38,0xAA,0xE9,0xAD};
+
+uint32_t TColumnValue::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->boolVal.read(iprot);
+ this->__isset.boolVal = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->byteVal.read(iprot);
+ this->__isset.byteVal = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->i16Val.read(iprot);
+ this->__isset.i16Val = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->i32Val.read(iprot);
+ this->__isset.i32Val = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 5:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->i64Val.read(iprot);
+ this->__isset.i64Val = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 6:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->doubleVal.read(iprot);
+ this->__isset.doubleVal = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 7:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->stringVal.read(iprot);
+ this->__isset.stringVal = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TColumnValue::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TColumnValue");
+
+ xfer += oprot->writeFieldBegin("boolVal", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->boolVal.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("byteVal", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->byteVal.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("i16Val", ::apache::thrift::protocol::T_STRUCT, 3);
+ xfer += this->i16Val.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("i32Val", ::apache::thrift::protocol::T_STRUCT, 4);
+ xfer += this->i32Val.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("i64Val", ::apache::thrift::protocol::T_STRUCT, 5);
+ xfer += this->i64Val.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("doubleVal", ::apache::thrift::protocol::T_STRUCT, 6);
+ xfer += this->doubleVal.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("stringVal", ::apache::thrift::protocol::T_STRUCT, 7);
+ xfer += this->stringVal.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TColumnValue &a, TColumnValue &b) {
+ using ::std::swap;
+ swap(a.boolVal, b.boolVal);
+ swap(a.byteVal, b.byteVal);
+ swap(a.i16Val, b.i16Val);
+ swap(a.i32Val, b.i32Val);
+ swap(a.i64Val, b.i64Val);
+ swap(a.doubleVal, b.doubleVal);
+ swap(a.stringVal, b.stringVal);
+ swap(a.__isset, b.__isset);
+}
+
+TColumnValue::TColumnValue(const TColumnValue& other75) {
+ boolVal = other75.boolVal;
+ byteVal = other75.byteVal;
+ i16Val = other75.i16Val;
+ i32Val = other75.i32Val;
+ i64Val = other75.i64Val;
+ doubleVal = other75.doubleVal;
+ stringVal = other75.stringVal;
+ __isset = other75.__isset;
+}
+TColumnValue& TColumnValue::operator=(const TColumnValue& other76) {
+ boolVal = other76.boolVal;
+ byteVal = other76.byteVal;
+ i16Val = other76.i16Val;
+ i32Val = other76.i32Val;
+ i64Val = other76.i64Val;
+ doubleVal = other76.doubleVal;
+ stringVal = other76.stringVal;
+ __isset = other76.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TColumnValue& obj) {
+ using apache::thrift::to_string;
+ out << "TColumnValue(";
+ out << "boolVal=" << to_string(obj.boolVal);
+ out << ", " << "byteVal=" << to_string(obj.byteVal);
+ out << ", " << "i16Val=" << to_string(obj.i16Val);
+ out << ", " << "i32Val=" << to_string(obj.i32Val);
+ out << ", " << "i64Val=" << to_string(obj.i64Val);
+ out << ", " << "doubleVal=" << to_string(obj.doubleVal);
+ out << ", " << "stringVal=" << to_string(obj.stringVal);
+ out << ")";
+ return out;
+}
+
+
+TRow::~TRow() throw() {
+}
+
+
+void TRow::__set_colVals(const std::vector & val) {
+ this->colVals = val;
+}
+
+const char* TRow::ascii_fingerprint = "E73FD1FCA0CA58A669FC3E02FB68D534";
+const uint8_t TRow::binary_fingerprint[16] = {0xE7,0x3F,0xD1,0xFC,0xA0,0xCA,0x58,0xA6,0x69,0xFC,0x3E,0x02,0xFB,0x68,0xD5,0x34};
+
+uint32_t TRow::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;
+
+ bool isset_colVals = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->colVals.clear();
+ uint32_t _size77;
+ ::apache::thrift::protocol::TType _etype80;
+ xfer += iprot->readListBegin(_etype80, _size77);
+ this->colVals.resize(_size77);
+ uint32_t _i81;
+ for (_i81 = 0; _i81 < _size77; ++_i81)
+ {
+ xfer += this->colVals[_i81].read(iprot);
+ }
+ xfer += iprot->readListEnd();
+ }
+ isset_colVals = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_colVals)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TRow::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TRow");
+
+ xfer += oprot->writeFieldBegin("colVals", ::apache::thrift::protocol::T_LIST, 1);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->colVals.size()));
+ std::vector ::const_iterator _iter82;
+ for (_iter82 = this->colVals.begin(); _iter82 != this->colVals.end(); ++_iter82)
+ {
+ xfer += (*_iter82).write(oprot);
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TRow &a, TRow &b) {
+ using ::std::swap;
+ swap(a.colVals, b.colVals);
+}
+
+TRow::TRow(const TRow& other83) {
+ colVals = other83.colVals;
+}
+TRow& TRow::operator=(const TRow& other84) {
+ colVals = other84.colVals;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TRow& obj) {
+ using apache::thrift::to_string;
+ out << "TRow(";
+ out << "colVals=" << to_string(obj.colVals);
+ out << ")";
+ return out;
+}
+
+
+TBoolColumn::~TBoolColumn() throw() {
+}
+
+
+void TBoolColumn::__set_values(const std::vector & val) {
+ this->values = val;
+}
+
+void TBoolColumn::__set_nulls(const std::string& val) {
+ this->nulls = val;
+}
+
+const char* TBoolColumn::ascii_fingerprint = "F9058324D96DB7F974D8ACDC01C54219";
+const uint8_t TBoolColumn::binary_fingerprint[16] = {0xF9,0x05,0x83,0x24,0xD9,0x6D,0xB7,0xF9,0x74,0xD8,0xAC,0xDC,0x01,0xC5,0x42,0x19};
+
+uint32_t TBoolColumn::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;
+
+ bool isset_values = false;
+ bool isset_nulls = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->values.clear();
+ uint32_t _size85;
+ ::apache::thrift::protocol::TType _etype88;
+ xfer += iprot->readListBegin(_etype88, _size85);
+ this->values.resize(_size85);
+ uint32_t _i89;
+ for (_i89 = 0; _i89 < _size85; ++_i89)
+ {
+ xfer += iprot->readBool(this->values[_i89]);
+ }
+ xfer += iprot->readListEnd();
+ }
+ isset_values = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readBinary(this->nulls);
+ isset_nulls = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_values)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_nulls)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TBoolColumn::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TBoolColumn");
+
+ xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_BOOL, static_cast(this->values.size()));
+ std::vector ::const_iterator _iter90;
+ for (_iter90 = this->values.begin(); _iter90 != this->values.end(); ++_iter90)
+ {
+ xfer += oprot->writeBool((*_iter90));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("nulls", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeBinary(this->nulls);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TBoolColumn &a, TBoolColumn &b) {
+ using ::std::swap;
+ swap(a.values, b.values);
+ swap(a.nulls, b.nulls);
+}
+
+TBoolColumn::TBoolColumn(const TBoolColumn& other91) {
+ values = other91.values;
+ nulls = other91.nulls;
+}
+TBoolColumn& TBoolColumn::operator=(const TBoolColumn& other92) {
+ values = other92.values;
+ nulls = other92.nulls;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TBoolColumn& obj) {
+ using apache::thrift::to_string;
+ out << "TBoolColumn(";
+ out << "values=" << to_string(obj.values);
+ out << ", " << "nulls=" << to_string(obj.nulls);
+ out << ")";
+ return out;
+}
+
+
+TByteColumn::~TByteColumn() throw() {
+}
+
+
+void TByteColumn::__set_values(const std::vector & val) {
+ this->values = val;
+}
+
+void TByteColumn::__set_nulls(const std::string& val) {
+ this->nulls = val;
+}
+
+const char* TByteColumn::ascii_fingerprint = "1CB300106BAA463A70BB2A2395900F48";
+const uint8_t TByteColumn::binary_fingerprint[16] = {0x1C,0xB3,0x00,0x10,0x6B,0xAA,0x46,0x3A,0x70,0xBB,0x2A,0x23,0x95,0x90,0x0F,0x48};
+
+uint32_t TByteColumn::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;
+
+ bool isset_values = false;
+ bool isset_nulls = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->values.clear();
+ uint32_t _size93;
+ ::apache::thrift::protocol::TType _etype96;
+ xfer += iprot->readListBegin(_etype96, _size93);
+ this->values.resize(_size93);
+ uint32_t _i97;
+ for (_i97 = 0; _i97 < _size93; ++_i97)
+ {
+ xfer += iprot->readByte(this->values[_i97]);
+ }
+ xfer += iprot->readListEnd();
+ }
+ isset_values = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readBinary(this->nulls);
+ isset_nulls = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_values)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_nulls)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TByteColumn::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TByteColumn");
+
+ xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_BYTE, static_cast(this->values.size()));
+ std::vector ::const_iterator _iter98;
+ for (_iter98 = this->values.begin(); _iter98 != this->values.end(); ++_iter98)
+ {
+ xfer += oprot->writeByte((*_iter98));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("nulls", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeBinary(this->nulls);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TByteColumn &a, TByteColumn &b) {
+ using ::std::swap;
+ swap(a.values, b.values);
+ swap(a.nulls, b.nulls);
+}
+
+TByteColumn::TByteColumn(const TByteColumn& other99) {
+ values = other99.values;
+ nulls = other99.nulls;
+}
+TByteColumn& TByteColumn::operator=(const TByteColumn& other100) {
+ values = other100.values;
+ nulls = other100.nulls;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TByteColumn& obj) {
+ using apache::thrift::to_string;
+ out << "TByteColumn(";
+ out << "values=" << to_string(obj.values);
+ out << ", " << "nulls=" << to_string(obj.nulls);
+ out << ")";
+ return out;
+}
+
+
+TI16Column::~TI16Column() throw() {
+}
+
+
+void TI16Column::__set_values(const std::vector & val) {
+ this->values = val;
+}
+
+void TI16Column::__set_nulls(const std::string& val) {
+ this->nulls = val;
+}
+
+const char* TI16Column::ascii_fingerprint = "6574CDB1F121C8DB47FB257A3F104BDB";
+const uint8_t TI16Column::binary_fingerprint[16] = {0x65,0x74,0xCD,0xB1,0xF1,0x21,0xC8,0xDB,0x47,0xFB,0x25,0x7A,0x3F,0x10,0x4B,0xDB};
+
+uint32_t TI16Column::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;
+
+ bool isset_values = false;
+ bool isset_nulls = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->values.clear();
+ uint32_t _size101;
+ ::apache::thrift::protocol::TType _etype104;
+ xfer += iprot->readListBegin(_etype104, _size101);
+ this->values.resize(_size101);
+ uint32_t _i105;
+ for (_i105 = 0; _i105 < _size101; ++_i105)
+ {
+ xfer += iprot->readI16(this->values[_i105]);
+ }
+ xfer += iprot->readListEnd();
+ }
+ isset_values = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readBinary(this->nulls);
+ isset_nulls = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_values)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_nulls)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TI16Column::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TI16Column");
+
+ xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I16, static_cast(this->values.size()));
+ std::vector ::const_iterator _iter106;
+ for (_iter106 = this->values.begin(); _iter106 != this->values.end(); ++_iter106)
+ {
+ xfer += oprot->writeI16((*_iter106));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("nulls", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeBinary(this->nulls);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TI16Column &a, TI16Column &b) {
+ using ::std::swap;
+ swap(a.values, b.values);
+ swap(a.nulls, b.nulls);
+}
+
+TI16Column::TI16Column(const TI16Column& other107) {
+ values = other107.values;
+ nulls = other107.nulls;
+}
+TI16Column& TI16Column::operator=(const TI16Column& other108) {
+ values = other108.values;
+ nulls = other108.nulls;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TI16Column& obj) {
+ using apache::thrift::to_string;
+ out << "TI16Column(";
+ out << "values=" << to_string(obj.values);
+ out << ", " << "nulls=" << to_string(obj.nulls);
+ out << ")";
+ return out;
+}
+
+
+TI32Column::~TI32Column() throw() {
+}
+
+
+void TI32Column::__set_values(const std::vector & val) {
+ this->values = val;
+}
+
+void TI32Column::__set_nulls(const std::string& val) {
+ this->nulls = val;
+}
+
+const char* TI32Column::ascii_fingerprint = "CCCCE89C7E9DA10280F5663700677313";
+const uint8_t TI32Column::binary_fingerprint[16] = {0xCC,0xCC,0xE8,0x9C,0x7E,0x9D,0xA1,0x02,0x80,0xF5,0x66,0x37,0x00,0x67,0x73,0x13};
+
+uint32_t TI32Column::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;
+
+ bool isset_values = false;
+ bool isset_nulls = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->values.clear();
+ uint32_t _size109;
+ ::apache::thrift::protocol::TType _etype112;
+ xfer += iprot->readListBegin(_etype112, _size109);
+ this->values.resize(_size109);
+ uint32_t _i113;
+ for (_i113 = 0; _i113 < _size109; ++_i113)
+ {
+ xfer += iprot->readI32(this->values[_i113]);
+ }
+ xfer += iprot->readListEnd();
+ }
+ isset_values = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readBinary(this->nulls);
+ isset_nulls = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_values)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_nulls)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TI32Column::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TI32Column");
+
+ xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->values.size()));
+ std::vector ::const_iterator _iter114;
+ for (_iter114 = this->values.begin(); _iter114 != this->values.end(); ++_iter114)
+ {
+ xfer += oprot->writeI32((*_iter114));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("nulls", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeBinary(this->nulls);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TI32Column &a, TI32Column &b) {
+ using ::std::swap;
+ swap(a.values, b.values);
+ swap(a.nulls, b.nulls);
+}
+
+TI32Column::TI32Column(const TI32Column& other115) {
+ values = other115.values;
+ nulls = other115.nulls;
+}
+TI32Column& TI32Column::operator=(const TI32Column& other116) {
+ values = other116.values;
+ nulls = other116.nulls;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TI32Column& obj) {
+ using apache::thrift::to_string;
+ out << "TI32Column(";
+ out << "values=" << to_string(obj.values);
+ out << ", " << "nulls=" << to_string(obj.nulls);
+ out << ")";
+ return out;
+}
+
+
+TI64Column::~TI64Column() throw() {
+}
+
+
+void TI64Column::__set_values(const std::vector & val) {
+ this->values = val;
+}
+
+void TI64Column::__set_nulls(const std::string& val) {
+ this->nulls = val;
+}
+
+const char* TI64Column::ascii_fingerprint = "925353917FC0AF87976A2338011F5A31";
+const uint8_t TI64Column::binary_fingerprint[16] = {0x92,0x53,0x53,0x91,0x7F,0xC0,0xAF,0x87,0x97,0x6A,0x23,0x38,0x01,0x1F,0x5A,0x31};
+
+uint32_t TI64Column::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;
+
+ bool isset_values = false;
+ bool isset_nulls = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->values.clear();
+ uint32_t _size117;
+ ::apache::thrift::protocol::TType _etype120;
+ xfer += iprot->readListBegin(_etype120, _size117);
+ this->values.resize(_size117);
+ uint32_t _i121;
+ for (_i121 = 0; _i121 < _size117; ++_i121)
+ {
+ xfer += iprot->readI64(this->values[_i121]);
+ }
+ xfer += iprot->readListEnd();
+ }
+ isset_values = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readBinary(this->nulls);
+ isset_nulls = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_values)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_nulls)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TI64Column::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TI64Column");
+
+ xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->values.size()));
+ std::vector ::const_iterator _iter122;
+ for (_iter122 = this->values.begin(); _iter122 != this->values.end(); ++_iter122)
+ {
+ xfer += oprot->writeI64((*_iter122));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("nulls", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeBinary(this->nulls);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TI64Column &a, TI64Column &b) {
+ using ::std::swap;
+ swap(a.values, b.values);
+ swap(a.nulls, b.nulls);
+}
+
+TI64Column::TI64Column(const TI64Column& other123) {
+ values = other123.values;
+ nulls = other123.nulls;
+}
+TI64Column& TI64Column::operator=(const TI64Column& other124) {
+ values = other124.values;
+ nulls = other124.nulls;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TI64Column& obj) {
+ using apache::thrift::to_string;
+ out << "TI64Column(";
+ out << "values=" << to_string(obj.values);
+ out << ", " << "nulls=" << to_string(obj.nulls);
+ out << ")";
+ return out;
+}
+
+
+TDoubleColumn::~TDoubleColumn() throw() {
+}
+
+
+void TDoubleColumn::__set_values(const std::vector & val) {
+ this->values = val;
+}
+
+void TDoubleColumn::__set_nulls(const std::string& val) {
+ this->nulls = val;
+}
+
+const char* TDoubleColumn::ascii_fingerprint = "8FF1C050A8D7FD247AEB23CD71539C09";
+const uint8_t TDoubleColumn::binary_fingerprint[16] = {0x8F,0xF1,0xC0,0x50,0xA8,0xD7,0xFD,0x24,0x7A,0xEB,0x23,0xCD,0x71,0x53,0x9C,0x09};
+
+uint32_t TDoubleColumn::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;
+
+ bool isset_values = false;
+ bool isset_nulls = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->values.clear();
+ uint32_t _size125;
+ ::apache::thrift::protocol::TType _etype128;
+ xfer += iprot->readListBegin(_etype128, _size125);
+ this->values.resize(_size125);
+ uint32_t _i129;
+ for (_i129 = 0; _i129 < _size125; ++_i129)
+ {
+ xfer += iprot->readDouble(this->values[_i129]);
+ }
+ xfer += iprot->readListEnd();
+ }
+ isset_values = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readBinary(this->nulls);
+ isset_nulls = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_values)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_nulls)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TDoubleColumn::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TDoubleColumn");
+
+ xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_DOUBLE, static_cast(this->values.size()));
+ std::vector ::const_iterator _iter130;
+ for (_iter130 = this->values.begin(); _iter130 != this->values.end(); ++_iter130)
+ {
+ xfer += oprot->writeDouble((*_iter130));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("nulls", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeBinary(this->nulls);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TDoubleColumn &a, TDoubleColumn &b) {
+ using ::std::swap;
+ swap(a.values, b.values);
+ swap(a.nulls, b.nulls);
+}
+
+TDoubleColumn::TDoubleColumn(const TDoubleColumn& other131) {
+ values = other131.values;
+ nulls = other131.nulls;
+}
+TDoubleColumn& TDoubleColumn::operator=(const TDoubleColumn& other132) {
+ values = other132.values;
+ nulls = other132.nulls;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TDoubleColumn& obj) {
+ using apache::thrift::to_string;
+ out << "TDoubleColumn(";
+ out << "values=" << to_string(obj.values);
+ out << ", " << "nulls=" << to_string(obj.nulls);
+ out << ")";
+ return out;
+}
+
+
+TStringColumn::~TStringColumn() throw() {
+}
+
+
+void TStringColumn::__set_values(const std::vector & val) {
+ this->values = val;
+}
+
+void TStringColumn::__set_nulls(const std::string& val) {
+ this->nulls = val;
+}
+
+const char* TStringColumn::ascii_fingerprint = "BE556BF7091B2DABBA1863D5E458B15F";
+const uint8_t TStringColumn::binary_fingerprint[16] = {0xBE,0x55,0x6B,0xF7,0x09,0x1B,0x2D,0xAB,0xBA,0x18,0x63,0xD5,0xE4,0x58,0xB1,0x5F};
+
+uint32_t TStringColumn::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;
+
+ bool isset_values = false;
+ bool isset_nulls = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->values.clear();
+ uint32_t _size133;
+ ::apache::thrift::protocol::TType _etype136;
+ xfer += iprot->readListBegin(_etype136, _size133);
+ this->values.resize(_size133);
+ uint32_t _i137;
+ for (_i137 = 0; _i137 < _size133; ++_i137)
+ {
+ xfer += iprot->readString(this->values[_i137]);
+ }
+ xfer += iprot->readListEnd();
+ }
+ isset_values = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readBinary(this->nulls);
+ isset_nulls = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_values)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_nulls)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TStringColumn::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TStringColumn");
+
+ xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->values.size()));
+ std::vector ::const_iterator _iter138;
+ for (_iter138 = this->values.begin(); _iter138 != this->values.end(); ++_iter138)
+ {
+ xfer += oprot->writeString((*_iter138));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("nulls", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeBinary(this->nulls);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TStringColumn &a, TStringColumn &b) {
+ using ::std::swap;
+ swap(a.values, b.values);
+ swap(a.nulls, b.nulls);
+}
+
+TStringColumn::TStringColumn(const TStringColumn& other139) {
+ values = other139.values;
+ nulls = other139.nulls;
+}
+TStringColumn& TStringColumn::operator=(const TStringColumn& other140) {
+ values = other140.values;
+ nulls = other140.nulls;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TStringColumn& obj) {
+ using apache::thrift::to_string;
+ out << "TStringColumn(";
+ out << "values=" << to_string(obj.values);
+ out << ", " << "nulls=" << to_string(obj.nulls);
+ out << ")";
+ return out;
+}
+
+
+TBinaryColumn::~TBinaryColumn() throw() {
+}
+
+
+void TBinaryColumn::__set_values(const std::vector & val) {
+ this->values = val;
+}
+
+void TBinaryColumn::__set_nulls(const std::string& val) {
+ this->nulls = val;
+}
+
+const char* TBinaryColumn::ascii_fingerprint = "BE556BF7091B2DABBA1863D5E458B15F";
+const uint8_t TBinaryColumn::binary_fingerprint[16] = {0xBE,0x55,0x6B,0xF7,0x09,0x1B,0x2D,0xAB,0xBA,0x18,0x63,0xD5,0xE4,0x58,0xB1,0x5F};
+
+uint32_t TBinaryColumn::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;
+
+ bool isset_values = false;
+ bool isset_nulls = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->values.clear();
+ uint32_t _size141;
+ ::apache::thrift::protocol::TType _etype144;
+ xfer += iprot->readListBegin(_etype144, _size141);
+ this->values.resize(_size141);
+ uint32_t _i145;
+ for (_i145 = 0; _i145 < _size141; ++_i145)
+ {
+ xfer += iprot->readBinary(this->values[_i145]);
+ }
+ xfer += iprot->readListEnd();
+ }
+ isset_values = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readBinary(this->nulls);
+ isset_nulls = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_values)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_nulls)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TBinaryColumn::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TBinaryColumn");
+
+ xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->values.size()));
+ std::vector ::const_iterator _iter146;
+ for (_iter146 = this->values.begin(); _iter146 != this->values.end(); ++_iter146)
+ {
+ xfer += oprot->writeBinary((*_iter146));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("nulls", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeBinary(this->nulls);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TBinaryColumn &a, TBinaryColumn &b) {
+ using ::std::swap;
+ swap(a.values, b.values);
+ swap(a.nulls, b.nulls);
+}
+
+TBinaryColumn::TBinaryColumn(const TBinaryColumn& other147) {
+ values = other147.values;
+ nulls = other147.nulls;
+}
+TBinaryColumn& TBinaryColumn::operator=(const TBinaryColumn& other148) {
+ values = other148.values;
+ nulls = other148.nulls;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TBinaryColumn& obj) {
+ using apache::thrift::to_string;
+ out << "TBinaryColumn(";
+ out << "values=" << to_string(obj.values);
+ out << ", " << "nulls=" << to_string(obj.nulls);
+ out << ")";
+ return out;
+}
+
+
+TColumn::~TColumn() throw() {
+}
+
+
+void TColumn::__set_boolVal(const TBoolColumn& val) {
+ this->boolVal = val;
+}
+
+void TColumn::__set_byteVal(const TByteColumn& val) {
+ this->byteVal = val;
+}
+
+void TColumn::__set_i16Val(const TI16Column& val) {
+ this->i16Val = val;
+}
+
+void TColumn::__set_i32Val(const TI32Column& val) {
+ this->i32Val = val;
+}
+
+void TColumn::__set_i64Val(const TI64Column& val) {
+ this->i64Val = val;
+}
+
+void TColumn::__set_doubleVal(const TDoubleColumn& val) {
+ this->doubleVal = val;
+}
+
+void TColumn::__set_stringVal(const TStringColumn& val) {
+ this->stringVal = val;
+}
+
+void TColumn::__set_binaryVal(const TBinaryColumn& val) {
+ this->binaryVal = val;
+}
+
+const char* TColumn::ascii_fingerprint = "E6ADD10B4CDDE61A19E8878CC7039A17";
+const uint8_t TColumn::binary_fingerprint[16] = {0xE6,0xAD,0xD1,0x0B,0x4C,0xDD,0xE6,0x1A,0x19,0xE8,0x87,0x8C,0xC7,0x03,0x9A,0x17};
+
+uint32_t TColumn::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->boolVal.read(iprot);
+ this->__isset.boolVal = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->byteVal.read(iprot);
+ this->__isset.byteVal = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->i16Val.read(iprot);
+ this->__isset.i16Val = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->i32Val.read(iprot);
+ this->__isset.i32Val = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 5:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->i64Val.read(iprot);
+ this->__isset.i64Val = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 6:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->doubleVal.read(iprot);
+ this->__isset.doubleVal = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 7:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->stringVal.read(iprot);
+ this->__isset.stringVal = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 8:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->binaryVal.read(iprot);
+ this->__isset.binaryVal = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TColumn::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TColumn");
+
+ xfer += oprot->writeFieldBegin("boolVal", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->boolVal.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("byteVal", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->byteVal.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("i16Val", ::apache::thrift::protocol::T_STRUCT, 3);
+ xfer += this->i16Val.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("i32Val", ::apache::thrift::protocol::T_STRUCT, 4);
+ xfer += this->i32Val.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("i64Val", ::apache::thrift::protocol::T_STRUCT, 5);
+ xfer += this->i64Val.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("doubleVal", ::apache::thrift::protocol::T_STRUCT, 6);
+ xfer += this->doubleVal.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("stringVal", ::apache::thrift::protocol::T_STRUCT, 7);
+ xfer += this->stringVal.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("binaryVal", ::apache::thrift::protocol::T_STRUCT, 8);
+ xfer += this->binaryVal.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TColumn &a, TColumn &b) {
+ using ::std::swap;
+ swap(a.boolVal, b.boolVal);
+ swap(a.byteVal, b.byteVal);
+ swap(a.i16Val, b.i16Val);
+ swap(a.i32Val, b.i32Val);
+ swap(a.i64Val, b.i64Val);
+ swap(a.doubleVal, b.doubleVal);
+ swap(a.stringVal, b.stringVal);
+ swap(a.binaryVal, b.binaryVal);
+ swap(a.__isset, b.__isset);
+}
+
+TColumn::TColumn(const TColumn& other149) {
+ boolVal = other149.boolVal;
+ byteVal = other149.byteVal;
+ i16Val = other149.i16Val;
+ i32Val = other149.i32Val;
+ i64Val = other149.i64Val;
+ doubleVal = other149.doubleVal;
+ stringVal = other149.stringVal;
+ binaryVal = other149.binaryVal;
+ __isset = other149.__isset;
+}
+TColumn& TColumn::operator=(const TColumn& other150) {
+ boolVal = other150.boolVal;
+ byteVal = other150.byteVal;
+ i16Val = other150.i16Val;
+ i32Val = other150.i32Val;
+ i64Val = other150.i64Val;
+ doubleVal = other150.doubleVal;
+ stringVal = other150.stringVal;
+ binaryVal = other150.binaryVal;
+ __isset = other150.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TColumn& obj) {
+ using apache::thrift::to_string;
+ out << "TColumn(";
+ out << "boolVal=" << to_string(obj.boolVal);
+ out << ", " << "byteVal=" << to_string(obj.byteVal);
+ out << ", " << "i16Val=" << to_string(obj.i16Val);
+ out << ", " << "i32Val=" << to_string(obj.i32Val);
+ out << ", " << "i64Val=" << to_string(obj.i64Val);
+ out << ", " << "doubleVal=" << to_string(obj.doubleVal);
+ out << ", " << "stringVal=" << to_string(obj.stringVal);
+ out << ", " << "binaryVal=" << to_string(obj.binaryVal);
+ out << ")";
+ return out;
+}
+
+
+TRowSet::~TRowSet() throw() {
+}
+
+
+void TRowSet::__set_startRowOffset(const int64_t val) {
+ this->startRowOffset = val;
+}
+
+void TRowSet::__set_rows(const std::vector & val) {
+ this->rows = val;
+}
+
+void TRowSet::__set_columns(const std::vector & val) {
+ this->columns = val;
+__isset.columns = true;
+}
+
+const char* TRowSet::ascii_fingerprint = "46DA30A870489C7A58105AE0080DAEBF";
+const uint8_t TRowSet::binary_fingerprint[16] = {0x46,0xDA,0x30,0xA8,0x70,0x48,0x9C,0x7A,0x58,0x10,0x5A,0xE0,0x08,0x0D,0xAE,0xBF};
+
+uint32_t TRowSet::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;
+
+ bool isset_startRowOffset = false;
+ bool isset_rows = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_I64) {
+ xfer += iprot->readI64(this->startRowOffset);
+ isset_startRowOffset = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->rows.clear();
+ uint32_t _size151;
+ ::apache::thrift::protocol::TType _etype154;
+ xfer += iprot->readListBegin(_etype154, _size151);
+ this->rows.resize(_size151);
+ uint32_t _i155;
+ for (_i155 = 0; _i155 < _size151; ++_i155)
+ {
+ xfer += this->rows[_i155].read(iprot);
+ }
+ xfer += iprot->readListEnd();
+ }
+ isset_rows = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->columns.clear();
+ uint32_t _size156;
+ ::apache::thrift::protocol::TType _etype159;
+ xfer += iprot->readListBegin(_etype159, _size156);
+ this->columns.resize(_size156);
+ uint32_t _i160;
+ for (_i160 = 0; _i160 < _size156; ++_i160)
+ {
+ xfer += this->columns[_i160].read(iprot);
+ }
+ xfer += iprot->readListEnd();
+ }
+ this->__isset.columns = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_startRowOffset)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_rows)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TRowSet::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TRowSet");
+
+ xfer += oprot->writeFieldBegin("startRowOffset", ::apache::thrift::protocol::T_I64, 1);
+ xfer += oprot->writeI64(this->startRowOffset);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("rows", ::apache::thrift::protocol::T_LIST, 2);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->rows.size()));
+ std::vector ::const_iterator _iter161;
+ for (_iter161 = this->rows.begin(); _iter161 != this->rows.end(); ++_iter161)
+ {
+ xfer += (*_iter161).write(oprot);
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.columns) {
+ xfer += oprot->writeFieldBegin("columns", ::apache::thrift::protocol::T_LIST, 3);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->columns.size()));
+ std::vector ::const_iterator _iter162;
+ for (_iter162 = this->columns.begin(); _iter162 != this->columns.end(); ++_iter162)
+ {
+ xfer += (*_iter162).write(oprot);
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TRowSet &a, TRowSet &b) {
+ using ::std::swap;
+ swap(a.startRowOffset, b.startRowOffset);
+ swap(a.rows, b.rows);
+ swap(a.columns, b.columns);
+ swap(a.__isset, b.__isset);
+}
+
+TRowSet::TRowSet(const TRowSet& other163) {
+ startRowOffset = other163.startRowOffset;
+ rows = other163.rows;
+ columns = other163.columns;
+ __isset = other163.__isset;
+}
+TRowSet& TRowSet::operator=(const TRowSet& other164) {
+ startRowOffset = other164.startRowOffset;
+ rows = other164.rows;
+ columns = other164.columns;
+ __isset = other164.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TRowSet& obj) {
+ using apache::thrift::to_string;
+ out << "TRowSet(";
+ out << "startRowOffset=" << to_string(obj.startRowOffset);
+ out << ", " << "rows=" << to_string(obj.rows);
+ out << ", " << "columns="; (obj.__isset.columns ? (out << to_string(obj.columns)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TStatus::~TStatus() throw() {
+}
+
+
+void TStatus::__set_statusCode(const TStatusCode::type val) {
+ this->statusCode = val;
+}
+
+void TStatus::__set_infoMessages(const std::vector & val) {
+ this->infoMessages = val;
+__isset.infoMessages = true;
+}
+
+void TStatus::__set_sqlState(const std::string& val) {
+ this->sqlState = val;
+__isset.sqlState = true;
+}
+
+void TStatus::__set_errorCode(const int32_t val) {
+ this->errorCode = val;
+__isset.errorCode = true;
+}
+
+void TStatus::__set_errorMessage(const std::string& val) {
+ this->errorMessage = val;
+__isset.errorMessage = true;
+}
+
+const char* TStatus::ascii_fingerprint = "D5DEF49634A59C615C1B3A6F7D0DADB5";
+const uint8_t TStatus::binary_fingerprint[16] = {0xD5,0xDE,0xF4,0x96,0x34,0xA5,0x9C,0x61,0x5C,0x1B,0x3A,0x6F,0x7D,0x0D,0xAD,0xB5};
+
+uint32_t TStatus::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;
+
+ bool isset_statusCode = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ int32_t ecast165;
+ xfer += iprot->readI32(ecast165);
+ this->statusCode = (TStatusCode::type)ecast165;
+ isset_statusCode = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->infoMessages.clear();
+ uint32_t _size166;
+ ::apache::thrift::protocol::TType _etype169;
+ xfer += iprot->readListBegin(_etype169, _size166);
+ this->infoMessages.resize(_size166);
+ uint32_t _i170;
+ for (_i170 = 0; _i170 < _size166; ++_i170)
+ {
+ xfer += iprot->readString(this->infoMessages[_i170]);
+ }
+ xfer += iprot->readListEnd();
+ }
+ this->__isset.infoMessages = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->sqlState);
+ this->__isset.sqlState = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ xfer += iprot->readI32(this->errorCode);
+ this->__isset.errorCode = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 5:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->errorMessage);
+ this->__isset.errorMessage = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_statusCode)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TStatus::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TStatus");
+
+ xfer += oprot->writeFieldBegin("statusCode", ::apache::thrift::protocol::T_I32, 1);
+ xfer += oprot->writeI32((int32_t)this->statusCode);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.infoMessages) {
+ xfer += oprot->writeFieldBegin("infoMessages", ::apache::thrift::protocol::T_LIST, 2);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->infoMessages.size()));
+ std::vector ::const_iterator _iter171;
+ for (_iter171 = this->infoMessages.begin(); _iter171 != this->infoMessages.end(); ++_iter171)
+ {
+ xfer += oprot->writeString((*_iter171));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.sqlState) {
+ xfer += oprot->writeFieldBegin("sqlState", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString(this->sqlState);
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.errorCode) {
+ xfer += oprot->writeFieldBegin("errorCode", ::apache::thrift::protocol::T_I32, 4);
+ xfer += oprot->writeI32(this->errorCode);
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.errorMessage) {
+ xfer += oprot->writeFieldBegin("errorMessage", ::apache::thrift::protocol::T_STRING, 5);
+ xfer += oprot->writeString(this->errorMessage);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TStatus &a, TStatus &b) {
+ using ::std::swap;
+ swap(a.statusCode, b.statusCode);
+ swap(a.infoMessages, b.infoMessages);
+ swap(a.sqlState, b.sqlState);
+ swap(a.errorCode, b.errorCode);
+ swap(a.errorMessage, b.errorMessage);
+ swap(a.__isset, b.__isset);
+}
+
+TStatus::TStatus(const TStatus& other172) {
+ statusCode = other172.statusCode;
+ infoMessages = other172.infoMessages;
+ sqlState = other172.sqlState;
+ errorCode = other172.errorCode;
+ errorMessage = other172.errorMessage;
+ __isset = other172.__isset;
+}
+TStatus& TStatus::operator=(const TStatus& other173) {
+ statusCode = other173.statusCode;
+ infoMessages = other173.infoMessages;
+ sqlState = other173.sqlState;
+ errorCode = other173.errorCode;
+ errorMessage = other173.errorMessage;
+ __isset = other173.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TStatus& obj) {
+ using apache::thrift::to_string;
+ out << "TStatus(";
+ out << "statusCode=" << to_string(obj.statusCode);
+ out << ", " << "infoMessages="; (obj.__isset.infoMessages ? (out << to_string(obj.infoMessages)) : (out << ""));
+ out << ", " << "sqlState="; (obj.__isset.sqlState ? (out << to_string(obj.sqlState)) : (out << ""));
+ out << ", " << "errorCode="; (obj.__isset.errorCode ? (out << to_string(obj.errorCode)) : (out << ""));
+ out << ", " << "errorMessage="; (obj.__isset.errorMessage ? (out << to_string(obj.errorMessage)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+THandleIdentifier::~THandleIdentifier() throw() {
+}
+
+
+void THandleIdentifier::__set_guid(const std::string& val) {
+ this->guid = val;
+}
+
+void THandleIdentifier::__set_secret(const std::string& val) {
+ this->secret = val;
+}
+
+const char* THandleIdentifier::ascii_fingerprint = "07A9615F837F7D0A952B595DD3020972";
+const uint8_t THandleIdentifier::binary_fingerprint[16] = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72};
+
+uint32_t THandleIdentifier::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;
+
+ bool isset_guid = false;
+ bool isset_secret = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readBinary(this->guid);
+ isset_guid = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readBinary(this->secret);
+ isset_secret = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_guid)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_secret)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t THandleIdentifier::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("THandleIdentifier");
+
+ xfer += oprot->writeFieldBegin("guid", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeBinary(this->guid);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("secret", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeBinary(this->secret);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(THandleIdentifier &a, THandleIdentifier &b) {
+ using ::std::swap;
+ swap(a.guid, b.guid);
+ swap(a.secret, b.secret);
+}
+
+THandleIdentifier::THandleIdentifier(const THandleIdentifier& other174) {
+ guid = other174.guid;
+ secret = other174.secret;
+}
+THandleIdentifier& THandleIdentifier::operator=(const THandleIdentifier& other175) {
+ guid = other175.guid;
+ secret = other175.secret;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const THandleIdentifier& obj) {
+ using apache::thrift::to_string;
+ out << "THandleIdentifier(";
+ out << "guid=" << to_string(obj.guid);
+ out << ", " << "secret=" << to_string(obj.secret);
+ out << ")";
+ return out;
+}
+
+
+TSessionHandle::~TSessionHandle() throw() {
+}
+
+
+void TSessionHandle::__set_sessionId(const THandleIdentifier& val) {
+ this->sessionId = val;
+}
+
+const char* TSessionHandle::ascii_fingerprint = "A756D3DBE614FB13F70BF7F7B6EB3D73";
+const uint8_t TSessionHandle::binary_fingerprint[16] = {0xA7,0x56,0xD3,0xDB,0xE6,0x14,0xFB,0x13,0xF7,0x0B,0xF7,0xF7,0xB6,0xEB,0x3D,0x73};
+
+uint32_t TSessionHandle::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;
+
+ bool isset_sessionId = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->sessionId.read(iprot);
+ isset_sessionId = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_sessionId)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TSessionHandle::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TSessionHandle");
+
+ xfer += oprot->writeFieldBegin("sessionId", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->sessionId.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TSessionHandle &a, TSessionHandle &b) {
+ using ::std::swap;
+ swap(a.sessionId, b.sessionId);
+}
+
+TSessionHandle::TSessionHandle(const TSessionHandle& other176) {
+ sessionId = other176.sessionId;
+}
+TSessionHandle& TSessionHandle::operator=(const TSessionHandle& other177) {
+ sessionId = other177.sessionId;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TSessionHandle& obj) {
+ using apache::thrift::to_string;
+ out << "TSessionHandle(";
+ out << "sessionId=" << to_string(obj.sessionId);
+ out << ")";
+ return out;
+}
+
+
+TOperationHandle::~TOperationHandle() throw() {
+}
+
+
+void TOperationHandle::__set_operationId(const THandleIdentifier& val) {
+ this->operationId = val;
+}
+
+void TOperationHandle::__set_operationType(const TOperationType::type val) {
+ this->operationType = val;
+}
+
+void TOperationHandle::__set_hasResultSet(const bool val) {
+ this->hasResultSet = val;
+}
+
+void TOperationHandle::__set_modifiedRowCount(const double val) {
+ this->modifiedRowCount = val;
+__isset.modifiedRowCount = true;
+}
+
+const char* TOperationHandle::ascii_fingerprint = "29FD80F4F96804A30FCC59C23D2E5349";
+const uint8_t TOperationHandle::binary_fingerprint[16] = {0x29,0xFD,0x80,0xF4,0xF9,0x68,0x04,0xA3,0x0F,0xCC,0x59,0xC2,0x3D,0x2E,0x53,0x49};
+
+uint32_t TOperationHandle::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;
+
+ bool isset_operationId = false;
+ bool isset_operationType = false;
+ bool isset_hasResultSet = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->operationId.read(iprot);
+ isset_operationId = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ int32_t ecast178;
+ xfer += iprot->readI32(ecast178);
+ this->operationType = (TOperationType::type)ecast178;
+ isset_operationType = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool(this->hasResultSet);
+ isset_hasResultSet = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_DOUBLE) {
+ xfer += iprot->readDouble(this->modifiedRowCount);
+ this->__isset.modifiedRowCount = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_operationId)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_operationType)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_hasResultSet)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TOperationHandle::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TOperationHandle");
+
+ xfer += oprot->writeFieldBegin("operationId", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->operationId.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("operationType", ::apache::thrift::protocol::T_I32, 2);
+ xfer += oprot->writeI32((int32_t)this->operationType);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("hasResultSet", ::apache::thrift::protocol::T_BOOL, 3);
+ xfer += oprot->writeBool(this->hasResultSet);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.modifiedRowCount) {
+ xfer += oprot->writeFieldBegin("modifiedRowCount", ::apache::thrift::protocol::T_DOUBLE, 4);
+ xfer += oprot->writeDouble(this->modifiedRowCount);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TOperationHandle &a, TOperationHandle &b) {
+ using ::std::swap;
+ swap(a.operationId, b.operationId);
+ swap(a.operationType, b.operationType);
+ swap(a.hasResultSet, b.hasResultSet);
+ swap(a.modifiedRowCount, b.modifiedRowCount);
+ swap(a.__isset, b.__isset);
+}
+
+TOperationHandle::TOperationHandle(const TOperationHandle& other179) {
+ operationId = other179.operationId;
+ operationType = other179.operationType;
+ hasResultSet = other179.hasResultSet;
+ modifiedRowCount = other179.modifiedRowCount;
+ __isset = other179.__isset;
+}
+TOperationHandle& TOperationHandle::operator=(const TOperationHandle& other180) {
+ operationId = other180.operationId;
+ operationType = other180.operationType;
+ hasResultSet = other180.hasResultSet;
+ modifiedRowCount = other180.modifiedRowCount;
+ __isset = other180.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TOperationHandle& obj) {
+ using apache::thrift::to_string;
+ out << "TOperationHandle(";
+ out << "operationId=" << to_string(obj.operationId);
+ out << ", " << "operationType=" << to_string(obj.operationType);
+ out << ", " << "hasResultSet=" << to_string(obj.hasResultSet);
+ out << ", " << "modifiedRowCount="; (obj.__isset.modifiedRowCount ? (out << to_string(obj.modifiedRowCount)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TOpenSessionReq::~TOpenSessionReq() throw() {
+}
+
+
+void TOpenSessionReq::__set_client_protocol(const TProtocolVersion::type val) {
+ this->client_protocol = val;
+}
+
+void TOpenSessionReq::__set_username(const std::string& val) {
+ this->username = val;
+__isset.username = true;
+}
+
+void TOpenSessionReq::__set_password(const std::string& val) {
+ this->password = val;
+__isset.password = true;
+}
+
+void TOpenSessionReq::__set_configuration(const std::map & val) {
+ this->configuration = val;
+__isset.configuration = true;
+}
+
+const char* TOpenSessionReq::ascii_fingerprint = "C8FD0F306A16C16BDA7B57F58BFAE5B2";
+const uint8_t TOpenSessionReq::binary_fingerprint[16] = {0xC8,0xFD,0x0F,0x30,0x6A,0x16,0xC1,0x6B,0xDA,0x7B,0x57,0xF5,0x8B,0xFA,0xE5,0xB2};
+
+uint32_t TOpenSessionReq::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;
+
+ bool isset_client_protocol = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ int32_t ecast181;
+ xfer += iprot->readI32(ecast181);
+ this->client_protocol = (TProtocolVersion::type)ecast181;
+ isset_client_protocol = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->username);
+ this->__isset.username = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->password);
+ this->__isset.password = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_MAP) {
+ {
+ this->configuration.clear();
+ uint32_t _size182;
+ ::apache::thrift::protocol::TType _ktype183;
+ ::apache::thrift::protocol::TType _vtype184;
+ xfer += iprot->readMapBegin(_ktype183, _vtype184, _size182);
+ uint32_t _i186;
+ for (_i186 = 0; _i186 < _size182; ++_i186)
+ {
+ std::string _key187;
+ xfer += iprot->readString(_key187);
+ std::string& _val188 = this->configuration[_key187];
+ xfer += iprot->readString(_val188);
+ }
+ xfer += iprot->readMapEnd();
+ }
+ this->__isset.configuration = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_client_protocol)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TOpenSessionReq::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TOpenSessionReq");
+
+ xfer += oprot->writeFieldBegin("client_protocol", ::apache::thrift::protocol::T_I32, 1);
+ xfer += oprot->writeI32((int32_t)this->client_protocol);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.username) {
+ xfer += oprot->writeFieldBegin("username", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->username);
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.password) {
+ xfer += oprot->writeFieldBegin("password", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString(this->password);
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.configuration) {
+ xfer += oprot->writeFieldBegin("configuration", ::apache::thrift::protocol::T_MAP, 4);
+ {
+ xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->configuration.size()));
+ std::map ::const_iterator _iter189;
+ for (_iter189 = this->configuration.begin(); _iter189 != this->configuration.end(); ++_iter189)
+ {
+ xfer += oprot->writeString(_iter189->first);
+ xfer += oprot->writeString(_iter189->second);
+ }
+ xfer += oprot->writeMapEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TOpenSessionReq &a, TOpenSessionReq &b) {
+ using ::std::swap;
+ swap(a.client_protocol, b.client_protocol);
+ swap(a.username, b.username);
+ swap(a.password, b.password);
+ swap(a.configuration, b.configuration);
+ swap(a.__isset, b.__isset);
+}
+
+TOpenSessionReq::TOpenSessionReq(const TOpenSessionReq& other190) {
+ client_protocol = other190.client_protocol;
+ username = other190.username;
+ password = other190.password;
+ configuration = other190.configuration;
+ __isset = other190.__isset;
+}
+TOpenSessionReq& TOpenSessionReq::operator=(const TOpenSessionReq& other191) {
+ client_protocol = other191.client_protocol;
+ username = other191.username;
+ password = other191.password;
+ configuration = other191.configuration;
+ __isset = other191.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TOpenSessionReq& obj) {
+ using apache::thrift::to_string;
+ out << "TOpenSessionReq(";
+ out << "client_protocol=" << to_string(obj.client_protocol);
+ out << ", " << "username="; (obj.__isset.username ? (out << to_string(obj.username)) : (out << ""));
+ out << ", " << "password="; (obj.__isset.password ? (out << to_string(obj.password)) : (out << ""));
+ out << ", " << "configuration="; (obj.__isset.configuration ? (out << to_string(obj.configuration)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TOpenSessionResp::~TOpenSessionResp() throw() {
+}
+
+
+void TOpenSessionResp::__set_status(const TStatus& val) {
+ this->status = val;
+}
+
+void TOpenSessionResp::__set_serverProtocolVersion(const TProtocolVersion::type val) {
+ this->serverProtocolVersion = val;
+}
+
+void TOpenSessionResp::__set_sessionHandle(const TSessionHandle& val) {
+ this->sessionHandle = val;
+__isset.sessionHandle = true;
+}
+
+void TOpenSessionResp::__set_configuration(const std::map & val) {
+ this->configuration = val;
+__isset.configuration = true;
+}
+
+const char* TOpenSessionResp::ascii_fingerprint = "CFE7D7F4E9EC671F2518ED74FEE9F163";
+const uint8_t TOpenSessionResp::binary_fingerprint[16] = {0xCF,0xE7,0xD7,0xF4,0xE9,0xEC,0x67,0x1F,0x25,0x18,0xED,0x74,0xFE,0xE9,0xF1,0x63};
+
+uint32_t TOpenSessionResp::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;
+
+ bool isset_status = false;
+ bool isset_serverProtocolVersion = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->status.read(iprot);
+ isset_status = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ int32_t ecast192;
+ xfer += iprot->readI32(ecast192);
+ this->serverProtocolVersion = (TProtocolVersion::type)ecast192;
+ isset_serverProtocolVersion = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->sessionHandle.read(iprot);
+ this->__isset.sessionHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_MAP) {
+ {
+ this->configuration.clear();
+ uint32_t _size193;
+ ::apache::thrift::protocol::TType _ktype194;
+ ::apache::thrift::protocol::TType _vtype195;
+ xfer += iprot->readMapBegin(_ktype194, _vtype195, _size193);
+ uint32_t _i197;
+ for (_i197 = 0; _i197 < _size193; ++_i197)
+ {
+ std::string _key198;
+ xfer += iprot->readString(_key198);
+ std::string& _val199 = this->configuration[_key198];
+ xfer += iprot->readString(_val199);
+ }
+ xfer += iprot->readMapEnd();
+ }
+ this->__isset.configuration = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_status)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_serverProtocolVersion)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TOpenSessionResp::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TOpenSessionResp");
+
+ xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->status.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("serverProtocolVersion", ::apache::thrift::protocol::T_I32, 2);
+ xfer += oprot->writeI32((int32_t)this->serverProtocolVersion);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.sessionHandle) {
+ xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 3);
+ xfer += this->sessionHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.configuration) {
+ xfer += oprot->writeFieldBegin("configuration", ::apache::thrift::protocol::T_MAP, 4);
+ {
+ xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->configuration.size()));
+ std::map ::const_iterator _iter200;
+ for (_iter200 = this->configuration.begin(); _iter200 != this->configuration.end(); ++_iter200)
+ {
+ xfer += oprot->writeString(_iter200->first);
+ xfer += oprot->writeString(_iter200->second);
+ }
+ xfer += oprot->writeMapEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TOpenSessionResp &a, TOpenSessionResp &b) {
+ using ::std::swap;
+ swap(a.status, b.status);
+ swap(a.serverProtocolVersion, b.serverProtocolVersion);
+ swap(a.sessionHandle, b.sessionHandle);
+ swap(a.configuration, b.configuration);
+ swap(a.__isset, b.__isset);
+}
+
+TOpenSessionResp::TOpenSessionResp(const TOpenSessionResp& other201) {
+ status = other201.status;
+ serverProtocolVersion = other201.serverProtocolVersion;
+ sessionHandle = other201.sessionHandle;
+ configuration = other201.configuration;
+ __isset = other201.__isset;
+}
+TOpenSessionResp& TOpenSessionResp::operator=(const TOpenSessionResp& other202) {
+ status = other202.status;
+ serverProtocolVersion = other202.serverProtocolVersion;
+ sessionHandle = other202.sessionHandle;
+ configuration = other202.configuration;
+ __isset = other202.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TOpenSessionResp& obj) {
+ using apache::thrift::to_string;
+ out << "TOpenSessionResp(";
+ out << "status=" << to_string(obj.status);
+ out << ", " << "serverProtocolVersion=" << to_string(obj.serverProtocolVersion);
+ out << ", " << "sessionHandle="; (obj.__isset.sessionHandle ? (out << to_string(obj.sessionHandle)) : (out << ""));
+ out << ", " << "configuration="; (obj.__isset.configuration ? (out << to_string(obj.configuration)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TCloseSessionReq::~TCloseSessionReq() throw() {
+}
+
+
+void TCloseSessionReq::__set_sessionHandle(const TSessionHandle& val) {
+ this->sessionHandle = val;
+}
+
+const char* TCloseSessionReq::ascii_fingerprint = "82377107F8BD0526960537D5A112E6EF";
+const uint8_t TCloseSessionReq::binary_fingerprint[16] = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF};
+
+uint32_t TCloseSessionReq::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;
+
+ bool isset_sessionHandle = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->sessionHandle.read(iprot);
+ isset_sessionHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_sessionHandle)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TCloseSessionReq::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCloseSessionReq");
+
+ xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->sessionHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TCloseSessionReq &a, TCloseSessionReq &b) {
+ using ::std::swap;
+ swap(a.sessionHandle, b.sessionHandle);
+}
+
+TCloseSessionReq::TCloseSessionReq(const TCloseSessionReq& other203) {
+ sessionHandle = other203.sessionHandle;
+}
+TCloseSessionReq& TCloseSessionReq::operator=(const TCloseSessionReq& other204) {
+ sessionHandle = other204.sessionHandle;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TCloseSessionReq& obj) {
+ using apache::thrift::to_string;
+ out << "TCloseSessionReq(";
+ out << "sessionHandle=" << to_string(obj.sessionHandle);
+ out << ")";
+ return out;
+}
+
+
+TCloseSessionResp::~TCloseSessionResp() throw() {
+}
+
+
+void TCloseSessionResp::__set_status(const TStatus& val) {
+ this->status = val;
+}
+
+const char* TCloseSessionResp::ascii_fingerprint = "7142E89F09DC7C5F6FA916C7393F46C2";
+const uint8_t TCloseSessionResp::binary_fingerprint[16] = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2};
+
+uint32_t TCloseSessionResp::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;
+
+ bool isset_status = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->status.read(iprot);
+ isset_status = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_status)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TCloseSessionResp::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCloseSessionResp");
+
+ xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->status.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TCloseSessionResp &a, TCloseSessionResp &b) {
+ using ::std::swap;
+ swap(a.status, b.status);
+}
+
+TCloseSessionResp::TCloseSessionResp(const TCloseSessionResp& other205) {
+ status = other205.status;
+}
+TCloseSessionResp& TCloseSessionResp::operator=(const TCloseSessionResp& other206) {
+ status = other206.status;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TCloseSessionResp& obj) {
+ using apache::thrift::to_string;
+ out << "TCloseSessionResp(";
+ out << "status=" << to_string(obj.status);
+ out << ")";
+ return out;
+}
+
+
+TGetInfoValue::~TGetInfoValue() throw() {
+}
+
+
+void TGetInfoValue::__set_stringValue(const std::string& val) {
+ this->stringValue = val;
+}
+
+void TGetInfoValue::__set_smallIntValue(const int16_t val) {
+ this->smallIntValue = val;
+}
+
+void TGetInfoValue::__set_integerBitmask(const int32_t val) {
+ this->integerBitmask = val;
+}
+
+void TGetInfoValue::__set_integerFlag(const int32_t val) {
+ this->integerFlag = val;
+}
+
+void TGetInfoValue::__set_binaryValue(const int32_t val) {
+ this->binaryValue = val;
+}
+
+void TGetInfoValue::__set_lenValue(const int64_t val) {
+ this->lenValue = val;
+}
+
+const char* TGetInfoValue::ascii_fingerprint = "057FED11279FD7248CFE73EE82ED579E";
+const uint8_t TGetInfoValue::binary_fingerprint[16] = {0x05,0x7F,0xED,0x11,0x27,0x9F,0xD7,0x24,0x8C,0xFE,0x73,0xEE,0x82,0xED,0x57,0x9E};
+
+uint32_t TGetInfoValue::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->stringValue);
+ this->__isset.stringValue = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_I16) {
+ xfer += iprot->readI16(this->smallIntValue);
+ this->__isset.smallIntValue = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ xfer += iprot->readI32(this->integerBitmask);
+ this->__isset.integerBitmask = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ xfer += iprot->readI32(this->integerFlag);
+ this->__isset.integerFlag = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 5:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ xfer += iprot->readI32(this->binaryValue);
+ this->__isset.binaryValue = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 6:
+ if (ftype == ::apache::thrift::protocol::T_I64) {
+ xfer += iprot->readI64(this->lenValue);
+ this->__isset.lenValue = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t TGetInfoValue::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetInfoValue");
+
+ xfer += oprot->writeFieldBegin("stringValue", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->stringValue);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("smallIntValue", ::apache::thrift::protocol::T_I16, 2);
+ xfer += oprot->writeI16(this->smallIntValue);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("integerBitmask", ::apache::thrift::protocol::T_I32, 3);
+ xfer += oprot->writeI32(this->integerBitmask);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("integerFlag", ::apache::thrift::protocol::T_I32, 4);
+ xfer += oprot->writeI32(this->integerFlag);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("binaryValue", ::apache::thrift::protocol::T_I32, 5);
+ xfer += oprot->writeI32(this->binaryValue);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("lenValue", ::apache::thrift::protocol::T_I64, 6);
+ xfer += oprot->writeI64(this->lenValue);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetInfoValue &a, TGetInfoValue &b) {
+ using ::std::swap;
+ swap(a.stringValue, b.stringValue);
+ swap(a.smallIntValue, b.smallIntValue);
+ swap(a.integerBitmask, b.integerBitmask);
+ swap(a.integerFlag, b.integerFlag);
+ swap(a.binaryValue, b.binaryValue);
+ swap(a.lenValue, b.lenValue);
+ swap(a.__isset, b.__isset);
+}
+
+TGetInfoValue::TGetInfoValue(const TGetInfoValue& other207) {
+ stringValue = other207.stringValue;
+ smallIntValue = other207.smallIntValue;
+ integerBitmask = other207.integerBitmask;
+ integerFlag = other207.integerFlag;
+ binaryValue = other207.binaryValue;
+ lenValue = other207.lenValue;
+ __isset = other207.__isset;
+}
+TGetInfoValue& TGetInfoValue::operator=(const TGetInfoValue& other208) {
+ stringValue = other208.stringValue;
+ smallIntValue = other208.smallIntValue;
+ integerBitmask = other208.integerBitmask;
+ integerFlag = other208.integerFlag;
+ binaryValue = other208.binaryValue;
+ lenValue = other208.lenValue;
+ __isset = other208.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetInfoValue& obj) {
+ using apache::thrift::to_string;
+ out << "TGetInfoValue(";
+ out << "stringValue=" << to_string(obj.stringValue);
+ out << ", " << "smallIntValue=" << to_string(obj.smallIntValue);
+ out << ", " << "integerBitmask=" << to_string(obj.integerBitmask);
+ out << ", " << "integerFlag=" << to_string(obj.integerFlag);
+ out << ", " << "binaryValue=" << to_string(obj.binaryValue);
+ out << ", " << "lenValue=" << to_string(obj.lenValue);
+ out << ")";
+ return out;
+}
+
+
+TGetInfoReq::~TGetInfoReq() throw() {
+}
+
+
+void TGetInfoReq::__set_sessionHandle(const TSessionHandle& val) {
+ this->sessionHandle = val;
+}
+
+void TGetInfoReq::__set_infoType(const TGetInfoType::type val) {
+ this->infoType = val;
+}
+
+const char* TGetInfoReq::ascii_fingerprint = "95675B1A0BADE5F7EDE323809DB679B2";
+const uint8_t TGetInfoReq::binary_fingerprint[16] = {0x95,0x67,0x5B,0x1A,0x0B,0xAD,0xE5,0xF7,0xED,0xE3,0x23,0x80,0x9D,0xB6,0x79,0xB2};
+
+uint32_t TGetInfoReq::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;
+
+ bool isset_sessionHandle = false;
+ bool isset_infoType = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->sessionHandle.read(iprot);
+ isset_sessionHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ int32_t ecast209;
+ xfer += iprot->readI32(ecast209);
+ this->infoType = (TGetInfoType::type)ecast209;
+ isset_infoType = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_sessionHandle)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_infoType)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetInfoReq::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetInfoReq");
+
+ xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->sessionHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("infoType", ::apache::thrift::protocol::T_I32, 2);
+ xfer += oprot->writeI32((int32_t)this->infoType);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetInfoReq &a, TGetInfoReq &b) {
+ using ::std::swap;
+ swap(a.sessionHandle, b.sessionHandle);
+ swap(a.infoType, b.infoType);
+}
+
+TGetInfoReq::TGetInfoReq(const TGetInfoReq& other210) {
+ sessionHandle = other210.sessionHandle;
+ infoType = other210.infoType;
+}
+TGetInfoReq& TGetInfoReq::operator=(const TGetInfoReq& other211) {
+ sessionHandle = other211.sessionHandle;
+ infoType = other211.infoType;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetInfoReq& obj) {
+ using apache::thrift::to_string;
+ out << "TGetInfoReq(";
+ out << "sessionHandle=" << to_string(obj.sessionHandle);
+ out << ", " << "infoType=" << to_string(obj.infoType);
+ out << ")";
+ return out;
+}
+
+
+TGetInfoResp::~TGetInfoResp() throw() {
+}
+
+
+void TGetInfoResp::__set_status(const TStatus& val) {
+ this->status = val;
+}
+
+void TGetInfoResp::__set_infoValue(const TGetInfoValue& val) {
+ this->infoValue = val;
+}
+
+const char* TGetInfoResp::ascii_fingerprint = "72AFA10A82728B51FDE91092012868DE";
+const uint8_t TGetInfoResp::binary_fingerprint[16] = {0x72,0xAF,0xA1,0x0A,0x82,0x72,0x8B,0x51,0xFD,0xE9,0x10,0x92,0x01,0x28,0x68,0xDE};
+
+uint32_t TGetInfoResp::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;
+
+ bool isset_status = false;
+ bool isset_infoValue = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->status.read(iprot);
+ isset_status = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->infoValue.read(iprot);
+ isset_infoValue = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_status)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_infoValue)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetInfoResp::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetInfoResp");
+
+ xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->status.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("infoValue", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->infoValue.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetInfoResp &a, TGetInfoResp &b) {
+ using ::std::swap;
+ swap(a.status, b.status);
+ swap(a.infoValue, b.infoValue);
+}
+
+TGetInfoResp::TGetInfoResp(const TGetInfoResp& other212) {
+ status = other212.status;
+ infoValue = other212.infoValue;
+}
+TGetInfoResp& TGetInfoResp::operator=(const TGetInfoResp& other213) {
+ status = other213.status;
+ infoValue = other213.infoValue;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetInfoResp& obj) {
+ using apache::thrift::to_string;
+ out << "TGetInfoResp(";
+ out << "status=" << to_string(obj.status);
+ out << ", " << "infoValue=" << to_string(obj.infoValue);
+ out << ")";
+ return out;
+}
+
+
+TExecuteStatementReq::~TExecuteStatementReq() throw() {
+}
+
+
+void TExecuteStatementReq::__set_sessionHandle(const TSessionHandle& val) {
+ this->sessionHandle = val;
+}
+
+void TExecuteStatementReq::__set_statement(const std::string& val) {
+ this->statement = val;
+}
+
+void TExecuteStatementReq::__set_confOverlay(const std::map & val) {
+ this->confOverlay = val;
+__isset.confOverlay = true;
+}
+
+void TExecuteStatementReq::__set_runAsync(const bool val) {
+ this->runAsync = val;
+__isset.runAsync = true;
+}
+
+const char* TExecuteStatementReq::ascii_fingerprint = "FED75DB77E66D76EC1939A51FB0D96FA";
+const uint8_t TExecuteStatementReq::binary_fingerprint[16] = {0xFE,0xD7,0x5D,0xB7,0x7E,0x66,0xD7,0x6E,0xC1,0x93,0x9A,0x51,0xFB,0x0D,0x96,0xFA};
+
+uint32_t TExecuteStatementReq::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;
+
+ bool isset_sessionHandle = false;
+ bool isset_statement = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->sessionHandle.read(iprot);
+ isset_sessionHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->statement);
+ isset_statement = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_MAP) {
+ {
+ this->confOverlay.clear();
+ uint32_t _size214;
+ ::apache::thrift::protocol::TType _ktype215;
+ ::apache::thrift::protocol::TType _vtype216;
+ xfer += iprot->readMapBegin(_ktype215, _vtype216, _size214);
+ uint32_t _i218;
+ for (_i218 = 0; _i218 < _size214; ++_i218)
+ {
+ std::string _key219;
+ xfer += iprot->readString(_key219);
+ std::string& _val220 = this->confOverlay[_key219];
+ xfer += iprot->readString(_val220);
+ }
+ xfer += iprot->readMapEnd();
+ }
+ this->__isset.confOverlay = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool(this->runAsync);
+ this->__isset.runAsync = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_sessionHandle)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_statement)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TExecuteStatementReq::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TExecuteStatementReq");
+
+ xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->sessionHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("statement", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->statement);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.confOverlay) {
+ xfer += oprot->writeFieldBegin("confOverlay", ::apache::thrift::protocol::T_MAP, 3);
+ {
+ xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->confOverlay.size()));
+ std::map ::const_iterator _iter221;
+ for (_iter221 = this->confOverlay.begin(); _iter221 != this->confOverlay.end(); ++_iter221)
+ {
+ xfer += oprot->writeString(_iter221->first);
+ xfer += oprot->writeString(_iter221->second);
+ }
+ xfer += oprot->writeMapEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.runAsync) {
+ xfer += oprot->writeFieldBegin("runAsync", ::apache::thrift::protocol::T_BOOL, 4);
+ xfer += oprot->writeBool(this->runAsync);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TExecuteStatementReq &a, TExecuteStatementReq &b) {
+ using ::std::swap;
+ swap(a.sessionHandle, b.sessionHandle);
+ swap(a.statement, b.statement);
+ swap(a.confOverlay, b.confOverlay);
+ swap(a.runAsync, b.runAsync);
+ swap(a.__isset, b.__isset);
+}
+
+TExecuteStatementReq::TExecuteStatementReq(const TExecuteStatementReq& other222) {
+ sessionHandle = other222.sessionHandle;
+ statement = other222.statement;
+ confOverlay = other222.confOverlay;
+ runAsync = other222.runAsync;
+ __isset = other222.__isset;
+}
+TExecuteStatementReq& TExecuteStatementReq::operator=(const TExecuteStatementReq& other223) {
+ sessionHandle = other223.sessionHandle;
+ statement = other223.statement;
+ confOverlay = other223.confOverlay;
+ runAsync = other223.runAsync;
+ __isset = other223.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TExecuteStatementReq& obj) {
+ using apache::thrift::to_string;
+ out << "TExecuteStatementReq(";
+ out << "sessionHandle=" << to_string(obj.sessionHandle);
+ out << ", " << "statement=" << to_string(obj.statement);
+ out << ", " << "confOverlay="; (obj.__isset.confOverlay ? (out << to_string(obj.confOverlay)) : (out << ""));
+ out << ", " << "runAsync="; (obj.__isset.runAsync ? (out << to_string(obj.runAsync)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TExecuteStatementResp::~TExecuteStatementResp() throw() {
+}
+
+
+void TExecuteStatementResp::__set_status(const TStatus& val) {
+ this->status = val;
+}
+
+void TExecuteStatementResp::__set_operationHandle(const TOperationHandle& val) {
+ this->operationHandle = val;
+__isset.operationHandle = true;
+}
+
+const char* TExecuteStatementResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286";
+const uint8_t TExecuteStatementResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86};
+
+uint32_t TExecuteStatementResp::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;
+
+ bool isset_status = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->status.read(iprot);
+ isset_status = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->operationHandle.read(iprot);
+ this->__isset.operationHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_status)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TExecuteStatementResp::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TExecuteStatementResp");
+
+ xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->status.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.operationHandle) {
+ xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->operationHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TExecuteStatementResp &a, TExecuteStatementResp &b) {
+ using ::std::swap;
+ swap(a.status, b.status);
+ swap(a.operationHandle, b.operationHandle);
+ swap(a.__isset, b.__isset);
+}
+
+TExecuteStatementResp::TExecuteStatementResp(const TExecuteStatementResp& other224) {
+ status = other224.status;
+ operationHandle = other224.operationHandle;
+ __isset = other224.__isset;
+}
+TExecuteStatementResp& TExecuteStatementResp::operator=(const TExecuteStatementResp& other225) {
+ status = other225.status;
+ operationHandle = other225.operationHandle;
+ __isset = other225.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TExecuteStatementResp& obj) {
+ using apache::thrift::to_string;
+ out << "TExecuteStatementResp(";
+ out << "status=" << to_string(obj.status);
+ out << ", " << "operationHandle="; (obj.__isset.operationHandle ? (out << to_string(obj.operationHandle)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TGetTypeInfoReq::~TGetTypeInfoReq() throw() {
+}
+
+
+void TGetTypeInfoReq::__set_sessionHandle(const TSessionHandle& val) {
+ this->sessionHandle = val;
+}
+
+const char* TGetTypeInfoReq::ascii_fingerprint = "82377107F8BD0526960537D5A112E6EF";
+const uint8_t TGetTypeInfoReq::binary_fingerprint[16] = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF};
+
+uint32_t TGetTypeInfoReq::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;
+
+ bool isset_sessionHandle = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->sessionHandle.read(iprot);
+ isset_sessionHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_sessionHandle)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetTypeInfoReq::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetTypeInfoReq");
+
+ xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->sessionHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetTypeInfoReq &a, TGetTypeInfoReq &b) {
+ using ::std::swap;
+ swap(a.sessionHandle, b.sessionHandle);
+}
+
+TGetTypeInfoReq::TGetTypeInfoReq(const TGetTypeInfoReq& other226) {
+ sessionHandle = other226.sessionHandle;
+}
+TGetTypeInfoReq& TGetTypeInfoReq::operator=(const TGetTypeInfoReq& other227) {
+ sessionHandle = other227.sessionHandle;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetTypeInfoReq& obj) {
+ using apache::thrift::to_string;
+ out << "TGetTypeInfoReq(";
+ out << "sessionHandle=" << to_string(obj.sessionHandle);
+ out << ")";
+ return out;
+}
+
+
+TGetTypeInfoResp::~TGetTypeInfoResp() throw() {
+}
+
+
+void TGetTypeInfoResp::__set_status(const TStatus& val) {
+ this->status = val;
+}
+
+void TGetTypeInfoResp::__set_operationHandle(const TOperationHandle& val) {
+ this->operationHandle = val;
+__isset.operationHandle = true;
+}
+
+const char* TGetTypeInfoResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286";
+const uint8_t TGetTypeInfoResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86};
+
+uint32_t TGetTypeInfoResp::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;
+
+ bool isset_status = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->status.read(iprot);
+ isset_status = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->operationHandle.read(iprot);
+ this->__isset.operationHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_status)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetTypeInfoResp::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetTypeInfoResp");
+
+ xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->status.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.operationHandle) {
+ xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->operationHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetTypeInfoResp &a, TGetTypeInfoResp &b) {
+ using ::std::swap;
+ swap(a.status, b.status);
+ swap(a.operationHandle, b.operationHandle);
+ swap(a.__isset, b.__isset);
+}
+
+TGetTypeInfoResp::TGetTypeInfoResp(const TGetTypeInfoResp& other228) {
+ status = other228.status;
+ operationHandle = other228.operationHandle;
+ __isset = other228.__isset;
+}
+TGetTypeInfoResp& TGetTypeInfoResp::operator=(const TGetTypeInfoResp& other229) {
+ status = other229.status;
+ operationHandle = other229.operationHandle;
+ __isset = other229.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetTypeInfoResp& obj) {
+ using apache::thrift::to_string;
+ out << "TGetTypeInfoResp(";
+ out << "status=" << to_string(obj.status);
+ out << ", " << "operationHandle="; (obj.__isset.operationHandle ? (out << to_string(obj.operationHandle)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TGetCatalogsReq::~TGetCatalogsReq() throw() {
+}
+
+
+void TGetCatalogsReq::__set_sessionHandle(const TSessionHandle& val) {
+ this->sessionHandle = val;
+}
+
+const char* TGetCatalogsReq::ascii_fingerprint = "82377107F8BD0526960537D5A112E6EF";
+const uint8_t TGetCatalogsReq::binary_fingerprint[16] = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF};
+
+uint32_t TGetCatalogsReq::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;
+
+ bool isset_sessionHandle = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->sessionHandle.read(iprot);
+ isset_sessionHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_sessionHandle)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetCatalogsReq::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetCatalogsReq");
+
+ xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->sessionHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetCatalogsReq &a, TGetCatalogsReq &b) {
+ using ::std::swap;
+ swap(a.sessionHandle, b.sessionHandle);
+}
+
+TGetCatalogsReq::TGetCatalogsReq(const TGetCatalogsReq& other230) {
+ sessionHandle = other230.sessionHandle;
+}
+TGetCatalogsReq& TGetCatalogsReq::operator=(const TGetCatalogsReq& other231) {
+ sessionHandle = other231.sessionHandle;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetCatalogsReq& obj) {
+ using apache::thrift::to_string;
+ out << "TGetCatalogsReq(";
+ out << "sessionHandle=" << to_string(obj.sessionHandle);
+ out << ")";
+ return out;
+}
+
+
+TGetCatalogsResp::~TGetCatalogsResp() throw() {
+}
+
+
+void TGetCatalogsResp::__set_status(const TStatus& val) {
+ this->status = val;
+}
+
+void TGetCatalogsResp::__set_operationHandle(const TOperationHandle& val) {
+ this->operationHandle = val;
+__isset.operationHandle = true;
+}
+
+const char* TGetCatalogsResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286";
+const uint8_t TGetCatalogsResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86};
+
+uint32_t TGetCatalogsResp::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;
+
+ bool isset_status = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->status.read(iprot);
+ isset_status = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->operationHandle.read(iprot);
+ this->__isset.operationHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_status)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetCatalogsResp::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetCatalogsResp");
+
+ xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->status.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.operationHandle) {
+ xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->operationHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetCatalogsResp &a, TGetCatalogsResp &b) {
+ using ::std::swap;
+ swap(a.status, b.status);
+ swap(a.operationHandle, b.operationHandle);
+ swap(a.__isset, b.__isset);
+}
+
+TGetCatalogsResp::TGetCatalogsResp(const TGetCatalogsResp& other232) {
+ status = other232.status;
+ operationHandle = other232.operationHandle;
+ __isset = other232.__isset;
+}
+TGetCatalogsResp& TGetCatalogsResp::operator=(const TGetCatalogsResp& other233) {
+ status = other233.status;
+ operationHandle = other233.operationHandle;
+ __isset = other233.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetCatalogsResp& obj) {
+ using apache::thrift::to_string;
+ out << "TGetCatalogsResp(";
+ out << "status=" << to_string(obj.status);
+ out << ", " << "operationHandle="; (obj.__isset.operationHandle ? (out << to_string(obj.operationHandle)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TGetSchemasReq::~TGetSchemasReq() throw() {
+}
+
+
+void TGetSchemasReq::__set_sessionHandle(const TSessionHandle& val) {
+ this->sessionHandle = val;
+}
+
+void TGetSchemasReq::__set_catalogName(const TIdentifier& val) {
+ this->catalogName = val;
+__isset.catalogName = true;
+}
+
+void TGetSchemasReq::__set_schemaName(const TPatternOrIdentifier& val) {
+ this->schemaName = val;
+__isset.schemaName = true;
+}
+
+const char* TGetSchemasReq::ascii_fingerprint = "28A9D12DE8393DD3E73FC1E5AE6E113B";
+const uint8_t TGetSchemasReq::binary_fingerprint[16] = {0x28,0xA9,0xD1,0x2D,0xE8,0x39,0x3D,0xD3,0xE7,0x3F,0xC1,0xE5,0xAE,0x6E,0x11,0x3B};
+
+uint32_t TGetSchemasReq::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;
+
+ bool isset_sessionHandle = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->sessionHandle.read(iprot);
+ isset_sessionHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->catalogName);
+ this->__isset.catalogName = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->schemaName);
+ this->__isset.schemaName = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_sessionHandle)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetSchemasReq::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetSchemasReq");
+
+ xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->sessionHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.catalogName) {
+ xfer += oprot->writeFieldBegin("catalogName", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->catalogName);
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.schemaName) {
+ xfer += oprot->writeFieldBegin("schemaName", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString(this->schemaName);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetSchemasReq &a, TGetSchemasReq &b) {
+ using ::std::swap;
+ swap(a.sessionHandle, b.sessionHandle);
+ swap(a.catalogName, b.catalogName);
+ swap(a.schemaName, b.schemaName);
+ swap(a.__isset, b.__isset);
+}
+
+TGetSchemasReq::TGetSchemasReq(const TGetSchemasReq& other234) {
+ sessionHandle = other234.sessionHandle;
+ catalogName = other234.catalogName;
+ schemaName = other234.schemaName;
+ __isset = other234.__isset;
+}
+TGetSchemasReq& TGetSchemasReq::operator=(const TGetSchemasReq& other235) {
+ sessionHandle = other235.sessionHandle;
+ catalogName = other235.catalogName;
+ schemaName = other235.schemaName;
+ __isset = other235.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetSchemasReq& obj) {
+ using apache::thrift::to_string;
+ out << "TGetSchemasReq(";
+ out << "sessionHandle=" << to_string(obj.sessionHandle);
+ out << ", " << "catalogName="; (obj.__isset.catalogName ? (out << to_string(obj.catalogName)) : (out << ""));
+ out << ", " << "schemaName="; (obj.__isset.schemaName ? (out << to_string(obj.schemaName)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TGetSchemasResp::~TGetSchemasResp() throw() {
+}
+
+
+void TGetSchemasResp::__set_status(const TStatus& val) {
+ this->status = val;
+}
+
+void TGetSchemasResp::__set_operationHandle(const TOperationHandle& val) {
+ this->operationHandle = val;
+__isset.operationHandle = true;
+}
+
+const char* TGetSchemasResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286";
+const uint8_t TGetSchemasResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86};
+
+uint32_t TGetSchemasResp::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;
+
+ bool isset_status = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->status.read(iprot);
+ isset_status = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->operationHandle.read(iprot);
+ this->__isset.operationHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_status)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetSchemasResp::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetSchemasResp");
+
+ xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->status.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.operationHandle) {
+ xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->operationHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetSchemasResp &a, TGetSchemasResp &b) {
+ using ::std::swap;
+ swap(a.status, b.status);
+ swap(a.operationHandle, b.operationHandle);
+ swap(a.__isset, b.__isset);
+}
+
+TGetSchemasResp::TGetSchemasResp(const TGetSchemasResp& other236) {
+ status = other236.status;
+ operationHandle = other236.operationHandle;
+ __isset = other236.__isset;
+}
+TGetSchemasResp& TGetSchemasResp::operator=(const TGetSchemasResp& other237) {
+ status = other237.status;
+ operationHandle = other237.operationHandle;
+ __isset = other237.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetSchemasResp& obj) {
+ using apache::thrift::to_string;
+ out << "TGetSchemasResp(";
+ out << "status=" << to_string(obj.status);
+ out << ", " << "operationHandle="; (obj.__isset.operationHandle ? (out << to_string(obj.operationHandle)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TGetTablesReq::~TGetTablesReq() throw() {
+}
+
+
+void TGetTablesReq::__set_sessionHandle(const TSessionHandle& val) {
+ this->sessionHandle = val;
+}
+
+void TGetTablesReq::__set_catalogName(const TPatternOrIdentifier& val) {
+ this->catalogName = val;
+__isset.catalogName = true;
+}
+
+void TGetTablesReq::__set_schemaName(const TPatternOrIdentifier& val) {
+ this->schemaName = val;
+__isset.schemaName = true;
+}
+
+void TGetTablesReq::__set_tableName(const TPatternOrIdentifier& val) {
+ this->tableName = val;
+__isset.tableName = true;
+}
+
+void TGetTablesReq::__set_tableTypes(const std::vector & val) {
+ this->tableTypes = val;
+__isset.tableTypes = true;
+}
+
+const char* TGetTablesReq::ascii_fingerprint = "C80DFEE06850052F5A445BE81ED763DB";
+const uint8_t TGetTablesReq::binary_fingerprint[16] = {0xC8,0x0D,0xFE,0xE0,0x68,0x50,0x05,0x2F,0x5A,0x44,0x5B,0xE8,0x1E,0xD7,0x63,0xDB};
+
+uint32_t TGetTablesReq::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;
+
+ bool isset_sessionHandle = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->sessionHandle.read(iprot);
+ isset_sessionHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->catalogName);
+ this->__isset.catalogName = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->schemaName);
+ this->__isset.schemaName = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->tableName);
+ this->__isset.tableName = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 5:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->tableTypes.clear();
+ uint32_t _size238;
+ ::apache::thrift::protocol::TType _etype241;
+ xfer += iprot->readListBegin(_etype241, _size238);
+ this->tableTypes.resize(_size238);
+ uint32_t _i242;
+ for (_i242 = 0; _i242 < _size238; ++_i242)
+ {
+ xfer += iprot->readString(this->tableTypes[_i242]);
+ }
+ xfer += iprot->readListEnd();
+ }
+ this->__isset.tableTypes = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_sessionHandle)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetTablesReq::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetTablesReq");
+
+ xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->sessionHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.catalogName) {
+ xfer += oprot->writeFieldBegin("catalogName", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->catalogName);
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.schemaName) {
+ xfer += oprot->writeFieldBegin("schemaName", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString(this->schemaName);
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.tableName) {
+ xfer += oprot->writeFieldBegin("tableName", ::apache::thrift::protocol::T_STRING, 4);
+ xfer += oprot->writeString(this->tableName);
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.tableTypes) {
+ xfer += oprot->writeFieldBegin("tableTypes", ::apache::thrift::protocol::T_LIST, 5);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tableTypes.size()));
+ std::vector ::const_iterator _iter243;
+ for (_iter243 = this->tableTypes.begin(); _iter243 != this->tableTypes.end(); ++_iter243)
+ {
+ xfer += oprot->writeString((*_iter243));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetTablesReq &a, TGetTablesReq &b) {
+ using ::std::swap;
+ swap(a.sessionHandle, b.sessionHandle);
+ swap(a.catalogName, b.catalogName);
+ swap(a.schemaName, b.schemaName);
+ swap(a.tableName, b.tableName);
+ swap(a.tableTypes, b.tableTypes);
+ swap(a.__isset, b.__isset);
+}
+
+TGetTablesReq::TGetTablesReq(const TGetTablesReq& other244) {
+ sessionHandle = other244.sessionHandle;
+ catalogName = other244.catalogName;
+ schemaName = other244.schemaName;
+ tableName = other244.tableName;
+ tableTypes = other244.tableTypes;
+ __isset = other244.__isset;
+}
+TGetTablesReq& TGetTablesReq::operator=(const TGetTablesReq& other245) {
+ sessionHandle = other245.sessionHandle;
+ catalogName = other245.catalogName;
+ schemaName = other245.schemaName;
+ tableName = other245.tableName;
+ tableTypes = other245.tableTypes;
+ __isset = other245.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetTablesReq& obj) {
+ using apache::thrift::to_string;
+ out << "TGetTablesReq(";
+ out << "sessionHandle=" << to_string(obj.sessionHandle);
+ out << ", " << "catalogName="; (obj.__isset.catalogName ? (out << to_string(obj.catalogName)) : (out << ""));
+ out << ", " << "schemaName="; (obj.__isset.schemaName ? (out << to_string(obj.schemaName)) : (out << ""));
+ out << ", " << "tableName="; (obj.__isset.tableName ? (out << to_string(obj.tableName)) : (out << ""));
+ out << ", " << "tableTypes="; (obj.__isset.tableTypes ? (out << to_string(obj.tableTypes)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TGetTablesResp::~TGetTablesResp() throw() {
+}
+
+
+void TGetTablesResp::__set_status(const TStatus& val) {
+ this->status = val;
+}
+
+void TGetTablesResp::__set_operationHandle(const TOperationHandle& val) {
+ this->operationHandle = val;
+__isset.operationHandle = true;
+}
+
+const char* TGetTablesResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286";
+const uint8_t TGetTablesResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86};
+
+uint32_t TGetTablesResp::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;
+
+ bool isset_status = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->status.read(iprot);
+ isset_status = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->operationHandle.read(iprot);
+ this->__isset.operationHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_status)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetTablesResp::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetTablesResp");
+
+ xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->status.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.operationHandle) {
+ xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->operationHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetTablesResp &a, TGetTablesResp &b) {
+ using ::std::swap;
+ swap(a.status, b.status);
+ swap(a.operationHandle, b.operationHandle);
+ swap(a.__isset, b.__isset);
+}
+
+TGetTablesResp::TGetTablesResp(const TGetTablesResp& other246) {
+ status = other246.status;
+ operationHandle = other246.operationHandle;
+ __isset = other246.__isset;
+}
+TGetTablesResp& TGetTablesResp::operator=(const TGetTablesResp& other247) {
+ status = other247.status;
+ operationHandle = other247.operationHandle;
+ __isset = other247.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetTablesResp& obj) {
+ using apache::thrift::to_string;
+ out << "TGetTablesResp(";
+ out << "status=" << to_string(obj.status);
+ out << ", " << "operationHandle="; (obj.__isset.operationHandle ? (out << to_string(obj.operationHandle)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TGetTableTypesReq::~TGetTableTypesReq() throw() {
+}
+
+
+void TGetTableTypesReq::__set_sessionHandle(const TSessionHandle& val) {
+ this->sessionHandle = val;
+}
+
+const char* TGetTableTypesReq::ascii_fingerprint = "82377107F8BD0526960537D5A112E6EF";
+const uint8_t TGetTableTypesReq::binary_fingerprint[16] = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF};
+
+uint32_t TGetTableTypesReq::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;
+
+ bool isset_sessionHandle = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->sessionHandle.read(iprot);
+ isset_sessionHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_sessionHandle)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetTableTypesReq::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetTableTypesReq");
+
+ xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->sessionHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetTableTypesReq &a, TGetTableTypesReq &b) {
+ using ::std::swap;
+ swap(a.sessionHandle, b.sessionHandle);
+}
+
+TGetTableTypesReq::TGetTableTypesReq(const TGetTableTypesReq& other248) {
+ sessionHandle = other248.sessionHandle;
+}
+TGetTableTypesReq& TGetTableTypesReq::operator=(const TGetTableTypesReq& other249) {
+ sessionHandle = other249.sessionHandle;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetTableTypesReq& obj) {
+ using apache::thrift::to_string;
+ out << "TGetTableTypesReq(";
+ out << "sessionHandle=" << to_string(obj.sessionHandle);
+ out << ")";
+ return out;
+}
+
+
+TGetTableTypesResp::~TGetTableTypesResp() throw() {
+}
+
+
+void TGetTableTypesResp::__set_status(const TStatus& val) {
+ this->status = val;
+}
+
+void TGetTableTypesResp::__set_operationHandle(const TOperationHandle& val) {
+ this->operationHandle = val;
+__isset.operationHandle = true;
+}
+
+const char* TGetTableTypesResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286";
+const uint8_t TGetTableTypesResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86};
+
+uint32_t TGetTableTypesResp::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;
+
+ bool isset_status = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->status.read(iprot);
+ isset_status = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->operationHandle.read(iprot);
+ this->__isset.operationHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_status)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetTableTypesResp::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetTableTypesResp");
+
+ xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->status.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.operationHandle) {
+ xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->operationHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetTableTypesResp &a, TGetTableTypesResp &b) {
+ using ::std::swap;
+ swap(a.status, b.status);
+ swap(a.operationHandle, b.operationHandle);
+ swap(a.__isset, b.__isset);
+}
+
+TGetTableTypesResp::TGetTableTypesResp(const TGetTableTypesResp& other250) {
+ status = other250.status;
+ operationHandle = other250.operationHandle;
+ __isset = other250.__isset;
+}
+TGetTableTypesResp& TGetTableTypesResp::operator=(const TGetTableTypesResp& other251) {
+ status = other251.status;
+ operationHandle = other251.operationHandle;
+ __isset = other251.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetTableTypesResp& obj) {
+ using apache::thrift::to_string;
+ out << "TGetTableTypesResp(";
+ out << "status=" << to_string(obj.status);
+ out << ", " << "operationHandle="; (obj.__isset.operationHandle ? (out << to_string(obj.operationHandle)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TGetColumnsReq::~TGetColumnsReq() throw() {
+}
+
+
+void TGetColumnsReq::__set_sessionHandle(const TSessionHandle& val) {
+ this->sessionHandle = val;
+}
+
+void TGetColumnsReq::__set_catalogName(const TIdentifier& val) {
+ this->catalogName = val;
+__isset.catalogName = true;
+}
+
+void TGetColumnsReq::__set_schemaName(const TPatternOrIdentifier& val) {
+ this->schemaName = val;
+__isset.schemaName = true;
+}
+
+void TGetColumnsReq::__set_tableName(const TPatternOrIdentifier& val) {
+ this->tableName = val;
+__isset.tableName = true;
+}
+
+void TGetColumnsReq::__set_columnName(const TPatternOrIdentifier& val) {
+ this->columnName = val;
+__isset.columnName = true;
+}
+
+const char* TGetColumnsReq::ascii_fingerprint = "72D0F28ED33A49B7306DF63EEE956C28";
+const uint8_t TGetColumnsReq::binary_fingerprint[16] = {0x72,0xD0,0xF2,0x8E,0xD3,0x3A,0x49,0xB7,0x30,0x6D,0xF6,0x3E,0xEE,0x95,0x6C,0x28};
+
+uint32_t TGetColumnsReq::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;
+
+ bool isset_sessionHandle = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->sessionHandle.read(iprot);
+ isset_sessionHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->catalogName);
+ this->__isset.catalogName = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->schemaName);
+ this->__isset.schemaName = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->tableName);
+ this->__isset.tableName = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 5:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->columnName);
+ this->__isset.columnName = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_sessionHandle)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetColumnsReq::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetColumnsReq");
+
+ xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->sessionHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.catalogName) {
+ xfer += oprot->writeFieldBegin("catalogName", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->catalogName);
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.schemaName) {
+ xfer += oprot->writeFieldBegin("schemaName", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString(this->schemaName);
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.tableName) {
+ xfer += oprot->writeFieldBegin("tableName", ::apache::thrift::protocol::T_STRING, 4);
+ xfer += oprot->writeString(this->tableName);
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.columnName) {
+ xfer += oprot->writeFieldBegin("columnName", ::apache::thrift::protocol::T_STRING, 5);
+ xfer += oprot->writeString(this->columnName);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetColumnsReq &a, TGetColumnsReq &b) {
+ using ::std::swap;
+ swap(a.sessionHandle, b.sessionHandle);
+ swap(a.catalogName, b.catalogName);
+ swap(a.schemaName, b.schemaName);
+ swap(a.tableName, b.tableName);
+ swap(a.columnName, b.columnName);
+ swap(a.__isset, b.__isset);
+}
+
+TGetColumnsReq::TGetColumnsReq(const TGetColumnsReq& other252) {
+ sessionHandle = other252.sessionHandle;
+ catalogName = other252.catalogName;
+ schemaName = other252.schemaName;
+ tableName = other252.tableName;
+ columnName = other252.columnName;
+ __isset = other252.__isset;
+}
+TGetColumnsReq& TGetColumnsReq::operator=(const TGetColumnsReq& other253) {
+ sessionHandle = other253.sessionHandle;
+ catalogName = other253.catalogName;
+ schemaName = other253.schemaName;
+ tableName = other253.tableName;
+ columnName = other253.columnName;
+ __isset = other253.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetColumnsReq& obj) {
+ using apache::thrift::to_string;
+ out << "TGetColumnsReq(";
+ out << "sessionHandle=" << to_string(obj.sessionHandle);
+ out << ", " << "catalogName="; (obj.__isset.catalogName ? (out << to_string(obj.catalogName)) : (out << ""));
+ out << ", " << "schemaName="; (obj.__isset.schemaName ? (out << to_string(obj.schemaName)) : (out << ""));
+ out << ", " << "tableName="; (obj.__isset.tableName ? (out << to_string(obj.tableName)) : (out << ""));
+ out << ", " << "columnName="; (obj.__isset.columnName ? (out << to_string(obj.columnName)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TGetColumnsResp::~TGetColumnsResp() throw() {
+}
+
+
+void TGetColumnsResp::__set_status(const TStatus& val) {
+ this->status = val;
+}
+
+void TGetColumnsResp::__set_operationHandle(const TOperationHandle& val) {
+ this->operationHandle = val;
+__isset.operationHandle = true;
+}
+
+const char* TGetColumnsResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286";
+const uint8_t TGetColumnsResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86};
+
+uint32_t TGetColumnsResp::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;
+
+ bool isset_status = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->status.read(iprot);
+ isset_status = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->operationHandle.read(iprot);
+ this->__isset.operationHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_status)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetColumnsResp::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetColumnsResp");
+
+ xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->status.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.operationHandle) {
+ xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->operationHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetColumnsResp &a, TGetColumnsResp &b) {
+ using ::std::swap;
+ swap(a.status, b.status);
+ swap(a.operationHandle, b.operationHandle);
+ swap(a.__isset, b.__isset);
+}
+
+TGetColumnsResp::TGetColumnsResp(const TGetColumnsResp& other254) {
+ status = other254.status;
+ operationHandle = other254.operationHandle;
+ __isset = other254.__isset;
+}
+TGetColumnsResp& TGetColumnsResp::operator=(const TGetColumnsResp& other255) {
+ status = other255.status;
+ operationHandle = other255.operationHandle;
+ __isset = other255.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetColumnsResp& obj) {
+ using apache::thrift::to_string;
+ out << "TGetColumnsResp(";
+ out << "status=" << to_string(obj.status);
+ out << ", " << "operationHandle="; (obj.__isset.operationHandle ? (out << to_string(obj.operationHandle)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TGetFunctionsReq::~TGetFunctionsReq() throw() {
+}
+
+
+void TGetFunctionsReq::__set_sessionHandle(const TSessionHandle& val) {
+ this->sessionHandle = val;
+}
+
+void TGetFunctionsReq::__set_catalogName(const TIdentifier& val) {
+ this->catalogName = val;
+__isset.catalogName = true;
+}
+
+void TGetFunctionsReq::__set_schemaName(const TPatternOrIdentifier& val) {
+ this->schemaName = val;
+__isset.schemaName = true;
+}
+
+void TGetFunctionsReq::__set_functionName(const TPatternOrIdentifier& val) {
+ this->functionName = val;
+}
+
+const char* TGetFunctionsReq::ascii_fingerprint = "0887E0916ADE4521BF6017B534493138";
+const uint8_t TGetFunctionsReq::binary_fingerprint[16] = {0x08,0x87,0xE0,0x91,0x6A,0xDE,0x45,0x21,0xBF,0x60,0x17,0xB5,0x34,0x49,0x31,0x38};
+
+uint32_t TGetFunctionsReq::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;
+
+ bool isset_sessionHandle = false;
+ bool isset_functionName = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->sessionHandle.read(iprot);
+ isset_sessionHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->catalogName);
+ this->__isset.catalogName = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->schemaName);
+ this->__isset.schemaName = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->functionName);
+ isset_functionName = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_sessionHandle)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_functionName)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetFunctionsReq::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetFunctionsReq");
+
+ xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->sessionHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.catalogName) {
+ xfer += oprot->writeFieldBegin("catalogName", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->catalogName);
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.schemaName) {
+ xfer += oprot->writeFieldBegin("schemaName", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString(this->schemaName);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldBegin("functionName", ::apache::thrift::protocol::T_STRING, 4);
+ xfer += oprot->writeString(this->functionName);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetFunctionsReq &a, TGetFunctionsReq &b) {
+ using ::std::swap;
+ swap(a.sessionHandle, b.sessionHandle);
+ swap(a.catalogName, b.catalogName);
+ swap(a.schemaName, b.schemaName);
+ swap(a.functionName, b.functionName);
+ swap(a.__isset, b.__isset);
+}
+
+TGetFunctionsReq::TGetFunctionsReq(const TGetFunctionsReq& other256) {
+ sessionHandle = other256.sessionHandle;
+ catalogName = other256.catalogName;
+ schemaName = other256.schemaName;
+ functionName = other256.functionName;
+ __isset = other256.__isset;
+}
+TGetFunctionsReq& TGetFunctionsReq::operator=(const TGetFunctionsReq& other257) {
+ sessionHandle = other257.sessionHandle;
+ catalogName = other257.catalogName;
+ schemaName = other257.schemaName;
+ functionName = other257.functionName;
+ __isset = other257.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetFunctionsReq& obj) {
+ using apache::thrift::to_string;
+ out << "TGetFunctionsReq(";
+ out << "sessionHandle=" << to_string(obj.sessionHandle);
+ out << ", " << "catalogName="; (obj.__isset.catalogName ? (out << to_string(obj.catalogName)) : (out << ""));
+ out << ", " << "schemaName="; (obj.__isset.schemaName ? (out << to_string(obj.schemaName)) : (out << ""));
+ out << ", " << "functionName=" << to_string(obj.functionName);
+ out << ")";
+ return out;
+}
+
+
+TGetFunctionsResp::~TGetFunctionsResp() throw() {
+}
+
+
+void TGetFunctionsResp::__set_status(const TStatus& val) {
+ this->status = val;
+}
+
+void TGetFunctionsResp::__set_operationHandle(const TOperationHandle& val) {
+ this->operationHandle = val;
+__isset.operationHandle = true;
+}
+
+const char* TGetFunctionsResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286";
+const uint8_t TGetFunctionsResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86};
+
+uint32_t TGetFunctionsResp::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;
+
+ bool isset_status = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->status.read(iprot);
+ isset_status = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->operationHandle.read(iprot);
+ this->__isset.operationHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_status)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetFunctionsResp::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetFunctionsResp");
+
+ xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->status.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.operationHandle) {
+ xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->operationHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetFunctionsResp &a, TGetFunctionsResp &b) {
+ using ::std::swap;
+ swap(a.status, b.status);
+ swap(a.operationHandle, b.operationHandle);
+ swap(a.__isset, b.__isset);
+}
+
+TGetFunctionsResp::TGetFunctionsResp(const TGetFunctionsResp& other258) {
+ status = other258.status;
+ operationHandle = other258.operationHandle;
+ __isset = other258.__isset;
+}
+TGetFunctionsResp& TGetFunctionsResp::operator=(const TGetFunctionsResp& other259) {
+ status = other259.status;
+ operationHandle = other259.operationHandle;
+ __isset = other259.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetFunctionsResp& obj) {
+ using apache::thrift::to_string;
+ out << "TGetFunctionsResp(";
+ out << "status=" << to_string(obj.status);
+ out << ", " << "operationHandle="; (obj.__isset.operationHandle ? (out << to_string(obj.operationHandle)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TGetOperationStatusReq::~TGetOperationStatusReq() throw() {
+}
+
+
+void TGetOperationStatusReq::__set_operationHandle(const TOperationHandle& val) {
+ this->operationHandle = val;
+}
+
+const char* TGetOperationStatusReq::ascii_fingerprint = "414FA38522AE6B9CEC1438B56CA1DE5A";
+const uint8_t TGetOperationStatusReq::binary_fingerprint[16] = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A};
+
+uint32_t TGetOperationStatusReq::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;
+
+ bool isset_operationHandle = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->operationHandle.read(iprot);
+ isset_operationHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_operationHandle)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetOperationStatusReq::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetOperationStatusReq");
+
+ xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->operationHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetOperationStatusReq &a, TGetOperationStatusReq &b) {
+ using ::std::swap;
+ swap(a.operationHandle, b.operationHandle);
+}
+
+TGetOperationStatusReq::TGetOperationStatusReq(const TGetOperationStatusReq& other260) {
+ operationHandle = other260.operationHandle;
+}
+TGetOperationStatusReq& TGetOperationStatusReq::operator=(const TGetOperationStatusReq& other261) {
+ operationHandle = other261.operationHandle;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetOperationStatusReq& obj) {
+ using apache::thrift::to_string;
+ out << "TGetOperationStatusReq(";
+ out << "operationHandle=" << to_string(obj.operationHandle);
+ out << ")";
+ return out;
+}
+
+
+TGetOperationStatusResp::~TGetOperationStatusResp() throw() {
+}
+
+
+void TGetOperationStatusResp::__set_status(const TStatus& val) {
+ this->status = val;
+}
+
+void TGetOperationStatusResp::__set_operationState(const TOperationState::type val) {
+ this->operationState = val;
+__isset.operationState = true;
+}
+
+void TGetOperationStatusResp::__set_sqlState(const std::string& val) {
+ this->sqlState = val;
+__isset.sqlState = true;
+}
+
+void TGetOperationStatusResp::__set_errorCode(const int32_t val) {
+ this->errorCode = val;
+__isset.errorCode = true;
+}
+
+void TGetOperationStatusResp::__set_errorMessage(const std::string& val) {
+ this->errorMessage = val;
+__isset.errorMessage = true;
+}
+
+const char* TGetOperationStatusResp::ascii_fingerprint = "BD124DB87A5A2E7D11945BD1B17F013D";
+const uint8_t TGetOperationStatusResp::binary_fingerprint[16] = {0xBD,0x12,0x4D,0xB8,0x7A,0x5A,0x2E,0x7D,0x11,0x94,0x5B,0xD1,0xB1,0x7F,0x01,0x3D};
+
+uint32_t TGetOperationStatusResp::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;
+
+ bool isset_status = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->status.read(iprot);
+ isset_status = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ int32_t ecast262;
+ xfer += iprot->readI32(ecast262);
+ this->operationState = (TOperationState::type)ecast262;
+ this->__isset.operationState = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->sqlState);
+ this->__isset.sqlState = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ xfer += iprot->readI32(this->errorCode);
+ this->__isset.errorCode = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 5:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->errorMessage);
+ this->__isset.errorMessage = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_status)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetOperationStatusResp::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetOperationStatusResp");
+
+ xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->status.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.operationState) {
+ xfer += oprot->writeFieldBegin("operationState", ::apache::thrift::protocol::T_I32, 2);
+ xfer += oprot->writeI32((int32_t)this->operationState);
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.sqlState) {
+ xfer += oprot->writeFieldBegin("sqlState", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString(this->sqlState);
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.errorCode) {
+ xfer += oprot->writeFieldBegin("errorCode", ::apache::thrift::protocol::T_I32, 4);
+ xfer += oprot->writeI32(this->errorCode);
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.errorMessage) {
+ xfer += oprot->writeFieldBegin("errorMessage", ::apache::thrift::protocol::T_STRING, 5);
+ xfer += oprot->writeString(this->errorMessage);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetOperationStatusResp &a, TGetOperationStatusResp &b) {
+ using ::std::swap;
+ swap(a.status, b.status);
+ swap(a.operationState, b.operationState);
+ swap(a.sqlState, b.sqlState);
+ swap(a.errorCode, b.errorCode);
+ swap(a.errorMessage, b.errorMessage);
+ swap(a.__isset, b.__isset);
+}
+
+TGetOperationStatusResp::TGetOperationStatusResp(const TGetOperationStatusResp& other263) {
+ status = other263.status;
+ operationState = other263.operationState;
+ sqlState = other263.sqlState;
+ errorCode = other263.errorCode;
+ errorMessage = other263.errorMessage;
+ __isset = other263.__isset;
+}
+TGetOperationStatusResp& TGetOperationStatusResp::operator=(const TGetOperationStatusResp& other264) {
+ status = other264.status;
+ operationState = other264.operationState;
+ sqlState = other264.sqlState;
+ errorCode = other264.errorCode;
+ errorMessage = other264.errorMessage;
+ __isset = other264.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetOperationStatusResp& obj) {
+ using apache::thrift::to_string;
+ out << "TGetOperationStatusResp(";
+ out << "status=" << to_string(obj.status);
+ out << ", " << "operationState="; (obj.__isset.operationState ? (out << to_string(obj.operationState)) : (out << ""));
+ out << ", " << "sqlState="; (obj.__isset.sqlState ? (out << to_string(obj.sqlState)) : (out << ""));
+ out << ", " << "errorCode="; (obj.__isset.errorCode ? (out << to_string(obj.errorCode)) : (out << ""));
+ out << ", " << "errorMessage="; (obj.__isset.errorMessage ? (out << to_string(obj.errorMessage)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TCancelOperationReq::~TCancelOperationReq() throw() {
+}
+
+
+void TCancelOperationReq::__set_operationHandle(const TOperationHandle& val) {
+ this->operationHandle = val;
+}
+
+const char* TCancelOperationReq::ascii_fingerprint = "414FA38522AE6B9CEC1438B56CA1DE5A";
+const uint8_t TCancelOperationReq::binary_fingerprint[16] = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A};
+
+uint32_t TCancelOperationReq::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;
+
+ bool isset_operationHandle = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->operationHandle.read(iprot);
+ isset_operationHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_operationHandle)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TCancelOperationReq::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCancelOperationReq");
+
+ xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->operationHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TCancelOperationReq &a, TCancelOperationReq &b) {
+ using ::std::swap;
+ swap(a.operationHandle, b.operationHandle);
+}
+
+TCancelOperationReq::TCancelOperationReq(const TCancelOperationReq& other265) {
+ operationHandle = other265.operationHandle;
+}
+TCancelOperationReq& TCancelOperationReq::operator=(const TCancelOperationReq& other266) {
+ operationHandle = other266.operationHandle;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TCancelOperationReq& obj) {
+ using apache::thrift::to_string;
+ out << "TCancelOperationReq(";
+ out << "operationHandle=" << to_string(obj.operationHandle);
+ out << ")";
+ return out;
+}
+
+
+TCancelOperationResp::~TCancelOperationResp() throw() {
+}
+
+
+void TCancelOperationResp::__set_status(const TStatus& val) {
+ this->status = val;
+}
+
+const char* TCancelOperationResp::ascii_fingerprint = "7142E89F09DC7C5F6FA916C7393F46C2";
+const uint8_t TCancelOperationResp::binary_fingerprint[16] = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2};
+
+uint32_t TCancelOperationResp::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;
+
+ bool isset_status = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->status.read(iprot);
+ isset_status = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_status)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TCancelOperationResp::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCancelOperationResp");
+
+ xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->status.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TCancelOperationResp &a, TCancelOperationResp &b) {
+ using ::std::swap;
+ swap(a.status, b.status);
+}
+
+TCancelOperationResp::TCancelOperationResp(const TCancelOperationResp& other267) {
+ status = other267.status;
+}
+TCancelOperationResp& TCancelOperationResp::operator=(const TCancelOperationResp& other268) {
+ status = other268.status;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TCancelOperationResp& obj) {
+ using apache::thrift::to_string;
+ out << "TCancelOperationResp(";
+ out << "status=" << to_string(obj.status);
+ out << ")";
+ return out;
+}
+
+
+TCloseOperationReq::~TCloseOperationReq() throw() {
+}
+
+
+void TCloseOperationReq::__set_operationHandle(const TOperationHandle& val) {
+ this->operationHandle = val;
+}
+
+const char* TCloseOperationReq::ascii_fingerprint = "414FA38522AE6B9CEC1438B56CA1DE5A";
+const uint8_t TCloseOperationReq::binary_fingerprint[16] = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A};
+
+uint32_t TCloseOperationReq::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;
+
+ bool isset_operationHandle = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->operationHandle.read(iprot);
+ isset_operationHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_operationHandle)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TCloseOperationReq::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCloseOperationReq");
+
+ xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->operationHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TCloseOperationReq &a, TCloseOperationReq &b) {
+ using ::std::swap;
+ swap(a.operationHandle, b.operationHandle);
+}
+
+TCloseOperationReq::TCloseOperationReq(const TCloseOperationReq& other269) {
+ operationHandle = other269.operationHandle;
+}
+TCloseOperationReq& TCloseOperationReq::operator=(const TCloseOperationReq& other270) {
+ operationHandle = other270.operationHandle;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TCloseOperationReq& obj) {
+ using apache::thrift::to_string;
+ out << "TCloseOperationReq(";
+ out << "operationHandle=" << to_string(obj.operationHandle);
+ out << ")";
+ return out;
+}
+
+
+TCloseOperationResp::~TCloseOperationResp() throw() {
+}
+
+
+void TCloseOperationResp::__set_status(const TStatus& val) {
+ this->status = val;
+}
+
+const char* TCloseOperationResp::ascii_fingerprint = "7142E89F09DC7C5F6FA916C7393F46C2";
+const uint8_t TCloseOperationResp::binary_fingerprint[16] = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2};
+
+uint32_t TCloseOperationResp::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;
+
+ bool isset_status = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->status.read(iprot);
+ isset_status = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_status)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TCloseOperationResp::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCloseOperationResp");
+
+ xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->status.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TCloseOperationResp &a, TCloseOperationResp &b) {
+ using ::std::swap;
+ swap(a.status, b.status);
+}
+
+TCloseOperationResp::TCloseOperationResp(const TCloseOperationResp& other271) {
+ status = other271.status;
+}
+TCloseOperationResp& TCloseOperationResp::operator=(const TCloseOperationResp& other272) {
+ status = other272.status;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TCloseOperationResp& obj) {
+ using apache::thrift::to_string;
+ out << "TCloseOperationResp(";
+ out << "status=" << to_string(obj.status);
+ out << ")";
+ return out;
+}
+
+
+TGetResultSetMetadataReq::~TGetResultSetMetadataReq() throw() {
+}
+
+
+void TGetResultSetMetadataReq::__set_operationHandle(const TOperationHandle& val) {
+ this->operationHandle = val;
+}
+
+const char* TGetResultSetMetadataReq::ascii_fingerprint = "414FA38522AE6B9CEC1438B56CA1DE5A";
+const uint8_t TGetResultSetMetadataReq::binary_fingerprint[16] = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A};
+
+uint32_t TGetResultSetMetadataReq::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;
+
+ bool isset_operationHandle = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->operationHandle.read(iprot);
+ isset_operationHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_operationHandle)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetResultSetMetadataReq::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetResultSetMetadataReq");
+
+ xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->operationHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetResultSetMetadataReq &a, TGetResultSetMetadataReq &b) {
+ using ::std::swap;
+ swap(a.operationHandle, b.operationHandle);
+}
+
+TGetResultSetMetadataReq::TGetResultSetMetadataReq(const TGetResultSetMetadataReq& other273) {
+ operationHandle = other273.operationHandle;
+}
+TGetResultSetMetadataReq& TGetResultSetMetadataReq::operator=(const TGetResultSetMetadataReq& other274) {
+ operationHandle = other274.operationHandle;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetResultSetMetadataReq& obj) {
+ using apache::thrift::to_string;
+ out << "TGetResultSetMetadataReq(";
+ out << "operationHandle=" << to_string(obj.operationHandle);
+ out << ")";
+ return out;
+}
+
+
+TGetResultSetMetadataResp::~TGetResultSetMetadataResp() throw() {
+}
+
+
+void TGetResultSetMetadataResp::__set_status(const TStatus& val) {
+ this->status = val;
+}
+
+void TGetResultSetMetadataResp::__set_schema(const TTableSchema& val) {
+ this->schema = val;
+__isset.schema = true;
+}
+
+const char* TGetResultSetMetadataResp::ascii_fingerprint = "42CD49B7F49CC1B6D4E6F5FA2D7BE812";
+const uint8_t TGetResultSetMetadataResp::binary_fingerprint[16] = {0x42,0xCD,0x49,0xB7,0xF4,0x9C,0xC1,0xB6,0xD4,0xE6,0xF5,0xFA,0x2D,0x7B,0xE8,0x12};
+
+uint32_t TGetResultSetMetadataResp::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;
+
+ bool isset_status = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->status.read(iprot);
+ isset_status = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->schema.read(iprot);
+ this->__isset.schema = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_status)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetResultSetMetadataResp::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetResultSetMetadataResp");
+
+ xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->status.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.schema) {
+ xfer += oprot->writeFieldBegin("schema", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->schema.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetResultSetMetadataResp &a, TGetResultSetMetadataResp &b) {
+ using ::std::swap;
+ swap(a.status, b.status);
+ swap(a.schema, b.schema);
+ swap(a.__isset, b.__isset);
+}
+
+TGetResultSetMetadataResp::TGetResultSetMetadataResp(const TGetResultSetMetadataResp& other275) {
+ status = other275.status;
+ schema = other275.schema;
+ __isset = other275.__isset;
+}
+TGetResultSetMetadataResp& TGetResultSetMetadataResp::operator=(const TGetResultSetMetadataResp& other276) {
+ status = other276.status;
+ schema = other276.schema;
+ __isset = other276.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetResultSetMetadataResp& obj) {
+ using apache::thrift::to_string;
+ out << "TGetResultSetMetadataResp(";
+ out << "status=" << to_string(obj.status);
+ out << ", " << "schema="; (obj.__isset.schema ? (out << to_string(obj.schema)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TFetchResultsReq::~TFetchResultsReq() throw() {
+}
+
+
+void TFetchResultsReq::__set_operationHandle(const TOperationHandle& val) {
+ this->operationHandle = val;
+}
+
+void TFetchResultsReq::__set_orientation(const TFetchOrientation::type val) {
+ this->orientation = val;
+}
+
+void TFetchResultsReq::__set_maxRows(const int64_t val) {
+ this->maxRows = val;
+}
+
+void TFetchResultsReq::__set_fetchType(const int16_t val) {
+ this->fetchType = val;
+__isset.fetchType = true;
+}
+
+const char* TFetchResultsReq::ascii_fingerprint = "B4CB1E4F8F8F4D50183DD372AD11753A";
+const uint8_t TFetchResultsReq::binary_fingerprint[16] = {0xB4,0xCB,0x1E,0x4F,0x8F,0x8F,0x4D,0x50,0x18,0x3D,0xD3,0x72,0xAD,0x11,0x75,0x3A};
+
+uint32_t TFetchResultsReq::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;
+
+ bool isset_operationHandle = false;
+ bool isset_orientation = false;
+ bool isset_maxRows = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->operationHandle.read(iprot);
+ isset_operationHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ int32_t ecast277;
+ xfer += iprot->readI32(ecast277);
+ this->orientation = (TFetchOrientation::type)ecast277;
+ isset_orientation = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_I64) {
+ xfer += iprot->readI64(this->maxRows);
+ isset_maxRows = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_I16) {
+ xfer += iprot->readI16(this->fetchType);
+ this->__isset.fetchType = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_operationHandle)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_orientation)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_maxRows)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TFetchResultsReq::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TFetchResultsReq");
+
+ xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->operationHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("orientation", ::apache::thrift::protocol::T_I32, 2);
+ xfer += oprot->writeI32((int32_t)this->orientation);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("maxRows", ::apache::thrift::protocol::T_I64, 3);
+ xfer += oprot->writeI64(this->maxRows);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.fetchType) {
+ xfer += oprot->writeFieldBegin("fetchType", ::apache::thrift::protocol::T_I16, 4);
+ xfer += oprot->writeI16(this->fetchType);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TFetchResultsReq &a, TFetchResultsReq &b) {
+ using ::std::swap;
+ swap(a.operationHandle, b.operationHandle);
+ swap(a.orientation, b.orientation);
+ swap(a.maxRows, b.maxRows);
+ swap(a.fetchType, b.fetchType);
+ swap(a.__isset, b.__isset);
+}
+
+TFetchResultsReq::TFetchResultsReq(const TFetchResultsReq& other278) {
+ operationHandle = other278.operationHandle;
+ orientation = other278.orientation;
+ maxRows = other278.maxRows;
+ fetchType = other278.fetchType;
+ __isset = other278.__isset;
+}
+TFetchResultsReq& TFetchResultsReq::operator=(const TFetchResultsReq& other279) {
+ operationHandle = other279.operationHandle;
+ orientation = other279.orientation;
+ maxRows = other279.maxRows;
+ fetchType = other279.fetchType;
+ __isset = other279.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TFetchResultsReq& obj) {
+ using apache::thrift::to_string;
+ out << "TFetchResultsReq(";
+ out << "operationHandle=" << to_string(obj.operationHandle);
+ out << ", " << "orientation=" << to_string(obj.orientation);
+ out << ", " << "maxRows=" << to_string(obj.maxRows);
+ out << ", " << "fetchType="; (obj.__isset.fetchType ? (out << to_string(obj.fetchType)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TFetchResultsResp::~TFetchResultsResp() throw() {
+}
+
+
+void TFetchResultsResp::__set_status(const TStatus& val) {
+ this->status = val;
+}
+
+void TFetchResultsResp::__set_hasMoreRows(const bool val) {
+ this->hasMoreRows = val;
+__isset.hasMoreRows = true;
+}
+
+void TFetchResultsResp::__set_results(const TRowSet& val) {
+ this->results = val;
+__isset.results = true;
+}
+
+const char* TFetchResultsResp::ascii_fingerprint = "FC43BC2D6F3B76D4DB0F34226A745C8E";
+const uint8_t TFetchResultsResp::binary_fingerprint[16] = {0xFC,0x43,0xBC,0x2D,0x6F,0x3B,0x76,0xD4,0xDB,0x0F,0x34,0x22,0x6A,0x74,0x5C,0x8E};
+
+uint32_t TFetchResultsResp::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;
+
+ bool isset_status = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->status.read(iprot);
+ isset_status = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool(this->hasMoreRows);
+ this->__isset.hasMoreRows = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->results.read(iprot);
+ this->__isset.results = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_status)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TFetchResultsResp::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TFetchResultsResp");
+
+ xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->status.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.hasMoreRows) {
+ xfer += oprot->writeFieldBegin("hasMoreRows", ::apache::thrift::protocol::T_BOOL, 2);
+ xfer += oprot->writeBool(this->hasMoreRows);
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.results) {
+ xfer += oprot->writeFieldBegin("results", ::apache::thrift::protocol::T_STRUCT, 3);
+ xfer += this->results.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TFetchResultsResp &a, TFetchResultsResp &b) {
+ using ::std::swap;
+ swap(a.status, b.status);
+ swap(a.hasMoreRows, b.hasMoreRows);
+ swap(a.results, b.results);
+ swap(a.__isset, b.__isset);
+}
+
+TFetchResultsResp::TFetchResultsResp(const TFetchResultsResp& other280) {
+ status = other280.status;
+ hasMoreRows = other280.hasMoreRows;
+ results = other280.results;
+ __isset = other280.__isset;
+}
+TFetchResultsResp& TFetchResultsResp::operator=(const TFetchResultsResp& other281) {
+ status = other281.status;
+ hasMoreRows = other281.hasMoreRows;
+ results = other281.results;
+ __isset = other281.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TFetchResultsResp& obj) {
+ using apache::thrift::to_string;
+ out << "TFetchResultsResp(";
+ out << "status=" << to_string(obj.status);
+ out << ", " << "hasMoreRows="; (obj.__isset.hasMoreRows ? (out << to_string(obj.hasMoreRows)) : (out << ""));
+ out << ", " << "results="; (obj.__isset.results ? (out << to_string(obj.results)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TGetDelegationTokenReq::~TGetDelegationTokenReq() throw() {
+}
+
+
+void TGetDelegationTokenReq::__set_sessionHandle(const TSessionHandle& val) {
+ this->sessionHandle = val;
+}
+
+void TGetDelegationTokenReq::__set_owner(const std::string& val) {
+ this->owner = val;
+}
+
+void TGetDelegationTokenReq::__set_renewer(const std::string& val) {
+ this->renewer = val;
+}
+
+const char* TGetDelegationTokenReq::ascii_fingerprint = "07EA0311716A27924914E4354ED22D6C";
+const uint8_t TGetDelegationTokenReq::binary_fingerprint[16] = {0x07,0xEA,0x03,0x11,0x71,0x6A,0x27,0x92,0x49,0x14,0xE4,0x35,0x4E,0xD2,0x2D,0x6C};
+
+uint32_t TGetDelegationTokenReq::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;
+
+ bool isset_sessionHandle = false;
+ bool isset_owner = false;
+ bool isset_renewer = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->sessionHandle.read(iprot);
+ isset_sessionHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->owner);
+ isset_owner = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->renewer);
+ isset_renewer = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_sessionHandle)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_owner)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_renewer)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetDelegationTokenReq::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetDelegationTokenReq");
+
+ xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->sessionHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("owner", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->owner);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("renewer", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString(this->renewer);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetDelegationTokenReq &a, TGetDelegationTokenReq &b) {
+ using ::std::swap;
+ swap(a.sessionHandle, b.sessionHandle);
+ swap(a.owner, b.owner);
+ swap(a.renewer, b.renewer);
+}
+
+TGetDelegationTokenReq::TGetDelegationTokenReq(const TGetDelegationTokenReq& other282) {
+ sessionHandle = other282.sessionHandle;
+ owner = other282.owner;
+ renewer = other282.renewer;
+}
+TGetDelegationTokenReq& TGetDelegationTokenReq::operator=(const TGetDelegationTokenReq& other283) {
+ sessionHandle = other283.sessionHandle;
+ owner = other283.owner;
+ renewer = other283.renewer;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetDelegationTokenReq& obj) {
+ using apache::thrift::to_string;
+ out << "TGetDelegationTokenReq(";
+ out << "sessionHandle=" << to_string(obj.sessionHandle);
+ out << ", " << "owner=" << to_string(obj.owner);
+ out << ", " << "renewer=" << to_string(obj.renewer);
+ out << ")";
+ return out;
+}
+
+
+TGetDelegationTokenResp::~TGetDelegationTokenResp() throw() {
+}
+
+
+void TGetDelegationTokenResp::__set_status(const TStatus& val) {
+ this->status = val;
+}
+
+void TGetDelegationTokenResp::__set_delegationToken(const std::string& val) {
+ this->delegationToken = val;
+__isset.delegationToken = true;
+}
+
+const char* TGetDelegationTokenResp::ascii_fingerprint = "C0E132DC412CEA08D771EAC38CEA1DA6";
+const uint8_t TGetDelegationTokenResp::binary_fingerprint[16] = {0xC0,0xE1,0x32,0xDC,0x41,0x2C,0xEA,0x08,0xD7,0x71,0xEA,0xC3,0x8C,0xEA,0x1D,0xA6};
+
+uint32_t TGetDelegationTokenResp::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;
+
+ bool isset_status = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->status.read(iprot);
+ isset_status = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->delegationToken);
+ this->__isset.delegationToken = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_status)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TGetDelegationTokenResp::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TGetDelegationTokenResp");
+
+ xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->status.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.delegationToken) {
+ xfer += oprot->writeFieldBegin("delegationToken", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->delegationToken);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TGetDelegationTokenResp &a, TGetDelegationTokenResp &b) {
+ using ::std::swap;
+ swap(a.status, b.status);
+ swap(a.delegationToken, b.delegationToken);
+ swap(a.__isset, b.__isset);
+}
+
+TGetDelegationTokenResp::TGetDelegationTokenResp(const TGetDelegationTokenResp& other284) {
+ status = other284.status;
+ delegationToken = other284.delegationToken;
+ __isset = other284.__isset;
+}
+TGetDelegationTokenResp& TGetDelegationTokenResp::operator=(const TGetDelegationTokenResp& other285) {
+ status = other285.status;
+ delegationToken = other285.delegationToken;
+ __isset = other285.__isset;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TGetDelegationTokenResp& obj) {
+ using apache::thrift::to_string;
+ out << "TGetDelegationTokenResp(";
+ out << "status=" << to_string(obj.status);
+ out << ", " << "delegationToken="; (obj.__isset.delegationToken ? (out << to_string(obj.delegationToken)) : (out << ""));
+ out << ")";
+ return out;
+}
+
+
+TCancelDelegationTokenReq::~TCancelDelegationTokenReq() throw() {
+}
+
+
+void TCancelDelegationTokenReq::__set_sessionHandle(const TSessionHandle& val) {
+ this->sessionHandle = val;
+}
+
+void TCancelDelegationTokenReq::__set_delegationToken(const std::string& val) {
+ this->delegationToken = val;
+}
+
+const char* TCancelDelegationTokenReq::ascii_fingerprint = "1A3D66269336B7EC66998BFE1BECDE75";
+const uint8_t TCancelDelegationTokenReq::binary_fingerprint[16] = {0x1A,0x3D,0x66,0x26,0x93,0x36,0xB7,0xEC,0x66,0x99,0x8B,0xFE,0x1B,0xEC,0xDE,0x75};
+
+uint32_t TCancelDelegationTokenReq::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;
+
+ bool isset_sessionHandle = false;
+ bool isset_delegationToken = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->sessionHandle.read(iprot);
+ isset_sessionHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->delegationToken);
+ isset_delegationToken = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_sessionHandle)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_delegationToken)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TCancelDelegationTokenReq::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCancelDelegationTokenReq");
+
+ xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->sessionHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("delegationToken", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->delegationToken);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TCancelDelegationTokenReq &a, TCancelDelegationTokenReq &b) {
+ using ::std::swap;
+ swap(a.sessionHandle, b.sessionHandle);
+ swap(a.delegationToken, b.delegationToken);
+}
+
+TCancelDelegationTokenReq::TCancelDelegationTokenReq(const TCancelDelegationTokenReq& other286) {
+ sessionHandle = other286.sessionHandle;
+ delegationToken = other286.delegationToken;
+}
+TCancelDelegationTokenReq& TCancelDelegationTokenReq::operator=(const TCancelDelegationTokenReq& other287) {
+ sessionHandle = other287.sessionHandle;
+ delegationToken = other287.delegationToken;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TCancelDelegationTokenReq& obj) {
+ using apache::thrift::to_string;
+ out << "TCancelDelegationTokenReq(";
+ out << "sessionHandle=" << to_string(obj.sessionHandle);
+ out << ", " << "delegationToken=" << to_string(obj.delegationToken);
+ out << ")";
+ return out;
+}
+
+
+TCancelDelegationTokenResp::~TCancelDelegationTokenResp() throw() {
+}
+
+
+void TCancelDelegationTokenResp::__set_status(const TStatus& val) {
+ this->status = val;
+}
+
+const char* TCancelDelegationTokenResp::ascii_fingerprint = "7142E89F09DC7C5F6FA916C7393F46C2";
+const uint8_t TCancelDelegationTokenResp::binary_fingerprint[16] = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2};
+
+uint32_t TCancelDelegationTokenResp::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;
+
+ bool isset_status = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->status.read(iprot);
+ isset_status = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_status)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TCancelDelegationTokenResp::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TCancelDelegationTokenResp");
+
+ xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->status.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TCancelDelegationTokenResp &a, TCancelDelegationTokenResp &b) {
+ using ::std::swap;
+ swap(a.status, b.status);
+}
+
+TCancelDelegationTokenResp::TCancelDelegationTokenResp(const TCancelDelegationTokenResp& other288) {
+ status = other288.status;
+}
+TCancelDelegationTokenResp& TCancelDelegationTokenResp::operator=(const TCancelDelegationTokenResp& other289) {
+ status = other289.status;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TCancelDelegationTokenResp& obj) {
+ using apache::thrift::to_string;
+ out << "TCancelDelegationTokenResp(";
+ out << "status=" << to_string(obj.status);
+ out << ")";
+ return out;
+}
+
+
+TRenewDelegationTokenReq::~TRenewDelegationTokenReq() throw() {
+}
+
+
+void TRenewDelegationTokenReq::__set_sessionHandle(const TSessionHandle& val) {
+ this->sessionHandle = val;
+}
+
+void TRenewDelegationTokenReq::__set_delegationToken(const std::string& val) {
+ this->delegationToken = val;
+}
+
+const char* TRenewDelegationTokenReq::ascii_fingerprint = "1A3D66269336B7EC66998BFE1BECDE75";
+const uint8_t TRenewDelegationTokenReq::binary_fingerprint[16] = {0x1A,0x3D,0x66,0x26,0x93,0x36,0xB7,0xEC,0x66,0x99,0x8B,0xFE,0x1B,0xEC,0xDE,0x75};
+
+uint32_t TRenewDelegationTokenReq::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;
+
+ bool isset_sessionHandle = false;
+ bool isset_delegationToken = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->sessionHandle.read(iprot);
+ isset_sessionHandle = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->delegationToken);
+ isset_delegationToken = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_sessionHandle)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_delegationToken)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TRenewDelegationTokenReq::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TRenewDelegationTokenReq");
+
+ xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->sessionHandle.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("delegationToken", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->delegationToken);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TRenewDelegationTokenReq &a, TRenewDelegationTokenReq &b) {
+ using ::std::swap;
+ swap(a.sessionHandle, b.sessionHandle);
+ swap(a.delegationToken, b.delegationToken);
+}
+
+TRenewDelegationTokenReq::TRenewDelegationTokenReq(const TRenewDelegationTokenReq& other290) {
+ sessionHandle = other290.sessionHandle;
+ delegationToken = other290.delegationToken;
+}
+TRenewDelegationTokenReq& TRenewDelegationTokenReq::operator=(const TRenewDelegationTokenReq& other291) {
+ sessionHandle = other291.sessionHandle;
+ delegationToken = other291.delegationToken;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TRenewDelegationTokenReq& obj) {
+ using apache::thrift::to_string;
+ out << "TRenewDelegationTokenReq(";
+ out << "sessionHandle=" << to_string(obj.sessionHandle);
+ out << ", " << "delegationToken=" << to_string(obj.delegationToken);
+ out << ")";
+ return out;
+}
+
+
+TRenewDelegationTokenResp::~TRenewDelegationTokenResp() throw() {
+}
+
+
+void TRenewDelegationTokenResp::__set_status(const TStatus& val) {
+ this->status = val;
+}
+
+const char* TRenewDelegationTokenResp::ascii_fingerprint = "7142E89F09DC7C5F6FA916C7393F46C2";
+const uint8_t TRenewDelegationTokenResp::binary_fingerprint[16] = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2};
+
+uint32_t TRenewDelegationTokenResp::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;
+
+ bool isset_status = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->status.read(iprot);
+ isset_status = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_status)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t TRenewDelegationTokenResp::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ oprot->incrementRecursionDepth();
+ xfer += oprot->writeStructBegin("TRenewDelegationTokenResp");
+
+ xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->status.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ oprot->decrementRecursionDepth();
+ return xfer;
+}
+
+void swap(TRenewDelegationTokenResp &a, TRenewDelegationTokenResp &b) {
+ using ::std::swap;
+ swap(a.status, b.status);
+}
+
+TRenewDelegationTokenResp::TRenewDelegationTokenResp(const TRenewDelegationTokenResp& other292) {
+ status = other292.status;
+}
+TRenewDelegationTokenResp& TRenewDelegationTokenResp::operator=(const TRenewDelegationTokenResp& other293) {
+ status = other293.status;
+ return *this;
+}
+std::ostream& operator<<(std::ostream& out, const TRenewDelegationTokenResp& obj) {
+ using apache::thrift::to_string;
+ out << "TRenewDelegationTokenResp(";
+ out << "status=" << to_string(obj.status);
+ out << ")";
+ return out;
+}
+
+}}}}} // namespace
diff --git service-rpc/src/gen/thrift/gen-cpp/TCLIService_types.h service-rpc/src/gen/thrift/gen-cpp/TCLIService_types.h
new file mode 100644
index 0000000..0f83649
--- /dev/null
+++ service-rpc/src/gen/thrift/gen-cpp/TCLIService_types.h
@@ -0,0 +1,3919 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.2)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+#ifndef TCLIService_TYPES_H
+#define TCLIService_TYPES_H
+
+#include
+
+#include
+#include
+#include
+#include
+
+#include
+
+
+namespace apache { namespace hive { namespace service { namespace rpc { namespace thrift {
+
+struct TProtocolVersion {
+ enum type {
+ HIVE_CLI_SERVICE_PROTOCOL_V1 = 0,
+ HIVE_CLI_SERVICE_PROTOCOL_V2 = 1,
+ HIVE_CLI_SERVICE_PROTOCOL_V3 = 2,
+ HIVE_CLI_SERVICE_PROTOCOL_V4 = 3,
+ HIVE_CLI_SERVICE_PROTOCOL_V5 = 4,
+ HIVE_CLI_SERVICE_PROTOCOL_V6 = 5,
+ HIVE_CLI_SERVICE_PROTOCOL_V7 = 6,
+ HIVE_CLI_SERVICE_PROTOCOL_V8 = 7
+ };
+};
+
+extern const std::map _TProtocolVersion_VALUES_TO_NAMES;
+
+struct TTypeId {
+ enum type {
+ BOOLEAN_TYPE = 0,
+ TINYINT_TYPE = 1,
+ SMALLINT_TYPE = 2,
+ INT_TYPE = 3,
+ BIGINT_TYPE = 4,
+ FLOAT_TYPE = 5,
+ DOUBLE_TYPE = 6,
+ STRING_TYPE = 7,
+ TIMESTAMP_TYPE = 8,
+ BINARY_TYPE = 9,
+ ARRAY_TYPE = 10,
+ MAP_TYPE = 11,
+ STRUCT_TYPE = 12,
+ UNION_TYPE = 13,
+ USER_DEFINED_TYPE = 14,
+ DECIMAL_TYPE = 15,
+ NULL_TYPE = 16,
+ DATE_TYPE = 17,
+ VARCHAR_TYPE = 18,
+ CHAR_TYPE = 19,
+ INTERVAL_YEAR_MONTH_TYPE = 20,
+ INTERVAL_DAY_TIME_TYPE = 21
+ };
+};
+
+extern const std::map _TTypeId_VALUES_TO_NAMES;
+
+struct TStatusCode {
+ enum type {
+ SUCCESS_STATUS = 0,
+ SUCCESS_WITH_INFO_STATUS = 1,
+ STILL_EXECUTING_STATUS = 2,
+ ERROR_STATUS = 3,
+ INVALID_HANDLE_STATUS = 4
+ };
+};
+
+extern const std::map _TStatusCode_VALUES_TO_NAMES;
+
+struct TOperationState {
+ enum type {
+ INITIALIZED_STATE = 0,
+ RUNNING_STATE = 1,
+ FINISHED_STATE = 2,
+ CANCELED_STATE = 3,
+ CLOSED_STATE = 4,
+ ERROR_STATE = 5,
+ UKNOWN_STATE = 6,
+ PENDING_STATE = 7
+ };
+};
+
+extern const std::map _TOperationState_VALUES_TO_NAMES;
+
+struct TOperationType {
+ enum type {
+ EXECUTE_STATEMENT = 0,
+ GET_TYPE_INFO = 1,
+ GET_CATALOGS = 2,
+ GET_SCHEMAS = 3,
+ GET_TABLES = 4,
+ GET_TABLE_TYPES = 5,
+ GET_COLUMNS = 6,
+ GET_FUNCTIONS = 7,
+ UNKNOWN = 8
+ };
+};
+
+extern const std::map _TOperationType_VALUES_TO_NAMES;
+
+struct TGetInfoType {
+ enum type {
+ CLI_MAX_DRIVER_CONNECTIONS = 0,
+ CLI_MAX_CONCURRENT_ACTIVITIES = 1,
+ CLI_DATA_SOURCE_NAME = 2,
+ CLI_FETCH_DIRECTION = 8,
+ CLI_SERVER_NAME = 13,
+ CLI_SEARCH_PATTERN_ESCAPE = 14,
+ CLI_DBMS_NAME = 17,
+ CLI_DBMS_VER = 18,
+ CLI_ACCESSIBLE_TABLES = 19,
+ CLI_ACCESSIBLE_PROCEDURES = 20,
+ CLI_CURSOR_COMMIT_BEHAVIOR = 23,
+ CLI_DATA_SOURCE_READ_ONLY = 25,
+ CLI_DEFAULT_TXN_ISOLATION = 26,
+ CLI_IDENTIFIER_CASE = 28,
+ CLI_IDENTIFIER_QUOTE_CHAR = 29,
+ CLI_MAX_COLUMN_NAME_LEN = 30,
+ CLI_MAX_CURSOR_NAME_LEN = 31,
+ CLI_MAX_SCHEMA_NAME_LEN = 32,
+ CLI_MAX_CATALOG_NAME_LEN = 34,
+ CLI_MAX_TABLE_NAME_LEN = 35,
+ CLI_SCROLL_CONCURRENCY = 43,
+ CLI_TXN_CAPABLE = 46,
+ CLI_USER_NAME = 47,
+ CLI_TXN_ISOLATION_OPTION = 72,
+ CLI_INTEGRITY = 73,
+ CLI_GETDATA_EXTENSIONS = 81,
+ CLI_NULL_COLLATION = 85,
+ CLI_ALTER_TABLE = 86,
+ CLI_ORDER_BY_COLUMNS_IN_SELECT = 90,
+ CLI_SPECIAL_CHARACTERS = 94,
+ CLI_MAX_COLUMNS_IN_GROUP_BY = 97,
+ CLI_MAX_COLUMNS_IN_INDEX = 98,
+ CLI_MAX_COLUMNS_IN_ORDER_BY = 99,
+ CLI_MAX_COLUMNS_IN_SELECT = 100,
+ CLI_MAX_COLUMNS_IN_TABLE = 101,
+ CLI_MAX_INDEX_SIZE = 102,
+ CLI_MAX_ROW_SIZE = 104,
+ CLI_MAX_STATEMENT_LEN = 105,
+ CLI_MAX_TABLES_IN_SELECT = 106,
+ CLI_MAX_USER_NAME_LEN = 107,
+ CLI_OJ_CAPABILITIES = 115,
+ CLI_XOPEN_CLI_YEAR = 10000,
+ CLI_CURSOR_SENSITIVITY = 10001,
+ CLI_DESCRIBE_PARAMETER = 10002,
+ CLI_CATALOG_NAME = 10003,
+ CLI_COLLATION_SEQ = 10004,
+ CLI_MAX_IDENTIFIER_LEN = 10005
+ };
+};
+
+extern const std::map _TGetInfoType_VALUES_TO_NAMES;
+
+struct TFetchOrientation {
+ enum type {
+ FETCH_NEXT = 0,
+ FETCH_PRIOR = 1,
+ FETCH_RELATIVE = 2,
+ FETCH_ABSOLUTE = 3,
+ FETCH_FIRST = 4,
+ FETCH_LAST = 5
+ };
+};
+
+extern const std::map _TFetchOrientation_VALUES_TO_NAMES;
+
+typedef int32_t TTypeEntryPtr;
+
+typedef std::string TIdentifier;
+
+typedef std::string TPattern;
+
+typedef std::string TPatternOrIdentifier;
+
+class TTypeQualifierValue;
+
+class TTypeQualifiers;
+
+class TPrimitiveTypeEntry;
+
+class TArrayTypeEntry;
+
+class TMapTypeEntry;
+
+class TStructTypeEntry;
+
+class TUnionTypeEntry;
+
+class TUserDefinedTypeEntry;
+
+class TTypeEntry;
+
+class TTypeDesc;
+
+class TColumnDesc;
+
+class TTableSchema;
+
+class TBoolValue;
+
+class TByteValue;
+
+class TI16Value;
+
+class TI32Value;
+
+class TI64Value;
+
+class TDoubleValue;
+
+class TStringValue;
+
+class TColumnValue;
+
+class TRow;
+
+class TBoolColumn;
+
+class TByteColumn;
+
+class TI16Column;
+
+class TI32Column;
+
+class TI64Column;
+
+class TDoubleColumn;
+
+class TStringColumn;
+
+class TBinaryColumn;
+
+class TColumn;
+
+class TRowSet;
+
+class TStatus;
+
+class THandleIdentifier;
+
+class TSessionHandle;
+
+class TOperationHandle;
+
+class TOpenSessionReq;
+
+class TOpenSessionResp;
+
+class TCloseSessionReq;
+
+class TCloseSessionResp;
+
+class TGetInfoValue;
+
+class TGetInfoReq;
+
+class TGetInfoResp;
+
+class TExecuteStatementReq;
+
+class TExecuteStatementResp;
+
+class TGetTypeInfoReq;
+
+class TGetTypeInfoResp;
+
+class TGetCatalogsReq;
+
+class TGetCatalogsResp;
+
+class TGetSchemasReq;
+
+class TGetSchemasResp;
+
+class TGetTablesReq;
+
+class TGetTablesResp;
+
+class TGetTableTypesReq;
+
+class TGetTableTypesResp;
+
+class TGetColumnsReq;
+
+class TGetColumnsResp;
+
+class TGetFunctionsReq;
+
+class TGetFunctionsResp;
+
+class TGetOperationStatusReq;
+
+class TGetOperationStatusResp;
+
+class TCancelOperationReq;
+
+class TCancelOperationResp;
+
+class TCloseOperationReq;
+
+class TCloseOperationResp;
+
+class TGetResultSetMetadataReq;
+
+class TGetResultSetMetadataResp;
+
+class TFetchResultsReq;
+
+class TFetchResultsResp;
+
+class TGetDelegationTokenReq;
+
+class TGetDelegationTokenResp;
+
+class TCancelDelegationTokenReq;
+
+class TCancelDelegationTokenResp;
+
+class TRenewDelegationTokenReq;
+
+class TRenewDelegationTokenResp;
+
+typedef struct _TTypeQualifierValue__isset {
+ _TTypeQualifierValue__isset() : i32Value(false), stringValue(false) {}
+ bool i32Value :1;
+ bool stringValue :1;
+} _TTypeQualifierValue__isset;
+
+class TTypeQualifierValue {
+ public:
+
+ static const char* ascii_fingerprint; // = "A7801670116150C65ACA43E6F679BA79";
+ static const uint8_t binary_fingerprint[16]; // = {0xA7,0x80,0x16,0x70,0x11,0x61,0x50,0xC6,0x5A,0xCA,0x43,0xE6,0xF6,0x79,0xBA,0x79};
+
+ TTypeQualifierValue(const TTypeQualifierValue&);
+ TTypeQualifierValue& operator=(const TTypeQualifierValue&);
+ TTypeQualifierValue() : i32Value(0), stringValue() {
+ }
+
+ virtual ~TTypeQualifierValue() throw();
+ int32_t i32Value;
+ std::string stringValue;
+
+ _TTypeQualifierValue__isset __isset;
+
+ void __set_i32Value(const int32_t val);
+
+ void __set_stringValue(const std::string& val);
+
+ bool operator == (const TTypeQualifierValue & rhs) const
+ {
+ if (__isset.i32Value != rhs.__isset.i32Value)
+ return false;
+ else if (__isset.i32Value && !(i32Value == rhs.i32Value))
+ return false;
+ if (__isset.stringValue != rhs.__isset.stringValue)
+ return false;
+ else if (__isset.stringValue && !(stringValue == rhs.stringValue))
+ return false;
+ return true;
+ }
+ bool operator != (const TTypeQualifierValue &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TTypeQualifierValue & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TTypeQualifierValue& obj);
+};
+
+void swap(TTypeQualifierValue &a, TTypeQualifierValue &b);
+
+
+class TTypeQualifiers {
+ public:
+
+ static const char* ascii_fingerprint; // = "6C72981CFA989214285648FA8C196C47";
+ static const uint8_t binary_fingerprint[16]; // = {0x6C,0x72,0x98,0x1C,0xFA,0x98,0x92,0x14,0x28,0x56,0x48,0xFA,0x8C,0x19,0x6C,0x47};
+
+ TTypeQualifiers(const TTypeQualifiers&);
+ TTypeQualifiers& operator=(const TTypeQualifiers&);
+ TTypeQualifiers() {
+ }
+
+ virtual ~TTypeQualifiers() throw();
+ std::map qualifiers;
+
+ void __set_qualifiers(const std::map & val);
+
+ bool operator == (const TTypeQualifiers & rhs) const
+ {
+ if (!(qualifiers == rhs.qualifiers))
+ return false;
+ return true;
+ }
+ bool operator != (const TTypeQualifiers &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TTypeQualifiers & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TTypeQualifiers& obj);
+};
+
+void swap(TTypeQualifiers &a, TTypeQualifiers &b);
+
+typedef struct _TPrimitiveTypeEntry__isset {
+ _TPrimitiveTypeEntry__isset() : typeQualifiers(false) {}
+ bool typeQualifiers :1;
+} _TPrimitiveTypeEntry__isset;
+
+class TPrimitiveTypeEntry {
+ public:
+
+ static const char* ascii_fingerprint; // = "755674F6A5C8EB47868686AE386FBC1C";
+ static const uint8_t binary_fingerprint[16]; // = {0x75,0x56,0x74,0xF6,0xA5,0xC8,0xEB,0x47,0x86,0x86,0x86,0xAE,0x38,0x6F,0xBC,0x1C};
+
+ TPrimitiveTypeEntry(const TPrimitiveTypeEntry&);
+ TPrimitiveTypeEntry& operator=(const TPrimitiveTypeEntry&);
+ TPrimitiveTypeEntry() : type((TTypeId::type)0) {
+ }
+
+ virtual ~TPrimitiveTypeEntry() throw();
+ TTypeId::type type;
+ TTypeQualifiers typeQualifiers;
+
+ _TPrimitiveTypeEntry__isset __isset;
+
+ void __set_type(const TTypeId::type val);
+
+ void __set_typeQualifiers(const TTypeQualifiers& val);
+
+ bool operator == (const TPrimitiveTypeEntry & rhs) const
+ {
+ if (!(type == rhs.type))
+ return false;
+ if (__isset.typeQualifiers != rhs.__isset.typeQualifiers)
+ return false;
+ else if (__isset.typeQualifiers && !(typeQualifiers == rhs.typeQualifiers))
+ return false;
+ return true;
+ }
+ bool operator != (const TPrimitiveTypeEntry &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TPrimitiveTypeEntry & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TPrimitiveTypeEntry& obj);
+};
+
+void swap(TPrimitiveTypeEntry &a, TPrimitiveTypeEntry &b);
+
+
+class TArrayTypeEntry {
+ public:
+
+ static const char* ascii_fingerprint; // = "E86CACEB22240450EDCBEFC3A83970E4";
+ static const uint8_t binary_fingerprint[16]; // = {0xE8,0x6C,0xAC,0xEB,0x22,0x24,0x04,0x50,0xED,0xCB,0xEF,0xC3,0xA8,0x39,0x70,0xE4};
+
+ TArrayTypeEntry(const TArrayTypeEntry&);
+ TArrayTypeEntry& operator=(const TArrayTypeEntry&);
+ TArrayTypeEntry() : objectTypePtr(0) {
+ }
+
+ virtual ~TArrayTypeEntry() throw();
+ TTypeEntryPtr objectTypePtr;
+
+ void __set_objectTypePtr(const TTypeEntryPtr val);
+
+ bool operator == (const TArrayTypeEntry & rhs) const
+ {
+ if (!(objectTypePtr == rhs.objectTypePtr))
+ return false;
+ return true;
+ }
+ bool operator != (const TArrayTypeEntry &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TArrayTypeEntry & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TArrayTypeEntry& obj);
+};
+
+void swap(TArrayTypeEntry &a, TArrayTypeEntry &b);
+
+
+class TMapTypeEntry {
+ public:
+
+ static const char* ascii_fingerprint; // = "989D1F1AE8D148D5E2119FFEC4BBBEE3";
+ static const uint8_t binary_fingerprint[16]; // = {0x98,0x9D,0x1F,0x1A,0xE8,0xD1,0x48,0xD5,0xE2,0x11,0x9F,0xFE,0xC4,0xBB,0xBE,0xE3};
+
+ TMapTypeEntry(const TMapTypeEntry&);
+ TMapTypeEntry& operator=(const TMapTypeEntry&);
+ TMapTypeEntry() : keyTypePtr(0), valueTypePtr(0) {
+ }
+
+ virtual ~TMapTypeEntry() throw();
+ TTypeEntryPtr keyTypePtr;
+ TTypeEntryPtr valueTypePtr;
+
+ void __set_keyTypePtr(const TTypeEntryPtr val);
+
+ void __set_valueTypePtr(const TTypeEntryPtr val);
+
+ bool operator == (const TMapTypeEntry & rhs) const
+ {
+ if (!(keyTypePtr == rhs.keyTypePtr))
+ return false;
+ if (!(valueTypePtr == rhs.valueTypePtr))
+ return false;
+ return true;
+ }
+ bool operator != (const TMapTypeEntry &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TMapTypeEntry & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TMapTypeEntry& obj);
+};
+
+void swap(TMapTypeEntry &a, TMapTypeEntry &b);
+
+
+class TStructTypeEntry {
+ public:
+
+ static const char* ascii_fingerprint; // = "91F548CA159B4AB4291F5741AC161402";
+ static const uint8_t binary_fingerprint[16]; // = {0x91,0xF5,0x48,0xCA,0x15,0x9B,0x4A,0xB4,0x29,0x1F,0x57,0x41,0xAC,0x16,0x14,0x02};
+
+ TStructTypeEntry(const TStructTypeEntry&);
+ TStructTypeEntry& operator=(const TStructTypeEntry&);
+ TStructTypeEntry() {
+ }
+
+ virtual ~TStructTypeEntry() throw();
+ std::map nameToTypePtr;
+
+ void __set_nameToTypePtr(const std::map & val);
+
+ bool operator == (const TStructTypeEntry & rhs) const
+ {
+ if (!(nameToTypePtr == rhs.nameToTypePtr))
+ return false;
+ return true;
+ }
+ bool operator != (const TStructTypeEntry &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TStructTypeEntry & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TStructTypeEntry& obj);
+};
+
+void swap(TStructTypeEntry &a, TStructTypeEntry &b);
+
+
+class TUnionTypeEntry {
+ public:
+
+ static const char* ascii_fingerprint; // = "91F548CA159B4AB4291F5741AC161402";
+ static const uint8_t binary_fingerprint[16]; // = {0x91,0xF5,0x48,0xCA,0x15,0x9B,0x4A,0xB4,0x29,0x1F,0x57,0x41,0xAC,0x16,0x14,0x02};
+
+ TUnionTypeEntry(const TUnionTypeEntry&);
+ TUnionTypeEntry& operator=(const TUnionTypeEntry&);
+ TUnionTypeEntry() {
+ }
+
+ virtual ~TUnionTypeEntry() throw();
+ std::map nameToTypePtr;
+
+ void __set_nameToTypePtr(const std::map & val);
+
+ bool operator == (const TUnionTypeEntry & rhs) const
+ {
+ if (!(nameToTypePtr == rhs.nameToTypePtr))
+ return false;
+ return true;
+ }
+ bool operator != (const TUnionTypeEntry &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TUnionTypeEntry & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TUnionTypeEntry& obj);
+};
+
+void swap(TUnionTypeEntry &a, TUnionTypeEntry &b);
+
+
+class TUserDefinedTypeEntry {
+ public:
+
+ static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1";
+ static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
+
+ TUserDefinedTypeEntry(const TUserDefinedTypeEntry&);
+ TUserDefinedTypeEntry& operator=(const TUserDefinedTypeEntry&);
+ TUserDefinedTypeEntry() : typeClassName() {
+ }
+
+ virtual ~TUserDefinedTypeEntry() throw();
+ std::string typeClassName;
+
+ void __set_typeClassName(const std::string& val);
+
+ bool operator == (const TUserDefinedTypeEntry & rhs) const
+ {
+ if (!(typeClassName == rhs.typeClassName))
+ return false;
+ return true;
+ }
+ bool operator != (const TUserDefinedTypeEntry &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TUserDefinedTypeEntry & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TUserDefinedTypeEntry& obj);
+};
+
+void swap(TUserDefinedTypeEntry &a, TUserDefinedTypeEntry &b);
+
+typedef struct _TTypeEntry__isset {
+ _TTypeEntry__isset() : primitiveEntry(false), arrayEntry(false), mapEntry(false), structEntry(false), unionEntry(false), userDefinedTypeEntry(false) {}
+ bool primitiveEntry :1;
+ bool arrayEntry :1;
+ bool mapEntry :1;
+ bool structEntry :1;
+ bool unionEntry :1;
+ bool userDefinedTypeEntry :1;
+} _TTypeEntry__isset;
+
+class TTypeEntry {
+ public:
+
+ static const char* ascii_fingerprint; // = "2FE56D9097E325DAA7E933738C6D325F";
+ static const uint8_t binary_fingerprint[16]; // = {0x2F,0xE5,0x6D,0x90,0x97,0xE3,0x25,0xDA,0xA7,0xE9,0x33,0x73,0x8C,0x6D,0x32,0x5F};
+
+ TTypeEntry(const TTypeEntry&);
+ TTypeEntry& operator=(const TTypeEntry&);
+ TTypeEntry() {
+ }
+
+ virtual ~TTypeEntry() throw();
+ TPrimitiveTypeEntry primitiveEntry;
+ TArrayTypeEntry arrayEntry;
+ TMapTypeEntry mapEntry;
+ TStructTypeEntry structEntry;
+ TUnionTypeEntry unionEntry;
+ TUserDefinedTypeEntry userDefinedTypeEntry;
+
+ _TTypeEntry__isset __isset;
+
+ void __set_primitiveEntry(const TPrimitiveTypeEntry& val);
+
+ void __set_arrayEntry(const TArrayTypeEntry& val);
+
+ void __set_mapEntry(const TMapTypeEntry& val);
+
+ void __set_structEntry(const TStructTypeEntry& val);
+
+ void __set_unionEntry(const TUnionTypeEntry& val);
+
+ void __set_userDefinedTypeEntry(const TUserDefinedTypeEntry& val);
+
+ bool operator == (const TTypeEntry & rhs) const
+ {
+ if (!(primitiveEntry == rhs.primitiveEntry))
+ return false;
+ if (!(arrayEntry == rhs.arrayEntry))
+ return false;
+ if (!(mapEntry == rhs.mapEntry))
+ return false;
+ if (!(structEntry == rhs.structEntry))
+ return false;
+ if (!(unionEntry == rhs.unionEntry))
+ return false;
+ if (!(userDefinedTypeEntry == rhs.userDefinedTypeEntry))
+ return false;
+ return true;
+ }
+ bool operator != (const TTypeEntry &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TTypeEntry & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TTypeEntry& obj);
+};
+
+void swap(TTypeEntry &a, TTypeEntry &b);
+
+
+class TTypeDesc {
+ public:
+
+ static const char* ascii_fingerprint; // = "90B3C5A0B73419A84E85E0E48C452AA5";
+ static const uint8_t binary_fingerprint[16]; // = {0x90,0xB3,0xC5,0xA0,0xB7,0x34,0x19,0xA8,0x4E,0x85,0xE0,0xE4,0x8C,0x45,0x2A,0xA5};
+
+ TTypeDesc(const TTypeDesc&);
+ TTypeDesc& operator=(const TTypeDesc&);
+ TTypeDesc() {
+ }
+
+ virtual ~TTypeDesc() throw();
+ std::vector types;
+
+ void __set_types(const std::vector & val);
+
+ bool operator == (const TTypeDesc & rhs) const
+ {
+ if (!(types == rhs.types))
+ return false;
+ return true;
+ }
+ bool operator != (const TTypeDesc &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TTypeDesc & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TTypeDesc& obj);
+};
+
+void swap(TTypeDesc &a, TTypeDesc &b);
+
+typedef struct _TColumnDesc__isset {
+ _TColumnDesc__isset() : comment(false) {}
+ bool comment :1;
+} _TColumnDesc__isset;
+
+class TColumnDesc {
+ public:
+
+ static const char* ascii_fingerprint; // = "EABED9009D5FCABFCA65612069F2A849";
+ static const uint8_t binary_fingerprint[16]; // = {0xEA,0xBE,0xD9,0x00,0x9D,0x5F,0xCA,0xBF,0xCA,0x65,0x61,0x20,0x69,0xF2,0xA8,0x49};
+
+ TColumnDesc(const TColumnDesc&);
+ TColumnDesc& operator=(const TColumnDesc&);
+ TColumnDesc() : columnName(), position(0), comment() {
+ }
+
+ virtual ~TColumnDesc() throw();
+ std::string columnName;
+ TTypeDesc typeDesc;
+ int32_t position;
+ std::string comment;
+
+ _TColumnDesc__isset __isset;
+
+ void __set_columnName(const std::string& val);
+
+ void __set_typeDesc(const TTypeDesc& val);
+
+ void __set_position(const int32_t val);
+
+ void __set_comment(const std::string& val);
+
+ bool operator == (const TColumnDesc & rhs) const
+ {
+ if (!(columnName == rhs.columnName))
+ return false;
+ if (!(typeDesc == rhs.typeDesc))
+ return false;
+ if (!(position == rhs.position))
+ return false;
+ if (__isset.comment != rhs.__isset.comment)
+ return false;
+ else if (__isset.comment && !(comment == rhs.comment))
+ return false;
+ return true;
+ }
+ bool operator != (const TColumnDesc &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TColumnDesc & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TColumnDesc& obj);
+};
+
+void swap(TColumnDesc &a, TColumnDesc &b);
+
+
+class TTableSchema {
+ public:
+
+ static const char* ascii_fingerprint; // = "7A1811E49313E5977107FC667B20E39D";
+ static const uint8_t binary_fingerprint[16]; // = {0x7A,0x18,0x11,0xE4,0x93,0x13,0xE5,0x97,0x71,0x07,0xFC,0x66,0x7B,0x20,0xE3,0x9D};
+
+ TTableSchema(const TTableSchema&);
+ TTableSchema& operator=(const TTableSchema&);
+ TTableSchema() {
+ }
+
+ virtual ~TTableSchema() throw();
+ std::vector columns;
+
+ void __set_columns(const std::vector & val);
+
+ bool operator == (const TTableSchema & rhs) const
+ {
+ if (!(columns == rhs.columns))
+ return false;
+ return true;
+ }
+ bool operator != (const TTableSchema &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TTableSchema & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TTableSchema& obj);
+};
+
+void swap(TTableSchema &a, TTableSchema &b);
+
+typedef struct _TBoolValue__isset {
+ _TBoolValue__isset() : value(false) {}
+ bool value :1;
+} _TBoolValue__isset;
+
+class TBoolValue {
+ public:
+
+ static const char* ascii_fingerprint; // = "BF054652DEF86253C2BEE7D947F167DD";
+ static const uint8_t binary_fingerprint[16]; // = {0xBF,0x05,0x46,0x52,0xDE,0xF8,0x62,0x53,0xC2,0xBE,0xE7,0xD9,0x47,0xF1,0x67,0xDD};
+
+ TBoolValue(const TBoolValue&);
+ TBoolValue& operator=(const TBoolValue&);
+ TBoolValue() : value(0) {
+ }
+
+ virtual ~TBoolValue() throw();
+ bool value;
+
+ _TBoolValue__isset __isset;
+
+ void __set_value(const bool val);
+
+ bool operator == (const TBoolValue & rhs) const
+ {
+ if (__isset.value != rhs.__isset.value)
+ return false;
+ else if (__isset.value && !(value == rhs.value))
+ return false;
+ return true;
+ }
+ bool operator != (const TBoolValue &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TBoolValue & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TBoolValue& obj);
+};
+
+void swap(TBoolValue &a, TBoolValue &b);
+
+typedef struct _TByteValue__isset {
+ _TByteValue__isset() : value(false) {}
+ bool value :1;
+} _TByteValue__isset;
+
+class TByteValue {
+ public:
+
+ static const char* ascii_fingerprint; // = "9C15298ACB5D04AEA9B52D5DDE6F9208";
+ static const uint8_t binary_fingerprint[16]; // = {0x9C,0x15,0x29,0x8A,0xCB,0x5D,0x04,0xAE,0xA9,0xB5,0x2D,0x5D,0xDE,0x6F,0x92,0x08};
+
+ TByteValue(const TByteValue&);
+ TByteValue& operator=(const TByteValue&);
+ TByteValue() : value(0) {
+ }
+
+ virtual ~TByteValue() throw();
+ int8_t value;
+
+ _TByteValue__isset __isset;
+
+ void __set_value(const int8_t val);
+
+ bool operator == (const TByteValue & rhs) const
+ {
+ if (__isset.value != rhs.__isset.value)
+ return false;
+ else if (__isset.value && !(value == rhs.value))
+ return false;
+ return true;
+ }
+ bool operator != (const TByteValue &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TByteValue & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TByteValue& obj);
+};
+
+void swap(TByteValue &a, TByteValue &b);
+
+typedef struct _TI16Value__isset {
+ _TI16Value__isset() : value(false) {}
+ bool value :1;
+} _TI16Value__isset;
+
+class TI16Value {
+ public:
+
+ static const char* ascii_fingerprint; // = "5DAC9C51C7E1106BF936FC71860BE9D5";
+ static const uint8_t binary_fingerprint[16]; // = {0x5D,0xAC,0x9C,0x51,0xC7,0xE1,0x10,0x6B,0xF9,0x36,0xFC,0x71,0x86,0x0B,0xE9,0xD5};
+
+ TI16Value(const TI16Value&);
+ TI16Value& operator=(const TI16Value&);
+ TI16Value() : value(0) {
+ }
+
+ virtual ~TI16Value() throw();
+ int16_t value;
+
+ _TI16Value__isset __isset;
+
+ void __set_value(const int16_t val);
+
+ bool operator == (const TI16Value & rhs) const
+ {
+ if (__isset.value != rhs.__isset.value)
+ return false;
+ else if (__isset.value && !(value == rhs.value))
+ return false;
+ return true;
+ }
+ bool operator != (const TI16Value &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TI16Value & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TI16Value& obj);
+};
+
+void swap(TI16Value &a, TI16Value &b);
+
+typedef struct _TI32Value__isset {
+ _TI32Value__isset() : value(false) {}
+ bool value :1;
+} _TI32Value__isset;
+
+class TI32Value {
+ public:
+
+ static const char* ascii_fingerprint; // = "E7A96B151330359E84C0A3AC91BCBACD";
+ static const uint8_t binary_fingerprint[16]; // = {0xE7,0xA9,0x6B,0x15,0x13,0x30,0x35,0x9E,0x84,0xC0,0xA3,0xAC,0x91,0xBC,0xBA,0xCD};
+
+ TI32Value(const TI32Value&);
+ TI32Value& operator=(const TI32Value&);
+ TI32Value() : value(0) {
+ }
+
+ virtual ~TI32Value() throw();
+ int32_t value;
+
+ _TI32Value__isset __isset;
+
+ void __set_value(const int32_t val);
+
+ bool operator == (const TI32Value & rhs) const
+ {
+ if (__isset.value != rhs.__isset.value)
+ return false;
+ else if (__isset.value && !(value == rhs.value))
+ return false;
+ return true;
+ }
+ bool operator != (const TI32Value &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TI32Value & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TI32Value& obj);
+};
+
+void swap(TI32Value &a, TI32Value &b);
+
+typedef struct _TI64Value__isset {
+ _TI64Value__isset() : value(false) {}
+ bool value :1;
+} _TI64Value__isset;
+
+class TI64Value {
+ public:
+
+ static const char* ascii_fingerprint; // = "148F3AAAC1D9859963D5E800D187BF26";
+ static const uint8_t binary_fingerprint[16]; // = {0x14,0x8F,0x3A,0xAA,0xC1,0xD9,0x85,0x99,0x63,0xD5,0xE8,0x00,0xD1,0x87,0xBF,0x26};
+
+ TI64Value(const TI64Value&);
+ TI64Value& operator=(const TI64Value&);
+ TI64Value() : value(0) {
+ }
+
+ virtual ~TI64Value() throw();
+ int64_t value;
+
+ _TI64Value__isset __isset;
+
+ void __set_value(const int64_t val);
+
+ bool operator == (const TI64Value & rhs) const
+ {
+ if (__isset.value != rhs.__isset.value)
+ return false;
+ else if (__isset.value && !(value == rhs.value))
+ return false;
+ return true;
+ }
+ bool operator != (const TI64Value &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TI64Value & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TI64Value& obj);
+};
+
+void swap(TI64Value &a, TI64Value &b);
+
+typedef struct _TDoubleValue__isset {
+ _TDoubleValue__isset() : value(false) {}
+ bool value :1;
+} _TDoubleValue__isset;
+
+class TDoubleValue {
+ public:
+
+ static const char* ascii_fingerprint; // = "3586E570A474C4A8603B4FF74903B3A6";
+ static const uint8_t binary_fingerprint[16]; // = {0x35,0x86,0xE5,0x70,0xA4,0x74,0xC4,0xA8,0x60,0x3B,0x4F,0xF7,0x49,0x03,0xB3,0xA6};
+
+ TDoubleValue(const TDoubleValue&);
+ TDoubleValue& operator=(const TDoubleValue&);
+ TDoubleValue() : value(0) {
+ }
+
+ virtual ~TDoubleValue() throw();
+ double value;
+
+ _TDoubleValue__isset __isset;
+
+ void __set_value(const double val);
+
+ bool operator == (const TDoubleValue & rhs) const
+ {
+ if (__isset.value != rhs.__isset.value)
+ return false;
+ else if (__isset.value && !(value == rhs.value))
+ return false;
+ return true;
+ }
+ bool operator != (const TDoubleValue &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TDoubleValue & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TDoubleValue& obj);
+};
+
+void swap(TDoubleValue &a, TDoubleValue &b);
+
+typedef struct _TStringValue__isset {
+ _TStringValue__isset() : value(false) {}
+ bool value :1;
+} _TStringValue__isset;
+
+class TStringValue {
+ public:
+
+ static const char* ascii_fingerprint; // = "66E694018C17E5B65A59AE8F55CCA3CD";
+ static const uint8_t binary_fingerprint[16]; // = {0x66,0xE6,0x94,0x01,0x8C,0x17,0xE5,0xB6,0x5A,0x59,0xAE,0x8F,0x55,0xCC,0xA3,0xCD};
+
+ TStringValue(const TStringValue&);
+ TStringValue& operator=(const TStringValue&);
+ TStringValue() : value() {
+ }
+
+ virtual ~TStringValue() throw();
+ std::string value;
+
+ _TStringValue__isset __isset;
+
+ void __set_value(const std::string& val);
+
+ bool operator == (const TStringValue & rhs) const
+ {
+ if (__isset.value != rhs.__isset.value)
+ return false;
+ else if (__isset.value && !(value == rhs.value))
+ return false;
+ return true;
+ }
+ bool operator != (const TStringValue &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TStringValue & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TStringValue& obj);
+};
+
+void swap(TStringValue &a, TStringValue &b);
+
+typedef struct _TColumnValue__isset {
+ _TColumnValue__isset() : boolVal(false), byteVal(false), i16Val(false), i32Val(false), i64Val(false), doubleVal(false), stringVal(false) {}
+ bool boolVal :1;
+ bool byteVal :1;
+ bool i16Val :1;
+ bool i32Val :1;
+ bool i64Val :1;
+ bool doubleVal :1;
+ bool stringVal :1;
+} _TColumnValue__isset;
+
+class TColumnValue {
+ public:
+
+ static const char* ascii_fingerprint; // = "C2DDD988447EA7999A8285AA38AAE9AD";
+ static const uint8_t binary_fingerprint[16]; // = {0xC2,0xDD,0xD9,0x88,0x44,0x7E,0xA7,0x99,0x9A,0x82,0x85,0xAA,0x38,0xAA,0xE9,0xAD};
+
+ TColumnValue(const TColumnValue&);
+ TColumnValue& operator=(const TColumnValue&);
+ TColumnValue() {
+ }
+
+ virtual ~TColumnValue() throw();
+ TBoolValue boolVal;
+ TByteValue byteVal;
+ TI16Value i16Val;
+ TI32Value i32Val;
+ TI64Value i64Val;
+ TDoubleValue doubleVal;
+ TStringValue stringVal;
+
+ _TColumnValue__isset __isset;
+
+ void __set_boolVal(const TBoolValue& val);
+
+ void __set_byteVal(const TByteValue& val);
+
+ void __set_i16Val(const TI16Value& val);
+
+ void __set_i32Val(const TI32Value& val);
+
+ void __set_i64Val(const TI64Value& val);
+
+ void __set_doubleVal(const TDoubleValue& val);
+
+ void __set_stringVal(const TStringValue& val);
+
+ bool operator == (const TColumnValue & rhs) const
+ {
+ if (!(boolVal == rhs.boolVal))
+ return false;
+ if (!(byteVal == rhs.byteVal))
+ return false;
+ if (!(i16Val == rhs.i16Val))
+ return false;
+ if (!(i32Val == rhs.i32Val))
+ return false;
+ if (!(i64Val == rhs.i64Val))
+ return false;
+ if (!(doubleVal == rhs.doubleVal))
+ return false;
+ if (!(stringVal == rhs.stringVal))
+ return false;
+ return true;
+ }
+ bool operator != (const TColumnValue &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TColumnValue & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TColumnValue& obj);
+};
+
+void swap(TColumnValue &a, TColumnValue &b);
+
+
+class TRow {
+ public:
+
+ static const char* ascii_fingerprint; // = "E73FD1FCA0CA58A669FC3E02FB68D534";
+ static const uint8_t binary_fingerprint[16]; // = {0xE7,0x3F,0xD1,0xFC,0xA0,0xCA,0x58,0xA6,0x69,0xFC,0x3E,0x02,0xFB,0x68,0xD5,0x34};
+
+ TRow(const TRow&);
+ TRow& operator=(const TRow&);
+ TRow() {
+ }
+
+ virtual ~TRow() throw();
+ std::vector colVals;
+
+ void __set_colVals(const std::vector & val);
+
+ bool operator == (const TRow & rhs) const
+ {
+ if (!(colVals == rhs.colVals))
+ return false;
+ return true;
+ }
+ bool operator != (const TRow &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TRow & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TRow& obj);
+};
+
+void swap(TRow &a, TRow &b);
+
+
+class TBoolColumn {
+ public:
+
+ static const char* ascii_fingerprint; // = "F9058324D96DB7F974D8ACDC01C54219";
+ static const uint8_t binary_fingerprint[16]; // = {0xF9,0x05,0x83,0x24,0xD9,0x6D,0xB7,0xF9,0x74,0xD8,0xAC,0xDC,0x01,0xC5,0x42,0x19};
+
+ TBoolColumn(const TBoolColumn&);
+ TBoolColumn& operator=(const TBoolColumn&);
+ TBoolColumn() : nulls() {
+ }
+
+ virtual ~TBoolColumn() throw();
+ std::vector values;
+ std::string nulls;
+
+ void __set_values(const std::vector & val);
+
+ void __set_nulls(const std::string& val);
+
+ bool operator == (const TBoolColumn & rhs) const
+ {
+ if (!(values == rhs.values))
+ return false;
+ if (!(nulls == rhs.nulls))
+ return false;
+ return true;
+ }
+ bool operator != (const TBoolColumn &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TBoolColumn & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TBoolColumn& obj);
+};
+
+void swap(TBoolColumn &a, TBoolColumn &b);
+
+
+class TByteColumn {
+ public:
+
+ static const char* ascii_fingerprint; // = "1CB300106BAA463A70BB2A2395900F48";
+ static const uint8_t binary_fingerprint[16]; // = {0x1C,0xB3,0x00,0x10,0x6B,0xAA,0x46,0x3A,0x70,0xBB,0x2A,0x23,0x95,0x90,0x0F,0x48};
+
+ TByteColumn(const TByteColumn&);
+ TByteColumn& operator=(const TByteColumn&);
+ TByteColumn() : nulls() {
+ }
+
+ virtual ~TByteColumn() throw();
+ std::vector values;
+ std::string nulls;
+
+ void __set_values(const std::vector & val);
+
+ void __set_nulls(const std::string& val);
+
+ bool operator == (const TByteColumn & rhs) const
+ {
+ if (!(values == rhs.values))
+ return false;
+ if (!(nulls == rhs.nulls))
+ return false;
+ return true;
+ }
+ bool operator != (const TByteColumn &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TByteColumn & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TByteColumn& obj);
+};
+
+void swap(TByteColumn &a, TByteColumn &b);
+
+
+class TI16Column {
+ public:
+
+ static const char* ascii_fingerprint; // = "6574CDB1F121C8DB47FB257A3F104BDB";
+ static const uint8_t binary_fingerprint[16]; // = {0x65,0x74,0xCD,0xB1,0xF1,0x21,0xC8,0xDB,0x47,0xFB,0x25,0x7A,0x3F,0x10,0x4B,0xDB};
+
+ TI16Column(const TI16Column&);
+ TI16Column& operator=(const TI16Column&);
+ TI16Column() : nulls() {
+ }
+
+ virtual ~TI16Column() throw();
+ std::vector values;
+ std::string nulls;
+
+ void __set_values(const std::vector & val);
+
+ void __set_nulls(const std::string& val);
+
+ bool operator == (const TI16Column & rhs) const
+ {
+ if (!(values == rhs.values))
+ return false;
+ if (!(nulls == rhs.nulls))
+ return false;
+ return true;
+ }
+ bool operator != (const TI16Column &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TI16Column & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TI16Column& obj);
+};
+
+void swap(TI16Column &a, TI16Column &b);
+
+
+class TI32Column {
+ public:
+
+ static const char* ascii_fingerprint; // = "CCCCE89C7E9DA10280F5663700677313";
+ static const uint8_t binary_fingerprint[16]; // = {0xCC,0xCC,0xE8,0x9C,0x7E,0x9D,0xA1,0x02,0x80,0xF5,0x66,0x37,0x00,0x67,0x73,0x13};
+
+ TI32Column(const TI32Column&);
+ TI32Column& operator=(const TI32Column&);
+ TI32Column() : nulls() {
+ }
+
+ virtual ~TI32Column() throw();
+ std::vector values;
+ std::string nulls;
+
+ void __set_values(const std::vector & val);
+
+ void __set_nulls(const std::string& val);
+
+ bool operator == (const TI32Column & rhs) const
+ {
+ if (!(values == rhs.values))
+ return false;
+ if (!(nulls == rhs.nulls))
+ return false;
+ return true;
+ }
+ bool operator != (const TI32Column &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TI32Column & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TI32Column& obj);
+};
+
+void swap(TI32Column &a, TI32Column &b);
+
+
+class TI64Column {
+ public:
+
+ static const char* ascii_fingerprint; // = "925353917FC0AF87976A2338011F5A31";
+ static const uint8_t binary_fingerprint[16]; // = {0x92,0x53,0x53,0x91,0x7F,0xC0,0xAF,0x87,0x97,0x6A,0x23,0x38,0x01,0x1F,0x5A,0x31};
+
+ TI64Column(const TI64Column&);
+ TI64Column& operator=(const TI64Column&);
+ TI64Column() : nulls() {
+ }
+
+ virtual ~TI64Column() throw();
+ std::vector values;
+ std::string nulls;
+
+ void __set_values(const std::vector & val);
+
+ void __set_nulls(const std::string& val);
+
+ bool operator == (const TI64Column & rhs) const
+ {
+ if (!(values == rhs.values))
+ return false;
+ if (!(nulls == rhs.nulls))
+ return false;
+ return true;
+ }
+ bool operator != (const TI64Column &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TI64Column & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TI64Column& obj);
+};
+
+void swap(TI64Column &a, TI64Column &b);
+
+
+class TDoubleColumn {
+ public:
+
+ static const char* ascii_fingerprint; // = "8FF1C050A8D7FD247AEB23CD71539C09";
+ static const uint8_t binary_fingerprint[16]; // = {0x8F,0xF1,0xC0,0x50,0xA8,0xD7,0xFD,0x24,0x7A,0xEB,0x23,0xCD,0x71,0x53,0x9C,0x09};
+
+ TDoubleColumn(const TDoubleColumn&);
+ TDoubleColumn& operator=(const TDoubleColumn&);
+ TDoubleColumn() : nulls() {
+ }
+
+ virtual ~TDoubleColumn() throw();
+ std::vector values;
+ std::string nulls;
+
+ void __set_values(const std::vector & val);
+
+ void __set_nulls(const std::string& val);
+
+ bool operator == (const TDoubleColumn & rhs) const
+ {
+ if (!(values == rhs.values))
+ return false;
+ if (!(nulls == rhs.nulls))
+ return false;
+ return true;
+ }
+ bool operator != (const TDoubleColumn &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TDoubleColumn & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TDoubleColumn& obj);
+};
+
+void swap(TDoubleColumn &a, TDoubleColumn &b);
+
+
+class TStringColumn {
+ public:
+
+ static const char* ascii_fingerprint; // = "BE556BF7091B2DABBA1863D5E458B15F";
+ static const uint8_t binary_fingerprint[16]; // = {0xBE,0x55,0x6B,0xF7,0x09,0x1B,0x2D,0xAB,0xBA,0x18,0x63,0xD5,0xE4,0x58,0xB1,0x5F};
+
+ TStringColumn(const TStringColumn&);
+ TStringColumn& operator=(const TStringColumn&);
+ TStringColumn() : nulls() {
+ }
+
+ virtual ~TStringColumn() throw();
+ std::vector values;
+ std::string nulls;
+
+ void __set_values(const std::vector & val);
+
+ void __set_nulls(const std::string& val);
+
+ bool operator == (const TStringColumn & rhs) const
+ {
+ if (!(values == rhs.values))
+ return false;
+ if (!(nulls == rhs.nulls))
+ return false;
+ return true;
+ }
+ bool operator != (const TStringColumn &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TStringColumn & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TStringColumn& obj);
+};
+
+void swap(TStringColumn &a, TStringColumn &b);
+
+
+class TBinaryColumn {
+ public:
+
+ static const char* ascii_fingerprint; // = "BE556BF7091B2DABBA1863D5E458B15F";
+ static const uint8_t binary_fingerprint[16]; // = {0xBE,0x55,0x6B,0xF7,0x09,0x1B,0x2D,0xAB,0xBA,0x18,0x63,0xD5,0xE4,0x58,0xB1,0x5F};
+
+ TBinaryColumn(const TBinaryColumn&);
+ TBinaryColumn& operator=(const TBinaryColumn&);
+ TBinaryColumn() : nulls() {
+ }
+
+ virtual ~TBinaryColumn() throw();
+ std::vector values;
+ std::string nulls;
+
+ void __set_values(const std::vector & val);
+
+ void __set_nulls(const std::string& val);
+
+ bool operator == (const TBinaryColumn & rhs) const
+ {
+ if (!(values == rhs.values))
+ return false;
+ if (!(nulls == rhs.nulls))
+ return false;
+ return true;
+ }
+ bool operator != (const TBinaryColumn &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TBinaryColumn & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TBinaryColumn& obj);
+};
+
+void swap(TBinaryColumn &a, TBinaryColumn &b);
+
+typedef struct _TColumn__isset {
+ _TColumn__isset() : boolVal(false), byteVal(false), i16Val(false), i32Val(false), i64Val(false), doubleVal(false), stringVal(false), binaryVal(false) {}
+ bool boolVal :1;
+ bool byteVal :1;
+ bool i16Val :1;
+ bool i32Val :1;
+ bool i64Val :1;
+ bool doubleVal :1;
+ bool stringVal :1;
+ bool binaryVal :1;
+} _TColumn__isset;
+
+class TColumn {
+ public:
+
+ static const char* ascii_fingerprint; // = "E6ADD10B4CDDE61A19E8878CC7039A17";
+ static const uint8_t binary_fingerprint[16]; // = {0xE6,0xAD,0xD1,0x0B,0x4C,0xDD,0xE6,0x1A,0x19,0xE8,0x87,0x8C,0xC7,0x03,0x9A,0x17};
+
+ TColumn(const TColumn&);
+ TColumn& operator=(const TColumn&);
+ TColumn() {
+ }
+
+ virtual ~TColumn() throw();
+ TBoolColumn boolVal;
+ TByteColumn byteVal;
+ TI16Column i16Val;
+ TI32Column i32Val;
+ TI64Column i64Val;
+ TDoubleColumn doubleVal;
+ TStringColumn stringVal;
+ TBinaryColumn binaryVal;
+
+ _TColumn__isset __isset;
+
+ void __set_boolVal(const TBoolColumn& val);
+
+ void __set_byteVal(const TByteColumn& val);
+
+ void __set_i16Val(const TI16Column& val);
+
+ void __set_i32Val(const TI32Column& val);
+
+ void __set_i64Val(const TI64Column& val);
+
+ void __set_doubleVal(const TDoubleColumn& val);
+
+ void __set_stringVal(const TStringColumn& val);
+
+ void __set_binaryVal(const TBinaryColumn& val);
+
+ bool operator == (const TColumn & rhs) const
+ {
+ if (!(boolVal == rhs.boolVal))
+ return false;
+ if (!(byteVal == rhs.byteVal))
+ return false;
+ if (!(i16Val == rhs.i16Val))
+ return false;
+ if (!(i32Val == rhs.i32Val))
+ return false;
+ if (!(i64Val == rhs.i64Val))
+ return false;
+ if (!(doubleVal == rhs.doubleVal))
+ return false;
+ if (!(stringVal == rhs.stringVal))
+ return false;
+ if (!(binaryVal == rhs.binaryVal))
+ return false;
+ return true;
+ }
+ bool operator != (const TColumn &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TColumn & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TColumn& obj);
+};
+
+void swap(TColumn &a, TColumn &b);
+
+typedef struct _TRowSet__isset {
+ _TRowSet__isset() : columns(false) {}
+ bool columns :1;
+} _TRowSet__isset;
+
+class TRowSet {
+ public:
+
+ static const char* ascii_fingerprint; // = "46DA30A870489C7A58105AE0080DAEBF";
+ static const uint8_t binary_fingerprint[16]; // = {0x46,0xDA,0x30,0xA8,0x70,0x48,0x9C,0x7A,0x58,0x10,0x5A,0xE0,0x08,0x0D,0xAE,0xBF};
+
+ TRowSet(const TRowSet&);
+ TRowSet& operator=(const TRowSet&);
+ TRowSet() : startRowOffset(0) {
+ }
+
+ virtual ~TRowSet() throw();
+ int64_t startRowOffset;
+ std::vector rows;
+ std::vector columns;
+
+ _TRowSet__isset __isset;
+
+ void __set_startRowOffset(const int64_t val);
+
+ void __set_rows(const std::vector & val);
+
+ void __set_columns(const std::vector & val);
+
+ bool operator == (const TRowSet & rhs) const
+ {
+ if (!(startRowOffset == rhs.startRowOffset))
+ return false;
+ if (!(rows == rhs.rows))
+ return false;
+ if (__isset.columns != rhs.__isset.columns)
+ return false;
+ else if (__isset.columns && !(columns == rhs.columns))
+ return false;
+ return true;
+ }
+ bool operator != (const TRowSet &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TRowSet & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TRowSet& obj);
+};
+
+void swap(TRowSet &a, TRowSet &b);
+
+typedef struct _TStatus__isset {
+ _TStatus__isset() : infoMessages(false), sqlState(false), errorCode(false), errorMessage(false) {}
+ bool infoMessages :1;
+ bool sqlState :1;
+ bool errorCode :1;
+ bool errorMessage :1;
+} _TStatus__isset;
+
+class TStatus {
+ public:
+
+ static const char* ascii_fingerprint; // = "D5DEF49634A59C615C1B3A6F7D0DADB5";
+ static const uint8_t binary_fingerprint[16]; // = {0xD5,0xDE,0xF4,0x96,0x34,0xA5,0x9C,0x61,0x5C,0x1B,0x3A,0x6F,0x7D,0x0D,0xAD,0xB5};
+
+ TStatus(const TStatus&);
+ TStatus& operator=(const TStatus&);
+ TStatus() : statusCode((TStatusCode::type)0), sqlState(), errorCode(0), errorMessage() {
+ }
+
+ virtual ~TStatus() throw();
+ TStatusCode::type statusCode;
+ std::vector infoMessages;
+ std::string sqlState;
+ int32_t errorCode;
+ std::string errorMessage;
+
+ _TStatus__isset __isset;
+
+ void __set_statusCode(const TStatusCode::type val);
+
+ void __set_infoMessages(const std::vector & val);
+
+ void __set_sqlState(const std::string& val);
+
+ void __set_errorCode(const int32_t val);
+
+ void __set_errorMessage(const std::string& val);
+
+ bool operator == (const TStatus & rhs) const
+ {
+ if (!(statusCode == rhs.statusCode))
+ return false;
+ if (__isset.infoMessages != rhs.__isset.infoMessages)
+ return false;
+ else if (__isset.infoMessages && !(infoMessages == rhs.infoMessages))
+ return false;
+ if (__isset.sqlState != rhs.__isset.sqlState)
+ return false;
+ else if (__isset.sqlState && !(sqlState == rhs.sqlState))
+ return false;
+ if (__isset.errorCode != rhs.__isset.errorCode)
+ return false;
+ else if (__isset.errorCode && !(errorCode == rhs.errorCode))
+ return false;
+ if (__isset.errorMessage != rhs.__isset.errorMessage)
+ return false;
+ else if (__isset.errorMessage && !(errorMessage == rhs.errorMessage))
+ return false;
+ return true;
+ }
+ bool operator != (const TStatus &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TStatus & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TStatus& obj);
+};
+
+void swap(TStatus &a, TStatus &b);
+
+
+class THandleIdentifier {
+ public:
+
+ static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972";
+ static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72};
+
+ THandleIdentifier(const THandleIdentifier&);
+ THandleIdentifier& operator=(const THandleIdentifier&);
+ THandleIdentifier() : guid(), secret() {
+ }
+
+ virtual ~THandleIdentifier() throw();
+ std::string guid;
+ std::string secret;
+
+ void __set_guid(const std::string& val);
+
+ void __set_secret(const std::string& val);
+
+ bool operator == (const THandleIdentifier & rhs) const
+ {
+ if (!(guid == rhs.guid))
+ return false;
+ if (!(secret == rhs.secret))
+ return false;
+ return true;
+ }
+ bool operator != (const THandleIdentifier &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const THandleIdentifier & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const THandleIdentifier& obj);
+};
+
+void swap(THandleIdentifier &a, THandleIdentifier &b);
+
+
+class TSessionHandle {
+ public:
+
+ static const char* ascii_fingerprint; // = "A756D3DBE614FB13F70BF7F7B6EB3D73";
+ static const uint8_t binary_fingerprint[16]; // = {0xA7,0x56,0xD3,0xDB,0xE6,0x14,0xFB,0x13,0xF7,0x0B,0xF7,0xF7,0xB6,0xEB,0x3D,0x73};
+
+ TSessionHandle(const TSessionHandle&);
+ TSessionHandle& operator=(const TSessionHandle&);
+ TSessionHandle() {
+ }
+
+ virtual ~TSessionHandle() throw();
+ THandleIdentifier sessionId;
+
+ void __set_sessionId(const THandleIdentifier& val);
+
+ bool operator == (const TSessionHandle & rhs) const
+ {
+ if (!(sessionId == rhs.sessionId))
+ return false;
+ return true;
+ }
+ bool operator != (const TSessionHandle &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TSessionHandle & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TSessionHandle& obj);
+};
+
+void swap(TSessionHandle &a, TSessionHandle &b);
+
+typedef struct _TOperationHandle__isset {
+ _TOperationHandle__isset() : modifiedRowCount(false) {}
+ bool modifiedRowCount :1;
+} _TOperationHandle__isset;
+
+class TOperationHandle {
+ public:
+
+ static const char* ascii_fingerprint; // = "29FD80F4F96804A30FCC59C23D2E5349";
+ static const uint8_t binary_fingerprint[16]; // = {0x29,0xFD,0x80,0xF4,0xF9,0x68,0x04,0xA3,0x0F,0xCC,0x59,0xC2,0x3D,0x2E,0x53,0x49};
+
+ TOperationHandle(const TOperationHandle&);
+ TOperationHandle& operator=(const TOperationHandle&);
+ TOperationHandle() : operationType((TOperationType::type)0), hasResultSet(0), modifiedRowCount(0) {
+ }
+
+ virtual ~TOperationHandle() throw();
+ THandleIdentifier operationId;
+ TOperationType::type operationType;
+ bool hasResultSet;
+ double modifiedRowCount;
+
+ _TOperationHandle__isset __isset;
+
+ void __set_operationId(const THandleIdentifier& val);
+
+ void __set_operationType(const TOperationType::type val);
+
+ void __set_hasResultSet(const bool val);
+
+ void __set_modifiedRowCount(const double val);
+
+ bool operator == (const TOperationHandle & rhs) const
+ {
+ if (!(operationId == rhs.operationId))
+ return false;
+ if (!(operationType == rhs.operationType))
+ return false;
+ if (!(hasResultSet == rhs.hasResultSet))
+ return false;
+ if (__isset.modifiedRowCount != rhs.__isset.modifiedRowCount)
+ return false;
+ else if (__isset.modifiedRowCount && !(modifiedRowCount == rhs.modifiedRowCount))
+ return false;
+ return true;
+ }
+ bool operator != (const TOperationHandle &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TOperationHandle & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TOperationHandle& obj);
+};
+
+void swap(TOperationHandle &a, TOperationHandle &b);
+
+typedef struct _TOpenSessionReq__isset {
+ _TOpenSessionReq__isset() : username(false), password(false), configuration(false) {}
+ bool username :1;
+ bool password :1;
+ bool configuration :1;
+} _TOpenSessionReq__isset;
+
+class TOpenSessionReq {
+ public:
+
+ static const char* ascii_fingerprint; // = "C8FD0F306A16C16BDA7B57F58BFAE5B2";
+ static const uint8_t binary_fingerprint[16]; // = {0xC8,0xFD,0x0F,0x30,0x6A,0x16,0xC1,0x6B,0xDA,0x7B,0x57,0xF5,0x8B,0xFA,0xE5,0xB2};
+
+ TOpenSessionReq(const TOpenSessionReq&);
+ TOpenSessionReq& operator=(const TOpenSessionReq&);
+ TOpenSessionReq() : client_protocol((TProtocolVersion::type)7), username(), password() {
+ client_protocol = (TProtocolVersion::type)7;
+
+ }
+
+ virtual ~TOpenSessionReq() throw();
+ TProtocolVersion::type client_protocol;
+ std::string username;
+ std::string password;
+ std::map configuration;
+
+ _TOpenSessionReq__isset __isset;
+
+ void __set_client_protocol(const TProtocolVersion::type val);
+
+ void __set_username(const std::string& val);
+
+ void __set_password(const std::string& val);
+
+ void __set_configuration(const std::map & val);
+
+ bool operator == (const TOpenSessionReq & rhs) const
+ {
+ if (!(client_protocol == rhs.client_protocol))
+ return false;
+ if (__isset.username != rhs.__isset.username)
+ return false;
+ else if (__isset.username && !(username == rhs.username))
+ return false;
+ if (__isset.password != rhs.__isset.password)
+ return false;
+ else if (__isset.password && !(password == rhs.password))
+ return false;
+ if (__isset.configuration != rhs.__isset.configuration)
+ return false;
+ else if (__isset.configuration && !(configuration == rhs.configuration))
+ return false;
+ return true;
+ }
+ bool operator != (const TOpenSessionReq &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TOpenSessionReq & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TOpenSessionReq& obj);
+};
+
+void swap(TOpenSessionReq &a, TOpenSessionReq &b);
+
+typedef struct _TOpenSessionResp__isset {
+ _TOpenSessionResp__isset() : sessionHandle(false), configuration(false) {}
+ bool sessionHandle :1;
+ bool configuration :1;
+} _TOpenSessionResp__isset;
+
+class TOpenSessionResp {
+ public:
+
+ static const char* ascii_fingerprint; // = "CFE7D7F4E9EC671F2518ED74FEE9F163";
+ static const uint8_t binary_fingerprint[16]; // = {0xCF,0xE7,0xD7,0xF4,0xE9,0xEC,0x67,0x1F,0x25,0x18,0xED,0x74,0xFE,0xE9,0xF1,0x63};
+
+ TOpenSessionResp(const TOpenSessionResp&);
+ TOpenSessionResp& operator=(const TOpenSessionResp&);
+ TOpenSessionResp() : serverProtocolVersion((TProtocolVersion::type)7) {
+ serverProtocolVersion = (TProtocolVersion::type)7;
+
+ }
+
+ virtual ~TOpenSessionResp() throw();
+ TStatus status;
+ TProtocolVersion::type serverProtocolVersion;
+ TSessionHandle sessionHandle;
+ std::map configuration;
+
+ _TOpenSessionResp__isset __isset;
+
+ void __set_status(const TStatus& val);
+
+ void __set_serverProtocolVersion(const TProtocolVersion::type val);
+
+ void __set_sessionHandle(const TSessionHandle& val);
+
+ void __set_configuration(const std::map & val);
+
+ bool operator == (const TOpenSessionResp & rhs) const
+ {
+ if (!(status == rhs.status))
+ return false;
+ if (!(serverProtocolVersion == rhs.serverProtocolVersion))
+ return false;
+ if (__isset.sessionHandle != rhs.__isset.sessionHandle)
+ return false;
+ else if (__isset.sessionHandle && !(sessionHandle == rhs.sessionHandle))
+ return false;
+ if (__isset.configuration != rhs.__isset.configuration)
+ return false;
+ else if (__isset.configuration && !(configuration == rhs.configuration))
+ return false;
+ return true;
+ }
+ bool operator != (const TOpenSessionResp &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TOpenSessionResp & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TOpenSessionResp& obj);
+};
+
+void swap(TOpenSessionResp &a, TOpenSessionResp &b);
+
+
+class TCloseSessionReq {
+ public:
+
+ static const char* ascii_fingerprint; // = "82377107F8BD0526960537D5A112E6EF";
+ static const uint8_t binary_fingerprint[16]; // = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF};
+
+ TCloseSessionReq(const TCloseSessionReq&);
+ TCloseSessionReq& operator=(const TCloseSessionReq&);
+ TCloseSessionReq() {
+ }
+
+ virtual ~TCloseSessionReq() throw();
+ TSessionHandle sessionHandle;
+
+ void __set_sessionHandle(const TSessionHandle& val);
+
+ bool operator == (const TCloseSessionReq & rhs) const
+ {
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ return true;
+ }
+ bool operator != (const TCloseSessionReq &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCloseSessionReq & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCloseSessionReq& obj);
+};
+
+void swap(TCloseSessionReq &a, TCloseSessionReq &b);
+
+
+class TCloseSessionResp {
+ public:
+
+ static const char* ascii_fingerprint; // = "7142E89F09DC7C5F6FA916C7393F46C2";
+ static const uint8_t binary_fingerprint[16]; // = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2};
+
+ TCloseSessionResp(const TCloseSessionResp&);
+ TCloseSessionResp& operator=(const TCloseSessionResp&);
+ TCloseSessionResp() {
+ }
+
+ virtual ~TCloseSessionResp() throw();
+ TStatus status;
+
+ void __set_status(const TStatus& val);
+
+ bool operator == (const TCloseSessionResp & rhs) const
+ {
+ if (!(status == rhs.status))
+ return false;
+ return true;
+ }
+ bool operator != (const TCloseSessionResp &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCloseSessionResp & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCloseSessionResp& obj);
+};
+
+void swap(TCloseSessionResp &a, TCloseSessionResp &b);
+
+typedef struct _TGetInfoValue__isset {
+ _TGetInfoValue__isset() : stringValue(false), smallIntValue(false), integerBitmask(false), integerFlag(false), binaryValue(false), lenValue(false) {}
+ bool stringValue :1;
+ bool smallIntValue :1;
+ bool integerBitmask :1;
+ bool integerFlag :1;
+ bool binaryValue :1;
+ bool lenValue :1;
+} _TGetInfoValue__isset;
+
+class TGetInfoValue {
+ public:
+
+ static const char* ascii_fingerprint; // = "057FED11279FD7248CFE73EE82ED579E";
+ static const uint8_t binary_fingerprint[16]; // = {0x05,0x7F,0xED,0x11,0x27,0x9F,0xD7,0x24,0x8C,0xFE,0x73,0xEE,0x82,0xED,0x57,0x9E};
+
+ TGetInfoValue(const TGetInfoValue&);
+ TGetInfoValue& operator=(const TGetInfoValue&);
+ TGetInfoValue() : stringValue(), smallIntValue(0), integerBitmask(0), integerFlag(0), binaryValue(0), lenValue(0) {
+ }
+
+ virtual ~TGetInfoValue() throw();
+ std::string stringValue;
+ int16_t smallIntValue;
+ int32_t integerBitmask;
+ int32_t integerFlag;
+ int32_t binaryValue;
+ int64_t lenValue;
+
+ _TGetInfoValue__isset __isset;
+
+ void __set_stringValue(const std::string& val);
+
+ void __set_smallIntValue(const int16_t val);
+
+ void __set_integerBitmask(const int32_t val);
+
+ void __set_integerFlag(const int32_t val);
+
+ void __set_binaryValue(const int32_t val);
+
+ void __set_lenValue(const int64_t val);
+
+ bool operator == (const TGetInfoValue & rhs) const
+ {
+ if (!(stringValue == rhs.stringValue))
+ return false;
+ if (!(smallIntValue == rhs.smallIntValue))
+ return false;
+ if (!(integerBitmask == rhs.integerBitmask))
+ return false;
+ if (!(integerFlag == rhs.integerFlag))
+ return false;
+ if (!(binaryValue == rhs.binaryValue))
+ return false;
+ if (!(lenValue == rhs.lenValue))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetInfoValue &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetInfoValue & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetInfoValue& obj);
+};
+
+void swap(TGetInfoValue &a, TGetInfoValue &b);
+
+
+class TGetInfoReq {
+ public:
+
+ static const char* ascii_fingerprint; // = "95675B1A0BADE5F7EDE323809DB679B2";
+ static const uint8_t binary_fingerprint[16]; // = {0x95,0x67,0x5B,0x1A,0x0B,0xAD,0xE5,0xF7,0xED,0xE3,0x23,0x80,0x9D,0xB6,0x79,0xB2};
+
+ TGetInfoReq(const TGetInfoReq&);
+ TGetInfoReq& operator=(const TGetInfoReq&);
+ TGetInfoReq() : infoType((TGetInfoType::type)0) {
+ }
+
+ virtual ~TGetInfoReq() throw();
+ TSessionHandle sessionHandle;
+ TGetInfoType::type infoType;
+
+ void __set_sessionHandle(const TSessionHandle& val);
+
+ void __set_infoType(const TGetInfoType::type val);
+
+ bool operator == (const TGetInfoReq & rhs) const
+ {
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ if (!(infoType == rhs.infoType))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetInfoReq &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetInfoReq & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetInfoReq& obj);
+};
+
+void swap(TGetInfoReq &a, TGetInfoReq &b);
+
+
+class TGetInfoResp {
+ public:
+
+ static const char* ascii_fingerprint; // = "72AFA10A82728B51FDE91092012868DE";
+ static const uint8_t binary_fingerprint[16]; // = {0x72,0xAF,0xA1,0x0A,0x82,0x72,0x8B,0x51,0xFD,0xE9,0x10,0x92,0x01,0x28,0x68,0xDE};
+
+ TGetInfoResp(const TGetInfoResp&);
+ TGetInfoResp& operator=(const TGetInfoResp&);
+ TGetInfoResp() {
+ }
+
+ virtual ~TGetInfoResp() throw();
+ TStatus status;
+ TGetInfoValue infoValue;
+
+ void __set_status(const TStatus& val);
+
+ void __set_infoValue(const TGetInfoValue& val);
+
+ bool operator == (const TGetInfoResp & rhs) const
+ {
+ if (!(status == rhs.status))
+ return false;
+ if (!(infoValue == rhs.infoValue))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetInfoResp &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetInfoResp & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetInfoResp& obj);
+};
+
+void swap(TGetInfoResp &a, TGetInfoResp &b);
+
+typedef struct _TExecuteStatementReq__isset {
+ _TExecuteStatementReq__isset() : confOverlay(false), runAsync(true) {}
+ bool confOverlay :1;
+ bool runAsync :1;
+} _TExecuteStatementReq__isset;
+
+class TExecuteStatementReq {
+ public:
+
+ static const char* ascii_fingerprint; // = "FED75DB77E66D76EC1939A51FB0D96FA";
+ static const uint8_t binary_fingerprint[16]; // = {0xFE,0xD7,0x5D,0xB7,0x7E,0x66,0xD7,0x6E,0xC1,0x93,0x9A,0x51,0xFB,0x0D,0x96,0xFA};
+
+ TExecuteStatementReq(const TExecuteStatementReq&);
+ TExecuteStatementReq& operator=(const TExecuteStatementReq&);
+ TExecuteStatementReq() : statement(), runAsync(false) {
+ }
+
+ virtual ~TExecuteStatementReq() throw();
+ TSessionHandle sessionHandle;
+ std::string statement;
+ std::map confOverlay;
+ bool runAsync;
+
+ _TExecuteStatementReq__isset __isset;
+
+ void __set_sessionHandle(const TSessionHandle& val);
+
+ void __set_statement(const std::string& val);
+
+ void __set_confOverlay(const std::map & val);
+
+ void __set_runAsync(const bool val);
+
+ bool operator == (const TExecuteStatementReq & rhs) const
+ {
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ if (!(statement == rhs.statement))
+ return false;
+ if (__isset.confOverlay != rhs.__isset.confOverlay)
+ return false;
+ else if (__isset.confOverlay && !(confOverlay == rhs.confOverlay))
+ return false;
+ if (__isset.runAsync != rhs.__isset.runAsync)
+ return false;
+ else if (__isset.runAsync && !(runAsync == rhs.runAsync))
+ return false;
+ return true;
+ }
+ bool operator != (const TExecuteStatementReq &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TExecuteStatementReq & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TExecuteStatementReq& obj);
+};
+
+void swap(TExecuteStatementReq &a, TExecuteStatementReq &b);
+
+typedef struct _TExecuteStatementResp__isset {
+ _TExecuteStatementResp__isset() : operationHandle(false) {}
+ bool operationHandle :1;
+} _TExecuteStatementResp__isset;
+
+class TExecuteStatementResp {
+ public:
+
+ static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286";
+ static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86};
+
+ TExecuteStatementResp(const TExecuteStatementResp&);
+ TExecuteStatementResp& operator=(const TExecuteStatementResp&);
+ TExecuteStatementResp() {
+ }
+
+ virtual ~TExecuteStatementResp() throw();
+ TStatus status;
+ TOperationHandle operationHandle;
+
+ _TExecuteStatementResp__isset __isset;
+
+ void __set_status(const TStatus& val);
+
+ void __set_operationHandle(const TOperationHandle& val);
+
+ bool operator == (const TExecuteStatementResp & rhs) const
+ {
+ if (!(status == rhs.status))
+ return false;
+ if (__isset.operationHandle != rhs.__isset.operationHandle)
+ return false;
+ else if (__isset.operationHandle && !(operationHandle == rhs.operationHandle))
+ return false;
+ return true;
+ }
+ bool operator != (const TExecuteStatementResp &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TExecuteStatementResp & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TExecuteStatementResp& obj);
+};
+
+void swap(TExecuteStatementResp &a, TExecuteStatementResp &b);
+
+
+class TGetTypeInfoReq {
+ public:
+
+ static const char* ascii_fingerprint; // = "82377107F8BD0526960537D5A112E6EF";
+ static const uint8_t binary_fingerprint[16]; // = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF};
+
+ TGetTypeInfoReq(const TGetTypeInfoReq&);
+ TGetTypeInfoReq& operator=(const TGetTypeInfoReq&);
+ TGetTypeInfoReq() {
+ }
+
+ virtual ~TGetTypeInfoReq() throw();
+ TSessionHandle sessionHandle;
+
+ void __set_sessionHandle(const TSessionHandle& val);
+
+ bool operator == (const TGetTypeInfoReq & rhs) const
+ {
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetTypeInfoReq &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetTypeInfoReq & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetTypeInfoReq& obj);
+};
+
+void swap(TGetTypeInfoReq &a, TGetTypeInfoReq &b);
+
+typedef struct _TGetTypeInfoResp__isset {
+ _TGetTypeInfoResp__isset() : operationHandle(false) {}
+ bool operationHandle :1;
+} _TGetTypeInfoResp__isset;
+
+class TGetTypeInfoResp {
+ public:
+
+ static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286";
+ static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86};
+
+ TGetTypeInfoResp(const TGetTypeInfoResp&);
+ TGetTypeInfoResp& operator=(const TGetTypeInfoResp&);
+ TGetTypeInfoResp() {
+ }
+
+ virtual ~TGetTypeInfoResp() throw();
+ TStatus status;
+ TOperationHandle operationHandle;
+
+ _TGetTypeInfoResp__isset __isset;
+
+ void __set_status(const TStatus& val);
+
+ void __set_operationHandle(const TOperationHandle& val);
+
+ bool operator == (const TGetTypeInfoResp & rhs) const
+ {
+ if (!(status == rhs.status))
+ return false;
+ if (__isset.operationHandle != rhs.__isset.operationHandle)
+ return false;
+ else if (__isset.operationHandle && !(operationHandle == rhs.operationHandle))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetTypeInfoResp &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetTypeInfoResp & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetTypeInfoResp& obj);
+};
+
+void swap(TGetTypeInfoResp &a, TGetTypeInfoResp &b);
+
+
+class TGetCatalogsReq {
+ public:
+
+ static const char* ascii_fingerprint; // = "82377107F8BD0526960537D5A112E6EF";
+ static const uint8_t binary_fingerprint[16]; // = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF};
+
+ TGetCatalogsReq(const TGetCatalogsReq&);
+ TGetCatalogsReq& operator=(const TGetCatalogsReq&);
+ TGetCatalogsReq() {
+ }
+
+ virtual ~TGetCatalogsReq() throw();
+ TSessionHandle sessionHandle;
+
+ void __set_sessionHandle(const TSessionHandle& val);
+
+ bool operator == (const TGetCatalogsReq & rhs) const
+ {
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetCatalogsReq &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetCatalogsReq & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetCatalogsReq& obj);
+};
+
+void swap(TGetCatalogsReq &a, TGetCatalogsReq &b);
+
+typedef struct _TGetCatalogsResp__isset {
+ _TGetCatalogsResp__isset() : operationHandle(false) {}
+ bool operationHandle :1;
+} _TGetCatalogsResp__isset;
+
+class TGetCatalogsResp {
+ public:
+
+ static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286";
+ static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86};
+
+ TGetCatalogsResp(const TGetCatalogsResp&);
+ TGetCatalogsResp& operator=(const TGetCatalogsResp&);
+ TGetCatalogsResp() {
+ }
+
+ virtual ~TGetCatalogsResp() throw();
+ TStatus status;
+ TOperationHandle operationHandle;
+
+ _TGetCatalogsResp__isset __isset;
+
+ void __set_status(const TStatus& val);
+
+ void __set_operationHandle(const TOperationHandle& val);
+
+ bool operator == (const TGetCatalogsResp & rhs) const
+ {
+ if (!(status == rhs.status))
+ return false;
+ if (__isset.operationHandle != rhs.__isset.operationHandle)
+ return false;
+ else if (__isset.operationHandle && !(operationHandle == rhs.operationHandle))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetCatalogsResp &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetCatalogsResp & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetCatalogsResp& obj);
+};
+
+void swap(TGetCatalogsResp &a, TGetCatalogsResp &b);
+
+typedef struct _TGetSchemasReq__isset {
+ _TGetSchemasReq__isset() : catalogName(false), schemaName(false) {}
+ bool catalogName :1;
+ bool schemaName :1;
+} _TGetSchemasReq__isset;
+
+class TGetSchemasReq {
+ public:
+
+ static const char* ascii_fingerprint; // = "28A9D12DE8393DD3E73FC1E5AE6E113B";
+ static const uint8_t binary_fingerprint[16]; // = {0x28,0xA9,0xD1,0x2D,0xE8,0x39,0x3D,0xD3,0xE7,0x3F,0xC1,0xE5,0xAE,0x6E,0x11,0x3B};
+
+ TGetSchemasReq(const TGetSchemasReq&);
+ TGetSchemasReq& operator=(const TGetSchemasReq&);
+ TGetSchemasReq() : catalogName(), schemaName() {
+ }
+
+ virtual ~TGetSchemasReq() throw();
+ TSessionHandle sessionHandle;
+ TIdentifier catalogName;
+ TPatternOrIdentifier schemaName;
+
+ _TGetSchemasReq__isset __isset;
+
+ void __set_sessionHandle(const TSessionHandle& val);
+
+ void __set_catalogName(const TIdentifier& val);
+
+ void __set_schemaName(const TPatternOrIdentifier& val);
+
+ bool operator == (const TGetSchemasReq & rhs) const
+ {
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ if (__isset.catalogName != rhs.__isset.catalogName)
+ return false;
+ else if (__isset.catalogName && !(catalogName == rhs.catalogName))
+ return false;
+ if (__isset.schemaName != rhs.__isset.schemaName)
+ return false;
+ else if (__isset.schemaName && !(schemaName == rhs.schemaName))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetSchemasReq &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetSchemasReq & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetSchemasReq& obj);
+};
+
+void swap(TGetSchemasReq &a, TGetSchemasReq &b);
+
+typedef struct _TGetSchemasResp__isset {
+ _TGetSchemasResp__isset() : operationHandle(false) {}
+ bool operationHandle :1;
+} _TGetSchemasResp__isset;
+
+class TGetSchemasResp {
+ public:
+
+ static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286";
+ static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86};
+
+ TGetSchemasResp(const TGetSchemasResp&);
+ TGetSchemasResp& operator=(const TGetSchemasResp&);
+ TGetSchemasResp() {
+ }
+
+ virtual ~TGetSchemasResp() throw();
+ TStatus status;
+ TOperationHandle operationHandle;
+
+ _TGetSchemasResp__isset __isset;
+
+ void __set_status(const TStatus& val);
+
+ void __set_operationHandle(const TOperationHandle& val);
+
+ bool operator == (const TGetSchemasResp & rhs) const
+ {
+ if (!(status == rhs.status))
+ return false;
+ if (__isset.operationHandle != rhs.__isset.operationHandle)
+ return false;
+ else if (__isset.operationHandle && !(operationHandle == rhs.operationHandle))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetSchemasResp &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetSchemasResp & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetSchemasResp& obj);
+};
+
+void swap(TGetSchemasResp &a, TGetSchemasResp &b);
+
+typedef struct _TGetTablesReq__isset {
+ _TGetTablesReq__isset() : catalogName(false), schemaName(false), tableName(false), tableTypes(false) {}
+ bool catalogName :1;
+ bool schemaName :1;
+ bool tableName :1;
+ bool tableTypes :1;
+} _TGetTablesReq__isset;
+
+class TGetTablesReq {
+ public:
+
+ static const char* ascii_fingerprint; // = "C80DFEE06850052F5A445BE81ED763DB";
+ static const uint8_t binary_fingerprint[16]; // = {0xC8,0x0D,0xFE,0xE0,0x68,0x50,0x05,0x2F,0x5A,0x44,0x5B,0xE8,0x1E,0xD7,0x63,0xDB};
+
+ TGetTablesReq(const TGetTablesReq&);
+ TGetTablesReq& operator=(const TGetTablesReq&);
+ TGetTablesReq() : catalogName(), schemaName(), tableName() {
+ }
+
+ virtual ~TGetTablesReq() throw();
+ TSessionHandle sessionHandle;
+ TPatternOrIdentifier catalogName;
+ TPatternOrIdentifier schemaName;
+ TPatternOrIdentifier tableName;
+ std::vector tableTypes;
+
+ _TGetTablesReq__isset __isset;
+
+ void __set_sessionHandle(const TSessionHandle& val);
+
+ void __set_catalogName(const TPatternOrIdentifier& val);
+
+ void __set_schemaName(const TPatternOrIdentifier& val);
+
+ void __set_tableName(const TPatternOrIdentifier& val);
+
+ void __set_tableTypes(const std::vector & val);
+
+ bool operator == (const TGetTablesReq & rhs) const
+ {
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ if (__isset.catalogName != rhs.__isset.catalogName)
+ return false;
+ else if (__isset.catalogName && !(catalogName == rhs.catalogName))
+ return false;
+ if (__isset.schemaName != rhs.__isset.schemaName)
+ return false;
+ else if (__isset.schemaName && !(schemaName == rhs.schemaName))
+ return false;
+ if (__isset.tableName != rhs.__isset.tableName)
+ return false;
+ else if (__isset.tableName && !(tableName == rhs.tableName))
+ return false;
+ if (__isset.tableTypes != rhs.__isset.tableTypes)
+ return false;
+ else if (__isset.tableTypes && !(tableTypes == rhs.tableTypes))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetTablesReq &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetTablesReq & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetTablesReq& obj);
+};
+
+void swap(TGetTablesReq &a, TGetTablesReq &b);
+
+typedef struct _TGetTablesResp__isset {
+ _TGetTablesResp__isset() : operationHandle(false) {}
+ bool operationHandle :1;
+} _TGetTablesResp__isset;
+
+class TGetTablesResp {
+ public:
+
+ static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286";
+ static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86};
+
+ TGetTablesResp(const TGetTablesResp&);
+ TGetTablesResp& operator=(const TGetTablesResp&);
+ TGetTablesResp() {
+ }
+
+ virtual ~TGetTablesResp() throw();
+ TStatus status;
+ TOperationHandle operationHandle;
+
+ _TGetTablesResp__isset __isset;
+
+ void __set_status(const TStatus& val);
+
+ void __set_operationHandle(const TOperationHandle& val);
+
+ bool operator == (const TGetTablesResp & rhs) const
+ {
+ if (!(status == rhs.status))
+ return false;
+ if (__isset.operationHandle != rhs.__isset.operationHandle)
+ return false;
+ else if (__isset.operationHandle && !(operationHandle == rhs.operationHandle))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetTablesResp &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetTablesResp & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetTablesResp& obj);
+};
+
+void swap(TGetTablesResp &a, TGetTablesResp &b);
+
+
+class TGetTableTypesReq {
+ public:
+
+ static const char* ascii_fingerprint; // = "82377107F8BD0526960537D5A112E6EF";
+ static const uint8_t binary_fingerprint[16]; // = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF};
+
+ TGetTableTypesReq(const TGetTableTypesReq&);
+ TGetTableTypesReq& operator=(const TGetTableTypesReq&);
+ TGetTableTypesReq() {
+ }
+
+ virtual ~TGetTableTypesReq() throw();
+ TSessionHandle sessionHandle;
+
+ void __set_sessionHandle(const TSessionHandle& val);
+
+ bool operator == (const TGetTableTypesReq & rhs) const
+ {
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetTableTypesReq &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetTableTypesReq & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetTableTypesReq& obj);
+};
+
+void swap(TGetTableTypesReq &a, TGetTableTypesReq &b);
+
+typedef struct _TGetTableTypesResp__isset {
+ _TGetTableTypesResp__isset() : operationHandle(false) {}
+ bool operationHandle :1;
+} _TGetTableTypesResp__isset;
+
+class TGetTableTypesResp {
+ public:
+
+ static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286";
+ static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86};
+
+ TGetTableTypesResp(const TGetTableTypesResp&);
+ TGetTableTypesResp& operator=(const TGetTableTypesResp&);
+ TGetTableTypesResp() {
+ }
+
+ virtual ~TGetTableTypesResp() throw();
+ TStatus status;
+ TOperationHandle operationHandle;
+
+ _TGetTableTypesResp__isset __isset;
+
+ void __set_status(const TStatus& val);
+
+ void __set_operationHandle(const TOperationHandle& val);
+
+ bool operator == (const TGetTableTypesResp & rhs) const
+ {
+ if (!(status == rhs.status))
+ return false;
+ if (__isset.operationHandle != rhs.__isset.operationHandle)
+ return false;
+ else if (__isset.operationHandle && !(operationHandle == rhs.operationHandle))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetTableTypesResp &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetTableTypesResp & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetTableTypesResp& obj);
+};
+
+void swap(TGetTableTypesResp &a, TGetTableTypesResp &b);
+
+typedef struct _TGetColumnsReq__isset {
+ _TGetColumnsReq__isset() : catalogName(false), schemaName(false), tableName(false), columnName(false) {}
+ bool catalogName :1;
+ bool schemaName :1;
+ bool tableName :1;
+ bool columnName :1;
+} _TGetColumnsReq__isset;
+
+class TGetColumnsReq {
+ public:
+
+ static const char* ascii_fingerprint; // = "72D0F28ED33A49B7306DF63EEE956C28";
+ static const uint8_t binary_fingerprint[16]; // = {0x72,0xD0,0xF2,0x8E,0xD3,0x3A,0x49,0xB7,0x30,0x6D,0xF6,0x3E,0xEE,0x95,0x6C,0x28};
+
+ TGetColumnsReq(const TGetColumnsReq&);
+ TGetColumnsReq& operator=(const TGetColumnsReq&);
+ TGetColumnsReq() : catalogName(), schemaName(), tableName(), columnName() {
+ }
+
+ virtual ~TGetColumnsReq() throw();
+ TSessionHandle sessionHandle;
+ TIdentifier catalogName;
+ TPatternOrIdentifier schemaName;
+ TPatternOrIdentifier tableName;
+ TPatternOrIdentifier columnName;
+
+ _TGetColumnsReq__isset __isset;
+
+ void __set_sessionHandle(const TSessionHandle& val);
+
+ void __set_catalogName(const TIdentifier& val);
+
+ void __set_schemaName(const TPatternOrIdentifier& val);
+
+ void __set_tableName(const TPatternOrIdentifier& val);
+
+ void __set_columnName(const TPatternOrIdentifier& val);
+
+ bool operator == (const TGetColumnsReq & rhs) const
+ {
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ if (__isset.catalogName != rhs.__isset.catalogName)
+ return false;
+ else if (__isset.catalogName && !(catalogName == rhs.catalogName))
+ return false;
+ if (__isset.schemaName != rhs.__isset.schemaName)
+ return false;
+ else if (__isset.schemaName && !(schemaName == rhs.schemaName))
+ return false;
+ if (__isset.tableName != rhs.__isset.tableName)
+ return false;
+ else if (__isset.tableName && !(tableName == rhs.tableName))
+ return false;
+ if (__isset.columnName != rhs.__isset.columnName)
+ return false;
+ else if (__isset.columnName && !(columnName == rhs.columnName))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetColumnsReq &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetColumnsReq & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetColumnsReq& obj);
+};
+
+void swap(TGetColumnsReq &a, TGetColumnsReq &b);
+
+typedef struct _TGetColumnsResp__isset {
+ _TGetColumnsResp__isset() : operationHandle(false) {}
+ bool operationHandle :1;
+} _TGetColumnsResp__isset;
+
+class TGetColumnsResp {
+ public:
+
+ static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286";
+ static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86};
+
+ TGetColumnsResp(const TGetColumnsResp&);
+ TGetColumnsResp& operator=(const TGetColumnsResp&);
+ TGetColumnsResp() {
+ }
+
+ virtual ~TGetColumnsResp() throw();
+ TStatus status;
+ TOperationHandle operationHandle;
+
+ _TGetColumnsResp__isset __isset;
+
+ void __set_status(const TStatus& val);
+
+ void __set_operationHandle(const TOperationHandle& val);
+
+ bool operator == (const TGetColumnsResp & rhs) const
+ {
+ if (!(status == rhs.status))
+ return false;
+ if (__isset.operationHandle != rhs.__isset.operationHandle)
+ return false;
+ else if (__isset.operationHandle && !(operationHandle == rhs.operationHandle))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetColumnsResp &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetColumnsResp & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetColumnsResp& obj);
+};
+
+void swap(TGetColumnsResp &a, TGetColumnsResp &b);
+
+typedef struct _TGetFunctionsReq__isset {
+ _TGetFunctionsReq__isset() : catalogName(false), schemaName(false) {}
+ bool catalogName :1;
+ bool schemaName :1;
+} _TGetFunctionsReq__isset;
+
+class TGetFunctionsReq {
+ public:
+
+ static const char* ascii_fingerprint; // = "0887E0916ADE4521BF6017B534493138";
+ static const uint8_t binary_fingerprint[16]; // = {0x08,0x87,0xE0,0x91,0x6A,0xDE,0x45,0x21,0xBF,0x60,0x17,0xB5,0x34,0x49,0x31,0x38};
+
+ TGetFunctionsReq(const TGetFunctionsReq&);
+ TGetFunctionsReq& operator=(const TGetFunctionsReq&);
+ TGetFunctionsReq() : catalogName(), schemaName(), functionName() {
+ }
+
+ virtual ~TGetFunctionsReq() throw();
+ TSessionHandle sessionHandle;
+ TIdentifier catalogName;
+ TPatternOrIdentifier schemaName;
+ TPatternOrIdentifier functionName;
+
+ _TGetFunctionsReq__isset __isset;
+
+ void __set_sessionHandle(const TSessionHandle& val);
+
+ void __set_catalogName(const TIdentifier& val);
+
+ void __set_schemaName(const TPatternOrIdentifier& val);
+
+ void __set_functionName(const TPatternOrIdentifier& val);
+
+ bool operator == (const TGetFunctionsReq & rhs) const
+ {
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ if (__isset.catalogName != rhs.__isset.catalogName)
+ return false;
+ else if (__isset.catalogName && !(catalogName == rhs.catalogName))
+ return false;
+ if (__isset.schemaName != rhs.__isset.schemaName)
+ return false;
+ else if (__isset.schemaName && !(schemaName == rhs.schemaName))
+ return false;
+ if (!(functionName == rhs.functionName))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetFunctionsReq &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetFunctionsReq & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetFunctionsReq& obj);
+};
+
+void swap(TGetFunctionsReq &a, TGetFunctionsReq &b);
+
+typedef struct _TGetFunctionsResp__isset {
+ _TGetFunctionsResp__isset() : operationHandle(false) {}
+ bool operationHandle :1;
+} _TGetFunctionsResp__isset;
+
+class TGetFunctionsResp {
+ public:
+
+ static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286";
+ static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86};
+
+ TGetFunctionsResp(const TGetFunctionsResp&);
+ TGetFunctionsResp& operator=(const TGetFunctionsResp&);
+ TGetFunctionsResp() {
+ }
+
+ virtual ~TGetFunctionsResp() throw();
+ TStatus status;
+ TOperationHandle operationHandle;
+
+ _TGetFunctionsResp__isset __isset;
+
+ void __set_status(const TStatus& val);
+
+ void __set_operationHandle(const TOperationHandle& val);
+
+ bool operator == (const TGetFunctionsResp & rhs) const
+ {
+ if (!(status == rhs.status))
+ return false;
+ if (__isset.operationHandle != rhs.__isset.operationHandle)
+ return false;
+ else if (__isset.operationHandle && !(operationHandle == rhs.operationHandle))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetFunctionsResp &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetFunctionsResp & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetFunctionsResp& obj);
+};
+
+void swap(TGetFunctionsResp &a, TGetFunctionsResp &b);
+
+
+class TGetOperationStatusReq {
+ public:
+
+ static const char* ascii_fingerprint; // = "414FA38522AE6B9CEC1438B56CA1DE5A";
+ static const uint8_t binary_fingerprint[16]; // = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A};
+
+ TGetOperationStatusReq(const TGetOperationStatusReq&);
+ TGetOperationStatusReq& operator=(const TGetOperationStatusReq&);
+ TGetOperationStatusReq() {
+ }
+
+ virtual ~TGetOperationStatusReq() throw();
+ TOperationHandle operationHandle;
+
+ void __set_operationHandle(const TOperationHandle& val);
+
+ bool operator == (const TGetOperationStatusReq & rhs) const
+ {
+ if (!(operationHandle == rhs.operationHandle))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetOperationStatusReq &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetOperationStatusReq & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetOperationStatusReq& obj);
+};
+
+void swap(TGetOperationStatusReq &a, TGetOperationStatusReq &b);
+
+typedef struct _TGetOperationStatusResp__isset {
+ _TGetOperationStatusResp__isset() : operationState(false), sqlState(false), errorCode(false), errorMessage(false) {}
+ bool operationState :1;
+ bool sqlState :1;
+ bool errorCode :1;
+ bool errorMessage :1;
+} _TGetOperationStatusResp__isset;
+
+class TGetOperationStatusResp {
+ public:
+
+ static const char* ascii_fingerprint; // = "BD124DB87A5A2E7D11945BD1B17F013D";
+ static const uint8_t binary_fingerprint[16]; // = {0xBD,0x12,0x4D,0xB8,0x7A,0x5A,0x2E,0x7D,0x11,0x94,0x5B,0xD1,0xB1,0x7F,0x01,0x3D};
+
+ TGetOperationStatusResp(const TGetOperationStatusResp&);
+ TGetOperationStatusResp& operator=(const TGetOperationStatusResp&);
+ TGetOperationStatusResp() : operationState((TOperationState::type)0), sqlState(), errorCode(0), errorMessage() {
+ }
+
+ virtual ~TGetOperationStatusResp() throw();
+ TStatus status;
+ TOperationState::type operationState;
+ std::string sqlState;
+ int32_t errorCode;
+ std::string errorMessage;
+
+ _TGetOperationStatusResp__isset __isset;
+
+ void __set_status(const TStatus& val);
+
+ void __set_operationState(const TOperationState::type val);
+
+ void __set_sqlState(const std::string& val);
+
+ void __set_errorCode(const int32_t val);
+
+ void __set_errorMessage(const std::string& val);
+
+ bool operator == (const TGetOperationStatusResp & rhs) const
+ {
+ if (!(status == rhs.status))
+ return false;
+ if (__isset.operationState != rhs.__isset.operationState)
+ return false;
+ else if (__isset.operationState && !(operationState == rhs.operationState))
+ return false;
+ if (__isset.sqlState != rhs.__isset.sqlState)
+ return false;
+ else if (__isset.sqlState && !(sqlState == rhs.sqlState))
+ return false;
+ if (__isset.errorCode != rhs.__isset.errorCode)
+ return false;
+ else if (__isset.errorCode && !(errorCode == rhs.errorCode))
+ return false;
+ if (__isset.errorMessage != rhs.__isset.errorMessage)
+ return false;
+ else if (__isset.errorMessage && !(errorMessage == rhs.errorMessage))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetOperationStatusResp &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetOperationStatusResp & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetOperationStatusResp& obj);
+};
+
+void swap(TGetOperationStatusResp &a, TGetOperationStatusResp &b);
+
+
+class TCancelOperationReq {
+ public:
+
+ static const char* ascii_fingerprint; // = "414FA38522AE6B9CEC1438B56CA1DE5A";
+ static const uint8_t binary_fingerprint[16]; // = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A};
+
+ TCancelOperationReq(const TCancelOperationReq&);
+ TCancelOperationReq& operator=(const TCancelOperationReq&);
+ TCancelOperationReq() {
+ }
+
+ virtual ~TCancelOperationReq() throw();
+ TOperationHandle operationHandle;
+
+ void __set_operationHandle(const TOperationHandle& val);
+
+ bool operator == (const TCancelOperationReq & rhs) const
+ {
+ if (!(operationHandle == rhs.operationHandle))
+ return false;
+ return true;
+ }
+ bool operator != (const TCancelOperationReq &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCancelOperationReq & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCancelOperationReq& obj);
+};
+
+void swap(TCancelOperationReq &a, TCancelOperationReq &b);
+
+
+class TCancelOperationResp {
+ public:
+
+ static const char* ascii_fingerprint; // = "7142E89F09DC7C5F6FA916C7393F46C2";
+ static const uint8_t binary_fingerprint[16]; // = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2};
+
+ TCancelOperationResp(const TCancelOperationResp&);
+ TCancelOperationResp& operator=(const TCancelOperationResp&);
+ TCancelOperationResp() {
+ }
+
+ virtual ~TCancelOperationResp() throw();
+ TStatus status;
+
+ void __set_status(const TStatus& val);
+
+ bool operator == (const TCancelOperationResp & rhs) const
+ {
+ if (!(status == rhs.status))
+ return false;
+ return true;
+ }
+ bool operator != (const TCancelOperationResp &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCancelOperationResp & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCancelOperationResp& obj);
+};
+
+void swap(TCancelOperationResp &a, TCancelOperationResp &b);
+
+
+class TCloseOperationReq {
+ public:
+
+ static const char* ascii_fingerprint; // = "414FA38522AE6B9CEC1438B56CA1DE5A";
+ static const uint8_t binary_fingerprint[16]; // = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A};
+
+ TCloseOperationReq(const TCloseOperationReq&);
+ TCloseOperationReq& operator=(const TCloseOperationReq&);
+ TCloseOperationReq() {
+ }
+
+ virtual ~TCloseOperationReq() throw();
+ TOperationHandle operationHandle;
+
+ void __set_operationHandle(const TOperationHandle& val);
+
+ bool operator == (const TCloseOperationReq & rhs) const
+ {
+ if (!(operationHandle == rhs.operationHandle))
+ return false;
+ return true;
+ }
+ bool operator != (const TCloseOperationReq &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCloseOperationReq & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCloseOperationReq& obj);
+};
+
+void swap(TCloseOperationReq &a, TCloseOperationReq &b);
+
+
+class TCloseOperationResp {
+ public:
+
+ static const char* ascii_fingerprint; // = "7142E89F09DC7C5F6FA916C7393F46C2";
+ static const uint8_t binary_fingerprint[16]; // = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2};
+
+ TCloseOperationResp(const TCloseOperationResp&);
+ TCloseOperationResp& operator=(const TCloseOperationResp&);
+ TCloseOperationResp() {
+ }
+
+ virtual ~TCloseOperationResp() throw();
+ TStatus status;
+
+ void __set_status(const TStatus& val);
+
+ bool operator == (const TCloseOperationResp & rhs) const
+ {
+ if (!(status == rhs.status))
+ return false;
+ return true;
+ }
+ bool operator != (const TCloseOperationResp &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCloseOperationResp & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCloseOperationResp& obj);
+};
+
+void swap(TCloseOperationResp &a, TCloseOperationResp &b);
+
+
+class TGetResultSetMetadataReq {
+ public:
+
+ static const char* ascii_fingerprint; // = "414FA38522AE6B9CEC1438B56CA1DE5A";
+ static const uint8_t binary_fingerprint[16]; // = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A};
+
+ TGetResultSetMetadataReq(const TGetResultSetMetadataReq&);
+ TGetResultSetMetadataReq& operator=(const TGetResultSetMetadataReq&);
+ TGetResultSetMetadataReq() {
+ }
+
+ virtual ~TGetResultSetMetadataReq() throw();
+ TOperationHandle operationHandle;
+
+ void __set_operationHandle(const TOperationHandle& val);
+
+ bool operator == (const TGetResultSetMetadataReq & rhs) const
+ {
+ if (!(operationHandle == rhs.operationHandle))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetResultSetMetadataReq &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetResultSetMetadataReq & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetResultSetMetadataReq& obj);
+};
+
+void swap(TGetResultSetMetadataReq &a, TGetResultSetMetadataReq &b);
+
+typedef struct _TGetResultSetMetadataResp__isset {
+ _TGetResultSetMetadataResp__isset() : schema(false) {}
+ bool schema :1;
+} _TGetResultSetMetadataResp__isset;
+
+class TGetResultSetMetadataResp {
+ public:
+
+ static const char* ascii_fingerprint; // = "42CD49B7F49CC1B6D4E6F5FA2D7BE812";
+ static const uint8_t binary_fingerprint[16]; // = {0x42,0xCD,0x49,0xB7,0xF4,0x9C,0xC1,0xB6,0xD4,0xE6,0xF5,0xFA,0x2D,0x7B,0xE8,0x12};
+
+ TGetResultSetMetadataResp(const TGetResultSetMetadataResp&);
+ TGetResultSetMetadataResp& operator=(const TGetResultSetMetadataResp&);
+ TGetResultSetMetadataResp() {
+ }
+
+ virtual ~TGetResultSetMetadataResp() throw();
+ TStatus status;
+ TTableSchema schema;
+
+ _TGetResultSetMetadataResp__isset __isset;
+
+ void __set_status(const TStatus& val);
+
+ void __set_schema(const TTableSchema& val);
+
+ bool operator == (const TGetResultSetMetadataResp & rhs) const
+ {
+ if (!(status == rhs.status))
+ return false;
+ if (__isset.schema != rhs.__isset.schema)
+ return false;
+ else if (__isset.schema && !(schema == rhs.schema))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetResultSetMetadataResp &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetResultSetMetadataResp & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetResultSetMetadataResp& obj);
+};
+
+void swap(TGetResultSetMetadataResp &a, TGetResultSetMetadataResp &b);
+
+typedef struct _TFetchResultsReq__isset {
+ _TFetchResultsReq__isset() : fetchType(true) {}
+ bool fetchType :1;
+} _TFetchResultsReq__isset;
+
+class TFetchResultsReq {
+ public:
+
+ static const char* ascii_fingerprint; // = "B4CB1E4F8F8F4D50183DD372AD11753A";
+ static const uint8_t binary_fingerprint[16]; // = {0xB4,0xCB,0x1E,0x4F,0x8F,0x8F,0x4D,0x50,0x18,0x3D,0xD3,0x72,0xAD,0x11,0x75,0x3A};
+
+ TFetchResultsReq(const TFetchResultsReq&);
+ TFetchResultsReq& operator=(const TFetchResultsReq&);
+ TFetchResultsReq() : orientation((TFetchOrientation::type)0), maxRows(0), fetchType(0) {
+ orientation = (TFetchOrientation::type)0;
+
+ }
+
+ virtual ~TFetchResultsReq() throw();
+ TOperationHandle operationHandle;
+ TFetchOrientation::type orientation;
+ int64_t maxRows;
+ int16_t fetchType;
+
+ _TFetchResultsReq__isset __isset;
+
+ void __set_operationHandle(const TOperationHandle& val);
+
+ void __set_orientation(const TFetchOrientation::type val);
+
+ void __set_maxRows(const int64_t val);
+
+ void __set_fetchType(const int16_t val);
+
+ bool operator == (const TFetchResultsReq & rhs) const
+ {
+ if (!(operationHandle == rhs.operationHandle))
+ return false;
+ if (!(orientation == rhs.orientation))
+ return false;
+ if (!(maxRows == rhs.maxRows))
+ return false;
+ if (__isset.fetchType != rhs.__isset.fetchType)
+ return false;
+ else if (__isset.fetchType && !(fetchType == rhs.fetchType))
+ return false;
+ return true;
+ }
+ bool operator != (const TFetchResultsReq &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TFetchResultsReq & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TFetchResultsReq& obj);
+};
+
+void swap(TFetchResultsReq &a, TFetchResultsReq &b);
+
+typedef struct _TFetchResultsResp__isset {
+ _TFetchResultsResp__isset() : hasMoreRows(false), results(false) {}
+ bool hasMoreRows :1;
+ bool results :1;
+} _TFetchResultsResp__isset;
+
+class TFetchResultsResp {
+ public:
+
+ static const char* ascii_fingerprint; // = "FC43BC2D6F3B76D4DB0F34226A745C8E";
+ static const uint8_t binary_fingerprint[16]; // = {0xFC,0x43,0xBC,0x2D,0x6F,0x3B,0x76,0xD4,0xDB,0x0F,0x34,0x22,0x6A,0x74,0x5C,0x8E};
+
+ TFetchResultsResp(const TFetchResultsResp&);
+ TFetchResultsResp& operator=(const TFetchResultsResp&);
+ TFetchResultsResp() : hasMoreRows(0) {
+ }
+
+ virtual ~TFetchResultsResp() throw();
+ TStatus status;
+ bool hasMoreRows;
+ TRowSet results;
+
+ _TFetchResultsResp__isset __isset;
+
+ void __set_status(const TStatus& val);
+
+ void __set_hasMoreRows(const bool val);
+
+ void __set_results(const TRowSet& val);
+
+ bool operator == (const TFetchResultsResp & rhs) const
+ {
+ if (!(status == rhs.status))
+ return false;
+ if (__isset.hasMoreRows != rhs.__isset.hasMoreRows)
+ return false;
+ else if (__isset.hasMoreRows && !(hasMoreRows == rhs.hasMoreRows))
+ return false;
+ if (__isset.results != rhs.__isset.results)
+ return false;
+ else if (__isset.results && !(results == rhs.results))
+ return false;
+ return true;
+ }
+ bool operator != (const TFetchResultsResp &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TFetchResultsResp & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TFetchResultsResp& obj);
+};
+
+void swap(TFetchResultsResp &a, TFetchResultsResp &b);
+
+
+class TGetDelegationTokenReq {
+ public:
+
+ static const char* ascii_fingerprint; // = "07EA0311716A27924914E4354ED22D6C";
+ static const uint8_t binary_fingerprint[16]; // = {0x07,0xEA,0x03,0x11,0x71,0x6A,0x27,0x92,0x49,0x14,0xE4,0x35,0x4E,0xD2,0x2D,0x6C};
+
+ TGetDelegationTokenReq(const TGetDelegationTokenReq&);
+ TGetDelegationTokenReq& operator=(const TGetDelegationTokenReq&);
+ TGetDelegationTokenReq() : owner(), renewer() {
+ }
+
+ virtual ~TGetDelegationTokenReq() throw();
+ TSessionHandle sessionHandle;
+ std::string owner;
+ std::string renewer;
+
+ void __set_sessionHandle(const TSessionHandle& val);
+
+ void __set_owner(const std::string& val);
+
+ void __set_renewer(const std::string& val);
+
+ bool operator == (const TGetDelegationTokenReq & rhs) const
+ {
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ if (!(owner == rhs.owner))
+ return false;
+ if (!(renewer == rhs.renewer))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetDelegationTokenReq &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetDelegationTokenReq & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetDelegationTokenReq& obj);
+};
+
+void swap(TGetDelegationTokenReq &a, TGetDelegationTokenReq &b);
+
+typedef struct _TGetDelegationTokenResp__isset {
+ _TGetDelegationTokenResp__isset() : delegationToken(false) {}
+ bool delegationToken :1;
+} _TGetDelegationTokenResp__isset;
+
+class TGetDelegationTokenResp {
+ public:
+
+ static const char* ascii_fingerprint; // = "C0E132DC412CEA08D771EAC38CEA1DA6";
+ static const uint8_t binary_fingerprint[16]; // = {0xC0,0xE1,0x32,0xDC,0x41,0x2C,0xEA,0x08,0xD7,0x71,0xEA,0xC3,0x8C,0xEA,0x1D,0xA6};
+
+ TGetDelegationTokenResp(const TGetDelegationTokenResp&);
+ TGetDelegationTokenResp& operator=(const TGetDelegationTokenResp&);
+ TGetDelegationTokenResp() : delegationToken() {
+ }
+
+ virtual ~TGetDelegationTokenResp() throw();
+ TStatus status;
+ std::string delegationToken;
+
+ _TGetDelegationTokenResp__isset __isset;
+
+ void __set_status(const TStatus& val);
+
+ void __set_delegationToken(const std::string& val);
+
+ bool operator == (const TGetDelegationTokenResp & rhs) const
+ {
+ if (!(status == rhs.status))
+ return false;
+ if (__isset.delegationToken != rhs.__isset.delegationToken)
+ return false;
+ else if (__isset.delegationToken && !(delegationToken == rhs.delegationToken))
+ return false;
+ return true;
+ }
+ bool operator != (const TGetDelegationTokenResp &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TGetDelegationTokenResp & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TGetDelegationTokenResp& obj);
+};
+
+void swap(TGetDelegationTokenResp &a, TGetDelegationTokenResp &b);
+
+
+class TCancelDelegationTokenReq {
+ public:
+
+ static const char* ascii_fingerprint; // = "1A3D66269336B7EC66998BFE1BECDE75";
+ static const uint8_t binary_fingerprint[16]; // = {0x1A,0x3D,0x66,0x26,0x93,0x36,0xB7,0xEC,0x66,0x99,0x8B,0xFE,0x1B,0xEC,0xDE,0x75};
+
+ TCancelDelegationTokenReq(const TCancelDelegationTokenReq&);
+ TCancelDelegationTokenReq& operator=(const TCancelDelegationTokenReq&);
+ TCancelDelegationTokenReq() : delegationToken() {
+ }
+
+ virtual ~TCancelDelegationTokenReq() throw();
+ TSessionHandle sessionHandle;
+ std::string delegationToken;
+
+ void __set_sessionHandle(const TSessionHandle& val);
+
+ void __set_delegationToken(const std::string& val);
+
+ bool operator == (const TCancelDelegationTokenReq & rhs) const
+ {
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ if (!(delegationToken == rhs.delegationToken))
+ return false;
+ return true;
+ }
+ bool operator != (const TCancelDelegationTokenReq &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCancelDelegationTokenReq & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCancelDelegationTokenReq& obj);
+};
+
+void swap(TCancelDelegationTokenReq &a, TCancelDelegationTokenReq &b);
+
+
+class TCancelDelegationTokenResp {
+ public:
+
+ static const char* ascii_fingerprint; // = "7142E89F09DC7C5F6FA916C7393F46C2";
+ static const uint8_t binary_fingerprint[16]; // = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2};
+
+ TCancelDelegationTokenResp(const TCancelDelegationTokenResp&);
+ TCancelDelegationTokenResp& operator=(const TCancelDelegationTokenResp&);
+ TCancelDelegationTokenResp() {
+ }
+
+ virtual ~TCancelDelegationTokenResp() throw();
+ TStatus status;
+
+ void __set_status(const TStatus& val);
+
+ bool operator == (const TCancelDelegationTokenResp & rhs) const
+ {
+ if (!(status == rhs.status))
+ return false;
+ return true;
+ }
+ bool operator != (const TCancelDelegationTokenResp &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TCancelDelegationTokenResp & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TCancelDelegationTokenResp& obj);
+};
+
+void swap(TCancelDelegationTokenResp &a, TCancelDelegationTokenResp &b);
+
+
+class TRenewDelegationTokenReq {
+ public:
+
+ static const char* ascii_fingerprint; // = "1A3D66269336B7EC66998BFE1BECDE75";
+ static const uint8_t binary_fingerprint[16]; // = {0x1A,0x3D,0x66,0x26,0x93,0x36,0xB7,0xEC,0x66,0x99,0x8B,0xFE,0x1B,0xEC,0xDE,0x75};
+
+ TRenewDelegationTokenReq(const TRenewDelegationTokenReq&);
+ TRenewDelegationTokenReq& operator=(const TRenewDelegationTokenReq&);
+ TRenewDelegationTokenReq() : delegationToken() {
+ }
+
+ virtual ~TRenewDelegationTokenReq() throw();
+ TSessionHandle sessionHandle;
+ std::string delegationToken;
+
+ void __set_sessionHandle(const TSessionHandle& val);
+
+ void __set_delegationToken(const std::string& val);
+
+ bool operator == (const TRenewDelegationTokenReq & rhs) const
+ {
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ if (!(delegationToken == rhs.delegationToken))
+ return false;
+ return true;
+ }
+ bool operator != (const TRenewDelegationTokenReq &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TRenewDelegationTokenReq & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TRenewDelegationTokenReq& obj);
+};
+
+void swap(TRenewDelegationTokenReq &a, TRenewDelegationTokenReq &b);
+
+
+class TRenewDelegationTokenResp {
+ public:
+
+ static const char* ascii_fingerprint; // = "7142E89F09DC7C5F6FA916C7393F46C2";
+ static const uint8_t binary_fingerprint[16]; // = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2};
+
+ TRenewDelegationTokenResp(const TRenewDelegationTokenResp&);
+ TRenewDelegationTokenResp& operator=(const TRenewDelegationTokenResp&);
+ TRenewDelegationTokenResp() {
+ }
+
+ virtual ~TRenewDelegationTokenResp() throw();
+ TStatus status;
+
+ void __set_status(const TStatus& val);
+
+ bool operator == (const TRenewDelegationTokenResp & rhs) const
+ {
+ if (!(status == rhs.status))
+ return false;
+ return true;
+ }
+ bool operator != (const TRenewDelegationTokenResp &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const TRenewDelegationTokenResp & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ friend std::ostream& operator<<(std::ostream& out, const TRenewDelegationTokenResp& obj);
+};
+
+void swap(TRenewDelegationTokenResp &a, TRenewDelegationTokenResp &b);
+
+}}}}} // namespace
+
+#endif
diff --git service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TArrayTypeEntry.java service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TArrayTypeEntry.java
new file mode 100644
index 0000000..fdc367e
--- /dev/null
+++ service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TArrayTypeEntry.java
@@ -0,0 +1,387 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.2)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package org.apache.hive.service.rpc.thrift;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import javax.annotation.Generated;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-12-14")
+public class TArrayTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TArrayTypeEntry");
+
+ private static final org.apache.thrift.protocol.TField OBJECT_TYPE_PTR_FIELD_DESC = new org.apache.thrift.protocol.TField("objectTypePtr", org.apache.thrift.protocol.TType.I32, (short)1);
+
+ private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new TArrayTypeEntryStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new TArrayTypeEntryTupleSchemeFactory());
+ }
+
+ private int objectTypePtr; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ OBJECT_TYPE_PTR((short)1, "objectTypePtr");
+
+ private static final Map byName = new HashMap();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // OBJECT_TYPE_PTR
+ return OBJECT_TYPE_PTR;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ private static final int __OBJECTTYPEPTR_ISSET_ID = 0;
+ private byte __isset_bitfield = 0;
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.OBJECT_TYPE_PTR, new org.apache.thrift.meta_data.FieldMetaData("objectTypePtr", org.apache.thrift.TFieldRequirementType.REQUIRED,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "TTypeEntryPtr")));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TArrayTypeEntry.class, metaDataMap);
+ }
+
+ public TArrayTypeEntry() {
+ }
+
+ public TArrayTypeEntry(
+ int objectTypePtr)
+ {
+ this();
+ this.objectTypePtr = objectTypePtr;
+ setObjectTypePtrIsSet(true);
+ }
+
+ /**
+ * Performs a deep copy on other.
+ */
+ public TArrayTypeEntry(TArrayTypeEntry other) {
+ __isset_bitfield = other.__isset_bitfield;
+ this.objectTypePtr = other.objectTypePtr;
+ }
+
+ public TArrayTypeEntry deepCopy() {
+ return new TArrayTypeEntry(this);
+ }
+
+ @Override
+ public void clear() {
+ setObjectTypePtrIsSet(false);
+ this.objectTypePtr = 0;
+ }
+
+ public int getObjectTypePtr() {
+ return this.objectTypePtr;
+ }
+
+ public void setObjectTypePtr(int objectTypePtr) {
+ this.objectTypePtr = objectTypePtr;
+ setObjectTypePtrIsSet(true);
+ }
+
+ public void unsetObjectTypePtr() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OBJECTTYPEPTR_ISSET_ID);
+ }
+
+ /** Returns true if field objectTypePtr is set (has been assigned a value) and false otherwise */
+ public boolean isSetObjectTypePtr() {
+ return EncodingUtils.testBit(__isset_bitfield, __OBJECTTYPEPTR_ISSET_ID);
+ }
+
+ public void setObjectTypePtrIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OBJECTTYPEPTR_ISSET_ID, value);
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case OBJECT_TYPE_PTR:
+ if (value == null) {
+ unsetObjectTypePtr();
+ } else {
+ setObjectTypePtr((Integer)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case OBJECT_TYPE_PTR:
+ return Integer.valueOf(getObjectTypePtr());
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case OBJECT_TYPE_PTR:
+ return isSetObjectTypePtr();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof TArrayTypeEntry)
+ return this.equals((TArrayTypeEntry)that);
+ return false;
+ }
+
+ public boolean equals(TArrayTypeEntry that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_objectTypePtr = true;
+ boolean that_present_objectTypePtr = true;
+ if (this_present_objectTypePtr || that_present_objectTypePtr) {
+ if (!(this_present_objectTypePtr && that_present_objectTypePtr))
+ return false;
+ if (this.objectTypePtr != that.objectTypePtr)
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ List