diff --git a/beeline/pom.xml b/beeline/pom.xml
index 4806fb7ede50..3001018004f2 100644
--- a/beeline/pom.xml
+++ b/beeline/pom.xml
@@ -133,6 +133,16 @@
org.apache.thrift
libthrift
+
+
+ org.apache.httpcomponents
+ httpclient
+
+
+ org.apache.httpcomponents
+ httpcore
+
+
net.sf.supercsv
diff --git a/cli/pom.xml b/cli/pom.xml
index 862cbda11f46..8b241dd27291 100644
--- a/cli/pom.xml
+++ b/cli/pom.xml
@@ -88,6 +88,16 @@
org.apache.thrift
libthrift
+
+
+ org.apache.httpcomponents
+ httpclient
+
+
+ org.apache.httpcomponents
+ httpcore
+
+
org.apache.hadoop
diff --git a/itests/hive-unit/src/test/java/org/apache/hive/jdbc/miniHS2/TestHs2ConnectionMetricsHttp.java b/itests/hive-unit/src/test/java/org/apache/hive/jdbc/miniHS2/TestHs2ConnectionMetricsHttp.java
index 5852535a7ac3..a8f1c39141a8 100644
--- a/itests/hive-unit/src/test/java/org/apache/hive/jdbc/miniHS2/TestHs2ConnectionMetricsHttp.java
+++ b/itests/hive-unit/src/test/java/org/apache/hive/jdbc/miniHS2/TestHs2ConnectionMetricsHttp.java
@@ -24,14 +24,14 @@
import org.apache.hadoop.hive.common.metrics.common.MetricsFactory;
import org.apache.hadoop.hive.common.metrics.metrics2.CodahaleMetrics;
import org.apache.hadoop.hive.conf.HiveConf;
+import org.apache.hc.client5.http.cookie.CookieStore;
+import org.apache.hc.client5.http.impl.classic.HttpClientBuilder;
import org.apache.hive.jdbc.HttpBasicAuthInterceptor;
import org.apache.hive.service.rpc.thrift.TCLIService;
import org.apache.hive.service.rpc.thrift.TCloseSessionReq;
import org.apache.hive.service.rpc.thrift.TOpenSessionReq;
import org.apache.hive.service.rpc.thrift.TOpenSessionResp;
import org.apache.hive.service.rpc.thrift.TSessionHandle;
-import org.apache.http.client.CookieStore;
-import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.protocol.TProtocol;
import org.apache.thrift.transport.THttpClient;
@@ -89,14 +89,14 @@ public void testOpenConnectionMetrics() throws Exception {
}
private TCLIService.Client getHttpClient() throws Exception {
- DefaultHttpClient httpClient = new DefaultHttpClient();
+ HttpClientBuilder httpClient = HttpClientBuilder.create();
Map headers = new HashMap<>();
headers.put("Connection", "close");
- httpClient.addRequestInterceptor(new BasicHttpRequestInterceptor(USERNAME, PASSWORD, null,
+ httpClient.addRequestInterceptorLast(new BasicHttpRequestInterceptor(USERNAME, PASSWORD, null,
null, false, headers));
- TTransport transport = new THttpClient(getHttpUrl(), httpClient);
+ TTransport transport = new THttpClient(getHttpUrl(), httpClient.build());
TProtocol protocol = new TBinaryProtocol(transport);
return new TCLIService.Client(protocol);
}
diff --git a/itests/hive-unit/src/test/java/org/apache/hive/service/TestHttpServices.java b/itests/hive-unit/src/test/java/org/apache/hive/service/TestHttpServices.java
index d4f9ab1fc6ad..9aa0e260f155 100644
--- a/itests/hive-unit/src/test/java/org/apache/hive/service/TestHttpServices.java
+++ b/itests/hive-unit/src/test/java/org/apache/hive/service/TestHttpServices.java
@@ -20,11 +20,11 @@
import org.apache.hadoop.hive.conf.HiveConf;
import org.apache.hadoop.hive.metastore.conf.MetastoreConf;
-import org.apache.http.client.methods.HttpGet;
-import org.apache.http.impl.client.CloseableHttpClient;
-import org.apache.http.client.methods.CloseableHttpResponse;
-import org.apache.http.impl.client.HttpClients;
-import org.apache.http.Header;
+import org.apache.hc.client5.http.classic.methods.HttpGet;
+import org.apache.hc.client5.http.impl.classic.CloseableHttpClient;
+import org.apache.hc.client5.http.impl.classic.CloseableHttpResponse;
+import org.apache.hc.client5.http.impl.classic.HttpClients;
+import org.apache.hc.core5.http.Header;
import org.apache.hive.jdbc.miniHS2.MiniHS2;
import org.junit.AfterClass;
import org.junit.Assert;
@@ -83,7 +83,7 @@ private void testHttpServiceDoesNotContainServerVersionAndXPoweredBy(String mini
HttpGet request = new HttpGet(miniHS2);
try (CloseableHttpResponse response = httpClient.execute(request)) {
- for (Header header : response.getAllHeaders()) {
+ for (Header header : response.getHeaders()) {
Assert.assertNotEquals("x-powered-by", header.getName().toLowerCase());
Assert.assertNotEquals("server", header.getName().toLowerCase());
}
diff --git a/itests/hive-unit/src/test/java/org/apache/hive/service/cli/thrift/TestThriftHttpCLIServiceFeatures.java b/itests/hive-unit/src/test/java/org/apache/hive/service/cli/thrift/TestThriftHttpCLIServiceFeatures.java
index 5aa8f42e7f02..9521c1cfd44e 100644
--- a/itests/hive-unit/src/test/java/org/apache/hive/service/cli/thrift/TestThriftHttpCLIServiceFeatures.java
+++ b/itests/hive-unit/src/test/java/org/apache/hive/service/cli/thrift/TestThriftHttpCLIServiceFeatures.java
@@ -45,20 +45,22 @@
import org.apache.hadoop.hive.ql.security.authorization.plugin.HivePrivilegeObject;
import org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAuthzContext;
import org.apache.hadoop.hive.common.IPStackUtils;
+import org.apache.hc.client5.http.classic.HttpClient;
+import org.apache.hc.client5.http.cookie.CookieStore;
+import org.apache.hc.client5.http.impl.classic.HttpClientBuilder;
+import org.apache.hc.client5.http.protocol.RequestDefaultHeaders;
+import org.apache.hc.core5.http.EntityDetails;
+import org.apache.hc.core5.http.Header;
+import org.apache.hc.core5.http.HttpException;
+import org.apache.hc.core5.http.HttpRequest;
+import org.apache.hc.core5.http.message.BasicHeader;
+import org.apache.hc.core5.http.protocol.HttpContext;
import org.apache.hive.jdbc.HttpBasicAuthInterceptor;
import org.apache.hive.service.auth.HiveAuthConstants;
import org.apache.hive.service.rpc.thrift.TCLIService;
import org.apache.hive.service.rpc.thrift.TExecuteStatementReq;
import org.apache.hive.service.rpc.thrift.TOpenSessionReq;
import org.apache.hive.service.rpc.thrift.TOpenSessionResp;
-import org.apache.http.Header;
-import org.apache.http.HttpException;
-import org.apache.http.HttpRequest;
-import org.apache.http.client.CookieStore;
-import org.apache.http.client.protocol.RequestDefaultHeaders;
-import org.apache.http.impl.client.DefaultHttpClient;
-import org.apache.http.message.BasicHeader;
-import org.apache.http.protocol.HttpContext;
import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.protocol.TProtocol;
import org.apache.thrift.transport.THttpClient;
@@ -101,13 +103,13 @@ public HttpBasicAuthInterceptorWithLogging(String username, String password,
}
@Override
- public void process(HttpRequest httpRequest, HttpContext httpContext)
+ public void process(HttpRequest httpRequest, EntityDetails entityDetails, HttpContext httpContext)
throws HttpException, IOException {
- super.process(httpRequest, httpContext);
+ super.process(httpRequest, entityDetails, httpContext);
String currHeaders = "";
- for (org.apache.http.Header h : httpRequest.getAllHeaders()) {
+ for (Header h : httpRequest.getHeaders()) {
currHeaders += h.getName() + ":" + h.getValue() + " ";
}
requestHeaders.add(currHeaders);
@@ -222,11 +224,15 @@ private TTransport getRawBinaryTransport() throws Exception {
}
private static TTransport getHttpTransport() throws Exception {
- DefaultHttpClient httpClient = new DefaultHttpClient();
String httpUrl = getHttpUrl();
- httpClient.addRequestInterceptor(
- new HttpBasicAuthInterceptor(USERNAME, PASSWORD,
- null, null, false, null, null));
+
+ HttpClient httpClient = HttpClientBuilder.create()
+ .addRequestInterceptorLast(
+ new HttpBasicAuthInterceptor(USERNAME, PASSWORD,
+ null, null, false, null, null)
+ )
+ .build();
+
return new THttpClient(httpUrl, httpClient);
}
@@ -281,12 +287,13 @@ public void testCustomCookies() throws Exception {
public HttpBasicAuthInterceptorWithLogging openSessionWithTestInterceptor(
Map additionalHeaders, Map cookieHeaders) throws Exception {
TTransport transport;
- DefaultHttpClient hClient = new DefaultHttpClient();
String httpUrl = getHttpUrl();
HttpBasicAuthInterceptorWithLogging authInt =
- new HttpBasicAuthInterceptorWithLogging(USERNAME, PASSWORD, null, null,
- false, additionalHeaders, cookieHeaders);
- hClient.addRequestInterceptor(authInt);
+ new HttpBasicAuthInterceptorWithLogging(USERNAME, PASSWORD, null, null,
+ false, additionalHeaders, cookieHeaders);
+ HttpClient hClient = HttpClientBuilder.create()
+ .addRequestInterceptorLast(authInt)
+ .build();
transport = new THttpClient(httpUrl, hClient);
TCLIService.Client httpClient = getClient(transport);
@@ -324,24 +331,24 @@ public void testForwardedHeaders() throws Exception {
private void verifyForwardedHeaders(ArrayList headerIPs, String cmd) throws Exception {
TTransport transport;
- DefaultHttpClient hClient = new DefaultHttpClient();
String httpUrl = getHttpUrl();
+ HttpClientBuilder hClient = HttpClientBuilder.create();
// add an interceptor that adds the X-Forwarded-For header with given ips
if (!headerIPs.isEmpty()) {
Header xForwardHeader = new BasicHeader("X-Forwarded-For", Joiner.on(",").join(headerIPs));
RequestDefaultHeaders headerInterceptor = new RequestDefaultHeaders(
Arrays.asList(xForwardHeader));
- hClient.addRequestInterceptor(headerInterceptor);
+ hClient.addRequestInterceptorLast(headerInterceptor);
}
// interceptor for adding username, pwd
HttpBasicAuthInterceptor authInt = new HttpBasicAuthInterceptor(USERNAME,
PASSWORD, null, null,
false, null, null);
- hClient.addRequestInterceptor(authInt);
+ hClient.addRequestInterceptorLast(authInt);
- transport = new THttpClient(httpUrl, hClient);
+ transport = new THttpClient(httpUrl, hClient.build());
TCLIService.Client httpClient = getClient(transport);
// Create a new open session request object
diff --git a/jdbc/pom.xml b/jdbc/pom.xml
index 3243d5d66f7f..555421420c95 100644
--- a/jdbc/pom.xml
+++ b/jdbc/pom.xml
@@ -113,16 +113,28 @@
- org.apache.httpcomponents
- httpclient
+ org.apache.httpcomponents.client5
+ httpclient5
+ ${httpcomponents5.client.version}
- org.apache.httpcomponents
- httpcore
+ org.apache.httpcomponents.core5
+ httpcore5
+ ${httpcomponents5.core.version}
org.apache.thrift
libthrift
+
+
+ org.apache.httpcomponents
+ httpclient
+
+
+ org.apache.httpcomponents
+ httpcore
+
+
org.apache.zookeeper
@@ -179,6 +191,12 @@
junit-vintage-engine
test
+
+ commons-httpclient
+ commons-httpclient
+ 3.1
+ compile
+
diff --git a/jdbc/src/java/org/apache/hive/jdbc/CsrfHttpRequestInterceptor.java b/jdbc/src/java/org/apache/hive/jdbc/CsrfHttpRequestInterceptor.java
index e23df76ac491..b33784225097 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/CsrfHttpRequestInterceptor.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/CsrfHttpRequestInterceptor.java
@@ -18,10 +18,11 @@
package org.apache.hive.jdbc;
-import org.apache.http.HttpException;
-import org.apache.http.HttpRequest;
-import org.apache.http.HttpRequestInterceptor;
-import org.apache.http.protocol.HttpContext;
+import org.apache.hc.core5.http.EntityDetails;
+import org.apache.hc.core5.http.HttpException;
+import org.apache.hc.core5.http.HttpRequest;
+import org.apache.hc.core5.http.HttpRequestInterceptor;
+import org.apache.hc.core5.http.protocol.HttpContext;
import java.io.IOException;
@@ -47,10 +48,10 @@ public static void setInjectHeader(boolean headerInjection){
}
@Override
- public void process(HttpRequest httpRequest, HttpContext httpContext)
+ public void process(HttpRequest request, EntityDetails entity, HttpContext context)
throws HttpException, IOException {
if (injectHeader){
- httpRequest.addHeader("X-CSRF-TOKEN", "true");
+ request.addHeader("X-CSRF-TOKEN", "true");
}
}
}
diff --git a/jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java b/jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java
index 8f7c3ea8acd4..834dd92f8169 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java
@@ -19,6 +19,7 @@
package org.apache.hive.jdbc;
import static org.apache.hadoop.hive.conf.Constants.MODE;
+import static org.apache.hc.core5.http.Method.isIdempotent;
import static org.apache.hive.service.auth.HiveAuthConstants.AuthTypes;
import static org.apache.hive.service.cli.operation.hplsql.HplSqlQueryExecutor.HPLSQL;
@@ -69,6 +70,7 @@
import java.util.Optional;
import java.util.Properties;
import java.util.concurrent.Executor;
+import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.ReentrantLock;
import java.util.stream.Stream;
@@ -92,6 +94,34 @@
import org.apache.hadoop.security.token.Token;
import org.apache.hadoop.security.token.TokenIdentifier;
import org.apache.hadoop.hive.common.IPStackUtils;
+import org.apache.hc.client5.http.HttpRequestRetryStrategy;
+import org.apache.hc.client5.http.classic.methods.HttpUriRequest;
+import org.apache.hc.client5.http.config.ConnectionConfig;
+import org.apache.hc.client5.http.config.RequestConfig;
+import org.apache.hc.client5.http.cookie.BasicCookieStore;
+import org.apache.hc.client5.http.cookie.CookieStore;
+import org.apache.hc.client5.http.impl.DefaultHttpRequestRetryStrategy;
+import org.apache.hc.client5.http.impl.classic.CloseableHttpClient;
+import org.apache.hc.client5.http.impl.classic.HttpClientBuilder;
+import org.apache.hc.client5.http.impl.classic.HttpClients;
+import org.apache.hc.client5.http.impl.io.BasicHttpClientConnectionManager;
+import org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManagerBuilder;
+import org.apache.hc.client5.http.io.HttpClientConnectionManager;
+import org.apache.hc.client5.http.protocol.HttpClientContext;
+import org.apache.hc.client5.http.socket.ConnectionSocketFactory;
+import org.apache.hc.client5.http.ssl.DefaultHostnameVerifier;
+import org.apache.hc.client5.http.ssl.SSLConnectionSocketFactory;
+import org.apache.hc.core5.http.HttpRequest;
+import org.apache.hc.core5.http.HttpResponse;
+import org.apache.hc.core5.http.HttpStatus;
+import org.apache.hc.core5.http.NoHttpResponseException;
+import org.apache.hc.core5.http.config.Registry;
+import org.apache.hc.core5.http.config.RegistryBuilder;
+import org.apache.hc.core5.http.protocol.HttpContext;
+import org.apache.hc.core5.ssl.SSLContexts;
+import org.apache.hc.core5.util.Args;
+import org.apache.hc.core5.util.TimeValue;
+import org.apache.hc.core5.util.Timeout;
import org.apache.hive.jdbc.jwt.HttpJwtAuthRequestInterceptor;
import org.apache.hive.jdbc.saml.HiveJdbcBrowserClientFactory;
import org.apache.hive.jdbc.saml.HiveJdbcSamlRedirectStrategy;
@@ -122,31 +152,6 @@
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.HttpEntityEnclosingRequest;
-import org.apache.http.HttpRequest;
-import org.apache.http.HttpResponse;
-import org.apache.http.NoHttpResponseException;
-import org.apache.http.HttpStatus;
-import org.apache.http.client.CookieStore;
-import org.apache.http.client.HttpRequestRetryHandler;
-import org.apache.http.client.ServiceUnavailableRetryStrategy;
-import org.apache.http.client.config.RequestConfig;
-import org.apache.http.client.methods.HttpUriRequest;
-import org.apache.http.client.protocol.HttpClientContext;
-import org.apache.http.config.Registry;
-import org.apache.http.config.RegistryBuilder;
-import org.apache.http.conn.socket.ConnectionSocketFactory;
-import org.apache.http.conn.ssl.DefaultHostnameVerifier;
-import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
-import org.apache.http.impl.client.BasicCookieStore;
-import org.apache.http.impl.client.CloseableHttpClient;
-import org.apache.http.impl.client.HttpClientBuilder;
-import org.apache.http.impl.client.HttpClients;
-import org.apache.http.impl.client.RequestWrapper;
-import org.apache.http.impl.conn.BasicHttpClientConnectionManager;
-import org.apache.http.protocol.HttpContext;
-import org.apache.http.ssl.SSLContexts;
-import org.apache.http.util.Args;
import org.apache.thrift.TBaseHelper;
import org.apache.thrift.TException;
import org.apache.thrift.protocol.TBinaryProtocol;
@@ -665,12 +670,19 @@ host, getServerHttpUrl(useSsl), loggedInSubject, cookieStore, cookieName,
if (isCookieEnabled) {
// Create a http client with a retry mechanism when the server returns a status code of 401.
httpClientBuilder =
- HttpClients.custom().setDefaultCookieStore(cookieStore).setServiceUnavailableRetryStrategy(
- new ServiceUnavailableRetryStrategy() {
+ HttpClients.custom().setDefaultCookieStore(cookieStore).setRetryStrategy(
+ new HttpRequestRetryStrategy() {
+ @Override
+ public boolean retryRequest(HttpRequest request, IOException exception, int execCount,
+ HttpContext context) {
+ // Do not retry on raw I/O exceptions
+ return false;
+ }
+
@Override
public boolean retryRequest(final HttpResponse response, final int executionCount,
final HttpContext context) {
- int statusCode = response.getStatusLine().getStatusCode();
+ int statusCode = response.getCode();
boolean sentCredentials = context.getAttribute(Utils.HIVE_SERVER2_SENT_CREDENTIALS) != null &&
context.getAttribute(Utils.HIVE_SERVER2_SENT_CREDENTIALS).equals(Utils.HIVE_SERVER2_CONST_TRUE);
boolean ret = statusCode == 401 && executionCount <= 1 && !sentCredentials;
@@ -685,15 +697,18 @@ public boolean retryRequest(final HttpResponse response, final int executionCoun
}
@Override
- public long getRetryInterval() {
- // Immediate retry
- return 0;
+ public TimeValue getRetryInterval(HttpResponse response, int execCount, HttpContext context) {
+ return TimeValue.ZERO_MILLISECONDS;
}
});
} else {
httpClientBuilder = HttpClientBuilder.create();
}
+ httpClientBuilder.addRequestInterceptorLast((request, entity, context) -> {
+ context.setAttribute("hive.request_sent", Boolean.TRUE);
+ });
+
// Beeline <------> LB <------> Reverse Proxy <-----> Hiveserver2
// In case of deployments like above, the LoadBalancer (LB) can be configured with Idle Timeout after which the LB
// will send TCP RST to Client (Beeline) and Backend (Reverse Proxy). If user is connected to beeline, idle for
@@ -704,7 +719,7 @@ public long getRetryInterval() {
// SocketTimeoutException (Read Timeout) or NoHttpResponseException both of which can be retried if maxRetries is
// also specified by the user (jdbc param).
// The following retry handler handles the above cases in addition to retries for idempotent and unsent requests.
- httpClientBuilder.setRetryHandler(new HttpRequestRetryHandler() {
+ httpClientBuilder.setRetryStrategy(new DefaultHttpRequestRetryStrategy() {
// This handler is mostly a copy of DefaultHttpRequestRetryHandler except it also retries some exceptions
// which could be thrown in certain cases where idle timeout from intermediate proxy triggers a connection reset.
private final List> nonRetriableClasses = Arrays.asList(
@@ -721,7 +736,7 @@ public long getRetryInterval() {
);
@Override
- public boolean retryRequest(IOException exception, int executionCount, HttpContext context) {
+ public boolean retryRequest(HttpRequest request, IOException exception, int executionCount, HttpContext context) {
Args.notNull(exception, "Exception parameter");
Args.notNull(context, "HTTP context");
if (executionCount > maxRetries) {
@@ -745,20 +760,20 @@ public boolean retryRequest(IOException exception, int executionCount, HttpConte
}
}
final HttpClientContext clientContext = HttpClientContext.adapt(context);
- final HttpRequest request = clientContext.getRequest();
if(requestIsAborted(request)){
LOG.info("Not retrying as request is aborted.");
return false;
}
- if (handleAsIdempotent(request)) {
+ if (isIdempotent(request.getMethod())) {
LOG.info("Retrying idempotent request. Attempt " + executionCount + " of " + maxRetries);
// Retry if the request is considered idempotent
return true;
}
- if (!clientContext.isRequestSent()) {
+ Boolean isSent = (Boolean) context.getAttribute("hive.request_sent");
+ if (isSent == null || !isSent) {
LOG.info("Retrying unsent request. Attempt " + executionCount + " of " + maxRetries);
// Retry if the request has not been sent fully or
// if it's OK to retry methods that have been sent
@@ -770,20 +785,9 @@ public boolean retryRequest(IOException exception, int executionCount, HttpConte
return false;
}
- // requests that handles "Expect continue" handshakes. If server received the header and is waiting for body
- // then those requests can be retried. Most basic http method methods except DELETE are idempotent as long as they
- // are not aborted.
- protected boolean handleAsIdempotent(final HttpRequest request) {
- return !(request instanceof HttpEntityEnclosingRequest);
- }
-
// checks if the request got aborted
protected boolean requestIsAborted(final HttpRequest request) {
- HttpRequest req = request;
- if (request instanceof RequestWrapper) { // does not forward request to original
- req = ((RequestWrapper) request).getOriginal();
- }
- return (req instanceof HttpUriRequest && ((HttpUriRequest)req).isAborted());
+ return (request instanceof HttpUriRequest && ((HttpUriRequest) request).isAborted());
}
});
@@ -796,21 +800,30 @@ protected boolean requestIsAborted(final HttpRequest request) {
requestInterceptor.setRequestTrackingEnabled(isRequestTrackingEnabled());
// Add the request interceptor to the client builder
- httpClientBuilder.addInterceptorFirst(requestInterceptor.sessionId(getSessionId()));
- httpClientBuilder.addInterceptorLast(new HttpDefaultResponseInterceptor());
+ httpClientBuilder.addRequestInterceptorFirst(requestInterceptor.sessionId(getSessionId()));
+ httpClientBuilder.addResponseInterceptorLast(new HttpDefaultResponseInterceptor());
// Add an interceptor to add in an XSRF header
- httpClientBuilder.addInterceptorLast(new XsrfHttpRequestInterceptor());
+ httpClientBuilder.addRequestInterceptorLast(new XsrfHttpRequestInterceptor());
// Add an interceptor to add in a CSRF header
- httpClientBuilder.addInterceptorLast(new CsrfHttpRequestInterceptor());
+ httpClientBuilder.addRequestInterceptorLast((new CsrfHttpRequestInterceptor()));
// set the specified timeout (socketTimeout jdbc param) for http connection as well
RequestConfig config = RequestConfig.custom()
- .setConnectTimeout(loginTimeout * 1000)
- .setConnectionRequestTimeout(loginTimeout * 1000)
- .setSocketTimeout(loginTimeout * 1000).build();
+ .setConnectionRequestTimeout(Timeout.ofSeconds(loginTimeout))
+ .setResponseTimeout(Timeout.ofSeconds(loginTimeout))
+ .build();
+ ConnectionConfig connectionConfig = ConnectionConfig.custom()
+ .setConnectTimeout(Timeout.ofSeconds(loginTimeout))
+ .setSocketTimeout(Timeout.ofSeconds(loginTimeout))
+ .build();
+
httpClientBuilder.setDefaultRequestConfig(config);
+ HttpClientConnectionManager cm = PoolingHttpClientConnectionManagerBuilder.create()
+ .setDefaultConnectionConfig(connectionConfig)
+ .build();
+ httpClientBuilder.setConnectionManager(cm);
// Configure http client for SSL
if (useSsl) {
diff --git a/jdbc/src/java/org/apache/hive/jdbc/HttpBasicAuthInterceptor.java b/jdbc/src/java/org/apache/hive/jdbc/HttpBasicAuthInterceptor.java
index 1887e07b19d2..92af5f79dd98 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/HttpBasicAuthInterceptor.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/HttpBasicAuthInterceptor.java
@@ -18,15 +18,14 @@
package org.apache.hive.jdbc;
-import java.util.Map;
+import org.apache.hc.client5.http.auth.UsernamePasswordCredentials;
+import org.apache.hc.client5.http.cookie.CookieStore;
+import org.apache.hc.client5.http.impl.auth.BasicScheme;
+import org.apache.hc.core5.http.HttpHeaders;
+import org.apache.hc.core5.http.HttpRequest;
+import org.apache.hc.core5.http.protocol.HttpContext;
-import org.apache.http.Header;
-import org.apache.http.HttpRequest;
-import org.apache.http.auth.UsernamePasswordCredentials;
-import org.apache.http.client.CookieStore;
-import org.apache.http.impl.auth.AuthSchemeBase;
-import org.apache.http.impl.auth.BasicScheme;
-import org.apache.http.protocol.HttpContext;
+import java.util.Map;
/**
* The class is instantiated with the username and password, it is then used to add header with
@@ -35,7 +34,7 @@
*/
public class HttpBasicAuthInterceptor extends HttpRequestInterceptorBase {
UsernamePasswordCredentials credentials;
- AuthSchemeBase authScheme;
+ BasicScheme authScheme;
public HttpBasicAuthInterceptor(String username, String password, CookieStore cookieStore,
String cn, boolean isSSL, Map additionalHeaders,
@@ -43,14 +42,18 @@ public HttpBasicAuthInterceptor(String username, String password, CookieStore co
super(cookieStore, cn, isSSL, additionalHeaders, customCookies);
this.authScheme = new BasicScheme();
if (username != null) {
- this.credentials = new UsernamePasswordCredentials(username, password);
+ this.credentials = new UsernamePasswordCredentials(username, password.toCharArray());
+ this.authScheme.initPreemptive(credentials);
}
}
@Override
protected void addHttpAuthHeader(HttpRequest httpRequest, HttpContext httpContext)
throws Exception {
- Header basicAuthHeader = authScheme.authenticate(credentials, httpRequest, httpContext);
- httpRequest.addHeader(basicAuthHeader);
+ String authHeaderValue = authScheme.generateAuthResponse(null, httpRequest, httpContext);
+
+ if (authHeaderValue != null) {
+ httpRequest.addHeader(HttpHeaders.AUTHORIZATION, authHeaderValue);
+ }
}
}
\ No newline at end of file
diff --git a/jdbc/src/java/org/apache/hive/jdbc/HttpDefaultResponseInterceptor.java b/jdbc/src/java/org/apache/hive/jdbc/HttpDefaultResponseInterceptor.java
index 94e5b9125d05..3d0369b410df 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/HttpDefaultResponseInterceptor.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/HttpDefaultResponseInterceptor.java
@@ -21,14 +21,15 @@
import org.apache.hadoop.hive.conf.Constants;
import org.apache.hadoop.util.Time;
-import org.apache.http.HttpException;
-import org.apache.http.HttpResponse;
-import org.apache.http.protocol.HttpContext;
+import org.apache.hc.core5.http.EntityDetails;
+import org.apache.hc.core5.http.HttpException;
+import org.apache.hc.core5.http.HttpResponse;
+import org.apache.hc.core5.http.protocol.HttpContext;
public class HttpDefaultResponseInterceptor extends HttpResponseInterceptorBase {
@Override
- public void process(HttpResponse response, HttpContext context) throws HttpException, IOException {
+ public void process(HttpResponse response, EntityDetails entityDetails, HttpContext context) throws HttpException, IOException {
String trackHeader = (String) context.getAttribute(Constants.HTTP_HEADER_REQUEST_TRACK);
if (trackHeader == null) {
return;
diff --git a/jdbc/src/java/org/apache/hive/jdbc/HttpKerberosRequestInterceptor.java b/jdbc/src/java/org/apache/hive/jdbc/HttpKerberosRequestInterceptor.java
index bff6fd65806b..a8709c67c91e 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/HttpKerberosRequestInterceptor.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/HttpKerberosRequestInterceptor.java
@@ -23,11 +23,11 @@
import javax.security.auth.Subject;
+import org.apache.hc.client5.http.cookie.CookieStore;
+import org.apache.hc.core5.http.HttpException;
+import org.apache.hc.core5.http.HttpRequest;
+import org.apache.hc.core5.http.protocol.HttpContext;
import org.apache.hive.service.auth.HttpAuthUtils;
-import org.apache.http.HttpException;
-import org.apache.http.HttpRequest;
-import org.apache.http.client.CookieStore;
-import org.apache.http.protocol.HttpContext;
/**
* Authentication interceptor which adds Base64 encoded payload,
diff --git a/jdbc/src/java/org/apache/hive/jdbc/HttpRequestInterceptorBase.java b/jdbc/src/java/org/apache/hive/jdbc/HttpRequestInterceptorBase.java
index a31c157354ee..ddc71107fed2 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/HttpRequestInterceptorBase.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/HttpRequestInterceptorBase.java
@@ -25,12 +25,13 @@
import java.util.function.Supplier;
import org.apache.hadoop.hive.conf.Constants;
import org.apache.hadoop.util.Time;
-import org.apache.http.Header;
-import org.apache.http.HttpException;
-import org.apache.http.HttpRequest;
-import org.apache.http.HttpRequestInterceptor;
-import org.apache.http.client.CookieStore;
-import org.apache.http.protocol.HttpContext;
+import org.apache.hc.client5.http.cookie.CookieStore;
+import org.apache.hc.core5.http.EntityDetails;
+import org.apache.hc.core5.http.Header;
+import org.apache.hc.core5.http.HttpException;
+import org.apache.hc.core5.http.HttpRequest;
+import org.apache.hc.core5.http.HttpRequestInterceptor;
+import org.apache.hc.core5.http.protocol.HttpContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -62,7 +63,7 @@ public HttpRequestInterceptorBase(CookieStore cs, String cn, boolean isSSL,
}
@Override
- public void process(HttpRequest httpRequest, HttpContext httpContext)
+ public void process(HttpRequest httpRequest, EntityDetails entity, HttpContext httpContext)
throws HttpException, IOException {
try {
// If cookie based authentication is allowed, generate ticket only when necessary.
diff --git a/jdbc/src/java/org/apache/hive/jdbc/HttpResponseInterceptorBase.java b/jdbc/src/java/org/apache/hive/jdbc/HttpResponseInterceptorBase.java
index 6036a12d38fb..9950d303c5f2 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/HttpResponseInterceptorBase.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/HttpResponseInterceptorBase.java
@@ -17,7 +17,7 @@
*/
package org.apache.hive.jdbc;
-import org.apache.http.HttpResponseInterceptor;
+import org.apache.hc.core5.http.HttpResponseInterceptor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
diff --git a/jdbc/src/java/org/apache/hive/jdbc/HttpTokenAuthInterceptor.java b/jdbc/src/java/org/apache/hive/jdbc/HttpTokenAuthInterceptor.java
index fbfa7f6d5a6e..e8c95bfdc766 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/HttpTokenAuthInterceptor.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/HttpTokenAuthInterceptor.java
@@ -18,11 +18,11 @@
package org.apache.hive.jdbc;
-import java.util.Map;
+import org.apache.hc.client5.http.cookie.CookieStore;
+import org.apache.hc.core5.http.HttpRequest;
+import org.apache.hc.core5.http.protocol.HttpContext;
-import org.apache.http.HttpRequest;
-import org.apache.http.client.CookieStore;
-import org.apache.http.protocol.HttpContext;
+import java.util.Map;
/**
* The class is instantiated with the username and password, it is then
diff --git a/jdbc/src/java/org/apache/hive/jdbc/Utils.java b/jdbc/src/java/org/apache/hive/jdbc/Utils.java
index a5bba8b8c456..c96569773d48 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/Utils.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/Utils.java
@@ -35,11 +35,11 @@
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hive.conf.HiveConf;
import org.apache.hadoop.hive.common.IPStackUtils;
+import org.apache.hc.client5.http.cookie.Cookie;
+import org.apache.hc.client5.http.cookie.CookieStore;
import org.apache.hive.service.cli.HiveSQLException;
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;
import org.slf4j.LoggerFactory;
diff --git a/jdbc/src/java/org/apache/hive/jdbc/XsrfHttpRequestInterceptor.java b/jdbc/src/java/org/apache/hive/jdbc/XsrfHttpRequestInterceptor.java
index ec6c13f980b7..1aeb05128441 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/XsrfHttpRequestInterceptor.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/XsrfHttpRequestInterceptor.java
@@ -18,10 +18,11 @@
package org.apache.hive.jdbc;
-import org.apache.http.HttpException;
-import org.apache.http.HttpRequest;
-import org.apache.http.HttpRequestInterceptor;
-import org.apache.http.protocol.HttpContext;
+import org.apache.hc.core5.http.EntityDetails;
+import org.apache.hc.core5.http.HttpException;
+import org.apache.hc.core5.http.HttpRequest;
+import org.apache.hc.core5.http.HttpRequestInterceptor;
+import org.apache.hc.core5.http.protocol.HttpContext;
import java.io.IOException;
@@ -47,7 +48,7 @@ public static void enableHeaderInjection(boolean enabled){
}
@Override
- public void process(HttpRequest httpRequest, HttpContext httpContext)
+ public void process(HttpRequest httpRequest, EntityDetails entity, HttpContext httpContext)
throws HttpException, IOException {
if (injectHeader){
httpRequest.addHeader("X-XSRF-HEADER", "true");
diff --git a/jdbc/src/java/org/apache/hive/jdbc/jwt/HttpJwtAuthRequestInterceptor.java b/jdbc/src/java/org/apache/hive/jdbc/jwt/HttpJwtAuthRequestInterceptor.java
index 51390c686b84..58c25f0caa05 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/jwt/HttpJwtAuthRequestInterceptor.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/jwt/HttpJwtAuthRequestInterceptor.java
@@ -18,12 +18,12 @@
package org.apache.hive.jdbc.jwt;
+import org.apache.hc.client5.http.cookie.CookieStore;
+import org.apache.hc.core5.http.HttpHeaders;
+import org.apache.hc.core5.http.HttpRequest;
+import org.apache.hc.core5.http.protocol.HttpContext;
import org.apache.hive.jdbc.HttpRequestInterceptorBase;
import org.apache.hive.service.auth.HttpAuthUtils;
-import org.apache.http.HttpHeaders;
-import org.apache.http.HttpRequest;
-import org.apache.http.client.CookieStore;
-import org.apache.http.protocol.HttpContext;
import java.util.Map;
diff --git a/jdbc/src/java/org/apache/hive/jdbc/saml/HiveJdbcSamlRedirectStrategy.java b/jdbc/src/java/org/apache/hive/jdbc/saml/HiveJdbcSamlRedirectStrategy.java
index c5ce4eeea5ee..0857b23168f3 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/saml/HiveJdbcSamlRedirectStrategy.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/saml/HiveJdbcSamlRedirectStrategy.java
@@ -20,16 +20,18 @@
import com.google.common.base.Preconditions;
import java.net.URI;
+
+import org.apache.hc.client5.http.impl.DefaultRedirectStrategy;
+import org.apache.hc.client5.http.protocol.RedirectStrategy;
+import org.apache.hc.core5.http.Header;
+import org.apache.hc.core5.http.HttpException;
+import org.apache.hc.core5.http.HttpRequest;
+import org.apache.hc.core5.http.HttpResponse;
+import org.apache.hc.core5.http.HttpStatus;
+import org.apache.hc.core5.http.ProtocolException;
+import org.apache.hc.core5.http.protocol.HttpContext;
import org.apache.hive.jdbc.saml.IJdbcBrowserClient.JdbcBrowserClientContext;
import org.apache.hive.service.auth.saml.HiveSamlUtils;
-import org.apache.http.Header;
-import org.apache.http.HttpRequest;
-import org.apache.http.HttpResponse;
-import org.apache.http.HttpStatus;
-import org.apache.http.ProtocolException;
-import org.apache.http.client.RedirectStrategy;
-import org.apache.http.impl.client.DefaultRedirectStrategy;
-import org.apache.http.protocol.HttpContext;
/**
* This is an implementation of {@link RedirectStrategy} to intercept the HTTP redirect
@@ -51,9 +53,14 @@ public boolean isRedirected(
final HttpRequest request,
final HttpResponse response,
final HttpContext context) throws ProtocolException {
- int status = response.getStatusLine().getStatusCode();
+ int status = response.getCode();
if (status == HttpStatus.SC_MOVED_TEMPORARILY || status == HttpStatus.SC_SEE_OTHER) {
- URI locationUri = getLocationURI(request, response, context);
+ URI locationUri = null;
+ try {
+ locationUri = getLocationURI(request, response, context);
+ } catch (HttpException e) {
+ throw new ProtocolException(e.getMessage(), e);
+ }
Header clientIdentifier = response
.getFirstHeader(HiveSamlUtils.SSO_CLIENT_IDENTIFIER);
IJdbcBrowserClient.JdbcBrowserClientContext browserClientContext = new JdbcBrowserClientContext(
@@ -64,7 +71,7 @@ public boolean isRedirected(
}
@Override
- public URI getLocationURI(HttpRequest request, HttpResponse response, HttpContext context) throws ProtocolException {
+ public URI getLocationURI(HttpRequest request, HttpResponse response, HttpContext context) throws HttpException {
// add our own check to super-call
return checkSsoUri(super.getLocationURI(request, response, context));
}
diff --git a/jdbc/src/java/org/apache/hive/jdbc/saml/HttpSamlAuthRequestInterceptor.java b/jdbc/src/java/org/apache/hive/jdbc/saml/HttpSamlAuthRequestInterceptor.java
index 430dc8d0ef03..8d431259297e 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/saml/HttpSamlAuthRequestInterceptor.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/saml/HttpSamlAuthRequestInterceptor.java
@@ -20,13 +20,14 @@
import com.google.common.base.Preconditions;
import java.util.Map;
+
+import org.apache.hc.client5.http.cookie.CookieStore;
+import org.apache.hc.core5.http.HttpHeaders;
+import org.apache.hc.core5.http.HttpRequest;
+import org.apache.hc.core5.http.protocol.HttpContext;
import org.apache.hive.jdbc.HttpRequestInterceptorBase;
import org.apache.hive.service.auth.HttpAuthUtils;
import org.apache.hive.service.auth.saml.HiveSamlUtils;
-import org.apache.http.HttpHeaders;
-import org.apache.http.HttpRequest;
-import org.apache.http.client.CookieStore;
-import org.apache.http.protocol.HttpContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
diff --git a/jdbc/src/test/org/apache/hive/jdbc/TestHttpRequestInterceptor.java b/jdbc/src/test/org/apache/hive/jdbc/TestHttpRequestInterceptor.java
index 4c56aa6e7b10..b600d1c9c34d 100644
--- a/jdbc/src/test/org/apache/hive/jdbc/TestHttpRequestInterceptor.java
+++ b/jdbc/src/test/org/apache/hive/jdbc/TestHttpRequestInterceptor.java
@@ -22,10 +22,10 @@
import java.util.HashMap;
import org.apache.hadoop.hive.conf.Constants;
-import org.apache.http.HttpException;
-import org.apache.http.impl.client.BasicCookieStore;
-import org.apache.http.message.BasicHttpRequest;
-import org.apache.http.protocol.BasicHttpContext;
+import org.apache.hc.client5.http.cookie.BasicCookieStore;
+import org.apache.hc.client5.http.protocol.HttpClientContext;
+import org.apache.hc.core5.http.HttpException;
+import org.apache.hc.core5.http.message.BasicHttpRequest;
import org.junit.Assert;
import org.junit.Test;
@@ -36,7 +36,7 @@ public void testRequestTrackHeader() throws HttpException, IOException {
HttpRequestInterceptorBase requestInterceptor = getInterceptor();
requestInterceptor.setRequestTrackingEnabled(true);
requestInterceptor.sessionId(() -> "sessionId");
- requestInterceptor.process(new BasicHttpRequest("POST", "uri"), new BasicHttpContext());
+ requestInterceptor.process(new BasicHttpRequest("POST", "uri"), null, HttpClientContext.create());
Assert.assertTrue(requestInterceptor.additionalHeaders.containsKey(Constants.HTTP_HEADER_REQUEST_TRACK));
Assert.assertEquals("HIVE_sessionId_00000000000000000001",
diff --git a/llap-server/pom.xml b/llap-server/pom.xml
index 084cabce8adf..4f4330c50e6a 100644
--- a/llap-server/pom.xml
+++ b/llap-server/pom.xml
@@ -88,6 +88,16 @@
org.apache.thrift
libthrift
+
+
+ org.apache.httpcomponents
+ httpclient
+
+
+ org.apache.httpcomponents
+ httpcore
+
+
com.tdunning
diff --git a/metastore/pom.xml b/metastore/pom.xml
index 9c5fc6c32753..22eb7c71dd26 100644
--- a/metastore/pom.xml
+++ b/metastore/pom.xml
@@ -174,6 +174,16 @@
org.apache.thrift
libthrift
+
+
+ org.apache.httpcomponents
+ httpclient
+
+
+ org.apache.httpcomponents
+ httpcore
+
+
diff --git a/pom.xml b/pom.xml
index 61b116042fe3..4f3d81b80be5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -149,13 +149,11 @@
3.3.7
4.0.3
- 4.5.13
- 4.4.13
+ 5.6.2
+ 5.4.3
1.11.0
2.9.2
- 5.3.4
- 5.5
2.5.2
2.18.6
2.3.4
@@ -180,7 +178,7 @@
1.17.0
0.9.3
- 0.16.0
+ 0.23.0
2.25.3
2.5.0
6.2.1.jre8
@@ -591,16 +589,6 @@
-
- org.apache.httpcomponents
- httpclient
- ${httpcomponents.client.version}
-
-
- org.apache.httpcomponents
- httpcore
- ${httpcomponents.core.version}
-
org.apache.httpcomponents.client5
httpclient5
@@ -707,6 +695,16 @@
org.apache.thrift
libthrift
${libthrift.version}
+
+
+ org.apache.httpcomponents
+ httpclient
+
+
+ org.apache.httpcomponents
+ httpcore
+
+
org.apache.zookeeper
@@ -1826,15 +1824,6 @@
true
-
-
- Do not use httpcore5/httpclient5 classes until Hive is not upgraded to httpcore5/httpclient5
-
- org.apache.hc.client5.**
- org.apache.hc.core5.**
-
- true
-
diff --git a/ql/pom.xml b/ql/pom.xml
index 41799b8531c6..8df2c85abc9a 100644
--- a/ql/pom.xml
+++ b/ql/pom.xml
@@ -378,6 +378,16 @@
org.apache.thrift
libthrift
+
+
+ org.apache.httpcomponents
+ httpclient
+
+
+ org.apache.httpcomponents
+ httpcore
+
+
org.apache.zookeeper
diff --git a/serde/pom.xml b/serde/pom.xml
index f68c13b838e5..5179d9a10bfa 100644
--- a/serde/pom.xml
+++ b/serde/pom.xml
@@ -86,6 +86,14 @@
commons-logging
commons-logging
+
+ org.apache.httpcomponents
+ httpclient
+
+
+ org.apache.httpcomponents
+ httpcore
+
diff --git a/serde/src/gen/thrift/gen-cpp/complex_types.cpp b/serde/src/gen/thrift/gen-cpp/complex_types.cpp
index ff7fcf712635..51df6558a903 100644
--- a/serde/src/gen/thrift/gen-cpp/complex_types.cpp
+++ b/serde/src/gen/thrift/gen-cpp/complex_types.cpp
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -17,6 +17,13 @@
PropValueUnion::~PropValueUnion() noexcept {
}
+PropValueUnion::PropValueUnion() noexcept
+ : intValue(0),
+ longValue(0),
+ stringValue(),
+ doubleValue(0),
+ flag(0) {
+}
void PropValueUnion::__set_intValue(const int32_t val) {
this->intValue = val;
@@ -237,7 +244,7 @@ uint32_t PropValueUnion::write(::apache::thrift::protocol::TProtocol* oprot) con
return xfer;
}
-void swap(PropValueUnion &a, PropValueUnion &b) {
+void swap(PropValueUnion &a, PropValueUnion &b) noexcept {
using ::std::swap;
swap(a.intValue, b.intValue);
swap(a.longValue, b.longValue);
@@ -249,6 +256,39 @@ void swap(PropValueUnion &a, PropValueUnion &b) {
swap(a.__isset, b.__isset);
}
+bool PropValueUnion::operator==(const PropValueUnion & rhs) const
+{
+ if (__isset.intValue != rhs.__isset.intValue)
+ return false;
+ else if (__isset.intValue && !(intValue == rhs.intValue))
+ return false;
+ if (__isset.longValue != rhs.__isset.longValue)
+ return false;
+ else if (__isset.longValue && !(longValue == rhs.longValue))
+ return false;
+ if (__isset.stringValue != rhs.__isset.stringValue)
+ return false;
+ else if (__isset.stringValue && !(stringValue == rhs.stringValue))
+ return false;
+ if (__isset.doubleValue != rhs.__isset.doubleValue)
+ return false;
+ else if (__isset.doubleValue && !(doubleValue == rhs.doubleValue))
+ return false;
+ if (__isset.flag != rhs.__isset.flag)
+ return false;
+ else if (__isset.flag && !(flag == rhs.flag))
+ return false;
+ if (__isset.lString != rhs.__isset.lString)
+ return false;
+ else if (__isset.lString && !(lString == rhs.lString))
+ return false;
+ if (__isset.unionMStringString != rhs.__isset.unionMStringString)
+ return false;
+ else if (__isset.unionMStringString && !(unionMStringString == rhs.unionMStringString))
+ return false;
+ return true;
+}
+
PropValueUnion::PropValueUnion(const PropValueUnion& other14) {
intValue = other14.intValue;
longValue = other14.longValue;
@@ -287,6 +327,11 @@ void PropValueUnion::printTo(std::ostream& out) const {
IntString::~IntString() noexcept {
}
+IntString::IntString() noexcept
+ : myint(0),
+ myString(),
+ underscore_int(0) {
+}
void IntString::__set_myint(const int32_t val) {
this->myint = val;
@@ -385,7 +430,7 @@ uint32_t IntString::write(::apache::thrift::protocol::TProtocol* oprot) const {
return xfer;
}
-void swap(IntString &a, IntString &b) {
+void swap(IntString &a, IntString &b) noexcept {
using ::std::swap;
swap(a.myint, b.myint);
swap(a.myString, b.myString);
@@ -393,6 +438,17 @@ void swap(IntString &a, IntString &b) {
swap(a.__isset, b.__isset);
}
+bool IntString::operator==(const IntString & rhs) const
+{
+ if (!(myint == rhs.myint))
+ return false;
+ if (!(myString == rhs.myString))
+ return false;
+ if (!(underscore_int == rhs.underscore_int))
+ return false;
+ return true;
+}
+
IntString::IntString(const IntString& other16) {
myint = other16.myint;
myString = other16.myString;
@@ -419,6 +475,10 @@ void IntString::printTo(std::ostream& out) const {
Complex::~Complex() noexcept {
}
+Complex::Complex() noexcept
+ : aint(0),
+ aString() {
+}
void Complex::__set_aint(const int32_t val) {
this->aint = val;
@@ -785,7 +845,7 @@ uint32_t Complex::write(::apache::thrift::protocol::TProtocol* oprot) const {
return xfer;
}
-void swap(Complex &a, Complex &b) {
+void swap(Complex &a, Complex &b) noexcept {
using ::std::swap;
swap(a.aint, b.aint);
swap(a.aString, b.aString);
@@ -800,6 +860,31 @@ void swap(Complex &a, Complex &b) {
swap(a.__isset, b.__isset);
}
+bool Complex::operator==(const Complex & rhs) const
+{
+ if (!(aint == rhs.aint))
+ return false;
+ if (!(aString == rhs.aString))
+ return false;
+ if (!(lint == rhs.lint))
+ return false;
+ if (!(lString == rhs.lString))
+ return false;
+ if (!(lintString == rhs.lintString))
+ return false;
+ if (!(mStringString == rhs.mStringString))
+ return false;
+ if (!(attributes == rhs.attributes))
+ return false;
+ if (!(unionField1 == rhs.unionField1))
+ return false;
+ if (!(unionField2 == rhs.unionField2))
+ return false;
+ if (!(unionField3 == rhs.unionField3))
+ return false;
+ return true;
+}
+
Complex::Complex(const Complex& other68) {
aint = other68.aint;
aString = other68.aString;
@@ -847,6 +932,9 @@ void Complex::printTo(std::ostream& out) const {
SetIntString::~SetIntString() noexcept {
}
+SetIntString::SetIntString() noexcept
+ : aString() {
+}
void SetIntString::__set_sIntString(const std::set & val) {
this->sIntString = val;
@@ -950,13 +1038,22 @@ uint32_t SetIntString::write(::apache::thrift::protocol::TProtocol* oprot) const
return xfer;
}
-void swap(SetIntString &a, SetIntString &b) {
+void swap(SetIntString &a, SetIntString &b) noexcept {
using ::std::swap;
swap(a.sIntString, b.sIntString);
swap(a.aString, b.aString);
swap(a.__isset, b.__isset);
}
+bool SetIntString::operator==(const SetIntString & rhs) const
+{
+ if (!(sIntString == rhs.sIntString))
+ return false;
+ if (!(aString == rhs.aString))
+ return false;
+ return true;
+}
+
SetIntString::SetIntString(const SetIntString& other77) {
sIntString = other77.sIntString;
aString = other77.aString;
diff --git a/serde/src/gen/thrift/gen-cpp/complex_types.h b/serde/src/gen/thrift/gen-cpp/complex_types.h
index df0826e661a2..5429b855ce31 100644
--- a/serde/src/gen/thrift/gen-cpp/complex_types.h
+++ b/serde/src/gen/thrift/gen-cpp/complex_types.h
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -45,13 +45,7 @@ class PropValueUnion : public virtual ::apache::thrift::TBase {
PropValueUnion(const PropValueUnion&);
PropValueUnion& operator=(const PropValueUnion&);
- PropValueUnion() noexcept
- : intValue(0),
- longValue(0),
- stringValue(),
- doubleValue(0),
- flag(0) {
- }
+ PropValueUnion() noexcept;
virtual ~PropValueUnion() noexcept;
int32_t intValue;
@@ -78,38 +72,7 @@ class PropValueUnion : public virtual ::apache::thrift::TBase {
void __set_unionMStringString(const std::map & val);
- bool operator == (const PropValueUnion & rhs) const
- {
- if (__isset.intValue != rhs.__isset.intValue)
- return false;
- else if (__isset.intValue && !(intValue == rhs.intValue))
- return false;
- if (__isset.longValue != rhs.__isset.longValue)
- return false;
- else if (__isset.longValue && !(longValue == rhs.longValue))
- return false;
- if (__isset.stringValue != rhs.__isset.stringValue)
- return false;
- else if (__isset.stringValue && !(stringValue == rhs.stringValue))
- return false;
- if (__isset.doubleValue != rhs.__isset.doubleValue)
- return false;
- else if (__isset.doubleValue && !(doubleValue == rhs.doubleValue))
- return false;
- if (__isset.flag != rhs.__isset.flag)
- return false;
- else if (__isset.flag && !(flag == rhs.flag))
- return false;
- if (__isset.lString != rhs.__isset.lString)
- return false;
- else if (__isset.lString && !(lString == rhs.lString))
- return false;
- if (__isset.unionMStringString != rhs.__isset.unionMStringString)
- return false;
- else if (__isset.unionMStringString && !(unionMStringString == rhs.unionMStringString))
- return false;
- return true;
- }
+ bool operator == (const PropValueUnion & rhs) const;
bool operator != (const PropValueUnion &rhs) const {
return !(*this == rhs);
}
@@ -122,7 +85,7 @@ class PropValueUnion : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(PropValueUnion &a, PropValueUnion &b);
+void swap(PropValueUnion &a, PropValueUnion &b) noexcept;
std::ostream& operator<<(std::ostream& out, const PropValueUnion& obj);
@@ -138,11 +101,7 @@ class IntString : public virtual ::apache::thrift::TBase {
IntString(const IntString&);
IntString& operator=(const IntString&);
- IntString() noexcept
- : myint(0),
- myString(),
- underscore_int(0) {
- }
+ IntString() noexcept;
virtual ~IntString() noexcept;
int32_t myint;
@@ -157,16 +116,7 @@ class IntString : public virtual ::apache::thrift::TBase {
void __set_underscore_int(const int32_t val);
- bool operator == (const IntString & rhs) const
- {
- if (!(myint == rhs.myint))
- return false;
- if (!(myString == rhs.myString))
- return false;
- if (!(underscore_int == rhs.underscore_int))
- return false;
- return true;
- }
+ bool operator == (const IntString & rhs) const;
bool operator != (const IntString &rhs) const {
return !(*this == rhs);
}
@@ -179,7 +129,7 @@ class IntString : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(IntString &a, IntString &b);
+void swap(IntString &a, IntString &b) noexcept;
std::ostream& operator<<(std::ostream& out, const IntString& obj);
@@ -202,10 +152,7 @@ class Complex : public virtual ::apache::thrift::TBase {
Complex(const Complex&);
Complex& operator=(const Complex&);
- Complex() noexcept
- : aint(0),
- aString() {
- }
+ Complex() noexcept;
virtual ~Complex() noexcept;
int32_t aint;
@@ -241,30 +188,7 @@ class Complex : public virtual ::apache::thrift::TBase {
void __set_unionField3(const PropValueUnion& val);
- bool operator == (const Complex & rhs) const
- {
- if (!(aint == rhs.aint))
- return false;
- if (!(aString == rhs.aString))
- return false;
- if (!(lint == rhs.lint))
- return false;
- if (!(lString == rhs.lString))
- return false;
- if (!(lintString == rhs.lintString))
- return false;
- if (!(mStringString == rhs.mStringString))
- return false;
- if (!(attributes == rhs.attributes))
- return false;
- if (!(unionField1 == rhs.unionField1))
- return false;
- if (!(unionField2 == rhs.unionField2))
- return false;
- if (!(unionField3 == rhs.unionField3))
- return false;
- return true;
- }
+ bool operator == (const Complex & rhs) const;
bool operator != (const Complex &rhs) const {
return !(*this == rhs);
}
@@ -277,7 +201,7 @@ class Complex : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(Complex &a, Complex &b);
+void swap(Complex &a, Complex &b) noexcept;
std::ostream& operator<<(std::ostream& out, const Complex& obj);
@@ -292,9 +216,7 @@ class SetIntString : public virtual ::apache::thrift::TBase {
SetIntString(const SetIntString&);
SetIntString& operator=(const SetIntString&);
- SetIntString() noexcept
- : aString() {
- }
+ SetIntString() noexcept;
virtual ~SetIntString() noexcept;
std::set sIntString;
@@ -306,14 +228,7 @@ class SetIntString : public virtual ::apache::thrift::TBase {
void __set_aString(const std::string& val);
- bool operator == (const SetIntString & rhs) const
- {
- if (!(sIntString == rhs.sIntString))
- return false;
- if (!(aString == rhs.aString))
- return false;
- return true;
- }
+ bool operator == (const SetIntString & rhs) const;
bool operator != (const SetIntString &rhs) const {
return !(*this == rhs);
}
@@ -326,7 +241,7 @@ class SetIntString : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(SetIntString &a, SetIntString &b);
+void swap(SetIntString &a, SetIntString &b) noexcept;
std::ostream& operator<<(std::ostream& out, const SetIntString& obj);
diff --git a/serde/src/gen/thrift/gen-cpp/megastruct_types.cpp b/serde/src/gen/thrift/gen-cpp/megastruct_types.cpp
index e0e6bb73311c..c7afe2eacb0f 100644
--- a/serde/src/gen/thrift/gen-cpp/megastruct_types.cpp
+++ b/serde/src/gen/thrift/gen-cpp/megastruct_types.cpp
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -46,6 +46,10 @@ std::string to_string(const MyEnum::type& val) {
MiniStruct::~MiniStruct() noexcept {
}
+MiniStruct::MiniStruct() noexcept
+ : my_string(),
+ my_enum(static_cast(0)) {
+}
void MiniStruct::__set_my_string(const std::string& val) {
this->my_string = val;
@@ -134,13 +138,26 @@ uint32_t MiniStruct::write(::apache::thrift::protocol::TProtocol* oprot) const {
return xfer;
}
-void swap(MiniStruct &a, MiniStruct &b) {
+void swap(MiniStruct &a, MiniStruct &b) noexcept {
using ::std::swap;
swap(a.my_string, b.my_string);
swap(a.my_enum, b.my_enum);
swap(a.__isset, b.__isset);
}
+bool MiniStruct::operator==(const MiniStruct & rhs) const
+{
+ if (__isset.my_string != rhs.__isset.my_string)
+ return false;
+ else if (__isset.my_string && !(my_string == rhs.my_string))
+ return false;
+ if (__isset.my_enum != rhs.__isset.my_enum)
+ return false;
+ else if (__isset.my_enum && !(my_enum == rhs.my_enum))
+ return false;
+ return true;
+}
+
MiniStruct::MiniStruct(const MiniStruct& other1) {
my_string = other1.my_string;
my_enum = other1.my_enum;
@@ -164,6 +181,16 @@ void MiniStruct::printTo(std::ostream& out) const {
MegaStruct::~MegaStruct() noexcept {
}
+MegaStruct::MegaStruct() noexcept
+ : my_bool(0),
+ my_byte(0),
+ my_16bit_int(0),
+ my_32bit_int(0),
+ my_64bit_int(0),
+ my_double(0),
+ my_string(),
+ my_binary() {
+}
void MegaStruct::__set_my_bool(const bool val) {
this->my_bool = val;
@@ -895,7 +922,7 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const {
return xfer;
}
-void swap(MegaStruct &a, MegaStruct &b) {
+void swap(MegaStruct &a, MegaStruct &b) noexcept {
using ::std::swap;
swap(a.my_bool, b.my_bool);
swap(a.my_byte, b.my_byte);
@@ -920,6 +947,91 @@ void swap(MegaStruct &a, MegaStruct &b) {
swap(a.__isset, b.__isset);
}
+bool MegaStruct::operator==(const MegaStruct & rhs) const
+{
+ if (__isset.my_bool != rhs.__isset.my_bool)
+ return false;
+ else if (__isset.my_bool && !(my_bool == rhs.my_bool))
+ return false;
+ if (__isset.my_byte != rhs.__isset.my_byte)
+ return false;
+ else if (__isset.my_byte && !(my_byte == rhs.my_byte))
+ return false;
+ if (__isset.my_16bit_int != rhs.__isset.my_16bit_int)
+ return false;
+ else if (__isset.my_16bit_int && !(my_16bit_int == rhs.my_16bit_int))
+ return false;
+ if (__isset.my_32bit_int != rhs.__isset.my_32bit_int)
+ return false;
+ else if (__isset.my_32bit_int && !(my_32bit_int == rhs.my_32bit_int))
+ return false;
+ if (__isset.my_64bit_int != rhs.__isset.my_64bit_int)
+ return false;
+ else if (__isset.my_64bit_int && !(my_64bit_int == rhs.my_64bit_int))
+ return false;
+ if (__isset.my_double != rhs.__isset.my_double)
+ return false;
+ else if (__isset.my_double && !(my_double == rhs.my_double))
+ return false;
+ if (__isset.my_string != rhs.__isset.my_string)
+ return false;
+ else if (__isset.my_string && !(my_string == rhs.my_string))
+ return false;
+ if (__isset.my_binary != rhs.__isset.my_binary)
+ return false;
+ else if (__isset.my_binary && !(my_binary == rhs.my_binary))
+ return false;
+ if (__isset.my_string_string_map != rhs.__isset.my_string_string_map)
+ return false;
+ else if (__isset.my_string_string_map && !(my_string_string_map == rhs.my_string_string_map))
+ return false;
+ if (__isset.my_string_enum_map != rhs.__isset.my_string_enum_map)
+ return false;
+ else if (__isset.my_string_enum_map && !(my_string_enum_map == rhs.my_string_enum_map))
+ return false;
+ if (__isset.my_enum_string_map != rhs.__isset.my_enum_string_map)
+ return false;
+ else if (__isset.my_enum_string_map && !(my_enum_string_map == rhs.my_enum_string_map))
+ return false;
+ if (__isset.my_enum_struct_map != rhs.__isset.my_enum_struct_map)
+ return false;
+ else if (__isset.my_enum_struct_map && !(my_enum_struct_map == rhs.my_enum_struct_map))
+ return false;
+ if (__isset.my_enum_stringlist_map != rhs.__isset.my_enum_stringlist_map)
+ return false;
+ else if (__isset.my_enum_stringlist_map && !(my_enum_stringlist_map == rhs.my_enum_stringlist_map))
+ return false;
+ if (__isset.my_enum_structlist_map != rhs.__isset.my_enum_structlist_map)
+ return false;
+ else if (__isset.my_enum_structlist_map && !(my_enum_structlist_map == rhs.my_enum_structlist_map))
+ return false;
+ if (__isset.my_stringlist != rhs.__isset.my_stringlist)
+ return false;
+ else if (__isset.my_stringlist && !(my_stringlist == rhs.my_stringlist))
+ return false;
+ if (__isset.my_structlist != rhs.__isset.my_structlist)
+ return false;
+ else if (__isset.my_structlist && !(my_structlist == rhs.my_structlist))
+ return false;
+ if (__isset.my_enumlist != rhs.__isset.my_enumlist)
+ return false;
+ else if (__isset.my_enumlist && !(my_enumlist == rhs.my_enumlist))
+ return false;
+ if (__isset.my_stringset != rhs.__isset.my_stringset)
+ return false;
+ else if (__isset.my_stringset && !(my_stringset == rhs.my_stringset))
+ return false;
+ if (__isset.my_enumset != rhs.__isset.my_enumset)
+ return false;
+ else if (__isset.my_enumset && !(my_enumset == rhs.my_enumset))
+ return false;
+ if (__isset.my_structset != rhs.__isset.my_structset)
+ return false;
+ else if (__isset.my_structset && !(my_structset == rhs.my_structset))
+ return false;
+ return true;
+}
+
MegaStruct::MegaStruct(const MegaStruct& other109) {
my_bool = other109.my_bool;
my_byte = other109.my_byte;
diff --git a/serde/src/gen/thrift/gen-cpp/megastruct_types.h b/serde/src/gen/thrift/gen-cpp/megastruct_types.h
index 64666a31ebd5..cc0b27ef9b34 100644
--- a/serde/src/gen/thrift/gen-cpp/megastruct_types.h
+++ b/serde/src/gen/thrift/gen-cpp/megastruct_types.h
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -49,10 +49,7 @@ class MiniStruct : public virtual ::apache::thrift::TBase {
MiniStruct(const MiniStruct&);
MiniStruct& operator=(const MiniStruct&);
- MiniStruct() noexcept
- : my_string(),
- my_enum(static_cast(0)) {
- }
+ MiniStruct() noexcept;
virtual ~MiniStruct() noexcept;
std::string my_string;
@@ -68,18 +65,7 @@ class MiniStruct : public virtual ::apache::thrift::TBase {
void __set_my_enum(const MyEnum::type val);
- bool operator == (const MiniStruct & rhs) const
- {
- if (__isset.my_string != rhs.__isset.my_string)
- return false;
- else if (__isset.my_string && !(my_string == rhs.my_string))
- return false;
- if (__isset.my_enum != rhs.__isset.my_enum)
- return false;
- else if (__isset.my_enum && !(my_enum == rhs.my_enum))
- return false;
- return true;
- }
+ bool operator == (const MiniStruct & rhs) const;
bool operator != (const MiniStruct &rhs) const {
return !(*this == rhs);
}
@@ -92,7 +78,7 @@ class MiniStruct : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(MiniStruct &a, MiniStruct &b);
+void swap(MiniStruct &a, MiniStruct &b) noexcept;
std::ostream& operator<<(std::ostream& out, const MiniStruct& obj);
@@ -125,16 +111,7 @@ class MegaStruct : public virtual ::apache::thrift::TBase {
MegaStruct(const MegaStruct&);
MegaStruct& operator=(const MegaStruct&);
- MegaStruct() noexcept
- : my_bool(0),
- my_byte(0),
- my_16bit_int(0),
- my_32bit_int(0),
- my_64bit_int(0),
- my_double(0),
- my_string(),
- my_binary() {
- }
+ MegaStruct() noexcept;
virtual ~MegaStruct() noexcept;
bool my_bool;
@@ -200,90 +177,7 @@ class MegaStruct : public virtual ::apache::thrift::TBase {
void __set_my_structset(const std::set & val);
- bool operator == (const MegaStruct & rhs) const
- {
- if (__isset.my_bool != rhs.__isset.my_bool)
- return false;
- else if (__isset.my_bool && !(my_bool == rhs.my_bool))
- return false;
- if (__isset.my_byte != rhs.__isset.my_byte)
- return false;
- else if (__isset.my_byte && !(my_byte == rhs.my_byte))
- return false;
- if (__isset.my_16bit_int != rhs.__isset.my_16bit_int)
- return false;
- else if (__isset.my_16bit_int && !(my_16bit_int == rhs.my_16bit_int))
- return false;
- if (__isset.my_32bit_int != rhs.__isset.my_32bit_int)
- return false;
- else if (__isset.my_32bit_int && !(my_32bit_int == rhs.my_32bit_int))
- return false;
- if (__isset.my_64bit_int != rhs.__isset.my_64bit_int)
- return false;
- else if (__isset.my_64bit_int && !(my_64bit_int == rhs.my_64bit_int))
- return false;
- if (__isset.my_double != rhs.__isset.my_double)
- return false;
- else if (__isset.my_double && !(my_double == rhs.my_double))
- return false;
- if (__isset.my_string != rhs.__isset.my_string)
- return false;
- else if (__isset.my_string && !(my_string == rhs.my_string))
- return false;
- if (__isset.my_binary != rhs.__isset.my_binary)
- return false;
- else if (__isset.my_binary && !(my_binary == rhs.my_binary))
- return false;
- if (__isset.my_string_string_map != rhs.__isset.my_string_string_map)
- return false;
- else if (__isset.my_string_string_map && !(my_string_string_map == rhs.my_string_string_map))
- return false;
- if (__isset.my_string_enum_map != rhs.__isset.my_string_enum_map)
- return false;
- else if (__isset.my_string_enum_map && !(my_string_enum_map == rhs.my_string_enum_map))
- return false;
- if (__isset.my_enum_string_map != rhs.__isset.my_enum_string_map)
- return false;
- else if (__isset.my_enum_string_map && !(my_enum_string_map == rhs.my_enum_string_map))
- return false;
- if (__isset.my_enum_struct_map != rhs.__isset.my_enum_struct_map)
- return false;
- else if (__isset.my_enum_struct_map && !(my_enum_struct_map == rhs.my_enum_struct_map))
- return false;
- if (__isset.my_enum_stringlist_map != rhs.__isset.my_enum_stringlist_map)
- return false;
- else if (__isset.my_enum_stringlist_map && !(my_enum_stringlist_map == rhs.my_enum_stringlist_map))
- return false;
- if (__isset.my_enum_structlist_map != rhs.__isset.my_enum_structlist_map)
- return false;
- else if (__isset.my_enum_structlist_map && !(my_enum_structlist_map == rhs.my_enum_structlist_map))
- return false;
- if (__isset.my_stringlist != rhs.__isset.my_stringlist)
- return false;
- else if (__isset.my_stringlist && !(my_stringlist == rhs.my_stringlist))
- return false;
- if (__isset.my_structlist != rhs.__isset.my_structlist)
- return false;
- else if (__isset.my_structlist && !(my_structlist == rhs.my_structlist))
- return false;
- if (__isset.my_enumlist != rhs.__isset.my_enumlist)
- return false;
- else if (__isset.my_enumlist && !(my_enumlist == rhs.my_enumlist))
- return false;
- if (__isset.my_stringset != rhs.__isset.my_stringset)
- return false;
- else if (__isset.my_stringset && !(my_stringset == rhs.my_stringset))
- return false;
- if (__isset.my_enumset != rhs.__isset.my_enumset)
- return false;
- else if (__isset.my_enumset && !(my_enumset == rhs.my_enumset))
- return false;
- if (__isset.my_structset != rhs.__isset.my_structset)
- return false;
- else if (__isset.my_structset && !(my_structset == rhs.my_structset))
- return false;
- return true;
- }
+ bool operator == (const MegaStruct & rhs) const;
bool operator != (const MegaStruct &rhs) const {
return !(*this == rhs);
}
@@ -296,7 +190,7 @@ class MegaStruct : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(MegaStruct &a, MegaStruct &b);
+void swap(MegaStruct &a, MegaStruct &b) noexcept;
std::ostream& operator<<(std::ostream& out, const MegaStruct& obj);
diff --git a/serde/src/gen/thrift/gen-cpp/serde_constants.cpp b/serde/src/gen/thrift/gen-cpp/serde_constants.cpp
index 840d27103f36..34fb8e70782d 100644
--- a/serde/src/gen/thrift/gen-cpp/serde_constants.cpp
+++ b/serde/src/gen/thrift/gen-cpp/serde_constants.cpp
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/serde/src/gen/thrift/gen-cpp/serde_constants.h b/serde/src/gen/thrift/gen-cpp/serde_constants.h
index 94440348bdb7..eb82606327ff 100644
--- a/serde/src/gen/thrift/gen-cpp/serde_constants.h
+++ b/serde/src/gen/thrift/gen-cpp/serde_constants.h
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/serde/src/gen/thrift/gen-cpp/serde_types.h b/serde/src/gen/thrift/gen-cpp/serde_types.h
index c6e0f642e73a..457b5b78c4a1 100644
--- a/serde/src/gen/thrift/gen-cpp/serde_types.h
+++ b/serde/src/gen/thrift/gen-cpp/serde_types.h
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/serde/src/gen/thrift/gen-cpp/testthrift_types.cpp b/serde/src/gen/thrift/gen-cpp/testthrift_types.cpp
index ddb9b391388e..202f9bdf6eeb 100644
--- a/serde/src/gen/thrift/gen-cpp/testthrift_types.cpp
+++ b/serde/src/gen/thrift/gen-cpp/testthrift_types.cpp
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -17,6 +17,9 @@
InnerStruct::~InnerStruct() noexcept {
}
+InnerStruct::InnerStruct() noexcept
+ : field0(0) {
+}
void InnerStruct::__set_field0(const int32_t val) {
this->field0 = val;
@@ -83,12 +86,19 @@ uint32_t InnerStruct::write(::apache::thrift::protocol::TProtocol* oprot) const
return xfer;
}
-void swap(InnerStruct &a, InnerStruct &b) {
+void swap(InnerStruct &a, InnerStruct &b) noexcept {
using ::std::swap;
swap(a.field0, b.field0);
swap(a.__isset, b.__isset);
}
+bool InnerStruct::operator==(const InnerStruct & rhs) const
+{
+ if (!(field0 == rhs.field0))
+ return false;
+ return true;
+}
+
InnerStruct::InnerStruct(const InnerStruct& other0) noexcept {
field0 = other0.field0;
__isset = other0.__isset;
@@ -109,6 +119,10 @@ void InnerStruct::printTo(std::ostream& out) const {
ThriftTestObj::~ThriftTestObj() noexcept {
}
+ThriftTestObj::ThriftTestObj() noexcept
+ : field1(0),
+ field2() {
+}
void ThriftTestObj::__set_field1(const int32_t val) {
this->field1 = val;
@@ -227,7 +241,7 @@ uint32_t ThriftTestObj::write(::apache::thrift::protocol::TProtocol* oprot) cons
return xfer;
}
-void swap(ThriftTestObj &a, ThriftTestObj &b) {
+void swap(ThriftTestObj &a, ThriftTestObj &b) noexcept {
using ::std::swap;
swap(a.field1, b.field1);
swap(a.field2, b.field2);
@@ -235,6 +249,17 @@ void swap(ThriftTestObj &a, ThriftTestObj &b) {
swap(a.__isset, b.__isset);
}
+bool ThriftTestObj::operator==(const ThriftTestObj & rhs) const
+{
+ if (!(field1 == rhs.field1))
+ return false;
+ if (!(field2 == rhs.field2))
+ return false;
+ if (!(field3 == rhs.field3))
+ return false;
+ return true;
+}
+
ThriftTestObj::ThriftTestObj(const ThriftTestObj& other8) {
field1 = other8.field1;
field2 = other8.field2;
diff --git a/serde/src/gen/thrift/gen-cpp/testthrift_types.h b/serde/src/gen/thrift/gen-cpp/testthrift_types.h
index 6f82808d84d5..e6d35e9bfdfa 100644
--- a/serde/src/gen/thrift/gen-cpp/testthrift_types.h
+++ b/serde/src/gen/thrift/gen-cpp/testthrift_types.h
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -35,9 +35,7 @@ class InnerStruct : public virtual ::apache::thrift::TBase {
InnerStruct(const InnerStruct&) noexcept;
InnerStruct& operator=(const InnerStruct&) noexcept;
- InnerStruct() noexcept
- : field0(0) {
- }
+ InnerStruct() noexcept;
virtual ~InnerStruct() noexcept;
int32_t field0;
@@ -46,12 +44,7 @@ class InnerStruct : public virtual ::apache::thrift::TBase {
void __set_field0(const int32_t val);
- bool operator == (const InnerStruct & rhs) const
- {
- if (!(field0 == rhs.field0))
- return false;
- return true;
- }
+ bool operator == (const InnerStruct & rhs) const;
bool operator != (const InnerStruct &rhs) const {
return !(*this == rhs);
}
@@ -64,7 +57,7 @@ class InnerStruct : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(InnerStruct &a, InnerStruct &b);
+void swap(InnerStruct &a, InnerStruct &b) noexcept;
std::ostream& operator<<(std::ostream& out, const InnerStruct& obj);
@@ -80,10 +73,7 @@ class ThriftTestObj : public virtual ::apache::thrift::TBase {
ThriftTestObj(const ThriftTestObj&);
ThriftTestObj& operator=(const ThriftTestObj&);
- ThriftTestObj() noexcept
- : field1(0),
- field2() {
- }
+ ThriftTestObj() noexcept;
virtual ~ThriftTestObj() noexcept;
int32_t field1;
@@ -98,16 +88,7 @@ class ThriftTestObj : public virtual ::apache::thrift::TBase {
void __set_field3(const std::vector & val);
- bool operator == (const ThriftTestObj & rhs) const
- {
- if (!(field1 == rhs.field1))
- return false;
- if (!(field2 == rhs.field2))
- return false;
- if (!(field3 == rhs.field3))
- return false;
- return true;
- }
+ bool operator == (const ThriftTestObj & rhs) const;
bool operator != (const ThriftTestObj &rhs) const {
return !(*this == rhs);
}
@@ -120,7 +101,7 @@ class ThriftTestObj : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(ThriftTestObj &a, ThriftTestObj &b);
+void swap(ThriftTestObj &a, ThriftTestObj &b) noexcept;
std::ostream& operator<<(std::ostream& out, const ThriftTestObj& obj);
diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/serdeConstants.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/serdeConstants.java
index 7788976aa643..099f6980b9b9 100644
--- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/serdeConstants.java
+++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/serdeConstants.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/InnerStruct.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/InnerStruct.java
index 2f3c7d56373a..b4bc9df84868 100644
--- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/InnerStruct.java
+++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/InnerStruct.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -7,7 +7,7 @@
package org.apache.hadoop.hive.serde.test;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.23.0)")
public class InnerStruct 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("InnerStruct");
@@ -69,10 +69,12 @@ public static _Fields findByName(java.lang.String name) {
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
+ @Override
public java.lang.String getFieldName() {
return _fieldName;
}
@@ -109,6 +111,7 @@ public InnerStruct(InnerStruct other) {
this.field0 = other.field0;
}
+ @Override
public InnerStruct deepCopy() {
return new InnerStruct(this);
}
@@ -141,6 +144,7 @@ public void setField0IsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __FIELD0_ISSET_ID, value);
}
+ @Override
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case FIELD0:
@@ -155,6 +159,7 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable
}
@org.apache.thrift.annotation.Nullable
+ @Override
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case FIELD0:
@@ -165,6 +170,7 @@ public java.lang.Object getFieldValue(_Fields field) {
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
@@ -233,14 +239,17 @@ public int compareTo(InnerStruct other) {
}
@org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@@ -281,6 +290,7 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException
}
private static class InnerStructStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public InnerStructStandardScheme getScheme() {
return new InnerStructStandardScheme();
}
@@ -288,33 +298,40 @@ public InnerStructStandardScheme getScheme() {
private static class InnerStructStandardScheme extends org.apache.thrift.scheme.StandardScheme {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, InnerStruct struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // FIELD0
- if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
- struct.field0 = iprot.readI32();
- struct.setField0IsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
+ iprot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ switch (schemeField.id) {
+ case 1: // FIELD0
+ if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+ struct.field0 = iprot.readI32();
+ struct.setField0IsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
}
- iprot.readFieldEnd();
+ iprot.readStructEnd();
+ struct.validate();
+ } finally {
+ iprot.decrementRecursionDepth();
}
- iprot.readStructEnd();
- struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, InnerStruct struct) throws org.apache.thrift.TException {
struct.validate();
@@ -329,6 +346,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, InnerStruct struct
}
private static class InnerStructTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public InnerStructTupleScheme getScheme() {
return new InnerStructTupleScheme();
}
@@ -351,11 +369,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InnerStruct struct)
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, InnerStruct struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(1);
- if (incoming.get(0)) {
- struct.field0 = iprot.readI32();
- struct.setField0IsSet(true);
+ prot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ struct.field0 = iprot.readI32();
+ struct.setField0IsSet(true);
+ }
+ } finally {
+ prot.decrementRecursionDepth();
}
}
}
diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/ThriftTestObj.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/ThriftTestObj.java
index 60b9caf456f3..45a0752889f1 100644
--- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/ThriftTestObj.java
+++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/ThriftTestObj.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -7,7 +7,7 @@
package org.apache.hadoop.hive.serde.test;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.23.0)")
public class ThriftTestObj 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("ThriftTestObj");
@@ -79,10 +79,12 @@ public static _Fields findByName(java.lang.String name) {
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
+ @Override
public java.lang.String getFieldName() {
return _fieldName;
}
@@ -138,6 +140,7 @@ public ThriftTestObj(ThriftTestObj other) {
}
}
+ @Override
public ThriftTestObj deepCopy() {
return new ThriftTestObj(this);
}
@@ -236,6 +239,7 @@ public void setField3IsSet(boolean value) {
}
}
+ @Override
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case FIELD1:
@@ -266,6 +270,7 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable
}
@org.apache.thrift.annotation.Nullable
+ @Override
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case FIELD1:
@@ -282,6 +287,7 @@ public java.lang.Object getFieldValue(_Fields field) {
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
@@ -400,14 +406,17 @@ public int compareTo(ThriftTestObj other) {
}
@org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@@ -464,6 +473,7 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException
}
private static class ThriftTestObjStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public ThriftTestObjStandardScheme getScheme() {
return new ThriftTestObjStandardScheme();
}
@@ -471,60 +481,67 @@ public ThriftTestObjStandardScheme getScheme() {
private static class ThriftTestObjStandardScheme extends org.apache.thrift.scheme.StandardScheme {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, ThriftTestObj struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // FIELD1
- if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
- struct.field1 = iprot.readI32();
- struct.setField1IsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 2: // FIELD2
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.field2 = iprot.readString();
- struct.setField2IsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
+ iprot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
- case 3: // FIELD3
- if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
- {
- org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
- struct.field3 = new java.util.ArrayList(_list0.size);
- @org.apache.thrift.annotation.Nullable InnerStruct _elem1;
- for (int _i2 = 0; _i2 < _list0.size; ++_i2)
+ }
+ switch (schemeField.id) {
+ case 1: // FIELD1
+ if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+ struct.field1 = iprot.readI32();
+ struct.setField1IsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // FIELD2
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.field2 = iprot.readString();
+ struct.setField2IsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 3: // FIELD3
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- _elem1 = new InnerStruct();
- _elem1.read(iprot);
- struct.field3.add(_elem1);
+ org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
+ struct.field3 = new java.util.ArrayList(_list0.size);
+ @org.apache.thrift.annotation.Nullable InnerStruct _elem1;
+ for (int _i2 = 0; _i2 < _list0.size; ++_i2)
+ {
+ _elem1 = new InnerStruct();
+ _elem1.read(iprot);
+ struct.field3.add(_elem1);
+ }
+ iprot.readListEnd();
}
- iprot.readListEnd();
+ struct.setField3IsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setField3IsSet(true);
- } else {
+ break;
+ default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
}
- iprot.readFieldEnd();
+ iprot.readStructEnd();
+ struct.validate();
+ } finally {
+ iprot.decrementRecursionDepth();
}
- iprot.readStructEnd();
- struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, ThriftTestObj struct) throws org.apache.thrift.TException {
struct.validate();
@@ -556,6 +573,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ThriftTestObj stru
}
private static class ThriftTestObjTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public ThriftTestObjTupleScheme getScheme() {
return new ThriftTestObjTupleScheme();
}
@@ -596,29 +614,34 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ThriftTestObj struc
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, ThriftTestObj struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(3);
- if (incoming.get(0)) {
- struct.field1 = iprot.readI32();
- struct.setField1IsSet(true);
- }
- if (incoming.get(1)) {
- struct.field2 = iprot.readString();
- struct.setField2IsSet(true);
- }
- if (incoming.get(2)) {
- {
- org.apache.thrift.protocol.TList _list5 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
- struct.field3 = new java.util.ArrayList(_list5.size);
- @org.apache.thrift.annotation.Nullable InnerStruct _elem6;
- for (int _i7 = 0; _i7 < _list5.size; ++_i7)
+ prot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(3);
+ if (incoming.get(0)) {
+ struct.field1 = iprot.readI32();
+ struct.setField1IsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.field2 = iprot.readString();
+ struct.setField2IsSet(true);
+ }
+ if (incoming.get(2)) {
{
- _elem6 = new InnerStruct();
- _elem6.read(iprot);
- struct.field3.add(_elem6);
+ org.apache.thrift.protocol.TList _list5 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
+ struct.field3 = new java.util.ArrayList(_list5.size);
+ @org.apache.thrift.annotation.Nullable InnerStruct _elem6;
+ for (int _i7 = 0; _i7 < _list5.size; ++_i7)
+ {
+ _elem6 = new InnerStruct();
+ _elem6.read(iprot);
+ struct.field3.add(_elem6);
+ }
}
+ struct.setField3IsSet(true);
}
- struct.setField3IsSet(true);
+ } finally {
+ prot.decrementRecursionDepth();
}
}
}
diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/Complex.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/Complex.java
index 9826a985f94d..c1f5ec4ba9e5 100644
--- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/Complex.java
+++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/Complex.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -7,7 +7,7 @@
package org.apache.hadoop.hive.serde2.thrift.test;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.23.0)")
public class Complex 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("Complex");
@@ -114,10 +114,12 @@ public static _Fields findByName(java.lang.String name) {
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
+ @Override
public java.lang.String getFieldName() {
return _fieldName;
}
@@ -269,6 +271,7 @@ public Complex(Complex other) {
}
}
+ @Override
public Complex deepCopy() {
return new Complex(this);
}
@@ -596,6 +599,7 @@ public void setUnionField3IsSet(boolean value) {
}
}
+ @Override
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case AINT:
@@ -682,6 +686,7 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable
}
@org.apache.thrift.annotation.Nullable
+ @Override
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case AINT:
@@ -719,6 +724,7 @@ public java.lang.Object getFieldValue(_Fields field) {
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
@@ -1012,14 +1018,17 @@ public int compareTo(Complex other) {
}
@org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@@ -1132,6 +1141,7 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException
}
private static class ComplexStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public ComplexStandardScheme getScheme() {
return new ComplexStandardScheme();
}
@@ -1139,188 +1149,195 @@ public ComplexStandardScheme getScheme() {
private static class ComplexStandardScheme extends org.apache.thrift.scheme.StandardScheme {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, Complex struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // AINT
- if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
- struct.aint = iprot.readI32();
- struct.setAintIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 2: // A_STRING
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.aString = iprot.readString();
- struct.setAStringIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
+ iprot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
- case 3: // LINT
- if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
- {
- org.apache.thrift.protocol.TList _list18 = iprot.readListBegin();
- struct.lint = new java.util.ArrayList(_list18.size);
- int _elem19;
- for (int _i20 = 0; _i20 < _list18.size; ++_i20)
+ }
+ switch (schemeField.id) {
+ case 1: // AINT
+ if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+ struct.aint = iprot.readI32();
+ struct.setAintIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // A_STRING
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.aString = iprot.readString();
+ struct.setAStringIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 3: // LINT
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- _elem19 = iprot.readI32();
- struct.lint.add(_elem19);
+ org.apache.thrift.protocol.TList _list18 = iprot.readListBegin();
+ struct.lint = new java.util.ArrayList(_list18.size);
+ int _elem19;
+ for (int _i20 = 0; _i20 < _list18.size; ++_i20)
+ {
+ _elem19 = iprot.readI32();
+ struct.lint.add(_elem19);
+ }
+ iprot.readListEnd();
}
- iprot.readListEnd();
+ struct.setLintIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setLintIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 4: // L_STRING
- if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
- {
- org.apache.thrift.protocol.TList _list21 = iprot.readListBegin();
- struct.lString = new java.util.ArrayList(_list21.size);
- @org.apache.thrift.annotation.Nullable java.lang.String _elem22;
- for (int _i23 = 0; _i23 < _list21.size; ++_i23)
+ break;
+ case 4: // L_STRING
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- _elem22 = iprot.readString();
- struct.lString.add(_elem22);
+ org.apache.thrift.protocol.TList _list21 = iprot.readListBegin();
+ struct.lString = new java.util.ArrayList(_list21.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _elem22;
+ for (int _i23 = 0; _i23 < _list21.size; ++_i23)
+ {
+ _elem22 = iprot.readString();
+ struct.lString.add(_elem22);
+ }
+ iprot.readListEnd();
}
- iprot.readListEnd();
+ struct.setLStringIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setLStringIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 5: // LINT_STRING
- if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
- {
- org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
- struct.lintString = new java.util.ArrayList(_list24.size);
- @org.apache.thrift.annotation.Nullable IntString _elem25;
- for (int _i26 = 0; _i26 < _list24.size; ++_i26)
+ break;
+ case 5: // LINT_STRING
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- _elem25 = new IntString();
- _elem25.read(iprot);
- struct.lintString.add(_elem25);
+ org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
+ struct.lintString = new java.util.ArrayList(_list24.size);
+ @org.apache.thrift.annotation.Nullable IntString _elem25;
+ for (int _i26 = 0; _i26 < _list24.size; ++_i26)
+ {
+ _elem25 = new IntString();
+ _elem25.read(iprot);
+ struct.lintString.add(_elem25);
+ }
+ iprot.readListEnd();
}
- iprot.readListEnd();
+ struct.setLintStringIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setLintStringIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 6: // M_STRING_STRING
- if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
- {
- org.apache.thrift.protocol.TMap _map27 = iprot.readMapBegin();
- struct.mStringString = new java.util.HashMap(2*_map27.size);
- @org.apache.thrift.annotation.Nullable java.lang.String _key28;
- @org.apache.thrift.annotation.Nullable java.lang.String _val29;
- for (int _i30 = 0; _i30 < _map27.size; ++_i30)
+ break;
+ case 6: // M_STRING_STRING
+ if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- _key28 = iprot.readString();
- _val29 = iprot.readString();
- struct.mStringString.put(_key28, _val29);
+ org.apache.thrift.protocol.TMap _map27 = iprot.readMapBegin();
+ struct.mStringString = new java.util.HashMap(2*_map27.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _key28;
+ @org.apache.thrift.annotation.Nullable java.lang.String _val29;
+ for (int _i30 = 0; _i30 < _map27.size; ++_i30)
+ {
+ _key28 = iprot.readString();
+ _val29 = iprot.readString();
+ struct.mStringString.put(_key28, _val29);
+ }
+ iprot.readMapEnd();
}
- iprot.readMapEnd();
+ struct.setMStringStringIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setMStringStringIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 7: // ATTRIBUTES
- if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
- {
- org.apache.thrift.protocol.TMap _map31 = iprot.readMapBegin();
- struct.attributes = new java.util.HashMap>>(2*_map31.size);
- @org.apache.thrift.annotation.Nullable java.lang.String _key32;
- @org.apache.thrift.annotation.Nullable java.util.Map> _val33;
- for (int _i34 = 0; _i34 < _map31.size; ++_i34)
+ break;
+ case 7: // ATTRIBUTES
+ if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- _key32 = iprot.readString();
+ org.apache.thrift.protocol.TMap _map31 = iprot.readMapBegin();
+ struct.attributes = new java.util.HashMap>>(2*_map31.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _key32;
+ @org.apache.thrift.annotation.Nullable java.util.Map> _val33;
+ for (int _i34 = 0; _i34 < _map31.size; ++_i34)
{
- org.apache.thrift.protocol.TMap _map35 = iprot.readMapBegin();
- _val33 = new java.util.HashMap>(2*_map35.size);
- @org.apache.thrift.annotation.Nullable java.lang.String _key36;
- @org.apache.thrift.annotation.Nullable java.util.Map _val37;
- for (int _i38 = 0; _i38 < _map35.size; ++_i38)
+ _key32 = iprot.readString();
{
- _key36 = iprot.readString();
+ org.apache.thrift.protocol.TMap _map35 = iprot.readMapBegin();
+ _val33 = new java.util.HashMap>(2*_map35.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _key36;
+ @org.apache.thrift.annotation.Nullable java.util.Map _val37;
+ for (int _i38 = 0; _i38 < _map35.size; ++_i38)
{
- org.apache.thrift.protocol.TMap _map39 = iprot.readMapBegin();
- _val37 = new java.util.HashMap(2*_map39.size);
- @org.apache.thrift.annotation.Nullable java.lang.String _key40;
- @org.apache.thrift.annotation.Nullable PropValueUnion _val41;
- for (int _i42 = 0; _i42 < _map39.size; ++_i42)
+ _key36 = iprot.readString();
{
- _key40 = iprot.readString();
- _val41 = new PropValueUnion();
- _val41.read(iprot);
- _val37.put(_key40, _val41);
+ org.apache.thrift.protocol.TMap _map39 = iprot.readMapBegin();
+ _val37 = new java.util.HashMap(2*_map39.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _key40;
+ @org.apache.thrift.annotation.Nullable PropValueUnion _val41;
+ for (int _i42 = 0; _i42 < _map39.size; ++_i42)
+ {
+ _key40 = iprot.readString();
+ _val41 = new PropValueUnion();
+ _val41.read(iprot);
+ _val37.put(_key40, _val41);
+ }
+ iprot.readMapEnd();
}
- iprot.readMapEnd();
+ _val33.put(_key36, _val37);
}
- _val33.put(_key36, _val37);
+ iprot.readMapEnd();
}
- iprot.readMapEnd();
+ struct.attributes.put(_key32, _val33);
}
- struct.attributes.put(_key32, _val33);
+ iprot.readMapEnd();
}
- iprot.readMapEnd();
+ struct.setAttributesIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setAttributesIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 8: // UNION_FIELD1
- if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.unionField1 = new PropValueUnion();
- struct.unionField1.read(iprot);
- struct.setUnionField1IsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 9: // UNION_FIELD2
- if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.unionField2 = new PropValueUnion();
- struct.unionField2.read(iprot);
- struct.setUnionField2IsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 10: // UNION_FIELD3
- if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.unionField3 = new PropValueUnion();
- struct.unionField3.read(iprot);
- struct.setUnionField3IsSet(true);
- } else {
+ break;
+ case 8: // UNION_FIELD1
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.unionField1 = new PropValueUnion();
+ struct.unionField1.read(iprot);
+ struct.setUnionField1IsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 9: // UNION_FIELD2
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.unionField2 = new PropValueUnion();
+ struct.unionField2.read(iprot);
+ struct.setUnionField2IsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 10: // UNION_FIELD3
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.unionField3 = new PropValueUnion();
+ struct.unionField3.read(iprot);
+ struct.setUnionField3IsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
}
- iprot.readFieldEnd();
+ iprot.readStructEnd();
+ struct.validate();
+ } finally {
+ iprot.decrementRecursionDepth();
}
- iprot.readStructEnd();
- struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, Complex struct) throws org.apache.thrift.TException {
struct.validate();
@@ -1433,6 +1450,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Complex struct) th
}
private static class ComplexTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public ComplexTupleScheme getScheme() {
return new ComplexTupleScheme();
}
@@ -1555,123 +1573,128 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Complex struct) thr
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, Complex struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(10);
- if (incoming.get(0)) {
- struct.aint = iprot.readI32();
- struct.setAintIsSet(true);
- }
- if (incoming.get(1)) {
- struct.aString = iprot.readString();
- struct.setAStringIsSet(true);
- }
- if (incoming.get(2)) {
- {
- org.apache.thrift.protocol.TList _list57 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32);
- struct.lint = new java.util.ArrayList(_list57.size);
- int _elem58;
- for (int _i59 = 0; _i59 < _list57.size; ++_i59)
+ prot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(10);
+ if (incoming.get(0)) {
+ struct.aint = iprot.readI32();
+ struct.setAintIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.aString = iprot.readString();
+ struct.setAStringIsSet(true);
+ }
+ if (incoming.get(2)) {
{
- _elem58 = iprot.readI32();
- struct.lint.add(_elem58);
+ org.apache.thrift.protocol.TList _list57 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32);
+ struct.lint = new java.util.ArrayList(_list57.size);
+ int _elem58;
+ for (int _i59 = 0; _i59 < _list57.size; ++_i59)
+ {
+ _elem58 = iprot.readI32();
+ struct.lint.add(_elem58);
+ }
}
+ struct.setLintIsSet(true);
}
- struct.setLintIsSet(true);
- }
- if (incoming.get(3)) {
- {
- org.apache.thrift.protocol.TList _list60 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
- struct.lString = new java.util.ArrayList(_list60.size);
- @org.apache.thrift.annotation.Nullable java.lang.String _elem61;
- for (int _i62 = 0; _i62 < _list60.size; ++_i62)
+ if (incoming.get(3)) {
{
- _elem61 = iprot.readString();
- struct.lString.add(_elem61);
+ org.apache.thrift.protocol.TList _list60 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
+ struct.lString = new java.util.ArrayList(_list60.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _elem61;
+ for (int _i62 = 0; _i62 < _list60.size; ++_i62)
+ {
+ _elem61 = iprot.readString();
+ struct.lString.add(_elem61);
+ }
}
+ struct.setLStringIsSet(true);
}
- struct.setLStringIsSet(true);
- }
- if (incoming.get(4)) {
- {
- org.apache.thrift.protocol.TList _list63 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
- struct.lintString = new java.util.ArrayList(_list63.size);
- @org.apache.thrift.annotation.Nullable IntString _elem64;
- for (int _i65 = 0; _i65 < _list63.size; ++_i65)
+ if (incoming.get(4)) {
{
- _elem64 = new IntString();
- _elem64.read(iprot);
- struct.lintString.add(_elem64);
+ org.apache.thrift.protocol.TList _list63 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
+ struct.lintString = new java.util.ArrayList(_list63.size);
+ @org.apache.thrift.annotation.Nullable IntString _elem64;
+ for (int _i65 = 0; _i65 < _list63.size; ++_i65)
+ {
+ _elem64 = new IntString();
+ _elem64.read(iprot);
+ struct.lintString.add(_elem64);
+ }
}
+ struct.setLintStringIsSet(true);
}
- struct.setLintStringIsSet(true);
- }
- if (incoming.get(5)) {
- {
- org.apache.thrift.protocol.TMap _map66 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING);
- struct.mStringString = new java.util.HashMap(2*_map66.size);
- @org.apache.thrift.annotation.Nullable java.lang.String _key67;
- @org.apache.thrift.annotation.Nullable java.lang.String _val68;
- for (int _i69 = 0; _i69 < _map66.size; ++_i69)
+ if (incoming.get(5)) {
{
- _key67 = iprot.readString();
- _val68 = iprot.readString();
- struct.mStringString.put(_key67, _val68);
+ org.apache.thrift.protocol.TMap _map66 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING);
+ struct.mStringString = new java.util.HashMap(2*_map66.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _key67;
+ @org.apache.thrift.annotation.Nullable java.lang.String _val68;
+ for (int _i69 = 0; _i69 < _map66.size; ++_i69)
+ {
+ _key67 = iprot.readString();
+ _val68 = iprot.readString();
+ struct.mStringString.put(_key67, _val68);
+ }
}
+ struct.setMStringStringIsSet(true);
}
- struct.setMStringStringIsSet(true);
- }
- if (incoming.get(6)) {
- {
- org.apache.thrift.protocol.TMap _map70 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP);
- struct.attributes = new java.util.HashMap>>(2*_map70.size);
- @org.apache.thrift.annotation.Nullable java.lang.String _key71;
- @org.apache.thrift.annotation.Nullable java.util.Map> _val72;
- for (int _i73 = 0; _i73 < _map70.size; ++_i73)
+ if (incoming.get(6)) {
{
- _key71 = iprot.readString();
+ org.apache.thrift.protocol.TMap _map70 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP);
+ struct.attributes = new java.util.HashMap>>(2*_map70.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _key71;
+ @org.apache.thrift.annotation.Nullable java.util.Map> _val72;
+ for (int _i73 = 0; _i73 < _map70.size; ++_i73)
{
- org.apache.thrift.protocol.TMap _map74 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP);
- _val72 = new java.util.HashMap>(2*_map74.size);
- @org.apache.thrift.annotation.Nullable java.lang.String _key75;
- @org.apache.thrift.annotation.Nullable java.util.Map _val76;
- for (int _i77 = 0; _i77 < _map74.size; ++_i77)
+ _key71 = iprot.readString();
{
- _key75 = iprot.readString();
+ org.apache.thrift.protocol.TMap _map74 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP);
+ _val72 = new java.util.HashMap>(2*_map74.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _key75;
+ @org.apache.thrift.annotation.Nullable java.util.Map _val76;
+ for (int _i77 = 0; _i77 < _map74.size; ++_i77)
{
- org.apache.thrift.protocol.TMap _map78 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT);
- _val76 = new java.util.HashMap(2*_map78.size);
- @org.apache.thrift.annotation.Nullable java.lang.String _key79;
- @org.apache.thrift.annotation.Nullable PropValueUnion _val80;
- for (int _i81 = 0; _i81 < _map78.size; ++_i81)
+ _key75 = iprot.readString();
{
- _key79 = iprot.readString();
- _val80 = new PropValueUnion();
- _val80.read(iprot);
- _val76.put(_key79, _val80);
+ org.apache.thrift.protocol.TMap _map78 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT);
+ _val76 = new java.util.HashMap(2*_map78.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _key79;
+ @org.apache.thrift.annotation.Nullable PropValueUnion _val80;
+ for (int _i81 = 0; _i81 < _map78.size; ++_i81)
+ {
+ _key79 = iprot.readString();
+ _val80 = new PropValueUnion();
+ _val80.read(iprot);
+ _val76.put(_key79, _val80);
+ }
}
+ _val72.put(_key75, _val76);
}
- _val72.put(_key75, _val76);
}
+ struct.attributes.put(_key71, _val72);
}
- struct.attributes.put(_key71, _val72);
}
+ struct.setAttributesIsSet(true);
}
- struct.setAttributesIsSet(true);
- }
- if (incoming.get(7)) {
- struct.unionField1 = new PropValueUnion();
- struct.unionField1.read(iprot);
- struct.setUnionField1IsSet(true);
- }
- if (incoming.get(8)) {
- struct.unionField2 = new PropValueUnion();
- struct.unionField2.read(iprot);
- struct.setUnionField2IsSet(true);
- }
- if (incoming.get(9)) {
- struct.unionField3 = new PropValueUnion();
- struct.unionField3.read(iprot);
- struct.setUnionField3IsSet(true);
+ if (incoming.get(7)) {
+ struct.unionField1 = new PropValueUnion();
+ struct.unionField1.read(iprot);
+ struct.setUnionField1IsSet(true);
+ }
+ if (incoming.get(8)) {
+ struct.unionField2 = new PropValueUnion();
+ struct.unionField2.read(iprot);
+ struct.setUnionField2IsSet(true);
+ }
+ if (incoming.get(9)) {
+ struct.unionField3 = new PropValueUnion();
+ struct.unionField3.read(iprot);
+ struct.setUnionField3IsSet(true);
+ }
+ } finally {
+ prot.decrementRecursionDepth();
}
}
}
diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/IntString.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/IntString.java
index dbe7b760a311..518d7fa09f7f 100644
--- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/IntString.java
+++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/IntString.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -7,7 +7,7 @@
package org.apache.hadoop.hive.serde2.thrift.test;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.23.0)")
public class IntString 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("IntString");
@@ -79,10 +79,12 @@ public static _Fields findByName(java.lang.String name) {
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
+ @Override
public java.lang.String getFieldName() {
return _fieldName;
}
@@ -133,6 +135,7 @@ public IntString(IntString other) {
this.underscore_int = other.underscore_int;
}
+ @Override
public IntString deepCopy() {
return new IntString(this);
}
@@ -214,6 +217,7 @@ public void setUnderscore_intIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __UNDERSCORE_INT_ISSET_ID, value);
}
+ @Override
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case MYINT:
@@ -244,6 +248,7 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable
}
@org.apache.thrift.annotation.Nullable
+ @Override
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case MYINT:
@@ -260,6 +265,7 @@ public java.lang.Object getFieldValue(_Fields field) {
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
@@ -376,14 +382,17 @@ public int compareTo(IntString other) {
}
@org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@@ -436,6 +445,7 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException
}
private static class IntStringStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public IntStringStandardScheme getScheme() {
return new IntStringStandardScheme();
}
@@ -443,49 +453,56 @@ public IntStringStandardScheme getScheme() {
private static class IntStringStandardScheme extends org.apache.thrift.scheme.StandardScheme {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, IntString struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // MYINT
- if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
- struct.myint = iprot.readI32();
- struct.setMyintIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 2: // MY_STRING
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.myString = iprot.readString();
- struct.setMyStringIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
+ iprot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
- case 3: // UNDERSCORE_INT
- if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
- struct.underscore_int = iprot.readI32();
- struct.setUnderscore_intIsSet(true);
- } else {
+ }
+ switch (schemeField.id) {
+ case 1: // MYINT
+ if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+ struct.myint = iprot.readI32();
+ struct.setMyintIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // MY_STRING
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.myString = iprot.readString();
+ struct.setMyStringIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 3: // UNDERSCORE_INT
+ if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+ struct.underscore_int = iprot.readI32();
+ struct.setUnderscore_intIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
}
- iprot.readFieldEnd();
+ iprot.readStructEnd();
+ struct.validate();
+ } finally {
+ iprot.decrementRecursionDepth();
}
- iprot.readStructEnd();
- struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, IntString struct) throws org.apache.thrift.TException {
struct.validate();
@@ -508,6 +525,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, IntString struct)
}
private static class IntStringTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public IntStringTupleScheme getScheme() {
return new IntStringTupleScheme();
}
@@ -542,19 +560,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, IntString struct) t
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, IntString struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(3);
- if (incoming.get(0)) {
- struct.myint = iprot.readI32();
- struct.setMyintIsSet(true);
- }
- if (incoming.get(1)) {
- struct.myString = iprot.readString();
- struct.setMyStringIsSet(true);
- }
- if (incoming.get(2)) {
- struct.underscore_int = iprot.readI32();
- struct.setUnderscore_intIsSet(true);
+ prot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(3);
+ if (incoming.get(0)) {
+ struct.myint = iprot.readI32();
+ struct.setMyintIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.myString = iprot.readString();
+ struct.setMyStringIsSet(true);
+ }
+ if (incoming.get(2)) {
+ struct.underscore_int = iprot.readI32();
+ struct.setUnderscore_intIsSet(true);
+ }
+ } finally {
+ prot.decrementRecursionDepth();
}
}
}
diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MegaStruct.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MegaStruct.java
index 9b244d8af318..62d45ef94759 100644
--- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MegaStruct.java
+++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MegaStruct.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -7,7 +7,7 @@
package org.apache.hadoop.hive.serde2.thrift.test;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.23.0)")
public class MegaStruct 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("MegaStruct");
@@ -164,10 +164,12 @@ public static _Fields findByName(java.lang.String name) {
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
+ @Override
public java.lang.String getFieldName() {
return _fieldName;
}
@@ -181,7 +183,7 @@ public java.lang.String getFieldName() {
private static final int __MY_64BIT_INT_ISSET_ID = 4;
private static final int __MY_DOUBLE_ISSET_ID = 5;
private byte __isset_bitfield = 0;
- private static final _Fields optionals[] = {_Fields.MY_BOOL,_Fields.MY_BYTE,_Fields.MY_16BIT_INT,_Fields.MY_32BIT_INT,_Fields.MY_64BIT_INT,_Fields.MY_DOUBLE,_Fields.MY_STRING,_Fields.MY_BINARY,_Fields.MY_STRING_STRING_MAP,_Fields.MY_STRING_ENUM_MAP,_Fields.MY_ENUM_STRING_MAP,_Fields.MY_ENUM_STRUCT_MAP,_Fields.MY_ENUM_STRINGLIST_MAP,_Fields.MY_ENUM_STRUCTLIST_MAP,_Fields.MY_STRINGLIST,_Fields.MY_STRUCTLIST,_Fields.MY_ENUMLIST,_Fields.MY_STRINGSET,_Fields.MY_ENUMSET,_Fields.MY_STRUCTSET};
+ private static final _Fields[] optionals = {_Fields.MY_BOOL,_Fields.MY_BYTE,_Fields.MY_16BIT_INT,_Fields.MY_32BIT_INT,_Fields.MY_64BIT_INT,_Fields.MY_DOUBLE,_Fields.MY_STRING,_Fields.MY_BINARY,_Fields.MY_STRING_STRING_MAP,_Fields.MY_STRING_ENUM_MAP,_Fields.MY_ENUM_STRING_MAP,_Fields.MY_ENUM_STRUCT_MAP,_Fields.MY_ENUM_STRINGLIST_MAP,_Fields.MY_ENUM_STRUCTLIST_MAP,_Fields.MY_STRINGLIST,_Fields.MY_STRUCTLIST,_Fields.MY_ENUMLIST,_Fields.MY_STRINGSET,_Fields.MY_ENUMSET,_Fields.MY_STRUCTSET};
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
@@ -389,6 +391,7 @@ public MegaStruct(MegaStruct other) {
}
}
+ @Override
public MegaStruct deepCopy() {
return new MegaStruct(this);
}
@@ -1061,6 +1064,7 @@ public void setMy_structsetIsSet(boolean value) {
}
}
+ @Override
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case MY_BOOL:
@@ -1231,6 +1235,7 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable
}
@org.apache.thrift.annotation.Nullable
+ @Override
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case MY_BOOL:
@@ -1298,6 +1303,7 @@ public java.lang.Object getFieldValue(_Fields field) {
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
@@ -1843,14 +1849,17 @@ public int compareTo(MegaStruct other) {
}
@org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@@ -2063,6 +2072,7 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException
}
private static class MegaStructStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public MegaStructStandardScheme getScheme() {
return new MegaStructStandardScheme();
}
@@ -2070,359 +2080,366 @@ public MegaStructStandardScheme getScheme() {
private static class MegaStructStandardScheme extends org.apache.thrift.scheme.StandardScheme {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // MY_BOOL
- if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
- struct.my_bool = iprot.readBool();
- struct.setMy_boolIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 2: // MY_BYTE
- if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) {
- struct.my_byte = iprot.readByte();
- struct.setMy_byteIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 3: // MY_16BIT_INT
- if (schemeField.type == org.apache.thrift.protocol.TType.I16) {
- struct.my_16bit_int = iprot.readI16();
- struct.setMy_16bit_intIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 4: // MY_32BIT_INT
- if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
- struct.my_32bit_int = iprot.readI32();
- struct.setMy_32bit_intIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 5: // MY_64BIT_INT
- if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
- struct.my_64bit_int = iprot.readI64();
- struct.setMy_64bit_intIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 6: // MY_DOUBLE
- if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) {
- struct.my_double = iprot.readDouble();
- struct.setMy_doubleIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 7: // MY_STRING
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.my_string = iprot.readString();
- struct.setMy_stringIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 8: // MY_BINARY
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.my_binary = iprot.readBinary();
- struct.setMy_binaryIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
+ iprot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
- case 9: // MY_STRING_STRING_MAP
- if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
- {
- org.apache.thrift.protocol.TMap _map0 = iprot.readMapBegin();
- struct.my_string_string_map = new java.util.HashMap(2*_map0.size);
- @org.apache.thrift.annotation.Nullable java.lang.String _key1;
- @org.apache.thrift.annotation.Nullable java.lang.String _val2;
- for (int _i3 = 0; _i3 < _map0.size; ++_i3)
- {
- _key1 = iprot.readString();
- _val2 = iprot.readString();
- struct.my_string_string_map.put(_key1, _val2);
- }
- iprot.readMapEnd();
+ }
+ switch (schemeField.id) {
+ case 1: // MY_BOOL
+ if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+ struct.my_bool = iprot.readBool();
+ struct.setMy_boolIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setMy_string_string_mapIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 10: // MY_STRING_ENUM_MAP
- if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
- {
- org.apache.thrift.protocol.TMap _map4 = iprot.readMapBegin();
- struct.my_string_enum_map = new java.util.HashMap(2*_map4.size);
- @org.apache.thrift.annotation.Nullable java.lang.String _key5;
- @org.apache.thrift.annotation.Nullable MyEnum _val6;
- for (int _i7 = 0; _i7 < _map4.size; ++_i7)
- {
- _key5 = iprot.readString();
- _val6 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
- struct.my_string_enum_map.put(_key5, _val6);
- }
- iprot.readMapEnd();
+ break;
+ case 2: // MY_BYTE
+ if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) {
+ struct.my_byte = iprot.readByte();
+ struct.setMy_byteIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setMy_string_enum_mapIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 11: // MY_ENUM_STRING_MAP
- if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
- {
- org.apache.thrift.protocol.TMap _map8 = iprot.readMapBegin();
- struct.my_enum_string_map = new java.util.EnumMap(MyEnum.class);
- @org.apache.thrift.annotation.Nullable MyEnum _key9;
- @org.apache.thrift.annotation.Nullable java.lang.String _val10;
- for (int _i11 = 0; _i11 < _map8.size; ++_i11)
+ break;
+ case 3: // MY_16BIT_INT
+ if (schemeField.type == org.apache.thrift.protocol.TType.I16) {
+ struct.my_16bit_int = iprot.readI16();
+ struct.setMy_16bit_intIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 4: // MY_32BIT_INT
+ if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+ struct.my_32bit_int = iprot.readI32();
+ struct.setMy_32bit_intIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 5: // MY_64BIT_INT
+ if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
+ struct.my_64bit_int = iprot.readI64();
+ struct.setMy_64bit_intIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 6: // MY_DOUBLE
+ if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) {
+ struct.my_double = iprot.readDouble();
+ struct.setMy_doubleIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 7: // MY_STRING
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.my_string = iprot.readString();
+ struct.setMy_stringIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 8: // MY_BINARY
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.my_binary = iprot.readBinary();
+ struct.setMy_binaryIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 9: // MY_STRING_STRING_MAP
+ if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- _key9 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
- _val10 = iprot.readString();
- if (_key9 != null)
+ org.apache.thrift.protocol.TMap _map0 = iprot.readMapBegin();
+ struct.my_string_string_map = new java.util.HashMap(2*_map0.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _key1;
+ @org.apache.thrift.annotation.Nullable java.lang.String _val2;
+ for (int _i3 = 0; _i3 < _map0.size; ++_i3)
{
- struct.my_enum_string_map.put(_key9, _val10);
+ _key1 = iprot.readString();
+ _val2 = iprot.readString();
+ struct.my_string_string_map.put(_key1, _val2);
}
+ iprot.readMapEnd();
}
- iprot.readMapEnd();
+ struct.setMy_string_string_mapIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setMy_enum_string_mapIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 12: // MY_ENUM_STRUCT_MAP
- if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
- {
- org.apache.thrift.protocol.TMap _map12 = iprot.readMapBegin();
- struct.my_enum_struct_map = new java.util.EnumMap(MyEnum.class);
- @org.apache.thrift.annotation.Nullable MyEnum _key13;
- @org.apache.thrift.annotation.Nullable MiniStruct _val14;
- for (int _i15 = 0; _i15 < _map12.size; ++_i15)
+ break;
+ case 10: // MY_STRING_ENUM_MAP
+ if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- _key13 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
- _val14 = new MiniStruct();
- _val14.read(iprot);
- if (_key13 != null)
+ org.apache.thrift.protocol.TMap _map4 = iprot.readMapBegin();
+ struct.my_string_enum_map = new java.util.HashMap(2*_map4.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _key5;
+ @org.apache.thrift.annotation.Nullable MyEnum _val6;
+ for (int _i7 = 0; _i7 < _map4.size; ++_i7)
{
- struct.my_enum_struct_map.put(_key13, _val14);
+ _key5 = iprot.readString();
+ _val6 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
+ struct.my_string_enum_map.put(_key5, _val6);
}
+ iprot.readMapEnd();
}
- iprot.readMapEnd();
+ struct.setMy_string_enum_mapIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setMy_enum_struct_mapIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 13: // MY_ENUM_STRINGLIST_MAP
- if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
- {
- org.apache.thrift.protocol.TMap _map16 = iprot.readMapBegin();
- struct.my_enum_stringlist_map = new java.util.EnumMap>(MyEnum.class);
- @org.apache.thrift.annotation.Nullable MyEnum _key17;
- @org.apache.thrift.annotation.Nullable java.util.List _val18;
- for (int _i19 = 0; _i19 < _map16.size; ++_i19)
+ break;
+ case 11: // MY_ENUM_STRING_MAP
+ if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- _key17 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
+ org.apache.thrift.protocol.TMap _map8 = iprot.readMapBegin();
+ struct.my_enum_string_map = new java.util.EnumMap(MyEnum.class);
+ @org.apache.thrift.annotation.Nullable MyEnum _key9;
+ @org.apache.thrift.annotation.Nullable java.lang.String _val10;
+ for (int _i11 = 0; _i11 < _map8.size; ++_i11)
{
- org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
- _val18 = new java.util.ArrayList(_list20.size);
- @org.apache.thrift.annotation.Nullable java.lang.String _elem21;
- for (int _i22 = 0; _i22 < _list20.size; ++_i22)
+ _key9 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
+ _val10 = iprot.readString();
+ if (_key9 != null)
{
- _elem21 = iprot.readString();
- _val18.add(_elem21);
+ struct.my_enum_string_map.put(_key9, _val10);
}
- iprot.readListEnd();
}
- if (_key17 != null)
+ iprot.readMapEnd();
+ }
+ struct.setMy_enum_string_mapIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 12: // MY_ENUM_STRUCT_MAP
+ if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
+ {
+ org.apache.thrift.protocol.TMap _map12 = iprot.readMapBegin();
+ struct.my_enum_struct_map = new java.util.EnumMap(MyEnum.class);
+ @org.apache.thrift.annotation.Nullable MyEnum _key13;
+ @org.apache.thrift.annotation.Nullable MiniStruct _val14;
+ for (int _i15 = 0; _i15 < _map12.size; ++_i15)
{
- struct.my_enum_stringlist_map.put(_key17, _val18);
+ _key13 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
+ _val14 = new MiniStruct();
+ _val14.read(iprot);
+ if (_key13 != null)
+ {
+ struct.my_enum_struct_map.put(_key13, _val14);
+ }
}
+ iprot.readMapEnd();
}
- iprot.readMapEnd();
+ struct.setMy_enum_struct_mapIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setMy_enum_stringlist_mapIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 14: // MY_ENUM_STRUCTLIST_MAP
- if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
- {
- org.apache.thrift.protocol.TMap _map23 = iprot.readMapBegin();
- struct.my_enum_structlist_map = new java.util.EnumMap>(MyEnum.class);
- @org.apache.thrift.annotation.Nullable MyEnum _key24;
- @org.apache.thrift.annotation.Nullable java.util.List _val25;
- for (int _i26 = 0; _i26 < _map23.size; ++_i26)
+ break;
+ case 13: // MY_ENUM_STRINGLIST_MAP
+ if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- _key24 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
+ org.apache.thrift.protocol.TMap _map16 = iprot.readMapBegin();
+ struct.my_enum_stringlist_map = new java.util.EnumMap>(MyEnum.class);
+ @org.apache.thrift.annotation.Nullable MyEnum _key17;
+ @org.apache.thrift.annotation.Nullable java.util.List _val18;
+ for (int _i19 = 0; _i19 < _map16.size; ++_i19)
{
- org.apache.thrift.protocol.TList _list27 = iprot.readListBegin();
- _val25 = new java.util.ArrayList(_list27.size);
- @org.apache.thrift.annotation.Nullable MiniStruct _elem28;
- for (int _i29 = 0; _i29 < _list27.size; ++_i29)
+ _key17 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
{
- _elem28 = new MiniStruct();
- _elem28.read(iprot);
- _val25.add(_elem28);
+ org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
+ _val18 = new java.util.ArrayList(_list20.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _elem21;
+ for (int _i22 = 0; _i22 < _list20.size; ++_i22)
+ {
+ _elem21 = iprot.readString();
+ _val18.add(_elem21);
+ }
+ iprot.readListEnd();
+ }
+ if (_key17 != null)
+ {
+ struct.my_enum_stringlist_map.put(_key17, _val18);
}
- iprot.readListEnd();
}
- if (_key24 != null)
+ iprot.readMapEnd();
+ }
+ struct.setMy_enum_stringlist_mapIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 14: // MY_ENUM_STRUCTLIST_MAP
+ if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
+ {
+ org.apache.thrift.protocol.TMap _map23 = iprot.readMapBegin();
+ struct.my_enum_structlist_map = new java.util.EnumMap>(MyEnum.class);
+ @org.apache.thrift.annotation.Nullable MyEnum _key24;
+ @org.apache.thrift.annotation.Nullable java.util.List _val25;
+ for (int _i26 = 0; _i26 < _map23.size; ++_i26)
{
- struct.my_enum_structlist_map.put(_key24, _val25);
+ _key24 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
+ {
+ org.apache.thrift.protocol.TList _list27 = iprot.readListBegin();
+ _val25 = new java.util.ArrayList(_list27.size);
+ @org.apache.thrift.annotation.Nullable MiniStruct _elem28;
+ for (int _i29 = 0; _i29 < _list27.size; ++_i29)
+ {
+ _elem28 = new MiniStruct();
+ _elem28.read(iprot);
+ _val25.add(_elem28);
+ }
+ iprot.readListEnd();
+ }
+ if (_key24 != null)
+ {
+ struct.my_enum_structlist_map.put(_key24, _val25);
+ }
}
+ iprot.readMapEnd();
}
- iprot.readMapEnd();
+ struct.setMy_enum_structlist_mapIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setMy_enum_structlist_mapIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 15: // MY_STRINGLIST
- if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
- {
- org.apache.thrift.protocol.TList _list30 = iprot.readListBegin();
- struct.my_stringlist = new java.util.ArrayList(_list30.size);
- @org.apache.thrift.annotation.Nullable java.lang.String _elem31;
- for (int _i32 = 0; _i32 < _list30.size; ++_i32)
+ break;
+ case 15: // MY_STRINGLIST
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- _elem31 = iprot.readString();
- struct.my_stringlist.add(_elem31);
+ org.apache.thrift.protocol.TList _list30 = iprot.readListBegin();
+ struct.my_stringlist = new java.util.ArrayList(_list30.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _elem31;
+ for (int _i32 = 0; _i32 < _list30.size; ++_i32)
+ {
+ _elem31 = iprot.readString();
+ struct.my_stringlist.add(_elem31);
+ }
+ iprot.readListEnd();
}
- iprot.readListEnd();
+ struct.setMy_stringlistIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setMy_stringlistIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 16: // MY_STRUCTLIST
- if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
- {
- org.apache.thrift.protocol.TList _list33 = iprot.readListBegin();
- struct.my_structlist = new java.util.ArrayList(_list33.size);
- @org.apache.thrift.annotation.Nullable MiniStruct _elem34;
- for (int _i35 = 0; _i35 < _list33.size; ++_i35)
+ break;
+ case 16: // MY_STRUCTLIST
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- _elem34 = new MiniStruct();
- _elem34.read(iprot);
- struct.my_structlist.add(_elem34);
+ org.apache.thrift.protocol.TList _list33 = iprot.readListBegin();
+ struct.my_structlist = new java.util.ArrayList(_list33.size);
+ @org.apache.thrift.annotation.Nullable MiniStruct _elem34;
+ for (int _i35 = 0; _i35 < _list33.size; ++_i35)
+ {
+ _elem34 = new MiniStruct();
+ _elem34.read(iprot);
+ struct.my_structlist.add(_elem34);
+ }
+ iprot.readListEnd();
}
- iprot.readListEnd();
+ struct.setMy_structlistIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setMy_structlistIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 17: // MY_ENUMLIST
- if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
- {
- org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
- struct.my_enumlist = new java.util.ArrayList(_list36.size);
- @org.apache.thrift.annotation.Nullable MyEnum _elem37;
- for (int _i38 = 0; _i38 < _list36.size; ++_i38)
+ break;
+ case 17: // MY_ENUMLIST
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- _elem37 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
- if (_elem37 != null)
+ org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
+ struct.my_enumlist = new java.util.ArrayList(_list36.size);
+ @org.apache.thrift.annotation.Nullable MyEnum _elem37;
+ for (int _i38 = 0; _i38 < _list36.size; ++_i38)
{
- struct.my_enumlist.add(_elem37);
+ _elem37 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
+ if (_elem37 != null)
+ {
+ struct.my_enumlist.add(_elem37);
+ }
}
+ iprot.readListEnd();
}
- iprot.readListEnd();
+ struct.setMy_enumlistIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setMy_enumlistIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 18: // MY_STRINGSET
- if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
- {
- org.apache.thrift.protocol.TSet _set39 = iprot.readSetBegin();
- struct.my_stringset = new java.util.HashSet(2*_set39.size);
- @org.apache.thrift.annotation.Nullable java.lang.String _elem40;
- for (int _i41 = 0; _i41 < _set39.size; ++_i41)
+ break;
+ case 18: // MY_STRINGSET
+ if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
{
- _elem40 = iprot.readString();
- struct.my_stringset.add(_elem40);
+ org.apache.thrift.protocol.TSet _set39 = iprot.readSetBegin();
+ struct.my_stringset = new java.util.HashSet(2*_set39.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _elem40;
+ for (int _i41 = 0; _i41 < _set39.size; ++_i41)
+ {
+ _elem40 = iprot.readString();
+ struct.my_stringset.add(_elem40);
+ }
+ iprot.readSetEnd();
}
- iprot.readSetEnd();
+ struct.setMy_stringsetIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setMy_stringsetIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 19: // MY_ENUMSET
- if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
- {
- org.apache.thrift.protocol.TSet _set42 = iprot.readSetBegin();
- struct.my_enumset = java.util.EnumSet.noneOf(MyEnum.class);
- @org.apache.thrift.annotation.Nullable MyEnum _elem43;
- for (int _i44 = 0; _i44 < _set42.size; ++_i44)
+ break;
+ case 19: // MY_ENUMSET
+ if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
{
- _elem43 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
- if (_elem43 != null)
+ org.apache.thrift.protocol.TSet _set42 = iprot.readSetBegin();
+ struct.my_enumset = java.util.EnumSet.noneOf(MyEnum.class);
+ @org.apache.thrift.annotation.Nullable MyEnum _elem43;
+ for (int _i44 = 0; _i44 < _set42.size; ++_i44)
{
- struct.my_enumset.add(_elem43);
+ _elem43 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
+ if (_elem43 != null)
+ {
+ struct.my_enumset.add(_elem43);
+ }
}
+ iprot.readSetEnd();
}
- iprot.readSetEnd();
+ struct.setMy_enumsetIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setMy_enumsetIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 20: // MY_STRUCTSET
- if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
- {
- org.apache.thrift.protocol.TSet _set45 = iprot.readSetBegin();
- struct.my_structset = new java.util.HashSet(2*_set45.size);
- @org.apache.thrift.annotation.Nullable MiniStruct _elem46;
- for (int _i47 = 0; _i47 < _set45.size; ++_i47)
+ break;
+ case 20: // MY_STRUCTSET
+ if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
{
- _elem46 = new MiniStruct();
- _elem46.read(iprot);
- struct.my_structset.add(_elem46);
+ org.apache.thrift.protocol.TSet _set45 = iprot.readSetBegin();
+ struct.my_structset = new java.util.HashSet(2*_set45.size);
+ @org.apache.thrift.annotation.Nullable MiniStruct _elem46;
+ for (int _i47 = 0; _i47 < _set45.size; ++_i47)
+ {
+ _elem46 = new MiniStruct();
+ _elem46.read(iprot);
+ struct.my_structset.add(_elem46);
+ }
+ iprot.readSetEnd();
}
- iprot.readSetEnd();
+ struct.setMy_structsetIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setMy_structsetIsSet(true);
- } else {
+ break;
+ default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
}
- iprot.readFieldEnd();
+ iprot.readStructEnd();
+ struct.validate();
+ } finally {
+ iprot.decrementRecursionDepth();
}
- iprot.readStructEnd();
- struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, MegaStruct struct) throws org.apache.thrift.TException {
struct.validate();
@@ -2666,6 +2683,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, MegaStruct struct)
}
private static class MegaStructTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public MegaStructTupleScheme getScheme() {
return new MegaStructTupleScheme();
}
@@ -2892,247 +2910,252 @@ public void write(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct)
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(20);
- if (incoming.get(0)) {
- struct.my_bool = iprot.readBool();
- struct.setMy_boolIsSet(true);
- }
- if (incoming.get(1)) {
- struct.my_byte = iprot.readByte();
- struct.setMy_byteIsSet(true);
- }
- if (incoming.get(2)) {
- struct.my_16bit_int = iprot.readI16();
- struct.setMy_16bit_intIsSet(true);
- }
- if (incoming.get(3)) {
- struct.my_32bit_int = iprot.readI32();
- struct.setMy_32bit_intIsSet(true);
- }
- if (incoming.get(4)) {
- struct.my_64bit_int = iprot.readI64();
- struct.setMy_64bit_intIsSet(true);
- }
- if (incoming.get(5)) {
- struct.my_double = iprot.readDouble();
- struct.setMy_doubleIsSet(true);
- }
- if (incoming.get(6)) {
- struct.my_string = iprot.readString();
- struct.setMy_stringIsSet(true);
- }
- if (incoming.get(7)) {
- struct.my_binary = iprot.readBinary();
- struct.setMy_binaryIsSet(true);
- }
- if (incoming.get(8)) {
- {
- org.apache.thrift.protocol.TMap _map76 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING);
- struct.my_string_string_map = new java.util.HashMap(2*_map76.size);
- @org.apache.thrift.annotation.Nullable java.lang.String _key77;
- @org.apache.thrift.annotation.Nullable java.lang.String _val78;
- for (int _i79 = 0; _i79 < _map76.size; ++_i79)
- {
- _key77 = iprot.readString();
- _val78 = iprot.readString();
- struct.my_string_string_map.put(_key77, _val78);
- }
+ prot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(20);
+ if (incoming.get(0)) {
+ struct.my_bool = iprot.readBool();
+ struct.setMy_boolIsSet(true);
}
- struct.setMy_string_string_mapIsSet(true);
- }
- if (incoming.get(9)) {
- {
- org.apache.thrift.protocol.TMap _map80 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32);
- struct.my_string_enum_map = new java.util.HashMap(2*_map80.size);
- @org.apache.thrift.annotation.Nullable java.lang.String _key81;
- @org.apache.thrift.annotation.Nullable MyEnum _val82;
- for (int _i83 = 0; _i83 < _map80.size; ++_i83)
- {
- _key81 = iprot.readString();
- _val82 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
- struct.my_string_enum_map.put(_key81, _val82);
- }
+ if (incoming.get(1)) {
+ struct.my_byte = iprot.readByte();
+ struct.setMy_byteIsSet(true);
}
- struct.setMy_string_enum_mapIsSet(true);
- }
- if (incoming.get(10)) {
- {
- org.apache.thrift.protocol.TMap _map84 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRING);
- struct.my_enum_string_map = new java.util.EnumMap(MyEnum.class);
- @org.apache.thrift.annotation.Nullable MyEnum _key85;
- @org.apache.thrift.annotation.Nullable java.lang.String _val86;
- for (int _i87 = 0; _i87 < _map84.size; ++_i87)
+ if (incoming.get(2)) {
+ struct.my_16bit_int = iprot.readI16();
+ struct.setMy_16bit_intIsSet(true);
+ }
+ if (incoming.get(3)) {
+ struct.my_32bit_int = iprot.readI32();
+ struct.setMy_32bit_intIsSet(true);
+ }
+ if (incoming.get(4)) {
+ struct.my_64bit_int = iprot.readI64();
+ struct.setMy_64bit_intIsSet(true);
+ }
+ if (incoming.get(5)) {
+ struct.my_double = iprot.readDouble();
+ struct.setMy_doubleIsSet(true);
+ }
+ if (incoming.get(6)) {
+ struct.my_string = iprot.readString();
+ struct.setMy_stringIsSet(true);
+ }
+ if (incoming.get(7)) {
+ struct.my_binary = iprot.readBinary();
+ struct.setMy_binaryIsSet(true);
+ }
+ if (incoming.get(8)) {
{
- _key85 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
- _val86 = iprot.readString();
- if (_key85 != null)
+ org.apache.thrift.protocol.TMap _map76 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING);
+ struct.my_string_string_map = new java.util.HashMap(2*_map76.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _key77;
+ @org.apache.thrift.annotation.Nullable java.lang.String _val78;
+ for (int _i79 = 0; _i79 < _map76.size; ++_i79)
{
- struct.my_enum_string_map.put(_key85, _val86);
+ _key77 = iprot.readString();
+ _val78 = iprot.readString();
+ struct.my_string_string_map.put(_key77, _val78);
}
}
+ struct.setMy_string_string_mapIsSet(true);
}
- struct.setMy_enum_string_mapIsSet(true);
- }
- if (incoming.get(11)) {
- {
- org.apache.thrift.protocol.TMap _map88 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRUCT);
- struct.my_enum_struct_map = new java.util.EnumMap(MyEnum.class);
- @org.apache.thrift.annotation.Nullable MyEnum _key89;
- @org.apache.thrift.annotation.Nullable MiniStruct _val90;
- for (int _i91 = 0; _i91 < _map88.size; ++_i91)
+ if (incoming.get(9)) {
{
- _key89 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
- _val90 = new MiniStruct();
- _val90.read(iprot);
- if (_key89 != null)
+ org.apache.thrift.protocol.TMap _map80 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32);
+ struct.my_string_enum_map = new java.util.HashMap(2*_map80.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _key81;
+ @org.apache.thrift.annotation.Nullable MyEnum _val82;
+ for (int _i83 = 0; _i83 < _map80.size; ++_i83)
{
- struct.my_enum_struct_map.put(_key89, _val90);
+ _key81 = iprot.readString();
+ _val82 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
+ struct.my_string_enum_map.put(_key81, _val82);
}
}
+ struct.setMy_string_enum_mapIsSet(true);
}
- struct.setMy_enum_struct_mapIsSet(true);
- }
- if (incoming.get(12)) {
- {
- org.apache.thrift.protocol.TMap _map92 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.LIST);
- struct.my_enum_stringlist_map = new java.util.EnumMap>(MyEnum.class);
- @org.apache.thrift.annotation.Nullable MyEnum _key93;
- @org.apache.thrift.annotation.Nullable java.util.List _val94;
- for (int _i95 = 0; _i95 < _map92.size; ++_i95)
+ if (incoming.get(10)) {
{
- _key93 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
+ org.apache.thrift.protocol.TMap _map84 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRING);
+ struct.my_enum_string_map = new java.util.EnumMap(MyEnum.class);
+ @org.apache.thrift.annotation.Nullable MyEnum _key85;
+ @org.apache.thrift.annotation.Nullable java.lang.String _val86;
+ for (int _i87 = 0; _i87 < _map84.size; ++_i87)
{
- org.apache.thrift.protocol.TList _list96 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
- _val94 = new java.util.ArrayList(_list96.size);
- @org.apache.thrift.annotation.Nullable java.lang.String _elem97;
- for (int _i98 = 0; _i98 < _list96.size; ++_i98)
+ _key85 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
+ _val86 = iprot.readString();
+ if (_key85 != null)
{
- _elem97 = iprot.readString();
- _val94.add(_elem97);
+ struct.my_enum_string_map.put(_key85, _val86);
}
}
- if (_key93 != null)
+ }
+ struct.setMy_enum_string_mapIsSet(true);
+ }
+ if (incoming.get(11)) {
+ {
+ org.apache.thrift.protocol.TMap _map88 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRUCT);
+ struct.my_enum_struct_map = new java.util.EnumMap(MyEnum.class);
+ @org.apache.thrift.annotation.Nullable MyEnum _key89;
+ @org.apache.thrift.annotation.Nullable MiniStruct _val90;
+ for (int _i91 = 0; _i91 < _map88.size; ++_i91)
{
- struct.my_enum_stringlist_map.put(_key93, _val94);
+ _key89 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
+ _val90 = new MiniStruct();
+ _val90.read(iprot);
+ if (_key89 != null)
+ {
+ struct.my_enum_struct_map.put(_key89, _val90);
+ }
}
}
+ struct.setMy_enum_struct_mapIsSet(true);
}
- struct.setMy_enum_stringlist_mapIsSet(true);
- }
- if (incoming.get(13)) {
- {
- org.apache.thrift.protocol.TMap _map99 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.LIST);
- struct.my_enum_structlist_map = new java.util.EnumMap>(MyEnum.class);
- @org.apache.thrift.annotation.Nullable MyEnum _key100;
- @org.apache.thrift.annotation.Nullable java.util.List _val101;
- for (int _i102 = 0; _i102 < _map99.size; ++_i102)
+ if (incoming.get(12)) {
{
- _key100 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
+ org.apache.thrift.protocol.TMap _map92 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.LIST);
+ struct.my_enum_stringlist_map = new java.util.EnumMap>(MyEnum.class);
+ @org.apache.thrift.annotation.Nullable MyEnum _key93;
+ @org.apache.thrift.annotation.Nullable java.util.List _val94;
+ for (int _i95 = 0; _i95 < _map92.size; ++_i95)
{
- org.apache.thrift.protocol.TList _list103 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
- _val101 = new java.util.ArrayList(_list103.size);
- @org.apache.thrift.annotation.Nullable MiniStruct _elem104;
- for (int _i105 = 0; _i105 < _list103.size; ++_i105)
+ _key93 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
+ {
+ org.apache.thrift.protocol.TList _list96 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
+ _val94 = new java.util.ArrayList(_list96.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _elem97;
+ for (int _i98 = 0; _i98 < _list96.size; ++_i98)
+ {
+ _elem97 = iprot.readString();
+ _val94.add(_elem97);
+ }
+ }
+ if (_key93 != null)
{
- _elem104 = new MiniStruct();
- _elem104.read(iprot);
- _val101.add(_elem104);
+ struct.my_enum_stringlist_map.put(_key93, _val94);
}
}
- if (_key100 != null)
+ }
+ struct.setMy_enum_stringlist_mapIsSet(true);
+ }
+ if (incoming.get(13)) {
+ {
+ org.apache.thrift.protocol.TMap _map99 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.LIST);
+ struct.my_enum_structlist_map = new java.util.EnumMap>(MyEnum.class);
+ @org.apache.thrift.annotation.Nullable MyEnum _key100;
+ @org.apache.thrift.annotation.Nullable java.util.List _val101;
+ for (int _i102 = 0; _i102 < _map99.size; ++_i102)
{
- struct.my_enum_structlist_map.put(_key100, _val101);
+ _key100 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
+ {
+ org.apache.thrift.protocol.TList _list103 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
+ _val101 = new java.util.ArrayList(_list103.size);
+ @org.apache.thrift.annotation.Nullable MiniStruct _elem104;
+ for (int _i105 = 0; _i105 < _list103.size; ++_i105)
+ {
+ _elem104 = new MiniStruct();
+ _elem104.read(iprot);
+ _val101.add(_elem104);
+ }
+ }
+ if (_key100 != null)
+ {
+ struct.my_enum_structlist_map.put(_key100, _val101);
+ }
}
}
+ struct.setMy_enum_structlist_mapIsSet(true);
}
- struct.setMy_enum_structlist_mapIsSet(true);
- }
- if (incoming.get(14)) {
- {
- org.apache.thrift.protocol.TList _list106 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
- struct.my_stringlist = new java.util.ArrayList(_list106.size);
- @org.apache.thrift.annotation.Nullable java.lang.String _elem107;
- for (int _i108 = 0; _i108 < _list106.size; ++_i108)
+ if (incoming.get(14)) {
{
- _elem107 = iprot.readString();
- struct.my_stringlist.add(_elem107);
+ org.apache.thrift.protocol.TList _list106 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
+ struct.my_stringlist = new java.util.ArrayList(_list106.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _elem107;
+ for (int _i108 = 0; _i108 < _list106.size; ++_i108)
+ {
+ _elem107 = iprot.readString();
+ struct.my_stringlist.add(_elem107);
+ }
}
+ struct.setMy_stringlistIsSet(true);
}
- struct.setMy_stringlistIsSet(true);
- }
- if (incoming.get(15)) {
- {
- org.apache.thrift.protocol.TList _list109 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
- struct.my_structlist = new java.util.ArrayList(_list109.size);
- @org.apache.thrift.annotation.Nullable MiniStruct _elem110;
- for (int _i111 = 0; _i111 < _list109.size; ++_i111)
+ if (incoming.get(15)) {
{
- _elem110 = new MiniStruct();
- _elem110.read(iprot);
- struct.my_structlist.add(_elem110);
+ org.apache.thrift.protocol.TList _list109 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
+ struct.my_structlist = new java.util.ArrayList(_list109.size);
+ @org.apache.thrift.annotation.Nullable MiniStruct _elem110;
+ for (int _i111 = 0; _i111 < _list109.size; ++_i111)
+ {
+ _elem110 = new MiniStruct();
+ _elem110.read(iprot);
+ struct.my_structlist.add(_elem110);
+ }
}
+ struct.setMy_structlistIsSet(true);
}
- struct.setMy_structlistIsSet(true);
- }
- if (incoming.get(16)) {
- {
- org.apache.thrift.protocol.TList _list112 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32);
- struct.my_enumlist = new java.util.ArrayList(_list112.size);
- @org.apache.thrift.annotation.Nullable MyEnum _elem113;
- for (int _i114 = 0; _i114 < _list112.size; ++_i114)
+ if (incoming.get(16)) {
{
- _elem113 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
- if (_elem113 != null)
+ org.apache.thrift.protocol.TList _list112 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32);
+ struct.my_enumlist = new java.util.ArrayList(_list112.size);
+ @org.apache.thrift.annotation.Nullable MyEnum _elem113;
+ for (int _i114 = 0; _i114 < _list112.size; ++_i114)
{
- struct.my_enumlist.add(_elem113);
+ _elem113 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
+ if (_elem113 != null)
+ {
+ struct.my_enumlist.add(_elem113);
+ }
}
}
+ struct.setMy_enumlistIsSet(true);
}
- struct.setMy_enumlistIsSet(true);
- }
- if (incoming.get(17)) {
- {
- org.apache.thrift.protocol.TSet _set115 = iprot.readSetBegin(org.apache.thrift.protocol.TType.STRING);
- struct.my_stringset = new java.util.HashSet(2*_set115.size);
- @org.apache.thrift.annotation.Nullable java.lang.String _elem116;
- for (int _i117 = 0; _i117 < _set115.size; ++_i117)
+ if (incoming.get(17)) {
{
- _elem116 = iprot.readString();
- struct.my_stringset.add(_elem116);
+ org.apache.thrift.protocol.TSet _set115 = iprot.readSetBegin(org.apache.thrift.protocol.TType.STRING);
+ struct.my_stringset = new java.util.HashSet(2*_set115.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _elem116;
+ for (int _i117 = 0; _i117 < _set115.size; ++_i117)
+ {
+ _elem116 = iprot.readString();
+ struct.my_stringset.add(_elem116);
+ }
}
+ struct.setMy_stringsetIsSet(true);
}
- struct.setMy_stringsetIsSet(true);
- }
- if (incoming.get(18)) {
- {
- org.apache.thrift.protocol.TSet _set118 = iprot.readSetBegin(org.apache.thrift.protocol.TType.I32);
- struct.my_enumset = java.util.EnumSet.noneOf(MyEnum.class);
- @org.apache.thrift.annotation.Nullable MyEnum _elem119;
- for (int _i120 = 0; _i120 < _set118.size; ++_i120)
+ if (incoming.get(18)) {
{
- _elem119 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
- if (_elem119 != null)
+ org.apache.thrift.protocol.TSet _set118 = iprot.readSetBegin(org.apache.thrift.protocol.TType.I32);
+ struct.my_enumset = java.util.EnumSet.noneOf(MyEnum.class);
+ @org.apache.thrift.annotation.Nullable MyEnum _elem119;
+ for (int _i120 = 0; _i120 < _set118.size; ++_i120)
{
- struct.my_enumset.add(_elem119);
+ _elem119 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
+ if (_elem119 != null)
+ {
+ struct.my_enumset.add(_elem119);
+ }
}
}
+ struct.setMy_enumsetIsSet(true);
}
- struct.setMy_enumsetIsSet(true);
- }
- if (incoming.get(19)) {
- {
- org.apache.thrift.protocol.TSet _set121 = iprot.readSetBegin(org.apache.thrift.protocol.TType.STRUCT);
- struct.my_structset = new java.util.HashSet(2*_set121.size);
- @org.apache.thrift.annotation.Nullable MiniStruct _elem122;
- for (int _i123 = 0; _i123 < _set121.size; ++_i123)
+ if (incoming.get(19)) {
{
- _elem122 = new MiniStruct();
- _elem122.read(iprot);
- struct.my_structset.add(_elem122);
+ org.apache.thrift.protocol.TSet _set121 = iprot.readSetBegin(org.apache.thrift.protocol.TType.STRUCT);
+ struct.my_structset = new java.util.HashSet(2*_set121.size);
+ @org.apache.thrift.annotation.Nullable MiniStruct _elem122;
+ for (int _i123 = 0; _i123 < _set121.size; ++_i123)
+ {
+ _elem122 = new MiniStruct();
+ _elem122.read(iprot);
+ struct.my_structset.add(_elem122);
+ }
}
+ struct.setMy_structsetIsSet(true);
}
- struct.setMy_structsetIsSet(true);
+ } finally {
+ prot.decrementRecursionDepth();
}
}
}
diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MiniStruct.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MiniStruct.java
index 03b2d29dcc4e..2ef92b07a633 100644
--- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MiniStruct.java
+++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MiniStruct.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -7,7 +7,7 @@
package org.apache.hadoop.hive.serde2.thrift.test;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.23.0)")
public class MiniStruct 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("MiniStruct");
@@ -78,17 +78,19 @@ public static _Fields findByName(java.lang.String name) {
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
+ @Override
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- private static final _Fields optionals[] = {_Fields.MY_STRING,_Fields.MY_ENUM};
+ private static final _Fields[] optionals = {_Fields.MY_STRING,_Fields.MY_ENUM};
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
@@ -115,6 +117,7 @@ public MiniStruct(MiniStruct other) {
}
}
+ @Override
public MiniStruct deepCopy() {
return new MiniStruct(this);
}
@@ -181,6 +184,7 @@ public void setMy_enumIsSet(boolean value) {
}
}
+ @Override
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case MY_STRING:
@@ -203,6 +207,7 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable
}
@org.apache.thrift.annotation.Nullable
+ @Override
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case MY_STRING:
@@ -216,6 +221,7 @@ public java.lang.Object getFieldValue(_Fields field) {
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
@@ -311,14 +317,17 @@ public int compareTo(MiniStruct other) {
}
@org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@@ -373,6 +382,7 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException
}
private static class MiniStructStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public MiniStructStandardScheme getScheme() {
return new MiniStructStandardScheme();
}
@@ -380,41 +390,48 @@ public MiniStructStandardScheme getScheme() {
private static class MiniStructStandardScheme extends org.apache.thrift.scheme.StandardScheme {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, MiniStruct struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // MY_STRING
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.my_string = iprot.readString();
- struct.setMy_stringIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
+ iprot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
- case 2: // MY_ENUM
- if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
- struct.my_enum = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
- struct.setMy_enumIsSet(true);
- } else {
+ }
+ switch (schemeField.id) {
+ case 1: // MY_STRING
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.my_string = iprot.readString();
+ struct.setMy_stringIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // MY_ENUM
+ if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+ struct.my_enum = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
+ struct.setMy_enumIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
}
- iprot.readFieldEnd();
+ iprot.readStructEnd();
+ struct.validate();
+ } finally {
+ iprot.decrementRecursionDepth();
}
- iprot.readStructEnd();
- struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, MiniStruct struct) throws org.apache.thrift.TException {
struct.validate();
@@ -440,6 +457,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, MiniStruct struct)
}
private static class MiniStructTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public MiniStructTupleScheme getScheme() {
return new MiniStructTupleScheme();
}
@@ -468,15 +486,20 @@ public void write(org.apache.thrift.protocol.TProtocol prot, MiniStruct struct)
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, MiniStruct struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(2);
- if (incoming.get(0)) {
- struct.my_string = iprot.readString();
- struct.setMy_stringIsSet(true);
- }
- if (incoming.get(1)) {
- struct.my_enum = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
- struct.setMy_enumIsSet(true);
+ prot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(2);
+ if (incoming.get(0)) {
+ struct.my_string = iprot.readString();
+ struct.setMy_stringIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.my_enum = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32());
+ struct.setMy_enumIsSet(true);
+ }
+ } finally {
+ prot.decrementRecursionDepth();
}
}
}
diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MyEnum.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MyEnum.java
index f50156d3a13a..cd30cb168097 100644
--- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MyEnum.java
+++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MyEnum.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -7,7 +7,7 @@
package org.apache.hadoop.hive.serde2.thrift.test;
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.23.0)")
public enum MyEnum implements org.apache.thrift.TEnum {
LLAMA(1),
ALPACA(2);
@@ -21,6 +21,7 @@ private MyEnum(int value) {
/**
* Get the integer value of this enum value, as defined in the Thrift IDL.
*/
+ @Override
public int getValue() {
return value;
}
diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/PropValueUnion.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/PropValueUnion.java
index ec207dfbcfa1..138903740911 100644
--- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/PropValueUnion.java
+++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/PropValueUnion.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -7,7 +7,7 @@
package org.apache.hadoop.hive.serde2.thrift.test;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.23.0)")
public class PropValueUnion extends org.apache.thrift.TUnion {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PropValueUnion");
private static final org.apache.thrift.protocol.TField INT_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("intValue", org.apache.thrift.protocol.TType.I32, (short)1);
@@ -87,10 +87,12 @@ public static _Fields findByName(java.lang.String name) {
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
+ @Override
public java.lang.String getFieldName() {
return _fieldName;
}
@@ -131,6 +133,7 @@ public PropValueUnion(_Fields setField, java.lang.Object value) {
public PropValueUnion(PropValueUnion other) {
super(other);
}
+ @Override
public PropValueUnion deepCopy() {
return new PropValueUnion(this);
}
@@ -518,6 +521,7 @@ protected _Fields enumForId(short id) {
}
@org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/SetIntString.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/SetIntString.java
index ca0ca4fc8ee0..90e192385b26 100644
--- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/SetIntString.java
+++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/SetIntString.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -7,7 +7,7 @@
package org.apache.hadoop.hive.serde2.thrift.test;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.23.0)")
public class SetIntString 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("SetIntString");
@@ -74,10 +74,12 @@ public static _Fields findByName(java.lang.String name) {
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
+ @Override
public java.lang.String getFieldName() {
return _fieldName;
}
@@ -124,6 +126,7 @@ public SetIntString(SetIntString other) {
}
}
+ @Override
public SetIntString deepCopy() {
return new SetIntString(this);
}
@@ -198,6 +201,7 @@ public void setAStringIsSet(boolean value) {
}
}
+ @Override
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case S_INT_STRING:
@@ -220,6 +224,7 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable
}
@org.apache.thrift.annotation.Nullable
+ @Override
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case S_INT_STRING:
@@ -233,6 +238,7 @@ public java.lang.Object getFieldValue(_Fields field) {
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
@@ -328,14 +334,17 @@ public int compareTo(SetIntString other) {
}
@org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@@ -386,6 +395,7 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException
}
private static class SetIntStringStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public SetIntStringStandardScheme getScheme() {
return new SetIntStringStandardScheme();
}
@@ -393,52 +403,59 @@ public SetIntStringStandardScheme getScheme() {
private static class SetIntStringStandardScheme extends org.apache.thrift.scheme.StandardScheme {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, SetIntString struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // S_INT_STRING
- if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
- {
- org.apache.thrift.protocol.TSet _set82 = iprot.readSetBegin();
- struct.sIntString = new java.util.HashSet(2*_set82.size);
- @org.apache.thrift.annotation.Nullable IntString _elem83;
- for (int _i84 = 0; _i84 < _set82.size; ++_i84)
+ iprot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // S_INT_STRING
+ if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
{
- _elem83 = new IntString();
- _elem83.read(iprot);
- struct.sIntString.add(_elem83);
+ org.apache.thrift.protocol.TSet _set82 = iprot.readSetBegin();
+ struct.sIntString = new java.util.HashSet(2*_set82.size);
+ @org.apache.thrift.annotation.Nullable IntString _elem83;
+ for (int _i84 = 0; _i84 < _set82.size; ++_i84)
+ {
+ _elem83 = new IntString();
+ _elem83.read(iprot);
+ struct.sIntString.add(_elem83);
+ }
+ iprot.readSetEnd();
}
- iprot.readSetEnd();
+ struct.setSIntStringIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setSIntStringIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 2: // A_STRING
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.aString = iprot.readString();
- struct.setAStringIsSet(true);
- } else {
+ break;
+ case 2: // A_STRING
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.aString = iprot.readString();
+ struct.setAStringIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
}
- iprot.readFieldEnd();
+ iprot.readStructEnd();
+ struct.validate();
+ } finally {
+ iprot.decrementRecursionDepth();
}
- iprot.readStructEnd();
- struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, SetIntString struct) throws org.apache.thrift.TException {
struct.validate();
@@ -467,6 +484,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, SetIntString struc
}
private static class SetIntStringTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public SetIntStringTupleScheme getScheme() {
return new SetIntStringTupleScheme();
}
@@ -501,25 +519,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, SetIntString struct
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, SetIntString struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(2);
- if (incoming.get(0)) {
- {
- org.apache.thrift.protocol.TSet _set87 = iprot.readSetBegin(org.apache.thrift.protocol.TType.STRUCT);
- struct.sIntString = new java.util.HashSet(2*_set87.size);
- @org.apache.thrift.annotation.Nullable IntString _elem88;
- for (int _i89 = 0; _i89 < _set87.size; ++_i89)
+ prot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(2);
+ if (incoming.get(0)) {
{
- _elem88 = new IntString();
- _elem88.read(iprot);
- struct.sIntString.add(_elem88);
+ org.apache.thrift.protocol.TSet _set87 = iprot.readSetBegin(org.apache.thrift.protocol.TType.STRUCT);
+ struct.sIntString = new java.util.HashSet(2*_set87.size);
+ @org.apache.thrift.annotation.Nullable IntString _elem88;
+ for (int _i89 = 0; _i89 < _set87.size; ++_i89)
+ {
+ _elem88 = new IntString();
+ _elem88.read(iprot);
+ struct.sIntString.add(_elem88);
+ }
}
+ struct.setSIntStringIsSet(true);
}
- struct.setSIntStringIsSet(true);
- }
- if (incoming.get(1)) {
- struct.aString = iprot.readString();
- struct.setAStringIsSet(true);
+ if (incoming.get(1)) {
+ struct.aString = iprot.readString();
+ struct.setAStringIsSet(true);
+ }
+ } finally {
+ prot.decrementRecursionDepth();
}
}
}
diff --git a/serde/src/gen/thrift/gen-php/Complex.php b/serde/src/gen/thrift/gen-php/Complex.php
index 63b5dfc4afb9..7e4c20f8e11c 100644
--- a/serde/src/gen/thrift/gen-php/Complex.php
+++ b/serde/src/gen/thrift/gen-php/Complex.php
@@ -1,6 +1,6 @@
Hive Service RPC
..
+ 1.3.2
@@ -37,12 +38,23 @@
commons-cli
- org.apache.thrift
- libfb303
+ javax.annotation
+ javax.annotation-api
+ ${javax.annotation-api.version}
org.apache.thrift
libthrift
+
+
+ org.apache.httpcomponents
+ httpclient
+
+
+ org.apache.httpcomponents
+ httpcore
+
+
diff --git a/service-rpc/src/gen/thrift/gen-cpp/TCLIService.cpp b/service-rpc/src/gen/thrift/gen-cpp/TCLIService.cpp
index e44412551253..a2de61fae0bc 100644
--- a/service-rpc/src/gen/thrift/gen-cpp/TCLIService.cpp
+++ b/service-rpc/src/gen/thrift/gen-cpp/TCLIService.cpp
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -12,6 +12,8 @@ namespace apache { namespace hive { namespace service { namespace rpc { namespac
TCLIService_OpenSession_args::~TCLIService_OpenSession_args() noexcept {
}
+TCLIService_OpenSession_args::TCLIService_OpenSession_args() noexcept {
+}
uint32_t TCLIService_OpenSession_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -91,6 +93,8 @@ uint32_t TCLIService_OpenSession_pargs::write(::apache::thrift::protocol::TProto
TCLIService_OpenSession_result::~TCLIService_OpenSession_result() noexcept {
}
+TCLIService_OpenSession_result::TCLIService_OpenSession_result() noexcept {
+}
uint32_t TCLIService_OpenSession_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -199,6 +203,8 @@ uint32_t TCLIService_OpenSession_presult::read(::apache::thrift::protocol::TProt
TCLIService_CloseSession_args::~TCLIService_CloseSession_args() noexcept {
}
+TCLIService_CloseSession_args::TCLIService_CloseSession_args() noexcept {
+}
uint32_t TCLIService_CloseSession_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -278,6 +284,8 @@ uint32_t TCLIService_CloseSession_pargs::write(::apache::thrift::protocol::TProt
TCLIService_CloseSession_result::~TCLIService_CloseSession_result() noexcept {
}
+TCLIService_CloseSession_result::TCLIService_CloseSession_result() noexcept {
+}
uint32_t TCLIService_CloseSession_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -386,6 +394,8 @@ uint32_t TCLIService_CloseSession_presult::read(::apache::thrift::protocol::TPro
TCLIService_GetInfo_args::~TCLIService_GetInfo_args() noexcept {
}
+TCLIService_GetInfo_args::TCLIService_GetInfo_args() noexcept {
+}
uint32_t TCLIService_GetInfo_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -465,6 +475,8 @@ uint32_t TCLIService_GetInfo_pargs::write(::apache::thrift::protocol::TProtocol*
TCLIService_GetInfo_result::~TCLIService_GetInfo_result() noexcept {
}
+TCLIService_GetInfo_result::TCLIService_GetInfo_result() noexcept {
+}
uint32_t TCLIService_GetInfo_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -573,6 +585,8 @@ uint32_t TCLIService_GetInfo_presult::read(::apache::thrift::protocol::TProtocol
TCLIService_ExecuteStatement_args::~TCLIService_ExecuteStatement_args() noexcept {
}
+TCLIService_ExecuteStatement_args::TCLIService_ExecuteStatement_args() noexcept {
+}
uint32_t TCLIService_ExecuteStatement_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -652,6 +666,8 @@ uint32_t TCLIService_ExecuteStatement_pargs::write(::apache::thrift::protocol::T
TCLIService_ExecuteStatement_result::~TCLIService_ExecuteStatement_result() noexcept {
}
+TCLIService_ExecuteStatement_result::TCLIService_ExecuteStatement_result() noexcept {
+}
uint32_t TCLIService_ExecuteStatement_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -760,6 +776,8 @@ uint32_t TCLIService_ExecuteStatement_presult::read(::apache::thrift::protocol::
TCLIService_GetTypeInfo_args::~TCLIService_GetTypeInfo_args() noexcept {
}
+TCLIService_GetTypeInfo_args::TCLIService_GetTypeInfo_args() noexcept {
+}
uint32_t TCLIService_GetTypeInfo_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -839,6 +857,8 @@ uint32_t TCLIService_GetTypeInfo_pargs::write(::apache::thrift::protocol::TProto
TCLIService_GetTypeInfo_result::~TCLIService_GetTypeInfo_result() noexcept {
}
+TCLIService_GetTypeInfo_result::TCLIService_GetTypeInfo_result() noexcept {
+}
uint32_t TCLIService_GetTypeInfo_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -947,6 +967,8 @@ uint32_t TCLIService_GetTypeInfo_presult::read(::apache::thrift::protocol::TProt
TCLIService_GetCatalogs_args::~TCLIService_GetCatalogs_args() noexcept {
}
+TCLIService_GetCatalogs_args::TCLIService_GetCatalogs_args() noexcept {
+}
uint32_t TCLIService_GetCatalogs_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -1026,6 +1048,8 @@ uint32_t TCLIService_GetCatalogs_pargs::write(::apache::thrift::protocol::TProto
TCLIService_GetCatalogs_result::~TCLIService_GetCatalogs_result() noexcept {
}
+TCLIService_GetCatalogs_result::TCLIService_GetCatalogs_result() noexcept {
+}
uint32_t TCLIService_GetCatalogs_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -1134,6 +1158,8 @@ uint32_t TCLIService_GetCatalogs_presult::read(::apache::thrift::protocol::TProt
TCLIService_GetSchemas_args::~TCLIService_GetSchemas_args() noexcept {
}
+TCLIService_GetSchemas_args::TCLIService_GetSchemas_args() noexcept {
+}
uint32_t TCLIService_GetSchemas_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -1213,6 +1239,8 @@ uint32_t TCLIService_GetSchemas_pargs::write(::apache::thrift::protocol::TProtoc
TCLIService_GetSchemas_result::~TCLIService_GetSchemas_result() noexcept {
}
+TCLIService_GetSchemas_result::TCLIService_GetSchemas_result() noexcept {
+}
uint32_t TCLIService_GetSchemas_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -1321,6 +1349,8 @@ uint32_t TCLIService_GetSchemas_presult::read(::apache::thrift::protocol::TProto
TCLIService_GetTables_args::~TCLIService_GetTables_args() noexcept {
}
+TCLIService_GetTables_args::TCLIService_GetTables_args() noexcept {
+}
uint32_t TCLIService_GetTables_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -1400,6 +1430,8 @@ uint32_t TCLIService_GetTables_pargs::write(::apache::thrift::protocol::TProtoco
TCLIService_GetTables_result::~TCLIService_GetTables_result() noexcept {
}
+TCLIService_GetTables_result::TCLIService_GetTables_result() noexcept {
+}
uint32_t TCLIService_GetTables_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -1508,6 +1540,8 @@ uint32_t TCLIService_GetTables_presult::read(::apache::thrift::protocol::TProtoc
TCLIService_GetTableTypes_args::~TCLIService_GetTableTypes_args() noexcept {
}
+TCLIService_GetTableTypes_args::TCLIService_GetTableTypes_args() noexcept {
+}
uint32_t TCLIService_GetTableTypes_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -1587,6 +1621,8 @@ uint32_t TCLIService_GetTableTypes_pargs::write(::apache::thrift::protocol::TPro
TCLIService_GetTableTypes_result::~TCLIService_GetTableTypes_result() noexcept {
}
+TCLIService_GetTableTypes_result::TCLIService_GetTableTypes_result() noexcept {
+}
uint32_t TCLIService_GetTableTypes_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -1695,6 +1731,8 @@ uint32_t TCLIService_GetTableTypes_presult::read(::apache::thrift::protocol::TPr
TCLIService_GetColumns_args::~TCLIService_GetColumns_args() noexcept {
}
+TCLIService_GetColumns_args::TCLIService_GetColumns_args() noexcept {
+}
uint32_t TCLIService_GetColumns_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -1774,6 +1812,8 @@ uint32_t TCLIService_GetColumns_pargs::write(::apache::thrift::protocol::TProtoc
TCLIService_GetColumns_result::~TCLIService_GetColumns_result() noexcept {
}
+TCLIService_GetColumns_result::TCLIService_GetColumns_result() noexcept {
+}
uint32_t TCLIService_GetColumns_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -1882,6 +1922,8 @@ uint32_t TCLIService_GetColumns_presult::read(::apache::thrift::protocol::TProto
TCLIService_GetFunctions_args::~TCLIService_GetFunctions_args() noexcept {
}
+TCLIService_GetFunctions_args::TCLIService_GetFunctions_args() noexcept {
+}
uint32_t TCLIService_GetFunctions_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -1961,6 +2003,8 @@ uint32_t TCLIService_GetFunctions_pargs::write(::apache::thrift::protocol::TProt
TCLIService_GetFunctions_result::~TCLIService_GetFunctions_result() noexcept {
}
+TCLIService_GetFunctions_result::TCLIService_GetFunctions_result() noexcept {
+}
uint32_t TCLIService_GetFunctions_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -2069,6 +2113,8 @@ uint32_t TCLIService_GetFunctions_presult::read(::apache::thrift::protocol::TPro
TCLIService_GetPrimaryKeys_args::~TCLIService_GetPrimaryKeys_args() noexcept {
}
+TCLIService_GetPrimaryKeys_args::TCLIService_GetPrimaryKeys_args() noexcept {
+}
uint32_t TCLIService_GetPrimaryKeys_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -2148,6 +2194,8 @@ uint32_t TCLIService_GetPrimaryKeys_pargs::write(::apache::thrift::protocol::TPr
TCLIService_GetPrimaryKeys_result::~TCLIService_GetPrimaryKeys_result() noexcept {
}
+TCLIService_GetPrimaryKeys_result::TCLIService_GetPrimaryKeys_result() noexcept {
+}
uint32_t TCLIService_GetPrimaryKeys_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -2256,6 +2304,8 @@ uint32_t TCLIService_GetPrimaryKeys_presult::read(::apache::thrift::protocol::TP
TCLIService_GetCrossReference_args::~TCLIService_GetCrossReference_args() noexcept {
}
+TCLIService_GetCrossReference_args::TCLIService_GetCrossReference_args() noexcept {
+}
uint32_t TCLIService_GetCrossReference_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -2335,6 +2385,8 @@ uint32_t TCLIService_GetCrossReference_pargs::write(::apache::thrift::protocol::
TCLIService_GetCrossReference_result::~TCLIService_GetCrossReference_result() noexcept {
}
+TCLIService_GetCrossReference_result::TCLIService_GetCrossReference_result() noexcept {
+}
uint32_t TCLIService_GetCrossReference_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -2443,6 +2495,8 @@ uint32_t TCLIService_GetCrossReference_presult::read(::apache::thrift::protocol:
TCLIService_GetOperationStatus_args::~TCLIService_GetOperationStatus_args() noexcept {
}
+TCLIService_GetOperationStatus_args::TCLIService_GetOperationStatus_args() noexcept {
+}
uint32_t TCLIService_GetOperationStatus_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -2522,6 +2576,8 @@ uint32_t TCLIService_GetOperationStatus_pargs::write(::apache::thrift::protocol:
TCLIService_GetOperationStatus_result::~TCLIService_GetOperationStatus_result() noexcept {
}
+TCLIService_GetOperationStatus_result::TCLIService_GetOperationStatus_result() noexcept {
+}
uint32_t TCLIService_GetOperationStatus_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -2630,6 +2686,8 @@ uint32_t TCLIService_GetOperationStatus_presult::read(::apache::thrift::protocol
TCLIService_CancelOperation_args::~TCLIService_CancelOperation_args() noexcept {
}
+TCLIService_CancelOperation_args::TCLIService_CancelOperation_args() noexcept {
+}
uint32_t TCLIService_CancelOperation_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -2709,6 +2767,8 @@ uint32_t TCLIService_CancelOperation_pargs::write(::apache::thrift::protocol::TP
TCLIService_CancelOperation_result::~TCLIService_CancelOperation_result() noexcept {
}
+TCLIService_CancelOperation_result::TCLIService_CancelOperation_result() noexcept {
+}
uint32_t TCLIService_CancelOperation_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -2817,6 +2877,8 @@ uint32_t TCLIService_CancelOperation_presult::read(::apache::thrift::protocol::T
TCLIService_CloseOperation_args::~TCLIService_CloseOperation_args() noexcept {
}
+TCLIService_CloseOperation_args::TCLIService_CloseOperation_args() noexcept {
+}
uint32_t TCLIService_CloseOperation_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -2896,6 +2958,8 @@ uint32_t TCLIService_CloseOperation_pargs::write(::apache::thrift::protocol::TPr
TCLIService_CloseOperation_result::~TCLIService_CloseOperation_result() noexcept {
}
+TCLIService_CloseOperation_result::TCLIService_CloseOperation_result() noexcept {
+}
uint32_t TCLIService_CloseOperation_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -3004,6 +3068,8 @@ uint32_t TCLIService_CloseOperation_presult::read(::apache::thrift::protocol::TP
TCLIService_GetResultSetMetadata_args::~TCLIService_GetResultSetMetadata_args() noexcept {
}
+TCLIService_GetResultSetMetadata_args::TCLIService_GetResultSetMetadata_args() noexcept {
+}
uint32_t TCLIService_GetResultSetMetadata_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -3083,6 +3149,8 @@ uint32_t TCLIService_GetResultSetMetadata_pargs::write(::apache::thrift::protoco
TCLIService_GetResultSetMetadata_result::~TCLIService_GetResultSetMetadata_result() noexcept {
}
+TCLIService_GetResultSetMetadata_result::TCLIService_GetResultSetMetadata_result() noexcept {
+}
uint32_t TCLIService_GetResultSetMetadata_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -3191,6 +3259,8 @@ uint32_t TCLIService_GetResultSetMetadata_presult::read(::apache::thrift::protoc
TCLIService_FetchResults_args::~TCLIService_FetchResults_args() noexcept {
}
+TCLIService_FetchResults_args::TCLIService_FetchResults_args() noexcept {
+}
uint32_t TCLIService_FetchResults_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -3270,6 +3340,8 @@ uint32_t TCLIService_FetchResults_pargs::write(::apache::thrift::protocol::TProt
TCLIService_FetchResults_result::~TCLIService_FetchResults_result() noexcept {
}
+TCLIService_FetchResults_result::TCLIService_FetchResults_result() noexcept {
+}
uint32_t TCLIService_FetchResults_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -3378,6 +3450,8 @@ uint32_t TCLIService_FetchResults_presult::read(::apache::thrift::protocol::TPro
TCLIService_GetDelegationToken_args::~TCLIService_GetDelegationToken_args() noexcept {
}
+TCLIService_GetDelegationToken_args::TCLIService_GetDelegationToken_args() noexcept {
+}
uint32_t TCLIService_GetDelegationToken_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -3457,6 +3531,8 @@ uint32_t TCLIService_GetDelegationToken_pargs::write(::apache::thrift::protocol:
TCLIService_GetDelegationToken_result::~TCLIService_GetDelegationToken_result() noexcept {
}
+TCLIService_GetDelegationToken_result::TCLIService_GetDelegationToken_result() noexcept {
+}
uint32_t TCLIService_GetDelegationToken_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -3565,6 +3641,8 @@ uint32_t TCLIService_GetDelegationToken_presult::read(::apache::thrift::protocol
TCLIService_CancelDelegationToken_args::~TCLIService_CancelDelegationToken_args() noexcept {
}
+TCLIService_CancelDelegationToken_args::TCLIService_CancelDelegationToken_args() noexcept {
+}
uint32_t TCLIService_CancelDelegationToken_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -3644,6 +3722,8 @@ uint32_t TCLIService_CancelDelegationToken_pargs::write(::apache::thrift::protoc
TCLIService_CancelDelegationToken_result::~TCLIService_CancelDelegationToken_result() noexcept {
}
+TCLIService_CancelDelegationToken_result::TCLIService_CancelDelegationToken_result() noexcept {
+}
uint32_t TCLIService_CancelDelegationToken_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -3752,6 +3832,8 @@ uint32_t TCLIService_CancelDelegationToken_presult::read(::apache::thrift::proto
TCLIService_RenewDelegationToken_args::~TCLIService_RenewDelegationToken_args() noexcept {
}
+TCLIService_RenewDelegationToken_args::TCLIService_RenewDelegationToken_args() noexcept {
+}
uint32_t TCLIService_RenewDelegationToken_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -3831,6 +3913,8 @@ uint32_t TCLIService_RenewDelegationToken_pargs::write(::apache::thrift::protoco
TCLIService_RenewDelegationToken_result::~TCLIService_RenewDelegationToken_result() noexcept {
}
+TCLIService_RenewDelegationToken_result::TCLIService_RenewDelegationToken_result() noexcept {
+}
uint32_t TCLIService_RenewDelegationToken_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -3939,6 +4023,8 @@ uint32_t TCLIService_RenewDelegationToken_presult::read(::apache::thrift::protoc
TCLIService_GetQueryId_args::~TCLIService_GetQueryId_args() noexcept {
}
+TCLIService_GetQueryId_args::TCLIService_GetQueryId_args() noexcept {
+}
uint32_t TCLIService_GetQueryId_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -4018,6 +4104,8 @@ uint32_t TCLIService_GetQueryId_pargs::write(::apache::thrift::protocol::TProtoc
TCLIService_GetQueryId_result::~TCLIService_GetQueryId_result() noexcept {
}
+TCLIService_GetQueryId_result::TCLIService_GetQueryId_result() noexcept {
+}
uint32_t TCLIService_GetQueryId_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -4126,6 +4214,8 @@ uint32_t TCLIService_GetQueryId_presult::read(::apache::thrift::protocol::TProto
TCLIService_SetClientInfo_args::~TCLIService_SetClientInfo_args() noexcept {
}
+TCLIService_SetClientInfo_args::TCLIService_SetClientInfo_args() noexcept {
+}
uint32_t TCLIService_SetClientInfo_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -4205,6 +4295,8 @@ uint32_t TCLIService_SetClientInfo_pargs::write(::apache::thrift::protocol::TPro
TCLIService_SetClientInfo_result::~TCLIService_SetClientInfo_result() noexcept {
}
+TCLIService_SetClientInfo_result::TCLIService_SetClientInfo_result() noexcept {
+}
uint32_t TCLIService_SetClientInfo_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -4313,6 +4405,8 @@ uint32_t TCLIService_SetClientInfo_presult::read(::apache::thrift::protocol::TPr
TCLIService_UploadData_args::~TCLIService_UploadData_args() noexcept {
}
+TCLIService_UploadData_args::TCLIService_UploadData_args() noexcept {
+}
uint32_t TCLIService_UploadData_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -4392,6 +4486,8 @@ uint32_t TCLIService_UploadData_pargs::write(::apache::thrift::protocol::TProtoc
TCLIService_UploadData_result::~TCLIService_UploadData_result() noexcept {
}
+TCLIService_UploadData_result::TCLIService_UploadData_result() noexcept {
+}
uint32_t TCLIService_UploadData_result::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -4500,6 +4596,8 @@ uint32_t TCLIService_UploadData_presult::read(::apache::thrift::protocol::TProto
TCLIService_DownloadData_args::~TCLIService_DownloadData_args() noexcept {
}
+TCLIService_DownloadData_args::TCLIService_DownloadData_args() noexcept {
+}
uint32_t TCLIService_DownloadData_args::read(::apache::thrift::protocol::TProtocol* iprot) {
@@ -4579,6 +4677,8 @@ uint32_t TCLIService_DownloadData_pargs::write(::apache::thrift::protocol::TProt
TCLIService_DownloadData_result::~TCLIService_DownloadData_result() noexcept {
}
+TCLIService_DownloadData_result::TCLIService_DownloadData_result() noexcept {
+}
uint32_t TCLIService_DownloadData_result::read(::apache::thrift::protocol::TProtocol* iprot) {
diff --git a/service-rpc/src/gen/thrift/gen-cpp/TCLIService.h b/service-rpc/src/gen/thrift/gen-cpp/TCLIService.h
index ac5f1d2719db..2c6c2fd64649 100644
--- a/service-rpc/src/gen/thrift/gen-cpp/TCLIService.h
+++ b/service-rpc/src/gen/thrift/gen-cpp/TCLIService.h
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -163,8 +163,7 @@ class TCLIService_OpenSession_args {
TCLIService_OpenSession_args(const TCLIService_OpenSession_args&);
TCLIService_OpenSession_args& operator=(const TCLIService_OpenSession_args&);
- TCLIService_OpenSession_args() noexcept {
- }
+ TCLIService_OpenSession_args() noexcept;
virtual ~TCLIService_OpenSession_args() noexcept;
TOpenSessionReq req;
@@ -173,12 +172,7 @@ class TCLIService_OpenSession_args {
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;
bool operator != (const TCLIService_OpenSession_args &rhs) const {
return !(*this == rhs);
}
@@ -212,8 +206,7 @@ class TCLIService_OpenSession_result {
TCLIService_OpenSession_result(const TCLIService_OpenSession_result&);
TCLIService_OpenSession_result& operator=(const TCLIService_OpenSession_result&);
- TCLIService_OpenSession_result() noexcept {
- }
+ TCLIService_OpenSession_result() noexcept;
virtual ~TCLIService_OpenSession_result() noexcept;
TOpenSessionResp success;
@@ -222,12 +215,7 @@ class TCLIService_OpenSession_result {
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;
bool operator != (const TCLIService_OpenSession_result &rhs) const {
return !(*this == rhs);
}
@@ -267,8 +255,7 @@ class TCLIService_CloseSession_args {
TCLIService_CloseSession_args(const TCLIService_CloseSession_args&);
TCLIService_CloseSession_args& operator=(const TCLIService_CloseSession_args&);
- TCLIService_CloseSession_args() noexcept {
- }
+ TCLIService_CloseSession_args() noexcept;
virtual ~TCLIService_CloseSession_args() noexcept;
TCloseSessionReq req;
@@ -277,12 +264,7 @@ class TCLIService_CloseSession_args {
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;
bool operator != (const TCLIService_CloseSession_args &rhs) const {
return !(*this == rhs);
}
@@ -316,8 +298,7 @@ class TCLIService_CloseSession_result {
TCLIService_CloseSession_result(const TCLIService_CloseSession_result&);
TCLIService_CloseSession_result& operator=(const TCLIService_CloseSession_result&);
- TCLIService_CloseSession_result() noexcept {
- }
+ TCLIService_CloseSession_result() noexcept;
virtual ~TCLIService_CloseSession_result() noexcept;
TCloseSessionResp success;
@@ -326,12 +307,7 @@ class TCLIService_CloseSession_result {
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;
bool operator != (const TCLIService_CloseSession_result &rhs) const {
return !(*this == rhs);
}
@@ -371,8 +347,7 @@ class TCLIService_GetInfo_args {
TCLIService_GetInfo_args(const TCLIService_GetInfo_args&);
TCLIService_GetInfo_args& operator=(const TCLIService_GetInfo_args&);
- TCLIService_GetInfo_args() noexcept {
- }
+ TCLIService_GetInfo_args() noexcept;
virtual ~TCLIService_GetInfo_args() noexcept;
TGetInfoReq req;
@@ -381,12 +356,7 @@ class TCLIService_GetInfo_args {
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;
bool operator != (const TCLIService_GetInfo_args &rhs) const {
return !(*this == rhs);
}
@@ -420,8 +390,7 @@ class TCLIService_GetInfo_result {
TCLIService_GetInfo_result(const TCLIService_GetInfo_result&);
TCLIService_GetInfo_result& operator=(const TCLIService_GetInfo_result&);
- TCLIService_GetInfo_result() noexcept {
- }
+ TCLIService_GetInfo_result() noexcept;
virtual ~TCLIService_GetInfo_result() noexcept;
TGetInfoResp success;
@@ -430,12 +399,7 @@ class TCLIService_GetInfo_result {
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;
bool operator != (const TCLIService_GetInfo_result &rhs) const {
return !(*this == rhs);
}
@@ -475,8 +439,7 @@ class TCLIService_ExecuteStatement_args {
TCLIService_ExecuteStatement_args(const TCLIService_ExecuteStatement_args&);
TCLIService_ExecuteStatement_args& operator=(const TCLIService_ExecuteStatement_args&);
- TCLIService_ExecuteStatement_args() noexcept {
- }
+ TCLIService_ExecuteStatement_args() noexcept;
virtual ~TCLIService_ExecuteStatement_args() noexcept;
TExecuteStatementReq req;
@@ -485,12 +448,7 @@ class TCLIService_ExecuteStatement_args {
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;
bool operator != (const TCLIService_ExecuteStatement_args &rhs) const {
return !(*this == rhs);
}
@@ -524,8 +482,7 @@ class TCLIService_ExecuteStatement_result {
TCLIService_ExecuteStatement_result(const TCLIService_ExecuteStatement_result&);
TCLIService_ExecuteStatement_result& operator=(const TCLIService_ExecuteStatement_result&);
- TCLIService_ExecuteStatement_result() noexcept {
- }
+ TCLIService_ExecuteStatement_result() noexcept;
virtual ~TCLIService_ExecuteStatement_result() noexcept;
TExecuteStatementResp success;
@@ -534,12 +491,7 @@ class TCLIService_ExecuteStatement_result {
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;
bool operator != (const TCLIService_ExecuteStatement_result &rhs) const {
return !(*this == rhs);
}
@@ -579,8 +531,7 @@ class TCLIService_GetTypeInfo_args {
TCLIService_GetTypeInfo_args(const TCLIService_GetTypeInfo_args&);
TCLIService_GetTypeInfo_args& operator=(const TCLIService_GetTypeInfo_args&);
- TCLIService_GetTypeInfo_args() noexcept {
- }
+ TCLIService_GetTypeInfo_args() noexcept;
virtual ~TCLIService_GetTypeInfo_args() noexcept;
TGetTypeInfoReq req;
@@ -589,12 +540,7 @@ class TCLIService_GetTypeInfo_args {
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;
bool operator != (const TCLIService_GetTypeInfo_args &rhs) const {
return !(*this == rhs);
}
@@ -628,8 +574,7 @@ class TCLIService_GetTypeInfo_result {
TCLIService_GetTypeInfo_result(const TCLIService_GetTypeInfo_result&);
TCLIService_GetTypeInfo_result& operator=(const TCLIService_GetTypeInfo_result&);
- TCLIService_GetTypeInfo_result() noexcept {
- }
+ TCLIService_GetTypeInfo_result() noexcept;
virtual ~TCLIService_GetTypeInfo_result() noexcept;
TGetTypeInfoResp success;
@@ -638,12 +583,7 @@ class TCLIService_GetTypeInfo_result {
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;
bool operator != (const TCLIService_GetTypeInfo_result &rhs) const {
return !(*this == rhs);
}
@@ -683,8 +623,7 @@ class TCLIService_GetCatalogs_args {
TCLIService_GetCatalogs_args(const TCLIService_GetCatalogs_args&);
TCLIService_GetCatalogs_args& operator=(const TCLIService_GetCatalogs_args&);
- TCLIService_GetCatalogs_args() noexcept {
- }
+ TCLIService_GetCatalogs_args() noexcept;
virtual ~TCLIService_GetCatalogs_args() noexcept;
TGetCatalogsReq req;
@@ -693,12 +632,7 @@ class TCLIService_GetCatalogs_args {
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;
bool operator != (const TCLIService_GetCatalogs_args &rhs) const {
return !(*this == rhs);
}
@@ -732,8 +666,7 @@ class TCLIService_GetCatalogs_result {
TCLIService_GetCatalogs_result(const TCLIService_GetCatalogs_result&);
TCLIService_GetCatalogs_result& operator=(const TCLIService_GetCatalogs_result&);
- TCLIService_GetCatalogs_result() noexcept {
- }
+ TCLIService_GetCatalogs_result() noexcept;
virtual ~TCLIService_GetCatalogs_result() noexcept;
TGetCatalogsResp success;
@@ -742,12 +675,7 @@ class TCLIService_GetCatalogs_result {
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;
bool operator != (const TCLIService_GetCatalogs_result &rhs) const {
return !(*this == rhs);
}
@@ -787,8 +715,7 @@ class TCLIService_GetSchemas_args {
TCLIService_GetSchemas_args(const TCLIService_GetSchemas_args&);
TCLIService_GetSchemas_args& operator=(const TCLIService_GetSchemas_args&);
- TCLIService_GetSchemas_args() noexcept {
- }
+ TCLIService_GetSchemas_args() noexcept;
virtual ~TCLIService_GetSchemas_args() noexcept;
TGetSchemasReq req;
@@ -797,12 +724,7 @@ class TCLIService_GetSchemas_args {
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;
bool operator != (const TCLIService_GetSchemas_args &rhs) const {
return !(*this == rhs);
}
@@ -836,8 +758,7 @@ class TCLIService_GetSchemas_result {
TCLIService_GetSchemas_result(const TCLIService_GetSchemas_result&);
TCLIService_GetSchemas_result& operator=(const TCLIService_GetSchemas_result&);
- TCLIService_GetSchemas_result() noexcept {
- }
+ TCLIService_GetSchemas_result() noexcept;
virtual ~TCLIService_GetSchemas_result() noexcept;
TGetSchemasResp success;
@@ -846,12 +767,7 @@ class TCLIService_GetSchemas_result {
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;
bool operator != (const TCLIService_GetSchemas_result &rhs) const {
return !(*this == rhs);
}
@@ -891,8 +807,7 @@ class TCLIService_GetTables_args {
TCLIService_GetTables_args(const TCLIService_GetTables_args&);
TCLIService_GetTables_args& operator=(const TCLIService_GetTables_args&);
- TCLIService_GetTables_args() noexcept {
- }
+ TCLIService_GetTables_args() noexcept;
virtual ~TCLIService_GetTables_args() noexcept;
TGetTablesReq req;
@@ -901,12 +816,7 @@ class TCLIService_GetTables_args {
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;
bool operator != (const TCLIService_GetTables_args &rhs) const {
return !(*this == rhs);
}
@@ -940,8 +850,7 @@ class TCLIService_GetTables_result {
TCLIService_GetTables_result(const TCLIService_GetTables_result&);
TCLIService_GetTables_result& operator=(const TCLIService_GetTables_result&);
- TCLIService_GetTables_result() noexcept {
- }
+ TCLIService_GetTables_result() noexcept;
virtual ~TCLIService_GetTables_result() noexcept;
TGetTablesResp success;
@@ -950,12 +859,7 @@ class TCLIService_GetTables_result {
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;
bool operator != (const TCLIService_GetTables_result &rhs) const {
return !(*this == rhs);
}
@@ -995,8 +899,7 @@ class TCLIService_GetTableTypes_args {
TCLIService_GetTableTypes_args(const TCLIService_GetTableTypes_args&);
TCLIService_GetTableTypes_args& operator=(const TCLIService_GetTableTypes_args&);
- TCLIService_GetTableTypes_args() noexcept {
- }
+ TCLIService_GetTableTypes_args() noexcept;
virtual ~TCLIService_GetTableTypes_args() noexcept;
TGetTableTypesReq req;
@@ -1005,12 +908,7 @@ class TCLIService_GetTableTypes_args {
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;
bool operator != (const TCLIService_GetTableTypes_args &rhs) const {
return !(*this == rhs);
}
@@ -1044,8 +942,7 @@ class TCLIService_GetTableTypes_result {
TCLIService_GetTableTypes_result(const TCLIService_GetTableTypes_result&);
TCLIService_GetTableTypes_result& operator=(const TCLIService_GetTableTypes_result&);
- TCLIService_GetTableTypes_result() noexcept {
- }
+ TCLIService_GetTableTypes_result() noexcept;
virtual ~TCLIService_GetTableTypes_result() noexcept;
TGetTableTypesResp success;
@@ -1054,12 +951,7 @@ class TCLIService_GetTableTypes_result {
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;
bool operator != (const TCLIService_GetTableTypes_result &rhs) const {
return !(*this == rhs);
}
@@ -1099,8 +991,7 @@ class TCLIService_GetColumns_args {
TCLIService_GetColumns_args(const TCLIService_GetColumns_args&);
TCLIService_GetColumns_args& operator=(const TCLIService_GetColumns_args&);
- TCLIService_GetColumns_args() noexcept {
- }
+ TCLIService_GetColumns_args() noexcept;
virtual ~TCLIService_GetColumns_args() noexcept;
TGetColumnsReq req;
@@ -1109,12 +1000,7 @@ class TCLIService_GetColumns_args {
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;
bool operator != (const TCLIService_GetColumns_args &rhs) const {
return !(*this == rhs);
}
@@ -1148,8 +1034,7 @@ class TCLIService_GetColumns_result {
TCLIService_GetColumns_result(const TCLIService_GetColumns_result&);
TCLIService_GetColumns_result& operator=(const TCLIService_GetColumns_result&);
- TCLIService_GetColumns_result() noexcept {
- }
+ TCLIService_GetColumns_result() noexcept;
virtual ~TCLIService_GetColumns_result() noexcept;
TGetColumnsResp success;
@@ -1158,12 +1043,7 @@ class TCLIService_GetColumns_result {
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;
bool operator != (const TCLIService_GetColumns_result &rhs) const {
return !(*this == rhs);
}
@@ -1203,8 +1083,7 @@ class TCLIService_GetFunctions_args {
TCLIService_GetFunctions_args(const TCLIService_GetFunctions_args&);
TCLIService_GetFunctions_args& operator=(const TCLIService_GetFunctions_args&);
- TCLIService_GetFunctions_args() noexcept {
- }
+ TCLIService_GetFunctions_args() noexcept;
virtual ~TCLIService_GetFunctions_args() noexcept;
TGetFunctionsReq req;
@@ -1213,12 +1092,7 @@ class TCLIService_GetFunctions_args {
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;
bool operator != (const TCLIService_GetFunctions_args &rhs) const {
return !(*this == rhs);
}
@@ -1252,8 +1126,7 @@ class TCLIService_GetFunctions_result {
TCLIService_GetFunctions_result(const TCLIService_GetFunctions_result&);
TCLIService_GetFunctions_result& operator=(const TCLIService_GetFunctions_result&);
- TCLIService_GetFunctions_result() noexcept {
- }
+ TCLIService_GetFunctions_result() noexcept;
virtual ~TCLIService_GetFunctions_result() noexcept;
TGetFunctionsResp success;
@@ -1262,12 +1135,7 @@ class TCLIService_GetFunctions_result {
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;
bool operator != (const TCLIService_GetFunctions_result &rhs) const {
return !(*this == rhs);
}
@@ -1307,8 +1175,7 @@ class TCLIService_GetPrimaryKeys_args {
TCLIService_GetPrimaryKeys_args(const TCLIService_GetPrimaryKeys_args&);
TCLIService_GetPrimaryKeys_args& operator=(const TCLIService_GetPrimaryKeys_args&);
- TCLIService_GetPrimaryKeys_args() noexcept {
- }
+ TCLIService_GetPrimaryKeys_args() noexcept;
virtual ~TCLIService_GetPrimaryKeys_args() noexcept;
TGetPrimaryKeysReq req;
@@ -1317,12 +1184,7 @@ class TCLIService_GetPrimaryKeys_args {
void __set_req(const TGetPrimaryKeysReq& val);
- bool operator == (const TCLIService_GetPrimaryKeys_args & rhs) const
- {
- if (!(req == rhs.req))
- return false;
- return true;
- }
+ bool operator == (const TCLIService_GetPrimaryKeys_args & rhs) const;
bool operator != (const TCLIService_GetPrimaryKeys_args &rhs) const {
return !(*this == rhs);
}
@@ -1356,8 +1218,7 @@ class TCLIService_GetPrimaryKeys_result {
TCLIService_GetPrimaryKeys_result(const TCLIService_GetPrimaryKeys_result&);
TCLIService_GetPrimaryKeys_result& operator=(const TCLIService_GetPrimaryKeys_result&);
- TCLIService_GetPrimaryKeys_result() noexcept {
- }
+ TCLIService_GetPrimaryKeys_result() noexcept;
virtual ~TCLIService_GetPrimaryKeys_result() noexcept;
TGetPrimaryKeysResp success;
@@ -1366,12 +1227,7 @@ class TCLIService_GetPrimaryKeys_result {
void __set_success(const TGetPrimaryKeysResp& val);
- bool operator == (const TCLIService_GetPrimaryKeys_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- return true;
- }
+ bool operator == (const TCLIService_GetPrimaryKeys_result & rhs) const;
bool operator != (const TCLIService_GetPrimaryKeys_result &rhs) const {
return !(*this == rhs);
}
@@ -1411,8 +1267,7 @@ class TCLIService_GetCrossReference_args {
TCLIService_GetCrossReference_args(const TCLIService_GetCrossReference_args&);
TCLIService_GetCrossReference_args& operator=(const TCLIService_GetCrossReference_args&);
- TCLIService_GetCrossReference_args() noexcept {
- }
+ TCLIService_GetCrossReference_args() noexcept;
virtual ~TCLIService_GetCrossReference_args() noexcept;
TGetCrossReferenceReq req;
@@ -1421,12 +1276,7 @@ class TCLIService_GetCrossReference_args {
void __set_req(const TGetCrossReferenceReq& val);
- bool operator == (const TCLIService_GetCrossReference_args & rhs) const
- {
- if (!(req == rhs.req))
- return false;
- return true;
- }
+ bool operator == (const TCLIService_GetCrossReference_args & rhs) const;
bool operator != (const TCLIService_GetCrossReference_args &rhs) const {
return !(*this == rhs);
}
@@ -1460,8 +1310,7 @@ class TCLIService_GetCrossReference_result {
TCLIService_GetCrossReference_result(const TCLIService_GetCrossReference_result&);
TCLIService_GetCrossReference_result& operator=(const TCLIService_GetCrossReference_result&);
- TCLIService_GetCrossReference_result() noexcept {
- }
+ TCLIService_GetCrossReference_result() noexcept;
virtual ~TCLIService_GetCrossReference_result() noexcept;
TGetCrossReferenceResp success;
@@ -1470,12 +1319,7 @@ class TCLIService_GetCrossReference_result {
void __set_success(const TGetCrossReferenceResp& val);
- bool operator == (const TCLIService_GetCrossReference_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- return true;
- }
+ bool operator == (const TCLIService_GetCrossReference_result & rhs) const;
bool operator != (const TCLIService_GetCrossReference_result &rhs) const {
return !(*this == rhs);
}
@@ -1515,8 +1359,7 @@ class TCLIService_GetOperationStatus_args {
TCLIService_GetOperationStatus_args(const TCLIService_GetOperationStatus_args&);
TCLIService_GetOperationStatus_args& operator=(const TCLIService_GetOperationStatus_args&);
- TCLIService_GetOperationStatus_args() noexcept {
- }
+ TCLIService_GetOperationStatus_args() noexcept;
virtual ~TCLIService_GetOperationStatus_args() noexcept;
TGetOperationStatusReq req;
@@ -1525,12 +1368,7 @@ class TCLIService_GetOperationStatus_args {
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;
bool operator != (const TCLIService_GetOperationStatus_args &rhs) const {
return !(*this == rhs);
}
@@ -1564,8 +1402,7 @@ class TCLIService_GetOperationStatus_result {
TCLIService_GetOperationStatus_result(const TCLIService_GetOperationStatus_result&);
TCLIService_GetOperationStatus_result& operator=(const TCLIService_GetOperationStatus_result&);
- TCLIService_GetOperationStatus_result() noexcept {
- }
+ TCLIService_GetOperationStatus_result() noexcept;
virtual ~TCLIService_GetOperationStatus_result() noexcept;
TGetOperationStatusResp success;
@@ -1574,12 +1411,7 @@ class TCLIService_GetOperationStatus_result {
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;
bool operator != (const TCLIService_GetOperationStatus_result &rhs) const {
return !(*this == rhs);
}
@@ -1619,8 +1451,7 @@ class TCLIService_CancelOperation_args {
TCLIService_CancelOperation_args(const TCLIService_CancelOperation_args&);
TCLIService_CancelOperation_args& operator=(const TCLIService_CancelOperation_args&);
- TCLIService_CancelOperation_args() noexcept {
- }
+ TCLIService_CancelOperation_args() noexcept;
virtual ~TCLIService_CancelOperation_args() noexcept;
TCancelOperationReq req;
@@ -1629,12 +1460,7 @@ class TCLIService_CancelOperation_args {
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;
bool operator != (const TCLIService_CancelOperation_args &rhs) const {
return !(*this == rhs);
}
@@ -1668,8 +1494,7 @@ class TCLIService_CancelOperation_result {
TCLIService_CancelOperation_result(const TCLIService_CancelOperation_result&);
TCLIService_CancelOperation_result& operator=(const TCLIService_CancelOperation_result&);
- TCLIService_CancelOperation_result() noexcept {
- }
+ TCLIService_CancelOperation_result() noexcept;
virtual ~TCLIService_CancelOperation_result() noexcept;
TCancelOperationResp success;
@@ -1678,12 +1503,7 @@ class TCLIService_CancelOperation_result {
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;
bool operator != (const TCLIService_CancelOperation_result &rhs) const {
return !(*this == rhs);
}
@@ -1723,8 +1543,7 @@ class TCLIService_CloseOperation_args {
TCLIService_CloseOperation_args(const TCLIService_CloseOperation_args&);
TCLIService_CloseOperation_args& operator=(const TCLIService_CloseOperation_args&);
- TCLIService_CloseOperation_args() noexcept {
- }
+ TCLIService_CloseOperation_args() noexcept;
virtual ~TCLIService_CloseOperation_args() noexcept;
TCloseOperationReq req;
@@ -1733,12 +1552,7 @@ class TCLIService_CloseOperation_args {
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;
bool operator != (const TCLIService_CloseOperation_args &rhs) const {
return !(*this == rhs);
}
@@ -1772,8 +1586,7 @@ class TCLIService_CloseOperation_result {
TCLIService_CloseOperation_result(const TCLIService_CloseOperation_result&);
TCLIService_CloseOperation_result& operator=(const TCLIService_CloseOperation_result&);
- TCLIService_CloseOperation_result() noexcept {
- }
+ TCLIService_CloseOperation_result() noexcept;
virtual ~TCLIService_CloseOperation_result() noexcept;
TCloseOperationResp success;
@@ -1782,12 +1595,7 @@ class TCLIService_CloseOperation_result {
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;
bool operator != (const TCLIService_CloseOperation_result &rhs) const {
return !(*this == rhs);
}
@@ -1827,8 +1635,7 @@ class TCLIService_GetResultSetMetadata_args {
TCLIService_GetResultSetMetadata_args(const TCLIService_GetResultSetMetadata_args&);
TCLIService_GetResultSetMetadata_args& operator=(const TCLIService_GetResultSetMetadata_args&);
- TCLIService_GetResultSetMetadata_args() noexcept {
- }
+ TCLIService_GetResultSetMetadata_args() noexcept;
virtual ~TCLIService_GetResultSetMetadata_args() noexcept;
TGetResultSetMetadataReq req;
@@ -1837,12 +1644,7 @@ class TCLIService_GetResultSetMetadata_args {
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;
bool operator != (const TCLIService_GetResultSetMetadata_args &rhs) const {
return !(*this == rhs);
}
@@ -1876,8 +1678,7 @@ class TCLIService_GetResultSetMetadata_result {
TCLIService_GetResultSetMetadata_result(const TCLIService_GetResultSetMetadata_result&);
TCLIService_GetResultSetMetadata_result& operator=(const TCLIService_GetResultSetMetadata_result&);
- TCLIService_GetResultSetMetadata_result() noexcept {
- }
+ TCLIService_GetResultSetMetadata_result() noexcept;
virtual ~TCLIService_GetResultSetMetadata_result() noexcept;
TGetResultSetMetadataResp success;
@@ -1886,12 +1687,7 @@ class TCLIService_GetResultSetMetadata_result {
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;
bool operator != (const TCLIService_GetResultSetMetadata_result &rhs) const {
return !(*this == rhs);
}
@@ -1931,8 +1727,7 @@ class TCLIService_FetchResults_args {
TCLIService_FetchResults_args(const TCLIService_FetchResults_args&);
TCLIService_FetchResults_args& operator=(const TCLIService_FetchResults_args&);
- TCLIService_FetchResults_args() noexcept {
- }
+ TCLIService_FetchResults_args() noexcept;
virtual ~TCLIService_FetchResults_args() noexcept;
TFetchResultsReq req;
@@ -1941,12 +1736,7 @@ class TCLIService_FetchResults_args {
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;
bool operator != (const TCLIService_FetchResults_args &rhs) const {
return !(*this == rhs);
}
@@ -1980,8 +1770,7 @@ class TCLIService_FetchResults_result {
TCLIService_FetchResults_result(const TCLIService_FetchResults_result&);
TCLIService_FetchResults_result& operator=(const TCLIService_FetchResults_result&);
- TCLIService_FetchResults_result() noexcept {
- }
+ TCLIService_FetchResults_result() noexcept;
virtual ~TCLIService_FetchResults_result() noexcept;
TFetchResultsResp success;
@@ -1990,12 +1779,7 @@ class TCLIService_FetchResults_result {
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;
bool operator != (const TCLIService_FetchResults_result &rhs) const {
return !(*this == rhs);
}
@@ -2035,8 +1819,7 @@ class TCLIService_GetDelegationToken_args {
TCLIService_GetDelegationToken_args(const TCLIService_GetDelegationToken_args&);
TCLIService_GetDelegationToken_args& operator=(const TCLIService_GetDelegationToken_args&);
- TCLIService_GetDelegationToken_args() noexcept {
- }
+ TCLIService_GetDelegationToken_args() noexcept;
virtual ~TCLIService_GetDelegationToken_args() noexcept;
TGetDelegationTokenReq req;
@@ -2045,12 +1828,7 @@ class TCLIService_GetDelegationToken_args {
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;
bool operator != (const TCLIService_GetDelegationToken_args &rhs) const {
return !(*this == rhs);
}
@@ -2084,8 +1862,7 @@ class TCLIService_GetDelegationToken_result {
TCLIService_GetDelegationToken_result(const TCLIService_GetDelegationToken_result&);
TCLIService_GetDelegationToken_result& operator=(const TCLIService_GetDelegationToken_result&);
- TCLIService_GetDelegationToken_result() noexcept {
- }
+ TCLIService_GetDelegationToken_result() noexcept;
virtual ~TCLIService_GetDelegationToken_result() noexcept;
TGetDelegationTokenResp success;
@@ -2094,12 +1871,7 @@ class TCLIService_GetDelegationToken_result {
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;
bool operator != (const TCLIService_GetDelegationToken_result &rhs) const {
return !(*this == rhs);
}
@@ -2139,8 +1911,7 @@ class TCLIService_CancelDelegationToken_args {
TCLIService_CancelDelegationToken_args(const TCLIService_CancelDelegationToken_args&);
TCLIService_CancelDelegationToken_args& operator=(const TCLIService_CancelDelegationToken_args&);
- TCLIService_CancelDelegationToken_args() noexcept {
- }
+ TCLIService_CancelDelegationToken_args() noexcept;
virtual ~TCLIService_CancelDelegationToken_args() noexcept;
TCancelDelegationTokenReq req;
@@ -2149,12 +1920,7 @@ class TCLIService_CancelDelegationToken_args {
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;
bool operator != (const TCLIService_CancelDelegationToken_args &rhs) const {
return !(*this == rhs);
}
@@ -2188,8 +1954,7 @@ class TCLIService_CancelDelegationToken_result {
TCLIService_CancelDelegationToken_result(const TCLIService_CancelDelegationToken_result&);
TCLIService_CancelDelegationToken_result& operator=(const TCLIService_CancelDelegationToken_result&);
- TCLIService_CancelDelegationToken_result() noexcept {
- }
+ TCLIService_CancelDelegationToken_result() noexcept;
virtual ~TCLIService_CancelDelegationToken_result() noexcept;
TCancelDelegationTokenResp success;
@@ -2198,12 +1963,7 @@ class TCLIService_CancelDelegationToken_result {
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;
bool operator != (const TCLIService_CancelDelegationToken_result &rhs) const {
return !(*this == rhs);
}
@@ -2243,8 +2003,7 @@ class TCLIService_RenewDelegationToken_args {
TCLIService_RenewDelegationToken_args(const TCLIService_RenewDelegationToken_args&);
TCLIService_RenewDelegationToken_args& operator=(const TCLIService_RenewDelegationToken_args&);
- TCLIService_RenewDelegationToken_args() noexcept {
- }
+ TCLIService_RenewDelegationToken_args() noexcept;
virtual ~TCLIService_RenewDelegationToken_args() noexcept;
TRenewDelegationTokenReq req;
@@ -2253,12 +2012,7 @@ class TCLIService_RenewDelegationToken_args {
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;
bool operator != (const TCLIService_RenewDelegationToken_args &rhs) const {
return !(*this == rhs);
}
@@ -2292,8 +2046,7 @@ class TCLIService_RenewDelegationToken_result {
TCLIService_RenewDelegationToken_result(const TCLIService_RenewDelegationToken_result&);
TCLIService_RenewDelegationToken_result& operator=(const TCLIService_RenewDelegationToken_result&);
- TCLIService_RenewDelegationToken_result() noexcept {
- }
+ TCLIService_RenewDelegationToken_result() noexcept;
virtual ~TCLIService_RenewDelegationToken_result() noexcept;
TRenewDelegationTokenResp success;
@@ -2302,12 +2055,7 @@ class TCLIService_RenewDelegationToken_result {
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;
bool operator != (const TCLIService_RenewDelegationToken_result &rhs) const {
return !(*this == rhs);
}
@@ -2347,8 +2095,7 @@ class TCLIService_GetQueryId_args {
TCLIService_GetQueryId_args(const TCLIService_GetQueryId_args&);
TCLIService_GetQueryId_args& operator=(const TCLIService_GetQueryId_args&);
- TCLIService_GetQueryId_args() noexcept {
- }
+ TCLIService_GetQueryId_args() noexcept;
virtual ~TCLIService_GetQueryId_args() noexcept;
TGetQueryIdReq req;
@@ -2357,12 +2104,7 @@ class TCLIService_GetQueryId_args {
void __set_req(const TGetQueryIdReq& val);
- bool operator == (const TCLIService_GetQueryId_args & rhs) const
- {
- if (!(req == rhs.req))
- return false;
- return true;
- }
+ bool operator == (const TCLIService_GetQueryId_args & rhs) const;
bool operator != (const TCLIService_GetQueryId_args &rhs) const {
return !(*this == rhs);
}
@@ -2396,8 +2138,7 @@ class TCLIService_GetQueryId_result {
TCLIService_GetQueryId_result(const TCLIService_GetQueryId_result&);
TCLIService_GetQueryId_result& operator=(const TCLIService_GetQueryId_result&);
- TCLIService_GetQueryId_result() noexcept {
- }
+ TCLIService_GetQueryId_result() noexcept;
virtual ~TCLIService_GetQueryId_result() noexcept;
TGetQueryIdResp success;
@@ -2406,12 +2147,7 @@ class TCLIService_GetQueryId_result {
void __set_success(const TGetQueryIdResp& val);
- bool operator == (const TCLIService_GetQueryId_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- return true;
- }
+ bool operator == (const TCLIService_GetQueryId_result & rhs) const;
bool operator != (const TCLIService_GetQueryId_result &rhs) const {
return !(*this == rhs);
}
@@ -2451,8 +2187,7 @@ class TCLIService_SetClientInfo_args {
TCLIService_SetClientInfo_args(const TCLIService_SetClientInfo_args&);
TCLIService_SetClientInfo_args& operator=(const TCLIService_SetClientInfo_args&);
- TCLIService_SetClientInfo_args() noexcept {
- }
+ TCLIService_SetClientInfo_args() noexcept;
virtual ~TCLIService_SetClientInfo_args() noexcept;
TSetClientInfoReq req;
@@ -2461,12 +2196,7 @@ class TCLIService_SetClientInfo_args {
void __set_req(const TSetClientInfoReq& val);
- bool operator == (const TCLIService_SetClientInfo_args & rhs) const
- {
- if (!(req == rhs.req))
- return false;
- return true;
- }
+ bool operator == (const TCLIService_SetClientInfo_args & rhs) const;
bool operator != (const TCLIService_SetClientInfo_args &rhs) const {
return !(*this == rhs);
}
@@ -2500,8 +2230,7 @@ class TCLIService_SetClientInfo_result {
TCLIService_SetClientInfo_result(const TCLIService_SetClientInfo_result&);
TCLIService_SetClientInfo_result& operator=(const TCLIService_SetClientInfo_result&);
- TCLIService_SetClientInfo_result() noexcept {
- }
+ TCLIService_SetClientInfo_result() noexcept;
virtual ~TCLIService_SetClientInfo_result() noexcept;
TSetClientInfoResp success;
@@ -2510,12 +2239,7 @@ class TCLIService_SetClientInfo_result {
void __set_success(const TSetClientInfoResp& val);
- bool operator == (const TCLIService_SetClientInfo_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- return true;
- }
+ bool operator == (const TCLIService_SetClientInfo_result & rhs) const;
bool operator != (const TCLIService_SetClientInfo_result &rhs) const {
return !(*this == rhs);
}
@@ -2555,8 +2279,7 @@ class TCLIService_UploadData_args {
TCLIService_UploadData_args(const TCLIService_UploadData_args&);
TCLIService_UploadData_args& operator=(const TCLIService_UploadData_args&);
- TCLIService_UploadData_args() noexcept {
- }
+ TCLIService_UploadData_args() noexcept;
virtual ~TCLIService_UploadData_args() noexcept;
TUploadDataReq req;
@@ -2565,12 +2288,7 @@ class TCLIService_UploadData_args {
void __set_req(const TUploadDataReq& val);
- bool operator == (const TCLIService_UploadData_args & rhs) const
- {
- if (!(req == rhs.req))
- return false;
- return true;
- }
+ bool operator == (const TCLIService_UploadData_args & rhs) const;
bool operator != (const TCLIService_UploadData_args &rhs) const {
return !(*this == rhs);
}
@@ -2604,8 +2322,7 @@ class TCLIService_UploadData_result {
TCLIService_UploadData_result(const TCLIService_UploadData_result&);
TCLIService_UploadData_result& operator=(const TCLIService_UploadData_result&);
- TCLIService_UploadData_result() noexcept {
- }
+ TCLIService_UploadData_result() noexcept;
virtual ~TCLIService_UploadData_result() noexcept;
TUploadDataResp success;
@@ -2614,12 +2331,7 @@ class TCLIService_UploadData_result {
void __set_success(const TUploadDataResp& val);
- bool operator == (const TCLIService_UploadData_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- return true;
- }
+ bool operator == (const TCLIService_UploadData_result & rhs) const;
bool operator != (const TCLIService_UploadData_result &rhs) const {
return !(*this == rhs);
}
@@ -2659,8 +2371,7 @@ class TCLIService_DownloadData_args {
TCLIService_DownloadData_args(const TCLIService_DownloadData_args&);
TCLIService_DownloadData_args& operator=(const TCLIService_DownloadData_args&);
- TCLIService_DownloadData_args() noexcept {
- }
+ TCLIService_DownloadData_args() noexcept;
virtual ~TCLIService_DownloadData_args() noexcept;
TDownloadDataReq req;
@@ -2669,12 +2380,7 @@ class TCLIService_DownloadData_args {
void __set_req(const TDownloadDataReq& val);
- bool operator == (const TCLIService_DownloadData_args & rhs) const
- {
- if (!(req == rhs.req))
- return false;
- return true;
- }
+ bool operator == (const TCLIService_DownloadData_args & rhs) const;
bool operator != (const TCLIService_DownloadData_args &rhs) const {
return !(*this == rhs);
}
@@ -2708,8 +2414,7 @@ class TCLIService_DownloadData_result {
TCLIService_DownloadData_result(const TCLIService_DownloadData_result&);
TCLIService_DownloadData_result& operator=(const TCLIService_DownloadData_result&);
- TCLIService_DownloadData_result() noexcept {
- }
+ TCLIService_DownloadData_result() noexcept;
virtual ~TCLIService_DownloadData_result() noexcept;
TDownloadDataResp success;
@@ -2718,12 +2423,7 @@ class TCLIService_DownloadData_result {
void __set_success(const TDownloadDataResp& val);
- bool operator == (const TCLIService_DownloadData_result & rhs) const
- {
- if (!(success == rhs.success))
- return false;
- return true;
- }
+ bool operator == (const TCLIService_DownloadData_result & rhs) const;
bool operator != (const TCLIService_DownloadData_result &rhs) const {
return !(*this == rhs);
}
@@ -3206,11 +2906,11 @@ class TCLIServiceMultiface : virtual public TCLIServiceIf {
// only be used when you need to share a connection among multiple threads
class TCLIServiceConcurrentClient : virtual public TCLIServiceIf {
public:
- TCLIServiceConcurrentClient(std::shared_ptr< ::apache::thrift::protocol::TProtocol> prot, std::shared_ptr<::apache::thrift::async::TConcurrentClientSyncInfo> sync) : sync_(sync)
+ TCLIServiceConcurrentClient(std::shared_ptr< ::apache::thrift::protocol::TProtocol> prot, std::shared_ptr< ::apache::thrift::async::TConcurrentClientSyncInfo> sync) : sync_(sync)
{
setProtocol(prot);
}
- TCLIServiceConcurrentClient(std::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, std::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot, std::shared_ptr<::apache::thrift::async::TConcurrentClientSyncInfo> sync) : sync_(sync)
+ TCLIServiceConcurrentClient(std::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, std::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot, std::shared_ptr< ::apache::thrift::async::TConcurrentClientSyncInfo> sync) : sync_(sync)
{
setProtocol(iprot,oprot);
}
@@ -3311,7 +3011,7 @@ class TCLIServiceConcurrentClient : virtual public TCLIServiceIf {
std::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot_;
::apache::thrift::protocol::TProtocol* iprot_;
::apache::thrift::protocol::TProtocol* oprot_;
- std::shared_ptr<::apache::thrift::async::TConcurrentClientSyncInfo> sync_;
+ std::shared_ptr< ::apache::thrift::async::TConcurrentClientSyncInfo> sync_;
};
#ifdef _MSC_VER
diff --git a/service-rpc/src/gen/thrift/gen-cpp/TCLIService_constants.cpp b/service-rpc/src/gen/thrift/gen-cpp/TCLIService_constants.cpp
index ae0e3039f30b..31eff07b17ed 100644
--- a/service-rpc/src/gen/thrift/gen-cpp/TCLIService_constants.cpp
+++ b/service-rpc/src/gen/thrift/gen-cpp/TCLIService_constants.cpp
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,58 +11,58 @@ namespace apache { namespace hive { namespace service { namespace rpc { namespac
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);
- PRIMITIVE_TYPES.insert((TTypeId::type)22);
- PRIMITIVE_TYPES.insert((TTypeId::type)23);
+ PRIMITIVE_TYPES.insert(static_cast(0));
+ PRIMITIVE_TYPES.insert(static_cast(1));
+ PRIMITIVE_TYPES.insert(static_cast(2));
+ PRIMITIVE_TYPES.insert(static_cast(3));
+ PRIMITIVE_TYPES.insert(static_cast(4));
+ PRIMITIVE_TYPES.insert(static_cast(5));
+ PRIMITIVE_TYPES.insert(static_cast(6));
+ PRIMITIVE_TYPES.insert(static_cast(7));
+ PRIMITIVE_TYPES.insert(static_cast(8));
+ PRIMITIVE_TYPES.insert(static_cast(9));
+ PRIMITIVE_TYPES.insert(static_cast(15));
+ PRIMITIVE_TYPES.insert(static_cast(16));
+ PRIMITIVE_TYPES.insert(static_cast(17));
+ PRIMITIVE_TYPES.insert(static_cast(18));
+ PRIMITIVE_TYPES.insert(static_cast(19));
+ PRIMITIVE_TYPES.insert(static_cast(20));
+ PRIMITIVE_TYPES.insert(static_cast(21));
+ PRIMITIVE_TYPES.insert(static_cast(22));
+ PRIMITIVE_TYPES.insert(static_cast(23));
- 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);
+ COMPLEX_TYPES.insert(static_cast(10));
+ COMPLEX_TYPES.insert(static_cast(11));
+ COMPLEX_TYPES.insert(static_cast(12));
+ COMPLEX_TYPES.insert(static_cast(13));
+ COMPLEX_TYPES.insert(static_cast(14));
- COLLECTION_TYPES.insert((TTypeId::type)10);
- COLLECTION_TYPES.insert((TTypeId::type)11);
+ COLLECTION_TYPES.insert(static_cast(10));
+ COLLECTION_TYPES.insert(static_cast(11));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)10, "ARRAY"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)4, "BIGINT"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)9, "BINARY"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)0, "BOOLEAN"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)19, "CHAR"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)17, "DATE"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)15, "DECIMAL"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)6, "DOUBLE"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)5, "FLOAT"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)21, "INTERVAL_DAY_TIME"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)20, "INTERVAL_YEAR_MONTH"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)3, "INT"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)11, "MAP"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)16, "NULL"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)2, "SMALLINT"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)7, "STRING"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)12, "STRUCT"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)22, "TIMESTAMP WITH LOCAL TIME ZONE"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)8, "TIMESTAMP"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)1, "TINYINT"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)13, "UNIONTYPE"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)23, "UNKNOWN"));
- TYPE_NAMES.insert(std::make_pair((TTypeId::type)18, "VARCHAR"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(10), "ARRAY"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(4), "BIGINT"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(9), "BINARY"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(0), "BOOLEAN"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(19), "CHAR"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(17), "DATE"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(15), "DECIMAL"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(6), "DOUBLE"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(5), "FLOAT"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(21), "INTERVAL_DAY_TIME"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(20), "INTERVAL_YEAR_MONTH"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(3), "INT"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(11), "MAP"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(16), "NULL"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(2), "SMALLINT"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(7), "STRING"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(12), "STRUCT"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(22), "TIMESTAMP WITH LOCAL TIME ZONE"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(8), "TIMESTAMP"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(1), "TINYINT"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(13), "UNIONTYPE"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(23), "UNKNOWN"));
+ TYPE_NAMES.insert(std::make_pair(static_cast(18), "VARCHAR"));
CHARACTER_MAXIMUM_LENGTH = "characterMaximumLength";
diff --git a/service-rpc/src/gen/thrift/gen-cpp/TCLIService_constants.h b/service-rpc/src/gen/thrift/gen-cpp/TCLIService_constants.h
index c0c427d0b17a..fd8bdeb79c91 100644
--- a/service-rpc/src/gen/thrift/gen-cpp/TCLIService_constants.h
+++ b/service-rpc/src/gen/thrift/gen-cpp/TCLIService_constants.h
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/service-rpc/src/gen/thrift/gen-cpp/TCLIService_types.cpp b/service-rpc/src/gen/thrift/gen-cpp/TCLIService_types.cpp
index c8b96da3ed5b..de80d3ac0816 100644
--- a/service-rpc/src/gen/thrift/gen-cpp/TCLIService_types.cpp
+++ b/service-rpc/src/gen/thrift/gen-cpp/TCLIService_types.cpp
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -449,6 +449,10 @@ std::string to_string(const TJobExecutionStatus::type& val) {
TTypeQualifierValue::~TTypeQualifierValue() noexcept {
}
+TTypeQualifierValue::TTypeQualifierValue() noexcept
+ : i32Value(0),
+ stringValue() {
+}
void TTypeQualifierValue::__set_i32Value(const int32_t val) {
this->i32Value = val;
@@ -535,13 +539,26 @@ uint32_t TTypeQualifierValue::write(::apache::thrift::protocol::TProtocol* oprot
return xfer;
}
-void swap(TTypeQualifierValue &a, TTypeQualifierValue &b) {
+void swap(TTypeQualifierValue &a, TTypeQualifierValue &b) noexcept {
using ::std::swap;
swap(a.i32Value, b.i32Value);
swap(a.stringValue, b.stringValue);
swap(a.__isset, b.__isset);
}
+bool TTypeQualifierValue::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;
+}
+
TTypeQualifierValue::TTypeQualifierValue(const TTypeQualifierValue& other0) {
i32Value = other0.i32Value;
stringValue = other0.stringValue;
@@ -565,6 +582,8 @@ void TTypeQualifierValue::printTo(std::ostream& out) const {
TTypeQualifiers::~TTypeQualifiers() noexcept {
}
+TTypeQualifiers::TTypeQualifiers() noexcept {
+}
void TTypeQualifiers::__set_qualifiers(const std::map & val) {
this->qualifiers = val;
@@ -658,11 +677,18 @@ uint32_t TTypeQualifiers::write(::apache::thrift::protocol::TProtocol* oprot) co
return xfer;
}
-void swap(TTypeQualifiers &a, TTypeQualifiers &b) {
+void swap(TTypeQualifiers &a, TTypeQualifiers &b) noexcept {
using ::std::swap;
swap(a.qualifiers, b.qualifiers);
}
+bool TTypeQualifiers::operator==(const TTypeQualifiers & rhs) const
+{
+ if (!(qualifiers == rhs.qualifiers))
+ return false;
+ return true;
+}
+
TTypeQualifiers::TTypeQualifiers(const TTypeQualifiers& other10) {
qualifiers = other10.qualifiers;
}
@@ -681,6 +707,9 @@ void TTypeQualifiers::printTo(std::ostream& out) const {
TPrimitiveTypeEntry::~TPrimitiveTypeEntry() noexcept {
}
+TPrimitiveTypeEntry::TPrimitiveTypeEntry() noexcept
+ : type(static_cast(0)) {
+}
void TPrimitiveTypeEntry::__set_type(const TTypeId::type val) {
this->type = val;
@@ -770,13 +799,24 @@ uint32_t TPrimitiveTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot
return xfer;
}
-void swap(TPrimitiveTypeEntry &a, TPrimitiveTypeEntry &b) {
+void swap(TPrimitiveTypeEntry &a, TPrimitiveTypeEntry &b) noexcept {
using ::std::swap;
swap(a.type, b.type);
swap(a.typeQualifiers, b.typeQualifiers);
swap(a.__isset, b.__isset);
}
+bool TPrimitiveTypeEntry::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;
+}
+
TPrimitiveTypeEntry::TPrimitiveTypeEntry(const TPrimitiveTypeEntry& other13) {
type = other13.type;
typeQualifiers = other13.typeQualifiers;
@@ -800,6 +840,9 @@ void TPrimitiveTypeEntry::printTo(std::ostream& out) const {
TArrayTypeEntry::~TArrayTypeEntry() noexcept {
}
+TArrayTypeEntry::TArrayTypeEntry() noexcept
+ : objectTypePtr(0) {
+}
void TArrayTypeEntry::__set_objectTypePtr(const TTypeEntryPtr val) {
this->objectTypePtr = val;
@@ -869,11 +912,18 @@ uint32_t TArrayTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) co
return xfer;
}
-void swap(TArrayTypeEntry &a, TArrayTypeEntry &b) {
+void swap(TArrayTypeEntry &a, TArrayTypeEntry &b) noexcept {
using ::std::swap;
swap(a.objectTypePtr, b.objectTypePtr);
}
+bool TArrayTypeEntry::operator==(const TArrayTypeEntry & rhs) const
+{
+ if (!(objectTypePtr == rhs.objectTypePtr))
+ return false;
+ return true;
+}
+
TArrayTypeEntry::TArrayTypeEntry(const TArrayTypeEntry& other15) noexcept {
objectTypePtr = other15.objectTypePtr;
}
@@ -892,6 +942,10 @@ void TArrayTypeEntry::printTo(std::ostream& out) const {
TMapTypeEntry::~TMapTypeEntry() noexcept {
}
+TMapTypeEntry::TMapTypeEntry() noexcept
+ : keyTypePtr(0),
+ valueTypePtr(0) {
+}
void TMapTypeEntry::__set_keyTypePtr(const TTypeEntryPtr val) {
this->keyTypePtr = val;
@@ -980,12 +1034,21 @@ uint32_t TMapTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) cons
return xfer;
}
-void swap(TMapTypeEntry &a, TMapTypeEntry &b) {
+void swap(TMapTypeEntry &a, TMapTypeEntry &b) noexcept {
using ::std::swap;
swap(a.keyTypePtr, b.keyTypePtr);
swap(a.valueTypePtr, b.valueTypePtr);
}
+bool TMapTypeEntry::operator==(const TMapTypeEntry & rhs) const
+{
+ if (!(keyTypePtr == rhs.keyTypePtr))
+ return false;
+ if (!(valueTypePtr == rhs.valueTypePtr))
+ return false;
+ return true;
+}
+
TMapTypeEntry::TMapTypeEntry(const TMapTypeEntry& other17) noexcept {
keyTypePtr = other17.keyTypePtr;
valueTypePtr = other17.valueTypePtr;
@@ -1007,6 +1070,8 @@ void TMapTypeEntry::printTo(std::ostream& out) const {
TStructTypeEntry::~TStructTypeEntry() noexcept {
}
+TStructTypeEntry::TStructTypeEntry() noexcept {
+}
void TStructTypeEntry::__set_nameToTypePtr(const std::map & val) {
this->nameToTypePtr = val;
@@ -1100,11 +1165,18 @@ uint32_t TStructTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) c
return xfer;
}
-void swap(TStructTypeEntry &a, TStructTypeEntry &b) {
+void swap(TStructTypeEntry &a, TStructTypeEntry &b) noexcept {
using ::std::swap;
swap(a.nameToTypePtr, b.nameToTypePtr);
}
+bool TStructTypeEntry::operator==(const TStructTypeEntry & rhs) const
+{
+ if (!(nameToTypePtr == rhs.nameToTypePtr))
+ return false;
+ return true;
+}
+
TStructTypeEntry::TStructTypeEntry(const TStructTypeEntry& other27) {
nameToTypePtr = other27.nameToTypePtr;
}
@@ -1123,6 +1195,8 @@ void TStructTypeEntry::printTo(std::ostream& out) const {
TUnionTypeEntry::~TUnionTypeEntry() noexcept {
}
+TUnionTypeEntry::TUnionTypeEntry() noexcept {
+}
void TUnionTypeEntry::__set_nameToTypePtr(const std::map & val) {
this->nameToTypePtr = val;
@@ -1216,11 +1290,18 @@ uint32_t TUnionTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) co
return xfer;
}
-void swap(TUnionTypeEntry &a, TUnionTypeEntry &b) {
+void swap(TUnionTypeEntry &a, TUnionTypeEntry &b) noexcept {
using ::std::swap;
swap(a.nameToTypePtr, b.nameToTypePtr);
}
+bool TUnionTypeEntry::operator==(const TUnionTypeEntry & rhs) const
+{
+ if (!(nameToTypePtr == rhs.nameToTypePtr))
+ return false;
+ return true;
+}
+
TUnionTypeEntry::TUnionTypeEntry(const TUnionTypeEntry& other37) {
nameToTypePtr = other37.nameToTypePtr;
}
@@ -1239,6 +1320,9 @@ void TUnionTypeEntry::printTo(std::ostream& out) const {
TUserDefinedTypeEntry::~TUserDefinedTypeEntry() noexcept {
}
+TUserDefinedTypeEntry::TUserDefinedTypeEntry() noexcept
+ : typeClassName() {
+}
void TUserDefinedTypeEntry::__set_typeClassName(const std::string& val) {
this->typeClassName = val;
@@ -1308,11 +1392,18 @@ uint32_t TUserDefinedTypeEntry::write(::apache::thrift::protocol::TProtocol* opr
return xfer;
}
-void swap(TUserDefinedTypeEntry &a, TUserDefinedTypeEntry &b) {
+void swap(TUserDefinedTypeEntry &a, TUserDefinedTypeEntry &b) noexcept {
using ::std::swap;
swap(a.typeClassName, b.typeClassName);
}
+bool TUserDefinedTypeEntry::operator==(const TUserDefinedTypeEntry & rhs) const
+{
+ if (!(typeClassName == rhs.typeClassName))
+ return false;
+ return true;
+}
+
TUserDefinedTypeEntry::TUserDefinedTypeEntry(const TUserDefinedTypeEntry& other39) {
typeClassName = other39.typeClassName;
}
@@ -1331,6 +1422,8 @@ void TUserDefinedTypeEntry::printTo(std::ostream& out) const {
TTypeEntry::~TTypeEntry() noexcept {
}
+TTypeEntry::TTypeEntry() noexcept {
+}
void TTypeEntry::__set_primitiveEntry(const TPrimitiveTypeEntry& val) {
this->primitiveEntry = val;
@@ -1489,7 +1582,7 @@ uint32_t TTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const {
return xfer;
}
-void swap(TTypeEntry &a, TTypeEntry &b) {
+void swap(TTypeEntry &a, TTypeEntry &b) noexcept {
using ::std::swap;
swap(a.primitiveEntry, b.primitiveEntry);
swap(a.arrayEntry, b.arrayEntry);
@@ -1500,6 +1593,35 @@ void swap(TTypeEntry &a, TTypeEntry &b) {
swap(a.__isset, b.__isset);
}
+bool TTypeEntry::operator==(const TTypeEntry & rhs) const
+{
+ if (__isset.primitiveEntry != rhs.__isset.primitiveEntry)
+ return false;
+ else if (__isset.primitiveEntry && !(primitiveEntry == rhs.primitiveEntry))
+ return false;
+ if (__isset.arrayEntry != rhs.__isset.arrayEntry)
+ return false;
+ else if (__isset.arrayEntry && !(arrayEntry == rhs.arrayEntry))
+ return false;
+ if (__isset.mapEntry != rhs.__isset.mapEntry)
+ return false;
+ else if (__isset.mapEntry && !(mapEntry == rhs.mapEntry))
+ return false;
+ if (__isset.structEntry != rhs.__isset.structEntry)
+ return false;
+ else if (__isset.structEntry && !(structEntry == rhs.structEntry))
+ return false;
+ if (__isset.unionEntry != rhs.__isset.unionEntry)
+ return false;
+ else if (__isset.unionEntry && !(unionEntry == rhs.unionEntry))
+ return false;
+ if (__isset.userDefinedTypeEntry != rhs.__isset.userDefinedTypeEntry)
+ return false;
+ else if (__isset.userDefinedTypeEntry && !(userDefinedTypeEntry == rhs.userDefinedTypeEntry))
+ return false;
+ return true;
+}
+
TTypeEntry::TTypeEntry(const TTypeEntry& other41) {
primitiveEntry = other41.primitiveEntry;
arrayEntry = other41.arrayEntry;
@@ -1535,6 +1657,8 @@ void TTypeEntry::printTo(std::ostream& out) const {
TTypeDesc::~TTypeDesc() noexcept {
}
+TTypeDesc::TTypeDesc() noexcept {
+}
void TTypeDesc::__set_types(const std::vector & val) {
this->types = val;
@@ -1624,11 +1748,18 @@ uint32_t TTypeDesc::write(::apache::thrift::protocol::TProtocol* oprot) const {
return xfer;
}
-void swap(TTypeDesc &a, TTypeDesc &b) {
+void swap(TTypeDesc &a, TTypeDesc &b) noexcept {
using ::std::swap;
swap(a.types, b.types);
}
+bool TTypeDesc::operator==(const TTypeDesc & rhs) const
+{
+ if (!(types == rhs.types))
+ return false;
+ return true;
+}
+
TTypeDesc::TTypeDesc(const TTypeDesc& other49) {
types = other49.types;
}
@@ -1647,6 +1778,11 @@ void TTypeDesc::printTo(std::ostream& out) const {
TColumnDesc::~TColumnDesc() noexcept {
}
+TColumnDesc::TColumnDesc() noexcept
+ : columnName(),
+ position(0),
+ comment() {
+}
void TColumnDesc::__set_columnName(const std::string& val) {
this->columnName = val;
@@ -1772,7 +1908,7 @@ uint32_t TColumnDesc::write(::apache::thrift::protocol::TProtocol* oprot) const
return xfer;
}
-void swap(TColumnDesc &a, TColumnDesc &b) {
+void swap(TColumnDesc &a, TColumnDesc &b) noexcept {
using ::std::swap;
swap(a.columnName, b.columnName);
swap(a.typeDesc, b.typeDesc);
@@ -1781,6 +1917,21 @@ void swap(TColumnDesc &a, TColumnDesc &b) {
swap(a.__isset, b.__isset);
}
+bool TColumnDesc::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;
+}
+
TColumnDesc::TColumnDesc(const TColumnDesc& other51) {
columnName = other51.columnName;
typeDesc = other51.typeDesc;
@@ -1810,6 +1961,8 @@ void TColumnDesc::printTo(std::ostream& out) const {
TTableSchema::~TTableSchema() noexcept {
}
+TTableSchema::TTableSchema() noexcept {
+}
void TTableSchema::__set_columns(const std::vector & val) {
this->columns = val;
@@ -1899,11 +2052,18 @@ uint32_t TTableSchema::write(::apache::thrift::protocol::TProtocol* oprot) const
return xfer;
}
-void swap(TTableSchema &a, TTableSchema &b) {
+void swap(TTableSchema &a, TTableSchema &b) noexcept {
using ::std::swap;
swap(a.columns, b.columns);
}
+bool TTableSchema::operator==(const TTableSchema & rhs) const
+{
+ if (!(columns == rhs.columns))
+ return false;
+ return true;
+}
+
TTableSchema::TTableSchema(const TTableSchema& other59) {
columns = other59.columns;
}
@@ -1922,6 +2082,9 @@ void TTableSchema::printTo(std::ostream& out) const {
TBoolValue::~TBoolValue() noexcept {
}
+TBoolValue::TBoolValue() noexcept
+ : value(0) {
+}
void TBoolValue::__set_value(const bool val) {
this->value = val;
@@ -1990,12 +2153,21 @@ uint32_t TBoolValue::write(::apache::thrift::protocol::TProtocol* oprot) const {
return xfer;
}
-void swap(TBoolValue &a, TBoolValue &b) {
+void swap(TBoolValue &a, TBoolValue &b) noexcept {
using ::std::swap;
swap(a.value, b.value);
swap(a.__isset, b.__isset);
}
+bool TBoolValue::operator==(const TBoolValue & rhs) const
+{
+ if (__isset.value != rhs.__isset.value)
+ return false;
+ else if (__isset.value && !(value == rhs.value))
+ return false;
+ return true;
+}
+
TBoolValue::TBoolValue(const TBoolValue& other61) noexcept {
value = other61.value;
__isset = other61.__isset;
@@ -2016,6 +2188,9 @@ void TBoolValue::printTo(std::ostream& out) const {
TByteValue::~TByteValue() noexcept {
}
+TByteValue::TByteValue() noexcept
+ : value(0) {
+}
void TByteValue::__set_value(const int8_t val) {
this->value = val;
@@ -2084,12 +2259,21 @@ uint32_t TByteValue::write(::apache::thrift::protocol::TProtocol* oprot) const {
return xfer;
}
-void swap(TByteValue &a, TByteValue &b) {
+void swap(TByteValue &a, TByteValue &b) noexcept {
using ::std::swap;
swap(a.value, b.value);
swap(a.__isset, b.__isset);
}
+bool TByteValue::operator==(const TByteValue & rhs) const
+{
+ if (__isset.value != rhs.__isset.value)
+ return false;
+ else if (__isset.value && !(value == rhs.value))
+ return false;
+ return true;
+}
+
TByteValue::TByteValue(const TByteValue& other63) noexcept {
value = other63.value;
__isset = other63.__isset;
@@ -2110,6 +2294,9 @@ void TByteValue::printTo(std::ostream& out) const {
TI16Value::~TI16Value() noexcept {
}
+TI16Value::TI16Value() noexcept
+ : value(0) {
+}
void TI16Value::__set_value(const int16_t val) {
this->value = val;
@@ -2178,12 +2365,21 @@ uint32_t TI16Value::write(::apache::thrift::protocol::TProtocol* oprot) const {
return xfer;
}
-void swap(TI16Value &a, TI16Value &b) {
+void swap(TI16Value &a, TI16Value &b) noexcept {
using ::std::swap;
swap(a.value, b.value);
swap(a.__isset, b.__isset);
}
+bool TI16Value::operator==(const TI16Value & rhs) const
+{
+ if (__isset.value != rhs.__isset.value)
+ return false;
+ else if (__isset.value && !(value == rhs.value))
+ return false;
+ return true;
+}
+
TI16Value::TI16Value(const TI16Value& other65) noexcept {
value = other65.value;
__isset = other65.__isset;
@@ -2204,6 +2400,9 @@ void TI16Value::printTo(std::ostream& out) const {
TI32Value::~TI32Value() noexcept {
}
+TI32Value::TI32Value() noexcept
+ : value(0) {
+}
void TI32Value::__set_value(const int32_t val) {
this->value = val;
@@ -2272,12 +2471,21 @@ uint32_t TI32Value::write(::apache::thrift::protocol::TProtocol* oprot) const {
return xfer;
}
-void swap(TI32Value &a, TI32Value &b) {
+void swap(TI32Value &a, TI32Value &b) noexcept {
using ::std::swap;
swap(a.value, b.value);
swap(a.__isset, b.__isset);
}
+bool TI32Value::operator==(const TI32Value & rhs) const
+{
+ if (__isset.value != rhs.__isset.value)
+ return false;
+ else if (__isset.value && !(value == rhs.value))
+ return false;
+ return true;
+}
+
TI32Value::TI32Value(const TI32Value& other67) noexcept {
value = other67.value;
__isset = other67.__isset;
@@ -2298,6 +2506,9 @@ void TI32Value::printTo(std::ostream& out) const {
TI64Value::~TI64Value() noexcept {
}
+TI64Value::TI64Value() noexcept
+ : value(0) {
+}
void TI64Value::__set_value(const int64_t val) {
this->value = val;
@@ -2366,12 +2577,21 @@ uint32_t TI64Value::write(::apache::thrift::protocol::TProtocol* oprot) const {
return xfer;
}
-void swap(TI64Value &a, TI64Value &b) {
+void swap(TI64Value &a, TI64Value &b) noexcept {
using ::std::swap;
swap(a.value, b.value);
swap(a.__isset, b.__isset);
}
+bool TI64Value::operator==(const TI64Value & rhs) const
+{
+ if (__isset.value != rhs.__isset.value)
+ return false;
+ else if (__isset.value && !(value == rhs.value))
+ return false;
+ return true;
+}
+
TI64Value::TI64Value(const TI64Value& other69) noexcept {
value = other69.value;
__isset = other69.__isset;
@@ -2392,6 +2612,9 @@ void TI64Value::printTo(std::ostream& out) const {
TDoubleValue::~TDoubleValue() noexcept {
}
+TDoubleValue::TDoubleValue() noexcept
+ : value(0) {
+}
void TDoubleValue::__set_value(const double val) {
this->value = val;
@@ -2460,12 +2683,21 @@ uint32_t TDoubleValue::write(::apache::thrift::protocol::TProtocol* oprot) const
return xfer;
}
-void swap(TDoubleValue &a, TDoubleValue &b) {
+void swap(TDoubleValue &a, TDoubleValue &b) noexcept {
using ::std::swap;
swap(a.value, b.value);
swap(a.__isset, b.__isset);
}
+bool TDoubleValue::operator==(const TDoubleValue & rhs) const
+{
+ if (__isset.value != rhs.__isset.value)
+ return false;
+ else if (__isset.value && !(value == rhs.value))
+ return false;
+ return true;
+}
+
TDoubleValue::TDoubleValue(const TDoubleValue& other71) noexcept {
value = other71.value;
__isset = other71.__isset;
@@ -2486,6 +2718,9 @@ void TDoubleValue::printTo(std::ostream& out) const {
TStringValue::~TStringValue() noexcept {
}
+TStringValue::TStringValue() noexcept
+ : value() {
+}
void TStringValue::__set_value(const std::string& val) {
this->value = val;
@@ -2554,12 +2789,21 @@ uint32_t TStringValue::write(::apache::thrift::protocol::TProtocol* oprot) const
return xfer;
}
-void swap(TStringValue &a, TStringValue &b) {
+void swap(TStringValue &a, TStringValue &b) noexcept {
using ::std::swap;
swap(a.value, b.value);
swap(a.__isset, b.__isset);
}
+bool TStringValue::operator==(const TStringValue & rhs) const
+{
+ if (__isset.value != rhs.__isset.value)
+ return false;
+ else if (__isset.value && !(value == rhs.value))
+ return false;
+ return true;
+}
+
TStringValue::TStringValue(const TStringValue& other73) {
value = other73.value;
__isset = other73.__isset;
@@ -2580,6 +2824,8 @@ void TStringValue::printTo(std::ostream& out) const {
TColumnValue::~TColumnValue() noexcept {
}
+TColumnValue::TColumnValue() noexcept {
+}
void TColumnValue::__set_boolVal(const TBoolValue& val) {
this->boolVal = val;
@@ -2756,7 +3002,7 @@ uint32_t TColumnValue::write(::apache::thrift::protocol::TProtocol* oprot) const
return xfer;
}
-void swap(TColumnValue &a, TColumnValue &b) {
+void swap(TColumnValue &a, TColumnValue &b) noexcept {
using ::std::swap;
swap(a.boolVal, b.boolVal);
swap(a.byteVal, b.byteVal);
@@ -2768,6 +3014,39 @@ void swap(TColumnValue &a, TColumnValue &b) {
swap(a.__isset, b.__isset);
}
+bool TColumnValue::operator==(const TColumnValue & rhs) const
+{
+ if (__isset.boolVal != rhs.__isset.boolVal)
+ return false;
+ else if (__isset.boolVal && !(boolVal == rhs.boolVal))
+ return false;
+ if (__isset.byteVal != rhs.__isset.byteVal)
+ return false;
+ else if (__isset.byteVal && !(byteVal == rhs.byteVal))
+ return false;
+ if (__isset.i16Val != rhs.__isset.i16Val)
+ return false;
+ else if (__isset.i16Val && !(i16Val == rhs.i16Val))
+ return false;
+ if (__isset.i32Val != rhs.__isset.i32Val)
+ return false;
+ else if (__isset.i32Val && !(i32Val == rhs.i32Val))
+ return false;
+ if (__isset.i64Val != rhs.__isset.i64Val)
+ return false;
+ else if (__isset.i64Val && !(i64Val == rhs.i64Val))
+ return false;
+ if (__isset.doubleVal != rhs.__isset.doubleVal)
+ return false;
+ else if (__isset.doubleVal && !(doubleVal == rhs.doubleVal))
+ return false;
+ if (__isset.stringVal != rhs.__isset.stringVal)
+ return false;
+ else if (__isset.stringVal && !(stringVal == rhs.stringVal))
+ return false;
+ return true;
+}
+
TColumnValue::TColumnValue(const TColumnValue& other75) {
boolVal = other75.boolVal;
byteVal = other75.byteVal;
@@ -2806,6 +3085,8 @@ void TColumnValue::printTo(std::ostream& out) const {
TRow::~TRow() noexcept {
}
+TRow::TRow() noexcept {
+}
void TRow::__set_colVals(const std::vector & val) {
this->colVals = val;
@@ -2895,11 +3176,18 @@ uint32_t TRow::write(::apache::thrift::protocol::TProtocol* oprot) const {
return xfer;
}
-void swap(TRow &a, TRow &b) {
+void swap(TRow &a, TRow &b) noexcept {
using ::std::swap;
swap(a.colVals, b.colVals);
}
+bool TRow::operator==(const TRow & rhs) const
+{
+ if (!(colVals == rhs.colVals))
+ return false;
+ return true;
+}
+
TRow::TRow(const TRow& other83) {
colVals = other83.colVals;
}
@@ -2918,6 +3206,9 @@ void TRow::printTo(std::ostream& out) const {
TBoolColumn::~TBoolColumn() noexcept {
}
+TBoolColumn::TBoolColumn() noexcept
+ : nulls() {
+}
void TBoolColumn::__set_values(const std::vector & val) {
this->values = val;
@@ -3026,12 +3317,21 @@ uint32_t TBoolColumn::write(::apache::thrift::protocol::TProtocol* oprot) const
return xfer;
}
-void swap(TBoolColumn &a, TBoolColumn &b) {
+void swap(TBoolColumn &a, TBoolColumn &b) noexcept {
using ::std::swap;
swap(a.values, b.values);
swap(a.nulls, b.nulls);
}
+bool TBoolColumn::operator==(const TBoolColumn & rhs) const
+{
+ if (!(values == rhs.values))
+ return false;
+ if (!(nulls == rhs.nulls))
+ return false;
+ return true;
+}
+
TBoolColumn::TBoolColumn(const TBoolColumn& other91) {
values = other91.values;
nulls = other91.nulls;
@@ -3053,6 +3353,9 @@ void TBoolColumn::printTo(std::ostream& out) const {
TByteColumn::~TByteColumn() noexcept {
}
+TByteColumn::TByteColumn() noexcept
+ : nulls() {
+}
void TByteColumn::__set_values(const std::vector & val) {
this->values = val;
@@ -3161,12 +3464,21 @@ uint32_t TByteColumn::write(::apache::thrift::protocol::TProtocol* oprot) const
return xfer;
}
-void swap(TByteColumn &a, TByteColumn &b) {
+void swap(TByteColumn &a, TByteColumn &b) noexcept {
using ::std::swap;
swap(a.values, b.values);
swap(a.nulls, b.nulls);
}
+bool TByteColumn::operator==(const TByteColumn & rhs) const
+{
+ if (!(values == rhs.values))
+ return false;
+ if (!(nulls == rhs.nulls))
+ return false;
+ return true;
+}
+
TByteColumn::TByteColumn(const TByteColumn& other99) {
values = other99.values;
nulls = other99.nulls;
@@ -3188,6 +3500,9 @@ void TByteColumn::printTo(std::ostream& out) const {
TI16Column::~TI16Column() noexcept {
}
+TI16Column::TI16Column() noexcept
+ : nulls() {
+}
void TI16Column::__set_values(const std::vector & val) {
this->values = val;
@@ -3296,12 +3611,21 @@ uint32_t TI16Column::write(::apache::thrift::protocol::TProtocol* oprot) const {
return xfer;
}
-void swap(TI16Column &a, TI16Column &b) {
+void swap(TI16Column &a, TI16Column &b) noexcept {
using ::std::swap;
swap(a.values, b.values);
swap(a.nulls, b.nulls);
}
+bool TI16Column::operator==(const TI16Column & rhs) const
+{
+ if (!(values == rhs.values))
+ return false;
+ if (!(nulls == rhs.nulls))
+ return false;
+ return true;
+}
+
TI16Column::TI16Column(const TI16Column& other107) {
values = other107.values;
nulls = other107.nulls;
@@ -3323,6 +3647,9 @@ void TI16Column::printTo(std::ostream& out) const {
TI32Column::~TI32Column() noexcept {
}
+TI32Column::TI32Column() noexcept
+ : nulls() {
+}
void TI32Column::__set_values(const std::vector & val) {
this->values = val;
@@ -3431,12 +3758,21 @@ uint32_t TI32Column::write(::apache::thrift::protocol::TProtocol* oprot) const {
return xfer;
}
-void swap(TI32Column &a, TI32Column &b) {
+void swap(TI32Column &a, TI32Column &b) noexcept {
using ::std::swap;
swap(a.values, b.values);
swap(a.nulls, b.nulls);
}
+bool TI32Column::operator==(const TI32Column & rhs) const
+{
+ if (!(values == rhs.values))
+ return false;
+ if (!(nulls == rhs.nulls))
+ return false;
+ return true;
+}
+
TI32Column::TI32Column(const TI32Column& other115) {
values = other115.values;
nulls = other115.nulls;
@@ -3458,6 +3794,9 @@ void TI32Column::printTo(std::ostream& out) const {
TI64Column::~TI64Column() noexcept {
}
+TI64Column::TI64Column() noexcept
+ : nulls() {
+}
void TI64Column::__set_values(const std::vector & val) {
this->values = val;
@@ -3566,12 +3905,21 @@ uint32_t TI64Column::write(::apache::thrift::protocol::TProtocol* oprot) const {
return xfer;
}
-void swap(TI64Column &a, TI64Column &b) {
+void swap(TI64Column &a, TI64Column &b) noexcept {
using ::std::swap;
swap(a.values, b.values);
swap(a.nulls, b.nulls);
}
+bool TI64Column::operator==(const TI64Column & rhs) const
+{
+ if (!(values == rhs.values))
+ return false;
+ if (!(nulls == rhs.nulls))
+ return false;
+ return true;
+}
+
TI64Column::TI64Column(const TI64Column& other123) {
values = other123.values;
nulls = other123.nulls;
@@ -3593,6 +3941,9 @@ void TI64Column::printTo(std::ostream& out) const {
TDoubleColumn::~TDoubleColumn() noexcept {
}
+TDoubleColumn::TDoubleColumn() noexcept
+ : nulls() {
+}
void TDoubleColumn::__set_values(const std::vector & val) {
this->values = val;
@@ -3701,12 +4052,21 @@ uint32_t TDoubleColumn::write(::apache::thrift::protocol::TProtocol* oprot) cons
return xfer;
}
-void swap(TDoubleColumn &a, TDoubleColumn &b) {
+void swap(TDoubleColumn &a, TDoubleColumn &b) noexcept {
using ::std::swap;
swap(a.values, b.values);
swap(a.nulls, b.nulls);
}
+bool TDoubleColumn::operator==(const TDoubleColumn & rhs) const
+{
+ if (!(values == rhs.values))
+ return false;
+ if (!(nulls == rhs.nulls))
+ return false;
+ return true;
+}
+
TDoubleColumn::TDoubleColumn(const TDoubleColumn& other131) {
values = other131.values;
nulls = other131.nulls;
@@ -3728,6 +4088,9 @@ void TDoubleColumn::printTo(std::ostream& out) const {
TStringColumn::~TStringColumn() noexcept {
}
+TStringColumn::TStringColumn() noexcept
+ : nulls() {
+}
void TStringColumn::__set_values(const std::vector & val) {
this->values = val;
@@ -3836,12 +4199,21 @@ uint32_t TStringColumn::write(::apache::thrift::protocol::TProtocol* oprot) cons
return xfer;
}
-void swap(TStringColumn &a, TStringColumn &b) {
+void swap(TStringColumn &a, TStringColumn &b) noexcept {
using ::std::swap;
swap(a.values, b.values);
swap(a.nulls, b.nulls);
}
+bool TStringColumn::operator==(const TStringColumn & rhs) const
+{
+ if (!(values == rhs.values))
+ return false;
+ if (!(nulls == rhs.nulls))
+ return false;
+ return true;
+}
+
TStringColumn::TStringColumn(const TStringColumn& other139) {
values = other139.values;
nulls = other139.nulls;
@@ -3863,6 +4235,9 @@ void TStringColumn::printTo(std::ostream& out) const {
TBinaryColumn::~TBinaryColumn() noexcept {
}
+TBinaryColumn::TBinaryColumn() noexcept
+ : nulls() {
+}
void TBinaryColumn::__set_values(const std::vector & val) {
this->values = val;
@@ -3971,12 +4346,21 @@ uint32_t TBinaryColumn::write(::apache::thrift::protocol::TProtocol* oprot) cons
return xfer;
}
-void swap(TBinaryColumn &a, TBinaryColumn &b) {
+void swap(TBinaryColumn &a, TBinaryColumn &b) noexcept {
using ::std::swap;
swap(a.values, b.values);
swap(a.nulls, b.nulls);
}
+bool TBinaryColumn::operator==(const TBinaryColumn & rhs) const
+{
+ if (!(values == rhs.values))
+ return false;
+ if (!(nulls == rhs.nulls))
+ return false;
+ return true;
+}
+
TBinaryColumn::TBinaryColumn(const TBinaryColumn& other147) {
values = other147.values;
nulls = other147.nulls;
@@ -3998,6 +4382,8 @@ void TBinaryColumn::printTo(std::ostream& out) const {
TColumn::~TColumn() noexcept {
}
+TColumn::TColumn() noexcept {
+}
void TColumn::__set_boolVal(const TBoolColumn& val) {
this->boolVal = val;
@@ -4192,7 +4578,7 @@ uint32_t TColumn::write(::apache::thrift::protocol::TProtocol* oprot) const {
return xfer;
}
-void swap(TColumn &a, TColumn &b) {
+void swap(TColumn &a, TColumn &b) noexcept {
using ::std::swap;
swap(a.boolVal, b.boolVal);
swap(a.byteVal, b.byteVal);
@@ -4205,6 +4591,43 @@ void swap(TColumn &a, TColumn &b) {
swap(a.__isset, b.__isset);
}
+bool TColumn::operator==(const TColumn & rhs) const
+{
+ if (__isset.boolVal != rhs.__isset.boolVal)
+ return false;
+ else if (__isset.boolVal && !(boolVal == rhs.boolVal))
+ return false;
+ if (__isset.byteVal != rhs.__isset.byteVal)
+ return false;
+ else if (__isset.byteVal && !(byteVal == rhs.byteVal))
+ return false;
+ if (__isset.i16Val != rhs.__isset.i16Val)
+ return false;
+ else if (__isset.i16Val && !(i16Val == rhs.i16Val))
+ return false;
+ if (__isset.i32Val != rhs.__isset.i32Val)
+ return false;
+ else if (__isset.i32Val && !(i32Val == rhs.i32Val))
+ return false;
+ if (__isset.i64Val != rhs.__isset.i64Val)
+ return false;
+ else if (__isset.i64Val && !(i64Val == rhs.i64Val))
+ return false;
+ if (__isset.doubleVal != rhs.__isset.doubleVal)
+ return false;
+ else if (__isset.doubleVal && !(doubleVal == rhs.doubleVal))
+ return false;
+ if (__isset.stringVal != rhs.__isset.stringVal)
+ return false;
+ else if (__isset.stringVal && !(stringVal == rhs.stringVal))
+ return false;
+ if (__isset.binaryVal != rhs.__isset.binaryVal)
+ return false;
+ else if (__isset.binaryVal && !(binaryVal == rhs.binaryVal))
+ return false;
+ return true;
+}
+
TColumn::TColumn(const TColumn& other149) {
boolVal = other149.boolVal;
byteVal = other149.byteVal;
@@ -4246,6 +4669,11 @@ void TColumn::printTo(std::ostream& out) const {
TRowSet::~TRowSet() noexcept {
}
+TRowSet::TRowSet() noexcept
+ : startRowOffset(0),
+ binaryColumns(),
+ columnCount(0) {
+}
void TRowSet::__set_startRowOffset(const int64_t val) {
this->startRowOffset = val;
@@ -4428,7 +4856,7 @@ uint32_t TRowSet::write(::apache::thrift::protocol::TProtocol* oprot) const {
return xfer;
}
-void swap(TRowSet &a, TRowSet &b) {
+void swap(TRowSet &a, TRowSet &b) noexcept {
using ::std::swap;
swap(a.startRowOffset, b.startRowOffset);
swap(a.rows, b.rows);
@@ -4438,6 +4866,27 @@ void swap(TRowSet &a, TRowSet &b) {
swap(a.__isset, b.__isset);
}
+bool TRowSet::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;
+ if (__isset.binaryColumns != rhs.__isset.binaryColumns)
+ return false;
+ else if (__isset.binaryColumns && !(binaryColumns == rhs.binaryColumns))
+ return false;
+ if (__isset.columnCount != rhs.__isset.columnCount)
+ return false;
+ else if (__isset.columnCount && !(columnCount == rhs.columnCount))
+ return false;
+ return true;
+}
+
TRowSet::TRowSet(const TRowSet& other163) {
startRowOffset = other163.startRowOffset;
rows = other163.rows;
@@ -4470,6 +4919,12 @@ void TRowSet::printTo(std::ostream& out) const {
TStatus::~TStatus() noexcept {
}
+TStatus::TStatus() noexcept
+ : statusCode(static_cast(0)),
+ sqlState(),
+ errorCode(0),
+ errorMessage() {
+}
void TStatus::__set_statusCode(const TStatusCode::type val) {
this->statusCode = val;
@@ -4633,7 +5088,7 @@ uint32_t TStatus::write(::apache::thrift::protocol::TProtocol* oprot) const {
return xfer;
}
-void swap(TStatus &a, TStatus &b) {
+void swap(TStatus &a, TStatus &b) noexcept {
using ::std::swap;
swap(a.statusCode, b.statusCode);
swap(a.infoMessages, b.infoMessages);
@@ -4643,6 +5098,29 @@ void swap(TStatus &a, TStatus &b) {
swap(a.__isset, b.__isset);
}
+bool TStatus::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;
+}
+
TStatus::TStatus(const TStatus& other172) {
statusCode = other172.statusCode;
infoMessages = other172.infoMessages;
@@ -4675,6 +5153,10 @@ void TStatus::printTo(std::ostream& out) const {
THandleIdentifier::~THandleIdentifier() noexcept {
}
+THandleIdentifier::THandleIdentifier() noexcept
+ : guid(),
+ secret() {
+}
void THandleIdentifier::__set_guid(const std::string& val) {
this->guid = val;
@@ -4763,12 +5245,21 @@ uint32_t THandleIdentifier::write(::apache::thrift::protocol::TProtocol* oprot)
return xfer;
}
-void swap(THandleIdentifier &a, THandleIdentifier &b) {
+void swap(THandleIdentifier &a, THandleIdentifier &b) noexcept {
using ::std::swap;
swap(a.guid, b.guid);
swap(a.secret, b.secret);
}
+bool THandleIdentifier::operator==(const THandleIdentifier & rhs) const
+{
+ if (!(guid == rhs.guid))
+ return false;
+ if (!(secret == rhs.secret))
+ return false;
+ return true;
+}
+
THandleIdentifier::THandleIdentifier(const THandleIdentifier& other174) {
guid = other174.guid;
secret = other174.secret;
@@ -4790,6 +5281,8 @@ void THandleIdentifier::printTo(std::ostream& out) const {
TSessionHandle::~TSessionHandle() noexcept {
}
+TSessionHandle::TSessionHandle() noexcept {
+}
void TSessionHandle::__set_sessionId(const THandleIdentifier& val) {
this->sessionId = val;
@@ -4859,11 +5352,18 @@ uint32_t TSessionHandle::write(::apache::thrift::protocol::TProtocol* oprot) con
return xfer;
}
-void swap(TSessionHandle &a, TSessionHandle &b) {
+void swap(TSessionHandle &a, TSessionHandle &b) noexcept {
using ::std::swap;
swap(a.sessionId, b.sessionId);
}
+bool TSessionHandle::operator==(const TSessionHandle & rhs) const
+{
+ if (!(sessionId == rhs.sessionId))
+ return false;
+ return true;
+}
+
TSessionHandle::TSessionHandle(const TSessionHandle& other176) {
sessionId = other176.sessionId;
}
@@ -4882,6 +5382,11 @@ void TSessionHandle::printTo(std::ostream& out) const {
TOperationHandle::~TOperationHandle() noexcept {
}
+TOperationHandle::TOperationHandle() noexcept
+ : operationType(static_cast(0)),
+ hasResultSet(0),
+ modifiedRowCount(0) {
+}
void TOperationHandle::__set_operationId(const THandleIdentifier& val) {
this->operationId = val;
@@ -5009,7 +5514,7 @@ uint32_t TOperationHandle::write(::apache::thrift::protocol::TProtocol* oprot) c
return xfer;
}
-void swap(TOperationHandle &a, TOperationHandle &b) {
+void swap(TOperationHandle &a, TOperationHandle &b) noexcept {
using ::std::swap;
swap(a.operationId, b.operationId);
swap(a.operationType, b.operationType);
@@ -5018,6 +5523,21 @@ void swap(TOperationHandle &a, TOperationHandle &b) {
swap(a.__isset, b.__isset);
}
+bool TOperationHandle::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;
+}
+
TOperationHandle::TOperationHandle(const TOperationHandle& other179) {
operationId = other179.operationId;
operationType = other179.operationType;
@@ -5047,6 +5567,11 @@ void TOperationHandle::printTo(std::ostream& out) const {
TOpenSessionReq::~TOpenSessionReq() noexcept {
}
+TOpenSessionReq::TOpenSessionReq() noexcept
+ : client_protocol(static_cast(9)),
+ username(),
+ password() {
+}
void TOpenSessionReq::__set_client_protocol(const TProtocolVersion::type val) {
this->client_protocol = val;
@@ -5196,7 +5721,7 @@ uint32_t TOpenSessionReq::write(::apache::thrift::protocol::TProtocol* oprot) co
return xfer;
}
-void swap(TOpenSessionReq &a, TOpenSessionReq &b) {
+void swap(TOpenSessionReq &a, TOpenSessionReq &b) noexcept {
using ::std::swap;
swap(a.client_protocol, b.client_protocol);
swap(a.username, b.username);
@@ -5205,6 +5730,25 @@ void swap(TOpenSessionReq &a, TOpenSessionReq &b) {
swap(a.__isset, b.__isset);
}
+bool TOpenSessionReq::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;
+}
+
TOpenSessionReq::TOpenSessionReq(const TOpenSessionReq& other190) {
client_protocol = other190.client_protocol;
username = other190.username;
@@ -5234,6 +5778,9 @@ void TOpenSessionReq::printTo(std::ostream& out) const {
TOpenSessionResp::~TOpenSessionResp() noexcept {
}
+TOpenSessionResp::TOpenSessionResp() noexcept
+ : serverProtocolVersion(static_cast(9)) {
+}
void TOpenSessionResp::__set_status(const TStatus& val) {
this->status = val;
@@ -5384,7 +5931,7 @@ uint32_t TOpenSessionResp::write(::apache::thrift::protocol::TProtocol* oprot) c
return xfer;
}
-void swap(TOpenSessionResp &a, TOpenSessionResp &b) {
+void swap(TOpenSessionResp &a, TOpenSessionResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
swap(a.serverProtocolVersion, b.serverProtocolVersion);
@@ -5393,6 +5940,23 @@ void swap(TOpenSessionResp &a, TOpenSessionResp &b) {
swap(a.__isset, b.__isset);
}
+bool TOpenSessionResp::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;
+}
+
TOpenSessionResp::TOpenSessionResp(const TOpenSessionResp& other201) {
status = other201.status;
serverProtocolVersion = other201.serverProtocolVersion;
@@ -5422,6 +5986,8 @@ void TOpenSessionResp::printTo(std::ostream& out) const {
TSetClientInfoReq::~TSetClientInfoReq() noexcept {
}
+TSetClientInfoReq::TSetClientInfoReq() noexcept {
+}
void TSetClientInfoReq::__set_sessionHandle(const TSessionHandle& val) {
this->sessionHandle = val;
@@ -5533,13 +6099,24 @@ uint32_t TSetClientInfoReq::write(::apache::thrift::protocol::TProtocol* oprot)
return xfer;
}
-void swap(TSetClientInfoReq &a, TSetClientInfoReq &b) {
+void swap(TSetClientInfoReq &a, TSetClientInfoReq &b) noexcept {
using ::std::swap;
swap(a.sessionHandle, b.sessionHandle);
swap(a.configuration, b.configuration);
swap(a.__isset, b.__isset);
}
+bool TSetClientInfoReq::operator==(const TSetClientInfoReq & rhs) const
+{
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ if (__isset.configuration != rhs.__isset.configuration)
+ return false;
+ else if (__isset.configuration && !(configuration == rhs.configuration))
+ return false;
+ return true;
+}
+
TSetClientInfoReq::TSetClientInfoReq(const TSetClientInfoReq& other211) {
sessionHandle = other211.sessionHandle;
configuration = other211.configuration;
@@ -5563,6 +6140,8 @@ void TSetClientInfoReq::printTo(std::ostream& out) const {
TSetClientInfoResp::~TSetClientInfoResp() noexcept {
}
+TSetClientInfoResp::TSetClientInfoResp() noexcept {
+}
void TSetClientInfoResp::__set_status(const TStatus& val) {
this->status = val;
@@ -5632,11 +6211,18 @@ uint32_t TSetClientInfoResp::write(::apache::thrift::protocol::TProtocol* oprot)
return xfer;
}
-void swap(TSetClientInfoResp &a, TSetClientInfoResp &b) {
+void swap(TSetClientInfoResp &a, TSetClientInfoResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
}
+bool TSetClientInfoResp::operator==(const TSetClientInfoResp & rhs) const
+{
+ if (!(status == rhs.status))
+ return false;
+ return true;
+}
+
TSetClientInfoResp::TSetClientInfoResp(const TSetClientInfoResp& other213) {
status = other213.status;
}
@@ -5655,6 +6241,8 @@ void TSetClientInfoResp::printTo(std::ostream& out) const {
TCloseSessionReq::~TCloseSessionReq() noexcept {
}
+TCloseSessionReq::TCloseSessionReq() noexcept {
+}
void TCloseSessionReq::__set_sessionHandle(const TSessionHandle& val) {
this->sessionHandle = val;
@@ -5724,11 +6312,18 @@ uint32_t TCloseSessionReq::write(::apache::thrift::protocol::TProtocol* oprot) c
return xfer;
}
-void swap(TCloseSessionReq &a, TCloseSessionReq &b) {
+void swap(TCloseSessionReq &a, TCloseSessionReq &b) noexcept {
using ::std::swap;
swap(a.sessionHandle, b.sessionHandle);
}
+bool TCloseSessionReq::operator==(const TCloseSessionReq & rhs) const
+{
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ return true;
+}
+
TCloseSessionReq::TCloseSessionReq(const TCloseSessionReq& other215) {
sessionHandle = other215.sessionHandle;
}
@@ -5747,6 +6342,8 @@ void TCloseSessionReq::printTo(std::ostream& out) const {
TCloseSessionResp::~TCloseSessionResp() noexcept {
}
+TCloseSessionResp::TCloseSessionResp() noexcept {
+}
void TCloseSessionResp::__set_status(const TStatus& val) {
this->status = val;
@@ -5816,11 +6413,18 @@ uint32_t TCloseSessionResp::write(::apache::thrift::protocol::TProtocol* oprot)
return xfer;
}
-void swap(TCloseSessionResp &a, TCloseSessionResp &b) {
+void swap(TCloseSessionResp &a, TCloseSessionResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
}
+bool TCloseSessionResp::operator==(const TCloseSessionResp & rhs) const
+{
+ if (!(status == rhs.status))
+ return false;
+ return true;
+}
+
TCloseSessionResp::TCloseSessionResp(const TCloseSessionResp& other217) {
status = other217.status;
}
@@ -5839,6 +6443,14 @@ void TCloseSessionResp::printTo(std::ostream& out) const {
TGetInfoValue::~TGetInfoValue() noexcept {
}
+TGetInfoValue::TGetInfoValue() noexcept
+ : stringValue(),
+ smallIntValue(0),
+ integerBitmask(0),
+ integerFlag(0),
+ binaryValue(0),
+ lenValue(0) {
+}
void TGetInfoValue::__set_stringValue(const std::string& val) {
this->stringValue = val;
@@ -5997,7 +6609,7 @@ uint32_t TGetInfoValue::write(::apache::thrift::protocol::TProtocol* oprot) cons
return xfer;
}
-void swap(TGetInfoValue &a, TGetInfoValue &b) {
+void swap(TGetInfoValue &a, TGetInfoValue &b) noexcept {
using ::std::swap;
swap(a.stringValue, b.stringValue);
swap(a.smallIntValue, b.smallIntValue);
@@ -6008,6 +6620,35 @@ void swap(TGetInfoValue &a, TGetInfoValue &b) {
swap(a.__isset, b.__isset);
}
+bool TGetInfoValue::operator==(const TGetInfoValue & rhs) const
+{
+ if (__isset.stringValue != rhs.__isset.stringValue)
+ return false;
+ else if (__isset.stringValue && !(stringValue == rhs.stringValue))
+ return false;
+ if (__isset.smallIntValue != rhs.__isset.smallIntValue)
+ return false;
+ else if (__isset.smallIntValue && !(smallIntValue == rhs.smallIntValue))
+ return false;
+ if (__isset.integerBitmask != rhs.__isset.integerBitmask)
+ return false;
+ else if (__isset.integerBitmask && !(integerBitmask == rhs.integerBitmask))
+ return false;
+ if (__isset.integerFlag != rhs.__isset.integerFlag)
+ return false;
+ else if (__isset.integerFlag && !(integerFlag == rhs.integerFlag))
+ return false;
+ if (__isset.binaryValue != rhs.__isset.binaryValue)
+ return false;
+ else if (__isset.binaryValue && !(binaryValue == rhs.binaryValue))
+ return false;
+ if (__isset.lenValue != rhs.__isset.lenValue)
+ return false;
+ else if (__isset.lenValue && !(lenValue == rhs.lenValue))
+ return false;
+ return true;
+}
+
TGetInfoValue::TGetInfoValue(const TGetInfoValue& other219) {
stringValue = other219.stringValue;
smallIntValue = other219.smallIntValue;
@@ -6043,6 +6684,9 @@ void TGetInfoValue::printTo(std::ostream& out) const {
TGetInfoReq::~TGetInfoReq() noexcept {
}
+TGetInfoReq::TGetInfoReq() noexcept
+ : infoType(static_cast(0)) {
+}
void TGetInfoReq::__set_sessionHandle(const TSessionHandle& val) {
this->sessionHandle = val;
@@ -6133,12 +6777,21 @@ uint32_t TGetInfoReq::write(::apache::thrift::protocol::TProtocol* oprot) const
return xfer;
}
-void swap(TGetInfoReq &a, TGetInfoReq &b) {
+void swap(TGetInfoReq &a, TGetInfoReq &b) noexcept {
using ::std::swap;
swap(a.sessionHandle, b.sessionHandle);
swap(a.infoType, b.infoType);
}
+bool TGetInfoReq::operator==(const TGetInfoReq & rhs) const
+{
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ if (!(infoType == rhs.infoType))
+ return false;
+ return true;
+}
+
TGetInfoReq::TGetInfoReq(const TGetInfoReq& other222) {
sessionHandle = other222.sessionHandle;
infoType = other222.infoType;
@@ -6160,6 +6813,8 @@ void TGetInfoReq::printTo(std::ostream& out) const {
TGetInfoResp::~TGetInfoResp() noexcept {
}
+TGetInfoResp::TGetInfoResp() noexcept {
+}
void TGetInfoResp::__set_status(const TStatus& val) {
this->status = val;
@@ -6248,12 +6903,21 @@ uint32_t TGetInfoResp::write(::apache::thrift::protocol::TProtocol* oprot) const
return xfer;
}
-void swap(TGetInfoResp &a, TGetInfoResp &b) {
+void swap(TGetInfoResp &a, TGetInfoResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
swap(a.infoValue, b.infoValue);
}
+bool TGetInfoResp::operator==(const TGetInfoResp & rhs) const
+{
+ if (!(status == rhs.status))
+ return false;
+ if (!(infoValue == rhs.infoValue))
+ return false;
+ return true;
+}
+
TGetInfoResp::TGetInfoResp(const TGetInfoResp& other224) {
status = other224.status;
infoValue = other224.infoValue;
@@ -6275,6 +6939,11 @@ void TGetInfoResp::printTo(std::ostream& out) const {
TExecuteStatementReq::~TExecuteStatementReq() noexcept {
}
+TExecuteStatementReq::TExecuteStatementReq() noexcept
+ : statement(),
+ runAsync(false),
+ queryTimeout(0LL) {
+}
void TExecuteStatementReq::__set_sessionHandle(const TSessionHandle& val) {
this->sessionHandle = val;
@@ -6441,7 +7110,7 @@ uint32_t TExecuteStatementReq::write(::apache::thrift::protocol::TProtocol* opro
return xfer;
}
-void swap(TExecuteStatementReq &a, TExecuteStatementReq &b) {
+void swap(TExecuteStatementReq &a, TExecuteStatementReq &b) noexcept {
using ::std::swap;
swap(a.sessionHandle, b.sessionHandle);
swap(a.statement, b.statement);
@@ -6451,6 +7120,27 @@ void swap(TExecuteStatementReq &a, TExecuteStatementReq &b) {
swap(a.__isset, b.__isset);
}
+bool TExecuteStatementReq::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;
+ if (__isset.queryTimeout != rhs.__isset.queryTimeout)
+ return false;
+ else if (__isset.queryTimeout && !(queryTimeout == rhs.queryTimeout))
+ return false;
+ return true;
+}
+
TExecuteStatementReq::TExecuteStatementReq(const TExecuteStatementReq& other234) {
sessionHandle = other234.sessionHandle;
statement = other234.statement;
@@ -6483,6 +7173,8 @@ void TExecuteStatementReq::printTo(std::ostream& out) const {
TExecuteStatementResp::~TExecuteStatementResp() noexcept {
}
+TExecuteStatementResp::TExecuteStatementResp() noexcept {
+}
void TExecuteStatementResp::__set_status(const TStatus& val) {
this->status = val;
@@ -6570,13 +7262,24 @@ uint32_t TExecuteStatementResp::write(::apache::thrift::protocol::TProtocol* opr
return xfer;
}
-void swap(TExecuteStatementResp &a, TExecuteStatementResp &b) {
+void swap(TExecuteStatementResp &a, TExecuteStatementResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
swap(a.operationHandle, b.operationHandle);
swap(a.__isset, b.__isset);
}
+bool TExecuteStatementResp::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;
+}
+
TExecuteStatementResp::TExecuteStatementResp(const TExecuteStatementResp& other236) {
status = other236.status;
operationHandle = other236.operationHandle;
@@ -6600,6 +7303,8 @@ void TExecuteStatementResp::printTo(std::ostream& out) const {
TGetTypeInfoReq::~TGetTypeInfoReq() noexcept {
}
+TGetTypeInfoReq::TGetTypeInfoReq() noexcept {
+}
void TGetTypeInfoReq::__set_sessionHandle(const TSessionHandle& val) {
this->sessionHandle = val;
@@ -6669,11 +7374,18 @@ uint32_t TGetTypeInfoReq::write(::apache::thrift::protocol::TProtocol* oprot) co
return xfer;
}
-void swap(TGetTypeInfoReq &a, TGetTypeInfoReq &b) {
+void swap(TGetTypeInfoReq &a, TGetTypeInfoReq &b) noexcept {
using ::std::swap;
swap(a.sessionHandle, b.sessionHandle);
}
+bool TGetTypeInfoReq::operator==(const TGetTypeInfoReq & rhs) const
+{
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ return true;
+}
+
TGetTypeInfoReq::TGetTypeInfoReq(const TGetTypeInfoReq& other238) {
sessionHandle = other238.sessionHandle;
}
@@ -6692,6 +7404,8 @@ void TGetTypeInfoReq::printTo(std::ostream& out) const {
TGetTypeInfoResp::~TGetTypeInfoResp() noexcept {
}
+TGetTypeInfoResp::TGetTypeInfoResp() noexcept {
+}
void TGetTypeInfoResp::__set_status(const TStatus& val) {
this->status = val;
@@ -6779,13 +7493,24 @@ uint32_t TGetTypeInfoResp::write(::apache::thrift::protocol::TProtocol* oprot) c
return xfer;
}
-void swap(TGetTypeInfoResp &a, TGetTypeInfoResp &b) {
+void swap(TGetTypeInfoResp &a, TGetTypeInfoResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
swap(a.operationHandle, b.operationHandle);
swap(a.__isset, b.__isset);
}
+bool TGetTypeInfoResp::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;
+}
+
TGetTypeInfoResp::TGetTypeInfoResp(const TGetTypeInfoResp& other240) {
status = other240.status;
operationHandle = other240.operationHandle;
@@ -6809,6 +7534,11 @@ void TGetTypeInfoResp::printTo(std::ostream& out) const {
TUploadDataReq::~TUploadDataReq() noexcept {
}
+TUploadDataReq::TUploadDataReq() noexcept
+ : tableName(),
+ path(),
+ values() {
+}
void TUploadDataReq::__set_sessionHandle(const TSessionHandle& val) {
this->sessionHandle = val;
@@ -6933,7 +7663,7 @@ uint32_t TUploadDataReq::write(::apache::thrift::protocol::TProtocol* oprot) con
return xfer;
}
-void swap(TUploadDataReq &a, TUploadDataReq &b) {
+void swap(TUploadDataReq &a, TUploadDataReq &b) noexcept {
using ::std::swap;
swap(a.sessionHandle, b.sessionHandle);
swap(a.tableName, b.tableName);
@@ -6942,6 +7672,23 @@ void swap(TUploadDataReq &a, TUploadDataReq &b) {
swap(a.__isset, b.__isset);
}
+bool TUploadDataReq::operator==(const TUploadDataReq & rhs) const
+{
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ if (__isset.tableName != rhs.__isset.tableName)
+ return false;
+ else if (__isset.tableName && !(tableName == rhs.tableName))
+ return false;
+ if (__isset.path != rhs.__isset.path)
+ return false;
+ else if (__isset.path && !(path == rhs.path))
+ return false;
+ if (!(values == rhs.values))
+ return false;
+ return true;
+}
+
TUploadDataReq::TUploadDataReq(const TUploadDataReq& other242) {
sessionHandle = other242.sessionHandle;
tableName = other242.tableName;
@@ -6971,6 +7718,8 @@ void TUploadDataReq::printTo(std::ostream& out) const {
TUploadDataResp::~TUploadDataResp() noexcept {
}
+TUploadDataResp::TUploadDataResp() noexcept {
+}
void TUploadDataResp::__set_status(const TStatus& val) {
this->status = val;
@@ -7059,12 +7808,21 @@ uint32_t TUploadDataResp::write(::apache::thrift::protocol::TProtocol* oprot) co
return xfer;
}
-void swap(TUploadDataResp &a, TUploadDataResp &b) {
+void swap(TUploadDataResp &a, TUploadDataResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
swap(a.operationHandle, b.operationHandle);
}
+bool TUploadDataResp::operator==(const TUploadDataResp & rhs) const
+{
+ if (!(status == rhs.status))
+ return false;
+ if (!(operationHandle == rhs.operationHandle))
+ return false;
+ return true;
+}
+
TUploadDataResp::TUploadDataResp(const TUploadDataResp& other244) {
status = other244.status;
operationHandle = other244.operationHandle;
@@ -7086,6 +7844,11 @@ void TUploadDataResp::printTo(std::ostream& out) const {
TDownloadDataReq::~TDownloadDataReq() noexcept {
}
+TDownloadDataReq::TDownloadDataReq() noexcept
+ : tableName(),
+ query(),
+ format() {
+}
void TDownloadDataReq::__set_sessionHandle(const TSessionHandle& val) {
this->sessionHandle = val;
@@ -7251,7 +8014,7 @@ uint32_t TDownloadDataReq::write(::apache::thrift::protocol::TProtocol* oprot) c
return xfer;
}
-void swap(TDownloadDataReq &a, TDownloadDataReq &b) {
+void swap(TDownloadDataReq &a, TDownloadDataReq &b) noexcept {
using ::std::swap;
swap(a.sessionHandle, b.sessionHandle);
swap(a.tableName, b.tableName);
@@ -7261,6 +8024,29 @@ void swap(TDownloadDataReq &a, TDownloadDataReq &b) {
swap(a.__isset, b.__isset);
}
+bool TDownloadDataReq::operator==(const TDownloadDataReq & rhs) const
+{
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ if (__isset.tableName != rhs.__isset.tableName)
+ return false;
+ else if (__isset.tableName && !(tableName == rhs.tableName))
+ return false;
+ if (__isset.query != rhs.__isset.query)
+ return false;
+ else if (__isset.query && !(query == rhs.query))
+ return false;
+ if (__isset.format != rhs.__isset.format)
+ return false;
+ else if (__isset.format && !(format == rhs.format))
+ return false;
+ if (__isset.downloadOptions != rhs.__isset.downloadOptions)
+ return false;
+ else if (__isset.downloadOptions && !(downloadOptions == rhs.downloadOptions))
+ return false;
+ return true;
+}
+
TDownloadDataReq::TDownloadDataReq(const TDownloadDataReq& other254) {
sessionHandle = other254.sessionHandle;
tableName = other254.tableName;
@@ -7293,6 +8079,8 @@ void TDownloadDataReq::printTo(std::ostream& out) const {
TDownloadDataResp::~TDownloadDataResp() noexcept {
}
+TDownloadDataResp::TDownloadDataResp() noexcept {
+}
void TDownloadDataResp::__set_status(const TStatus& val) {
this->status = val;
@@ -7381,12 +8169,21 @@ uint32_t TDownloadDataResp::write(::apache::thrift::protocol::TProtocol* oprot)
return xfer;
}
-void swap(TDownloadDataResp &a, TDownloadDataResp &b) {
+void swap(TDownloadDataResp &a, TDownloadDataResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
swap(a.operationHandle, b.operationHandle);
}
+bool TDownloadDataResp::operator==(const TDownloadDataResp & rhs) const
+{
+ if (!(status == rhs.status))
+ return false;
+ if (!(operationHandle == rhs.operationHandle))
+ return false;
+ return true;
+}
+
TDownloadDataResp::TDownloadDataResp(const TDownloadDataResp& other256) {
status = other256.status;
operationHandle = other256.operationHandle;
@@ -7408,6 +8205,8 @@ void TDownloadDataResp::printTo(std::ostream& out) const {
TGetCatalogsReq::~TGetCatalogsReq() noexcept {
}
+TGetCatalogsReq::TGetCatalogsReq() noexcept {
+}
void TGetCatalogsReq::__set_sessionHandle(const TSessionHandle& val) {
this->sessionHandle = val;
@@ -7477,11 +8276,18 @@ uint32_t TGetCatalogsReq::write(::apache::thrift::protocol::TProtocol* oprot) co
return xfer;
}
-void swap(TGetCatalogsReq &a, TGetCatalogsReq &b) {
+void swap(TGetCatalogsReq &a, TGetCatalogsReq &b) noexcept {
using ::std::swap;
swap(a.sessionHandle, b.sessionHandle);
}
+bool TGetCatalogsReq::operator==(const TGetCatalogsReq & rhs) const
+{
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ return true;
+}
+
TGetCatalogsReq::TGetCatalogsReq(const TGetCatalogsReq& other258) {
sessionHandle = other258.sessionHandle;
}
@@ -7500,6 +8306,8 @@ void TGetCatalogsReq::printTo(std::ostream& out) const {
TGetCatalogsResp::~TGetCatalogsResp() noexcept {
}
+TGetCatalogsResp::TGetCatalogsResp() noexcept {
+}
void TGetCatalogsResp::__set_status(const TStatus& val) {
this->status = val;
@@ -7587,13 +8395,24 @@ uint32_t TGetCatalogsResp::write(::apache::thrift::protocol::TProtocol* oprot) c
return xfer;
}
-void swap(TGetCatalogsResp &a, TGetCatalogsResp &b) {
+void swap(TGetCatalogsResp &a, TGetCatalogsResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
swap(a.operationHandle, b.operationHandle);
swap(a.__isset, b.__isset);
}
+bool TGetCatalogsResp::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;
+}
+
TGetCatalogsResp::TGetCatalogsResp(const TGetCatalogsResp& other260) {
status = other260.status;
operationHandle = other260.operationHandle;
@@ -7617,6 +8436,10 @@ void TGetCatalogsResp::printTo(std::ostream& out) const {
TGetSchemasReq::~TGetSchemasReq() noexcept {
}
+TGetSchemasReq::TGetSchemasReq() noexcept
+ : catalogName(),
+ schemaName() {
+}
void TGetSchemasReq::__set_sessionHandle(const TSessionHandle& val) {
this->sessionHandle = val;
@@ -7722,7 +8545,7 @@ uint32_t TGetSchemasReq::write(::apache::thrift::protocol::TProtocol* oprot) con
return xfer;
}
-void swap(TGetSchemasReq &a, TGetSchemasReq &b) {
+void swap(TGetSchemasReq &a, TGetSchemasReq &b) noexcept {
using ::std::swap;
swap(a.sessionHandle, b.sessionHandle);
swap(a.catalogName, b.catalogName);
@@ -7730,6 +8553,21 @@ void swap(TGetSchemasReq &a, TGetSchemasReq &b) {
swap(a.__isset, b.__isset);
}
+bool TGetSchemasReq::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;
+}
+
TGetSchemasReq::TGetSchemasReq(const TGetSchemasReq& other262) {
sessionHandle = other262.sessionHandle;
catalogName = other262.catalogName;
@@ -7756,6 +8594,8 @@ void TGetSchemasReq::printTo(std::ostream& out) const {
TGetSchemasResp::~TGetSchemasResp() noexcept {
}
+TGetSchemasResp::TGetSchemasResp() noexcept {
+}
void TGetSchemasResp::__set_status(const TStatus& val) {
this->status = val;
@@ -7843,13 +8683,24 @@ uint32_t TGetSchemasResp::write(::apache::thrift::protocol::TProtocol* oprot) co
return xfer;
}
-void swap(TGetSchemasResp &a, TGetSchemasResp &b) {
+void swap(TGetSchemasResp &a, TGetSchemasResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
swap(a.operationHandle, b.operationHandle);
swap(a.__isset, b.__isset);
}
+bool TGetSchemasResp::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;
+}
+
TGetSchemasResp::TGetSchemasResp(const TGetSchemasResp& other264) {
status = other264.status;
operationHandle = other264.operationHandle;
@@ -7873,6 +8724,11 @@ void TGetSchemasResp::printTo(std::ostream& out) const {
TGetTablesReq::~TGetTablesReq() noexcept {
}
+TGetTablesReq::TGetTablesReq() noexcept
+ : catalogName(),
+ schemaName(),
+ tableName() {
+}
void TGetTablesReq::__set_sessionHandle(const TSessionHandle& val) {
this->sessionHandle = val;
@@ -8034,7 +8890,7 @@ uint32_t TGetTablesReq::write(::apache::thrift::protocol::TProtocol* oprot) cons
return xfer;
}
-void swap(TGetTablesReq &a, TGetTablesReq &b) {
+void swap(TGetTablesReq &a, TGetTablesReq &b) noexcept {
using ::std::swap;
swap(a.sessionHandle, b.sessionHandle);
swap(a.catalogName, b.catalogName);
@@ -8044,6 +8900,29 @@ void swap(TGetTablesReq &a, TGetTablesReq &b) {
swap(a.__isset, b.__isset);
}
+bool TGetTablesReq::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;
+}
+
TGetTablesReq::TGetTablesReq(const TGetTablesReq& other272) {
sessionHandle = other272.sessionHandle;
catalogName = other272.catalogName;
@@ -8076,6 +8955,8 @@ void TGetTablesReq::printTo(std::ostream& out) const {
TGetTablesResp::~TGetTablesResp() noexcept {
}
+TGetTablesResp::TGetTablesResp() noexcept {
+}
void TGetTablesResp::__set_status(const TStatus& val) {
this->status = val;
@@ -8163,13 +9044,24 @@ uint32_t TGetTablesResp::write(::apache::thrift::protocol::TProtocol* oprot) con
return xfer;
}
-void swap(TGetTablesResp &a, TGetTablesResp &b) {
+void swap(TGetTablesResp &a, TGetTablesResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
swap(a.operationHandle, b.operationHandle);
swap(a.__isset, b.__isset);
}
+bool TGetTablesResp::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;
+}
+
TGetTablesResp::TGetTablesResp(const TGetTablesResp& other274) {
status = other274.status;
operationHandle = other274.operationHandle;
@@ -8193,6 +9085,8 @@ void TGetTablesResp::printTo(std::ostream& out) const {
TGetTableTypesReq::~TGetTableTypesReq() noexcept {
}
+TGetTableTypesReq::TGetTableTypesReq() noexcept {
+}
void TGetTableTypesReq::__set_sessionHandle(const TSessionHandle& val) {
this->sessionHandle = val;
@@ -8262,11 +9156,18 @@ uint32_t TGetTableTypesReq::write(::apache::thrift::protocol::TProtocol* oprot)
return xfer;
}
-void swap(TGetTableTypesReq &a, TGetTableTypesReq &b) {
+void swap(TGetTableTypesReq &a, TGetTableTypesReq &b) noexcept {
using ::std::swap;
swap(a.sessionHandle, b.sessionHandle);
}
+bool TGetTableTypesReq::operator==(const TGetTableTypesReq & rhs) const
+{
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ return true;
+}
+
TGetTableTypesReq::TGetTableTypesReq(const TGetTableTypesReq& other276) {
sessionHandle = other276.sessionHandle;
}
@@ -8285,6 +9186,8 @@ void TGetTableTypesReq::printTo(std::ostream& out) const {
TGetTableTypesResp::~TGetTableTypesResp() noexcept {
}
+TGetTableTypesResp::TGetTableTypesResp() noexcept {
+}
void TGetTableTypesResp::__set_status(const TStatus& val) {
this->status = val;
@@ -8372,13 +9275,24 @@ uint32_t TGetTableTypesResp::write(::apache::thrift::protocol::TProtocol* oprot)
return xfer;
}
-void swap(TGetTableTypesResp &a, TGetTableTypesResp &b) {
+void swap(TGetTableTypesResp &a, TGetTableTypesResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
swap(a.operationHandle, b.operationHandle);
swap(a.__isset, b.__isset);
}
+bool TGetTableTypesResp::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;
+}
+
TGetTableTypesResp::TGetTableTypesResp(const TGetTableTypesResp& other278) {
status = other278.status;
operationHandle = other278.operationHandle;
@@ -8402,6 +9316,12 @@ void TGetTableTypesResp::printTo(std::ostream& out) const {
TGetColumnsReq::~TGetColumnsReq() noexcept {
}
+TGetColumnsReq::TGetColumnsReq() noexcept
+ : catalogName(),
+ schemaName(),
+ tableName(),
+ columnName() {
+}
void TGetColumnsReq::__set_sessionHandle(const TSessionHandle& val) {
this->sessionHandle = val;
@@ -8543,7 +9463,7 @@ uint32_t TGetColumnsReq::write(::apache::thrift::protocol::TProtocol* oprot) con
return xfer;
}
-void swap(TGetColumnsReq &a, TGetColumnsReq &b) {
+void swap(TGetColumnsReq &a, TGetColumnsReq &b) noexcept {
using ::std::swap;
swap(a.sessionHandle, b.sessionHandle);
swap(a.catalogName, b.catalogName);
@@ -8553,6 +9473,29 @@ void swap(TGetColumnsReq &a, TGetColumnsReq &b) {
swap(a.__isset, b.__isset);
}
+bool TGetColumnsReq::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;
+}
+
TGetColumnsReq::TGetColumnsReq(const TGetColumnsReq& other280) {
sessionHandle = other280.sessionHandle;
catalogName = other280.catalogName;
@@ -8585,6 +9528,8 @@ void TGetColumnsReq::printTo(std::ostream& out) const {
TGetColumnsResp::~TGetColumnsResp() noexcept {
}
+TGetColumnsResp::TGetColumnsResp() noexcept {
+}
void TGetColumnsResp::__set_status(const TStatus& val) {
this->status = val;
@@ -8672,13 +9617,24 @@ uint32_t TGetColumnsResp::write(::apache::thrift::protocol::TProtocol* oprot) co
return xfer;
}
-void swap(TGetColumnsResp &a, TGetColumnsResp &b) {
+void swap(TGetColumnsResp &a, TGetColumnsResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
swap(a.operationHandle, b.operationHandle);
swap(a.__isset, b.__isset);
}
+bool TGetColumnsResp::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;
+}
+
TGetColumnsResp::TGetColumnsResp(const TGetColumnsResp& other282) {
status = other282.status;
operationHandle = other282.operationHandle;
@@ -8702,6 +9658,11 @@ void TGetColumnsResp::printTo(std::ostream& out) const {
TGetFunctionsReq::~TGetFunctionsReq() noexcept {
}
+TGetFunctionsReq::TGetFunctionsReq() noexcept
+ : catalogName(),
+ schemaName(),
+ functionName() {
+}
void TGetFunctionsReq::__set_sessionHandle(const TSessionHandle& val) {
this->sessionHandle = val;
@@ -8826,7 +9787,7 @@ uint32_t TGetFunctionsReq::write(::apache::thrift::protocol::TProtocol* oprot) c
return xfer;
}
-void swap(TGetFunctionsReq &a, TGetFunctionsReq &b) {
+void swap(TGetFunctionsReq &a, TGetFunctionsReq &b) noexcept {
using ::std::swap;
swap(a.sessionHandle, b.sessionHandle);
swap(a.catalogName, b.catalogName);
@@ -8835,6 +9796,23 @@ void swap(TGetFunctionsReq &a, TGetFunctionsReq &b) {
swap(a.__isset, b.__isset);
}
+bool TGetFunctionsReq::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;
+}
+
TGetFunctionsReq::TGetFunctionsReq(const TGetFunctionsReq& other284) {
sessionHandle = other284.sessionHandle;
catalogName = other284.catalogName;
@@ -8864,6 +9842,8 @@ void TGetFunctionsReq::printTo(std::ostream& out) const {
TGetFunctionsResp::~TGetFunctionsResp() noexcept {
}
+TGetFunctionsResp::TGetFunctionsResp() noexcept {
+}
void TGetFunctionsResp::__set_status(const TStatus& val) {
this->status = val;
@@ -8951,13 +9931,24 @@ uint32_t TGetFunctionsResp::write(::apache::thrift::protocol::TProtocol* oprot)
return xfer;
}
-void swap(TGetFunctionsResp &a, TGetFunctionsResp &b) {
+void swap(TGetFunctionsResp &a, TGetFunctionsResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
swap(a.operationHandle, b.operationHandle);
swap(a.__isset, b.__isset);
}
+bool TGetFunctionsResp::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;
+}
+
TGetFunctionsResp::TGetFunctionsResp(const TGetFunctionsResp& other286) {
status = other286.status;
operationHandle = other286.operationHandle;
@@ -8981,6 +9972,11 @@ void TGetFunctionsResp::printTo(std::ostream& out) const {
TGetPrimaryKeysReq::~TGetPrimaryKeysReq() noexcept {
}
+TGetPrimaryKeysReq::TGetPrimaryKeysReq() noexcept
+ : catalogName(),
+ schemaName(),
+ tableName() {
+}
void TGetPrimaryKeysReq::__set_sessionHandle(const TSessionHandle& val) {
this->sessionHandle = val;
@@ -9104,7 +10100,7 @@ uint32_t TGetPrimaryKeysReq::write(::apache::thrift::protocol::TProtocol* oprot)
return xfer;
}
-void swap(TGetPrimaryKeysReq &a, TGetPrimaryKeysReq &b) {
+void swap(TGetPrimaryKeysReq &a, TGetPrimaryKeysReq &b) noexcept {
using ::std::swap;
swap(a.sessionHandle, b.sessionHandle);
swap(a.catalogName, b.catalogName);
@@ -9113,6 +10109,25 @@ void swap(TGetPrimaryKeysReq &a, TGetPrimaryKeysReq &b) {
swap(a.__isset, b.__isset);
}
+bool TGetPrimaryKeysReq::operator==(const TGetPrimaryKeysReq & 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;
+ return true;
+}
+
TGetPrimaryKeysReq::TGetPrimaryKeysReq(const TGetPrimaryKeysReq& other288) {
sessionHandle = other288.sessionHandle;
catalogName = other288.catalogName;
@@ -9142,6 +10157,8 @@ void TGetPrimaryKeysReq::printTo(std::ostream& out) const {
TGetPrimaryKeysResp::~TGetPrimaryKeysResp() noexcept {
}
+TGetPrimaryKeysResp::TGetPrimaryKeysResp() noexcept {
+}
void TGetPrimaryKeysResp::__set_status(const TStatus& val) {
this->status = val;
@@ -9229,13 +10246,24 @@ uint32_t TGetPrimaryKeysResp::write(::apache::thrift::protocol::TProtocol* oprot
return xfer;
}
-void swap(TGetPrimaryKeysResp &a, TGetPrimaryKeysResp &b) {
+void swap(TGetPrimaryKeysResp &a, TGetPrimaryKeysResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
swap(a.operationHandle, b.operationHandle);
swap(a.__isset, b.__isset);
}
+bool TGetPrimaryKeysResp::operator==(const TGetPrimaryKeysResp & 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;
+}
+
TGetPrimaryKeysResp::TGetPrimaryKeysResp(const TGetPrimaryKeysResp& other290) {
status = other290.status;
operationHandle = other290.operationHandle;
@@ -9259,6 +10287,14 @@ void TGetPrimaryKeysResp::printTo(std::ostream& out) const {
TGetCrossReferenceReq::~TGetCrossReferenceReq() noexcept {
}
+TGetCrossReferenceReq::TGetCrossReferenceReq() noexcept
+ : parentCatalogName(),
+ parentSchemaName(),
+ parentTableName(),
+ foreignCatalogName(),
+ foreignSchemaName(),
+ foreignTableName() {
+}
void TGetCrossReferenceReq::__set_sessionHandle(const TSessionHandle& val) {
this->sessionHandle = val;
@@ -9436,7 +10472,7 @@ uint32_t TGetCrossReferenceReq::write(::apache::thrift::protocol::TProtocol* opr
return xfer;
}
-void swap(TGetCrossReferenceReq &a, TGetCrossReferenceReq &b) {
+void swap(TGetCrossReferenceReq &a, TGetCrossReferenceReq &b) noexcept {
using ::std::swap;
swap(a.sessionHandle, b.sessionHandle);
swap(a.parentCatalogName, b.parentCatalogName);
@@ -9448,6 +10484,37 @@ void swap(TGetCrossReferenceReq &a, TGetCrossReferenceReq &b) {
swap(a.__isset, b.__isset);
}
+bool TGetCrossReferenceReq::operator==(const TGetCrossReferenceReq & rhs) const
+{
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ if (__isset.parentCatalogName != rhs.__isset.parentCatalogName)
+ return false;
+ else if (__isset.parentCatalogName && !(parentCatalogName == rhs.parentCatalogName))
+ return false;
+ if (__isset.parentSchemaName != rhs.__isset.parentSchemaName)
+ return false;
+ else if (__isset.parentSchemaName && !(parentSchemaName == rhs.parentSchemaName))
+ return false;
+ if (__isset.parentTableName != rhs.__isset.parentTableName)
+ return false;
+ else if (__isset.parentTableName && !(parentTableName == rhs.parentTableName))
+ return false;
+ if (__isset.foreignCatalogName != rhs.__isset.foreignCatalogName)
+ return false;
+ else if (__isset.foreignCatalogName && !(foreignCatalogName == rhs.foreignCatalogName))
+ return false;
+ if (__isset.foreignSchemaName != rhs.__isset.foreignSchemaName)
+ return false;
+ else if (__isset.foreignSchemaName && !(foreignSchemaName == rhs.foreignSchemaName))
+ return false;
+ if (__isset.foreignTableName != rhs.__isset.foreignTableName)
+ return false;
+ else if (__isset.foreignTableName && !(foreignTableName == rhs.foreignTableName))
+ return false;
+ return true;
+}
+
TGetCrossReferenceReq::TGetCrossReferenceReq(const TGetCrossReferenceReq& other292) {
sessionHandle = other292.sessionHandle;
parentCatalogName = other292.parentCatalogName;
@@ -9486,6 +10553,8 @@ void TGetCrossReferenceReq::printTo(std::ostream& out) const {
TGetCrossReferenceResp::~TGetCrossReferenceResp() noexcept {
}
+TGetCrossReferenceResp::TGetCrossReferenceResp() noexcept {
+}
void TGetCrossReferenceResp::__set_status(const TStatus& val) {
this->status = val;
@@ -9573,13 +10642,24 @@ uint32_t TGetCrossReferenceResp::write(::apache::thrift::protocol::TProtocol* op
return xfer;
}
-void swap(TGetCrossReferenceResp &a, TGetCrossReferenceResp &b) {
+void swap(TGetCrossReferenceResp &a, TGetCrossReferenceResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
swap(a.operationHandle, b.operationHandle);
swap(a.__isset, b.__isset);
}
+bool TGetCrossReferenceResp::operator==(const TGetCrossReferenceResp & 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;
+}
+
TGetCrossReferenceResp::TGetCrossReferenceResp(const TGetCrossReferenceResp& other294) {
status = other294.status;
operationHandle = other294.operationHandle;
@@ -9603,6 +10683,9 @@ void TGetCrossReferenceResp::printTo(std::ostream& out) const {
TGetOperationStatusReq::~TGetOperationStatusReq() noexcept {
}
+TGetOperationStatusReq::TGetOperationStatusReq() noexcept
+ : getProgressUpdate(0) {
+}
void TGetOperationStatusReq::__set_operationHandle(const TOperationHandle& val) {
this->operationHandle = val;
@@ -9690,13 +10773,24 @@ uint32_t TGetOperationStatusReq::write(::apache::thrift::protocol::TProtocol* op
return xfer;
}
-void swap(TGetOperationStatusReq &a, TGetOperationStatusReq &b) {
+void swap(TGetOperationStatusReq &a, TGetOperationStatusReq &b) noexcept {
using ::std::swap;
swap(a.operationHandle, b.operationHandle);
swap(a.getProgressUpdate, b.getProgressUpdate);
swap(a.__isset, b.__isset);
}
+bool TGetOperationStatusReq::operator==(const TGetOperationStatusReq & rhs) const
+{
+ if (!(operationHandle == rhs.operationHandle))
+ return false;
+ if (__isset.getProgressUpdate != rhs.__isset.getProgressUpdate)
+ return false;
+ else if (__isset.getProgressUpdate && !(getProgressUpdate == rhs.getProgressUpdate))
+ return false;
+ return true;
+}
+
TGetOperationStatusReq::TGetOperationStatusReq(const TGetOperationStatusReq& other296) {
operationHandle = other296.operationHandle;
getProgressUpdate = other296.getProgressUpdate;
@@ -9720,6 +10814,17 @@ void TGetOperationStatusReq::printTo(std::ostream& out) const {
TGetOperationStatusResp::~TGetOperationStatusResp() noexcept {
}
+TGetOperationStatusResp::TGetOperationStatusResp() noexcept
+ : operationState(static_cast(0)),
+ sqlState(),
+ errorCode(0),
+ errorMessage(),
+ taskStatus(),
+ operationStarted(0),
+ operationCompleted(0),
+ hasResultSet(0),
+ numModifiedRows(0) {
+}
void TGetOperationStatusResp::__set_status(const TStatus& val) {
this->status = val;
@@ -9971,7 +11076,7 @@ uint32_t TGetOperationStatusResp::write(::apache::thrift::protocol::TProtocol* o
return xfer;
}
-void swap(TGetOperationStatusResp &a, TGetOperationStatusResp &b) {
+void swap(TGetOperationStatusResp &a, TGetOperationStatusResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
swap(a.operationState, b.operationState);
@@ -9987,6 +11092,53 @@ void swap(TGetOperationStatusResp &a, TGetOperationStatusResp &b) {
swap(a.__isset, b.__isset);
}
+bool TGetOperationStatusResp::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;
+ if (__isset.taskStatus != rhs.__isset.taskStatus)
+ return false;
+ else if (__isset.taskStatus && !(taskStatus == rhs.taskStatus))
+ return false;
+ if (__isset.operationStarted != rhs.__isset.operationStarted)
+ return false;
+ else if (__isset.operationStarted && !(operationStarted == rhs.operationStarted))
+ return false;
+ if (__isset.operationCompleted != rhs.__isset.operationCompleted)
+ return false;
+ else if (__isset.operationCompleted && !(operationCompleted == rhs.operationCompleted))
+ return false;
+ if (__isset.hasResultSet != rhs.__isset.hasResultSet)
+ return false;
+ else if (__isset.hasResultSet && !(hasResultSet == rhs.hasResultSet))
+ return false;
+ if (__isset.progressUpdateResponse != rhs.__isset.progressUpdateResponse)
+ return false;
+ else if (__isset.progressUpdateResponse && !(progressUpdateResponse == rhs.progressUpdateResponse))
+ return false;
+ if (__isset.numModifiedRows != rhs.__isset.numModifiedRows)
+ return false;
+ else if (__isset.numModifiedRows && !(numModifiedRows == rhs.numModifiedRows))
+ return false;
+ return true;
+}
+
TGetOperationStatusResp::TGetOperationStatusResp(const TGetOperationStatusResp& other299) {
status = other299.status;
operationState = other299.operationState;
@@ -10037,6 +11189,8 @@ void TGetOperationStatusResp::printTo(std::ostream& out) const {
TCancelOperationReq::~TCancelOperationReq() noexcept {
}
+TCancelOperationReq::TCancelOperationReq() noexcept {
+}
void TCancelOperationReq::__set_operationHandle(const TOperationHandle& val) {
this->operationHandle = val;
@@ -10106,11 +11260,18 @@ uint32_t TCancelOperationReq::write(::apache::thrift::protocol::TProtocol* oprot
return xfer;
}
-void swap(TCancelOperationReq &a, TCancelOperationReq &b) {
+void swap(TCancelOperationReq &a, TCancelOperationReq &b) noexcept {
using ::std::swap;
swap(a.operationHandle, b.operationHandle);
}
+bool TCancelOperationReq::operator==(const TCancelOperationReq & rhs) const
+{
+ if (!(operationHandle == rhs.operationHandle))
+ return false;
+ return true;
+}
+
TCancelOperationReq::TCancelOperationReq(const TCancelOperationReq& other301) {
operationHandle = other301.operationHandle;
}
@@ -10129,6 +11290,8 @@ void TCancelOperationReq::printTo(std::ostream& out) const {
TCancelOperationResp::~TCancelOperationResp() noexcept {
}
+TCancelOperationResp::TCancelOperationResp() noexcept {
+}
void TCancelOperationResp::__set_status(const TStatus& val) {
this->status = val;
@@ -10198,11 +11361,18 @@ uint32_t TCancelOperationResp::write(::apache::thrift::protocol::TProtocol* opro
return xfer;
}
-void swap(TCancelOperationResp &a, TCancelOperationResp &b) {
+void swap(TCancelOperationResp &a, TCancelOperationResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
}
+bool TCancelOperationResp::operator==(const TCancelOperationResp & rhs) const
+{
+ if (!(status == rhs.status))
+ return false;
+ return true;
+}
+
TCancelOperationResp::TCancelOperationResp(const TCancelOperationResp& other303) {
status = other303.status;
}
@@ -10221,6 +11391,8 @@ void TCancelOperationResp::printTo(std::ostream& out) const {
TCloseOperationReq::~TCloseOperationReq() noexcept {
}
+TCloseOperationReq::TCloseOperationReq() noexcept {
+}
void TCloseOperationReq::__set_operationHandle(const TOperationHandle& val) {
this->operationHandle = val;
@@ -10290,11 +11462,18 @@ uint32_t TCloseOperationReq::write(::apache::thrift::protocol::TProtocol* oprot)
return xfer;
}
-void swap(TCloseOperationReq &a, TCloseOperationReq &b) {
+void swap(TCloseOperationReq &a, TCloseOperationReq &b) noexcept {
using ::std::swap;
swap(a.operationHandle, b.operationHandle);
}
+bool TCloseOperationReq::operator==(const TCloseOperationReq & rhs) const
+{
+ if (!(operationHandle == rhs.operationHandle))
+ return false;
+ return true;
+}
+
TCloseOperationReq::TCloseOperationReq(const TCloseOperationReq& other305) {
operationHandle = other305.operationHandle;
}
@@ -10313,6 +11492,8 @@ void TCloseOperationReq::printTo(std::ostream& out) const {
TCloseOperationResp::~TCloseOperationResp() noexcept {
}
+TCloseOperationResp::TCloseOperationResp() noexcept {
+}
void TCloseOperationResp::__set_status(const TStatus& val) {
this->status = val;
@@ -10382,11 +11563,18 @@ uint32_t TCloseOperationResp::write(::apache::thrift::protocol::TProtocol* oprot
return xfer;
}
-void swap(TCloseOperationResp &a, TCloseOperationResp &b) {
+void swap(TCloseOperationResp &a, TCloseOperationResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
}
+bool TCloseOperationResp::operator==(const TCloseOperationResp & rhs) const
+{
+ if (!(status == rhs.status))
+ return false;
+ return true;
+}
+
TCloseOperationResp::TCloseOperationResp(const TCloseOperationResp& other307) {
status = other307.status;
}
@@ -10405,6 +11593,8 @@ void TCloseOperationResp::printTo(std::ostream& out) const {
TGetResultSetMetadataReq::~TGetResultSetMetadataReq() noexcept {
}
+TGetResultSetMetadataReq::TGetResultSetMetadataReq() noexcept {
+}
void TGetResultSetMetadataReq::__set_operationHandle(const TOperationHandle& val) {
this->operationHandle = val;
@@ -10474,11 +11664,18 @@ uint32_t TGetResultSetMetadataReq::write(::apache::thrift::protocol::TProtocol*
return xfer;
}
-void swap(TGetResultSetMetadataReq &a, TGetResultSetMetadataReq &b) {
+void swap(TGetResultSetMetadataReq &a, TGetResultSetMetadataReq &b) noexcept {
using ::std::swap;
swap(a.operationHandle, b.operationHandle);
}
+bool TGetResultSetMetadataReq::operator==(const TGetResultSetMetadataReq & rhs) const
+{
+ if (!(operationHandle == rhs.operationHandle))
+ return false;
+ return true;
+}
+
TGetResultSetMetadataReq::TGetResultSetMetadataReq(const TGetResultSetMetadataReq& other309) {
operationHandle = other309.operationHandle;
}
@@ -10497,6 +11694,8 @@ void TGetResultSetMetadataReq::printTo(std::ostream& out) const {
TGetResultSetMetadataResp::~TGetResultSetMetadataResp() noexcept {
}
+TGetResultSetMetadataResp::TGetResultSetMetadataResp() noexcept {
+}
void TGetResultSetMetadataResp::__set_status(const TStatus& val) {
this->status = val;
@@ -10584,13 +11783,24 @@ uint32_t TGetResultSetMetadataResp::write(::apache::thrift::protocol::TProtocol*
return xfer;
}
-void swap(TGetResultSetMetadataResp &a, TGetResultSetMetadataResp &b) {
+void swap(TGetResultSetMetadataResp &a, TGetResultSetMetadataResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
swap(a.schema, b.schema);
swap(a.__isset, b.__isset);
}
+bool TGetResultSetMetadataResp::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;
+}
+
TGetResultSetMetadataResp::TGetResultSetMetadataResp(const TGetResultSetMetadataResp& other311) {
status = other311.status;
schema = other311.schema;
@@ -10614,6 +11824,11 @@ void TGetResultSetMetadataResp::printTo(std::ostream& out) const {
TFetchResultsReq::~TFetchResultsReq() noexcept {
}
+TFetchResultsReq::TFetchResultsReq() noexcept
+ : orientation(static_cast(0)),
+ maxRows(0),
+ fetchType(0) {
+}
void TFetchResultsReq::__set_operationHandle(const TOperationHandle& val) {
this->operationHandle = val;
@@ -10741,7 +11956,7 @@ uint32_t TFetchResultsReq::write(::apache::thrift::protocol::TProtocol* oprot) c
return xfer;
}
-void swap(TFetchResultsReq &a, TFetchResultsReq &b) {
+void swap(TFetchResultsReq &a, TFetchResultsReq &b) noexcept {
using ::std::swap;
swap(a.operationHandle, b.operationHandle);
swap(a.orientation, b.orientation);
@@ -10750,6 +11965,21 @@ void swap(TFetchResultsReq &a, TFetchResultsReq &b) {
swap(a.__isset, b.__isset);
}
+bool TFetchResultsReq::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;
+}
+
TFetchResultsReq::TFetchResultsReq(const TFetchResultsReq& other314) {
operationHandle = other314.operationHandle;
orientation = other314.orientation;
@@ -10779,6 +12009,9 @@ void TFetchResultsReq::printTo(std::ostream& out) const {
TFetchResultsResp::~TFetchResultsResp() noexcept {
}
+TFetchResultsResp::TFetchResultsResp() noexcept
+ : hasMoreRows(0) {
+}
void TFetchResultsResp::__set_status(const TStatus& val) {
this->status = val;
@@ -10884,7 +12117,7 @@ uint32_t TFetchResultsResp::write(::apache::thrift::protocol::TProtocol* oprot)
return xfer;
}
-void swap(TFetchResultsResp &a, TFetchResultsResp &b) {
+void swap(TFetchResultsResp &a, TFetchResultsResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
swap(a.hasMoreRows, b.hasMoreRows);
@@ -10892,6 +12125,21 @@ void swap(TFetchResultsResp &a, TFetchResultsResp &b) {
swap(a.__isset, b.__isset);
}
+bool TFetchResultsResp::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;
+}
+
TFetchResultsResp::TFetchResultsResp(const TFetchResultsResp& other316) {
status = other316.status;
hasMoreRows = other316.hasMoreRows;
@@ -10918,6 +12166,10 @@ void TFetchResultsResp::printTo(std::ostream& out) const {
TGetDelegationTokenReq::~TGetDelegationTokenReq() noexcept {
}
+TGetDelegationTokenReq::TGetDelegationTokenReq() noexcept
+ : owner(),
+ renewer() {
+}
void TGetDelegationTokenReq::__set_sessionHandle(const TSessionHandle& val) {
this->sessionHandle = val;
@@ -11025,13 +12277,24 @@ uint32_t TGetDelegationTokenReq::write(::apache::thrift::protocol::TProtocol* op
return xfer;
}
-void swap(TGetDelegationTokenReq &a, TGetDelegationTokenReq &b) {
+void swap(TGetDelegationTokenReq &a, TGetDelegationTokenReq &b) noexcept {
using ::std::swap;
swap(a.sessionHandle, b.sessionHandle);
swap(a.owner, b.owner);
swap(a.renewer, b.renewer);
}
+bool TGetDelegationTokenReq::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;
+}
+
TGetDelegationTokenReq::TGetDelegationTokenReq(const TGetDelegationTokenReq& other318) {
sessionHandle = other318.sessionHandle;
owner = other318.owner;
@@ -11056,6 +12319,9 @@ void TGetDelegationTokenReq::printTo(std::ostream& out) const {
TGetDelegationTokenResp::~TGetDelegationTokenResp() noexcept {
}
+TGetDelegationTokenResp::TGetDelegationTokenResp() noexcept
+ : delegationToken() {
+}
void TGetDelegationTokenResp::__set_status(const TStatus& val) {
this->status = val;
@@ -11143,13 +12409,24 @@ uint32_t TGetDelegationTokenResp::write(::apache::thrift::protocol::TProtocol* o
return xfer;
}
-void swap(TGetDelegationTokenResp &a, TGetDelegationTokenResp &b) {
+void swap(TGetDelegationTokenResp &a, TGetDelegationTokenResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
swap(a.delegationToken, b.delegationToken);
swap(a.__isset, b.__isset);
}
+bool TGetDelegationTokenResp::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;
+}
+
TGetDelegationTokenResp::TGetDelegationTokenResp(const TGetDelegationTokenResp& other320) {
status = other320.status;
delegationToken = other320.delegationToken;
@@ -11173,6 +12450,9 @@ void TGetDelegationTokenResp::printTo(std::ostream& out) const {
TCancelDelegationTokenReq::~TCancelDelegationTokenReq() noexcept {
}
+TCancelDelegationTokenReq::TCancelDelegationTokenReq() noexcept
+ : delegationToken() {
+}
void TCancelDelegationTokenReq::__set_sessionHandle(const TSessionHandle& val) {
this->sessionHandle = val;
@@ -11261,12 +12541,21 @@ uint32_t TCancelDelegationTokenReq::write(::apache::thrift::protocol::TProtocol*
return xfer;
}
-void swap(TCancelDelegationTokenReq &a, TCancelDelegationTokenReq &b) {
+void swap(TCancelDelegationTokenReq &a, TCancelDelegationTokenReq &b) noexcept {
using ::std::swap;
swap(a.sessionHandle, b.sessionHandle);
swap(a.delegationToken, b.delegationToken);
}
+bool TCancelDelegationTokenReq::operator==(const TCancelDelegationTokenReq & rhs) const
+{
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ if (!(delegationToken == rhs.delegationToken))
+ return false;
+ return true;
+}
+
TCancelDelegationTokenReq::TCancelDelegationTokenReq(const TCancelDelegationTokenReq& other322) {
sessionHandle = other322.sessionHandle;
delegationToken = other322.delegationToken;
@@ -11288,6 +12577,8 @@ void TCancelDelegationTokenReq::printTo(std::ostream& out) const {
TCancelDelegationTokenResp::~TCancelDelegationTokenResp() noexcept {
}
+TCancelDelegationTokenResp::TCancelDelegationTokenResp() noexcept {
+}
void TCancelDelegationTokenResp::__set_status(const TStatus& val) {
this->status = val;
@@ -11357,11 +12648,18 @@ uint32_t TCancelDelegationTokenResp::write(::apache::thrift::protocol::TProtocol
return xfer;
}
-void swap(TCancelDelegationTokenResp &a, TCancelDelegationTokenResp &b) {
+void swap(TCancelDelegationTokenResp &a, TCancelDelegationTokenResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
}
+bool TCancelDelegationTokenResp::operator==(const TCancelDelegationTokenResp & rhs) const
+{
+ if (!(status == rhs.status))
+ return false;
+ return true;
+}
+
TCancelDelegationTokenResp::TCancelDelegationTokenResp(const TCancelDelegationTokenResp& other324) {
status = other324.status;
}
@@ -11380,6 +12678,9 @@ void TCancelDelegationTokenResp::printTo(std::ostream& out) const {
TRenewDelegationTokenReq::~TRenewDelegationTokenReq() noexcept {
}
+TRenewDelegationTokenReq::TRenewDelegationTokenReq() noexcept
+ : delegationToken() {
+}
void TRenewDelegationTokenReq::__set_sessionHandle(const TSessionHandle& val) {
this->sessionHandle = val;
@@ -11468,12 +12769,21 @@ uint32_t TRenewDelegationTokenReq::write(::apache::thrift::protocol::TProtocol*
return xfer;
}
-void swap(TRenewDelegationTokenReq &a, TRenewDelegationTokenReq &b) {
+void swap(TRenewDelegationTokenReq &a, TRenewDelegationTokenReq &b) noexcept {
using ::std::swap;
swap(a.sessionHandle, b.sessionHandle);
swap(a.delegationToken, b.delegationToken);
}
+bool TRenewDelegationTokenReq::operator==(const TRenewDelegationTokenReq & rhs) const
+{
+ if (!(sessionHandle == rhs.sessionHandle))
+ return false;
+ if (!(delegationToken == rhs.delegationToken))
+ return false;
+ return true;
+}
+
TRenewDelegationTokenReq::TRenewDelegationTokenReq(const TRenewDelegationTokenReq& other326) {
sessionHandle = other326.sessionHandle;
delegationToken = other326.delegationToken;
@@ -11495,6 +12805,8 @@ void TRenewDelegationTokenReq::printTo(std::ostream& out) const {
TRenewDelegationTokenResp::~TRenewDelegationTokenResp() noexcept {
}
+TRenewDelegationTokenResp::TRenewDelegationTokenResp() noexcept {
+}
void TRenewDelegationTokenResp::__set_status(const TStatus& val) {
this->status = val;
@@ -11564,11 +12876,18 @@ uint32_t TRenewDelegationTokenResp::write(::apache::thrift::protocol::TProtocol*
return xfer;
}
-void swap(TRenewDelegationTokenResp &a, TRenewDelegationTokenResp &b) {
+void swap(TRenewDelegationTokenResp &a, TRenewDelegationTokenResp &b) noexcept {
using ::std::swap;
swap(a.status, b.status);
}
+bool TRenewDelegationTokenResp::operator==(const TRenewDelegationTokenResp & rhs) const
+{
+ if (!(status == rhs.status))
+ return false;
+ return true;
+}
+
TRenewDelegationTokenResp::TRenewDelegationTokenResp(const TRenewDelegationTokenResp& other328) {
status = other328.status;
}
@@ -11587,6 +12906,12 @@ void TRenewDelegationTokenResp::printTo(std::ostream& out) const {
TProgressUpdateResp::~TProgressUpdateResp() noexcept {
}
+TProgressUpdateResp::TProgressUpdateResp() noexcept
+ : progressedPercentage(0),
+ status(static_cast(0)),
+ footerSummary(),
+ startTime(0) {
+}
void TProgressUpdateResp::__set_headerNames(const std::vector & val) {
this->headerNames = val;
@@ -11813,7 +13138,7 @@ uint32_t TProgressUpdateResp::write(::apache::thrift::protocol::TProtocol* oprot
return xfer;
}
-void swap(TProgressUpdateResp &a, TProgressUpdateResp &b) {
+void swap(TProgressUpdateResp &a, TProgressUpdateResp &b) noexcept {
using ::std::swap;
swap(a.headerNames, b.headerNames);
swap(a.rows, b.rows);
@@ -11823,6 +13148,23 @@ void swap(TProgressUpdateResp &a, TProgressUpdateResp &b) {
swap(a.startTime, b.startTime);
}
+bool TProgressUpdateResp::operator==(const TProgressUpdateResp & rhs) const
+{
+ if (!(headerNames == rhs.headerNames))
+ return false;
+ if (!(rows == rhs.rows))
+ return false;
+ if (!(progressedPercentage == rhs.progressedPercentage))
+ return false;
+ if (!(status == rhs.status))
+ return false;
+ if (!(footerSummary == rhs.footerSummary))
+ return false;
+ if (!(startTime == rhs.startTime))
+ return false;
+ return true;
+}
+
TProgressUpdateResp::TProgressUpdateResp(const TProgressUpdateResp& other349) {
headerNames = other349.headerNames;
rows = other349.rows;
@@ -11856,6 +13198,8 @@ void TProgressUpdateResp::printTo(std::ostream& out) const {
TGetQueryIdReq::~TGetQueryIdReq() noexcept {
}
+TGetQueryIdReq::TGetQueryIdReq() noexcept {
+}
void TGetQueryIdReq::__set_operationHandle(const TOperationHandle& val) {
this->operationHandle = val;
@@ -11925,11 +13269,18 @@ uint32_t TGetQueryIdReq::write(::apache::thrift::protocol::TProtocol* oprot) con
return xfer;
}
-void swap(TGetQueryIdReq &a, TGetQueryIdReq &b) {
+void swap(TGetQueryIdReq &a, TGetQueryIdReq &b) noexcept {
using ::std::swap;
swap(a.operationHandle, b.operationHandle);
}
+bool TGetQueryIdReq::operator==(const TGetQueryIdReq & rhs) const
+{
+ if (!(operationHandle == rhs.operationHandle))
+ return false;
+ return true;
+}
+
TGetQueryIdReq::TGetQueryIdReq(const TGetQueryIdReq& other351) {
operationHandle = other351.operationHandle;
}
@@ -11948,6 +13299,9 @@ void TGetQueryIdReq::printTo(std::ostream& out) const {
TGetQueryIdResp::~TGetQueryIdResp() noexcept {
}
+TGetQueryIdResp::TGetQueryIdResp() noexcept
+ : queryId() {
+}
void TGetQueryIdResp::__set_queryId(const std::string& val) {
this->queryId = val;
@@ -12017,11 +13371,18 @@ uint32_t TGetQueryIdResp::write(::apache::thrift::protocol::TProtocol* oprot) co
return xfer;
}
-void swap(TGetQueryIdResp &a, TGetQueryIdResp &b) {
+void swap(TGetQueryIdResp &a, TGetQueryIdResp &b) noexcept {
using ::std::swap;
swap(a.queryId, b.queryId);
}
+bool TGetQueryIdResp::operator==(const TGetQueryIdResp & rhs) const
+{
+ if (!(queryId == rhs.queryId))
+ return false;
+ return true;
+}
+
TGetQueryIdResp::TGetQueryIdResp(const TGetQueryIdResp& other353) {
queryId = other353.queryId;
}
diff --git a/service-rpc/src/gen/thrift/gen-cpp/TCLIService_types.h b/service-rpc/src/gen/thrift/gen-cpp/TCLIService_types.h
index b80d355e03a9..5245a729c5c7 100644
--- a/service-rpc/src/gen/thrift/gen-cpp/TCLIService_types.h
+++ b/service-rpc/src/gen/thrift/gen-cpp/TCLIService_types.h
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -418,10 +418,7 @@ class TTypeQualifierValue : public virtual ::apache::thrift::TBase {
TTypeQualifierValue(const TTypeQualifierValue&);
TTypeQualifierValue& operator=(const TTypeQualifierValue&);
- TTypeQualifierValue() noexcept
- : i32Value(0),
- stringValue() {
- }
+ TTypeQualifierValue() noexcept;
virtual ~TTypeQualifierValue() noexcept;
int32_t i32Value;
@@ -433,18 +430,7 @@ class TTypeQualifierValue : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TTypeQualifierValue &rhs) const {
return !(*this == rhs);
}
@@ -457,7 +443,7 @@ class TTypeQualifierValue : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TTypeQualifierValue &a, TTypeQualifierValue &b);
+void swap(TTypeQualifierValue &a, TTypeQualifierValue &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TTypeQualifierValue& obj);
@@ -467,20 +453,14 @@ class TTypeQualifiers : public virtual ::apache::thrift::TBase {
TTypeQualifiers(const TTypeQualifiers&);
TTypeQualifiers& operator=(const TTypeQualifiers&);
- TTypeQualifiers() noexcept {
- }
+ TTypeQualifiers() noexcept;
virtual ~TTypeQualifiers() noexcept;
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;
bool operator != (const TTypeQualifiers &rhs) const {
return !(*this == rhs);
}
@@ -493,7 +473,7 @@ class TTypeQualifiers : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TTypeQualifiers &a, TTypeQualifiers &b);
+void swap(TTypeQualifiers &a, TTypeQualifiers &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TTypeQualifiers& obj);
@@ -507,9 +487,7 @@ class TPrimitiveTypeEntry : public virtual ::apache::thrift::TBase {
TPrimitiveTypeEntry(const TPrimitiveTypeEntry&);
TPrimitiveTypeEntry& operator=(const TPrimitiveTypeEntry&);
- TPrimitiveTypeEntry() noexcept
- : type(static_cast(0)) {
- }
+ TPrimitiveTypeEntry() noexcept;
virtual ~TPrimitiveTypeEntry() noexcept;
/**
@@ -525,16 +503,7 @@ class TPrimitiveTypeEntry : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TPrimitiveTypeEntry &rhs) const {
return !(*this == rhs);
}
@@ -547,7 +516,7 @@ class TPrimitiveTypeEntry : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TPrimitiveTypeEntry &a, TPrimitiveTypeEntry &b);
+void swap(TPrimitiveTypeEntry &a, TPrimitiveTypeEntry &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TPrimitiveTypeEntry& obj);
@@ -557,21 +526,14 @@ class TArrayTypeEntry : public virtual ::apache::thrift::TBase {
TArrayTypeEntry(const TArrayTypeEntry&) noexcept;
TArrayTypeEntry& operator=(const TArrayTypeEntry&) noexcept;
- TArrayTypeEntry() noexcept
- : objectTypePtr(0) {
- }
+ TArrayTypeEntry() noexcept;
virtual ~TArrayTypeEntry() noexcept;
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;
bool operator != (const TArrayTypeEntry &rhs) const {
return !(*this == rhs);
}
@@ -584,7 +546,7 @@ class TArrayTypeEntry : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TArrayTypeEntry &a, TArrayTypeEntry &b);
+void swap(TArrayTypeEntry &a, TArrayTypeEntry &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TArrayTypeEntry& obj);
@@ -594,10 +556,7 @@ class TMapTypeEntry : public virtual ::apache::thrift::TBase {
TMapTypeEntry(const TMapTypeEntry&) noexcept;
TMapTypeEntry& operator=(const TMapTypeEntry&) noexcept;
- TMapTypeEntry() noexcept
- : keyTypePtr(0),
- valueTypePtr(0) {
- }
+ TMapTypeEntry() noexcept;
virtual ~TMapTypeEntry() noexcept;
TTypeEntryPtr keyTypePtr;
@@ -607,14 +566,7 @@ class TMapTypeEntry : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TMapTypeEntry &rhs) const {
return !(*this == rhs);
}
@@ -627,7 +579,7 @@ class TMapTypeEntry : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TMapTypeEntry &a, TMapTypeEntry &b);
+void swap(TMapTypeEntry &a, TMapTypeEntry &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TMapTypeEntry& obj);
@@ -637,20 +589,14 @@ class TStructTypeEntry : public virtual ::apache::thrift::TBase {
TStructTypeEntry(const TStructTypeEntry&);
TStructTypeEntry& operator=(const TStructTypeEntry&);
- TStructTypeEntry() noexcept {
- }
+ TStructTypeEntry() noexcept;
virtual ~TStructTypeEntry() noexcept;
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;
bool operator != (const TStructTypeEntry &rhs) const {
return !(*this == rhs);
}
@@ -663,7 +609,7 @@ class TStructTypeEntry : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TStructTypeEntry &a, TStructTypeEntry &b);
+void swap(TStructTypeEntry &a, TStructTypeEntry &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TStructTypeEntry& obj);
@@ -673,20 +619,14 @@ class TUnionTypeEntry : public virtual ::apache::thrift::TBase {
TUnionTypeEntry(const TUnionTypeEntry&);
TUnionTypeEntry& operator=(const TUnionTypeEntry&);
- TUnionTypeEntry() noexcept {
- }
+ TUnionTypeEntry() noexcept;
virtual ~TUnionTypeEntry() noexcept;
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;
bool operator != (const TUnionTypeEntry &rhs) const {
return !(*this == rhs);
}
@@ -699,7 +639,7 @@ class TUnionTypeEntry : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TUnionTypeEntry &a, TUnionTypeEntry &b);
+void swap(TUnionTypeEntry &a, TUnionTypeEntry &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TUnionTypeEntry& obj);
@@ -709,21 +649,14 @@ class TUserDefinedTypeEntry : public virtual ::apache::thrift::TBase {
TUserDefinedTypeEntry(const TUserDefinedTypeEntry&);
TUserDefinedTypeEntry& operator=(const TUserDefinedTypeEntry&);
- TUserDefinedTypeEntry() noexcept
- : typeClassName() {
- }
+ TUserDefinedTypeEntry() noexcept;
virtual ~TUserDefinedTypeEntry() noexcept;
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;
bool operator != (const TUserDefinedTypeEntry &rhs) const {
return !(*this == rhs);
}
@@ -736,7 +669,7 @@ class TUserDefinedTypeEntry : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TUserDefinedTypeEntry &a, TUserDefinedTypeEntry &b);
+void swap(TUserDefinedTypeEntry &a, TUserDefinedTypeEntry &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TUserDefinedTypeEntry& obj);
@@ -755,8 +688,7 @@ class TTypeEntry : public virtual ::apache::thrift::TBase {
TTypeEntry(const TTypeEntry&);
TTypeEntry& operator=(const TTypeEntry&);
- TTypeEntry() noexcept {
- }
+ TTypeEntry() noexcept;
virtual ~TTypeEntry() noexcept;
TPrimitiveTypeEntry primitiveEntry;
@@ -780,34 +712,7 @@ class TTypeEntry : public virtual ::apache::thrift::TBase {
void __set_userDefinedTypeEntry(const TUserDefinedTypeEntry& val);
- bool operator == (const TTypeEntry & rhs) const
- {
- if (__isset.primitiveEntry != rhs.__isset.primitiveEntry)
- return false;
- else if (__isset.primitiveEntry && !(primitiveEntry == rhs.primitiveEntry))
- return false;
- if (__isset.arrayEntry != rhs.__isset.arrayEntry)
- return false;
- else if (__isset.arrayEntry && !(arrayEntry == rhs.arrayEntry))
- return false;
- if (__isset.mapEntry != rhs.__isset.mapEntry)
- return false;
- else if (__isset.mapEntry && !(mapEntry == rhs.mapEntry))
- return false;
- if (__isset.structEntry != rhs.__isset.structEntry)
- return false;
- else if (__isset.structEntry && !(structEntry == rhs.structEntry))
- return false;
- if (__isset.unionEntry != rhs.__isset.unionEntry)
- return false;
- else if (__isset.unionEntry && !(unionEntry == rhs.unionEntry))
- return false;
- if (__isset.userDefinedTypeEntry != rhs.__isset.userDefinedTypeEntry)
- return false;
- else if (__isset.userDefinedTypeEntry && !(userDefinedTypeEntry == rhs.userDefinedTypeEntry))
- return false;
- return true;
- }
+ bool operator == (const TTypeEntry & rhs) const;
bool operator != (const TTypeEntry &rhs) const {
return !(*this == rhs);
}
@@ -820,7 +725,7 @@ class TTypeEntry : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TTypeEntry &a, TTypeEntry &b);
+void swap(TTypeEntry &a, TTypeEntry &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TTypeEntry& obj);
@@ -830,20 +735,14 @@ class TTypeDesc : public virtual ::apache::thrift::TBase {
TTypeDesc(const TTypeDesc&);
TTypeDesc& operator=(const TTypeDesc&);
- TTypeDesc() noexcept {
- }
+ TTypeDesc() noexcept;
virtual ~TTypeDesc() noexcept;
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;
bool operator != (const TTypeDesc &rhs) const {
return !(*this == rhs);
}
@@ -856,7 +755,7 @@ class TTypeDesc : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TTypeDesc &a, TTypeDesc &b);
+void swap(TTypeDesc &a, TTypeDesc &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TTypeDesc& obj);
@@ -870,11 +769,7 @@ class TColumnDesc : public virtual ::apache::thrift::TBase {
TColumnDesc(const TColumnDesc&);
TColumnDesc& operator=(const TColumnDesc&);
- TColumnDesc() noexcept
- : columnName(),
- position(0),
- comment() {
- }
+ TColumnDesc() noexcept;
virtual ~TColumnDesc() noexcept;
std::string columnName;
@@ -892,20 +787,7 @@ class TColumnDesc : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TColumnDesc &rhs) const {
return !(*this == rhs);
}
@@ -918,7 +800,7 @@ class TColumnDesc : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TColumnDesc &a, TColumnDesc &b);
+void swap(TColumnDesc &a, TColumnDesc &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TColumnDesc& obj);
@@ -928,20 +810,14 @@ class TTableSchema : public virtual ::apache::thrift::TBase {
TTableSchema(const TTableSchema&);
TTableSchema& operator=(const TTableSchema&);
- TTableSchema() noexcept {
- }
+ TTableSchema() noexcept;
virtual ~TTableSchema() noexcept;
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;
bool operator != (const TTableSchema &rhs) const {
return !(*this == rhs);
}
@@ -954,7 +830,7 @@ class TTableSchema : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TTableSchema &a, TTableSchema &b);
+void swap(TTableSchema &a, TTableSchema &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TTableSchema& obj);
@@ -968,9 +844,7 @@ class TBoolValue : public virtual ::apache::thrift::TBase {
TBoolValue(const TBoolValue&) noexcept;
TBoolValue& operator=(const TBoolValue&) noexcept;
- TBoolValue() noexcept
- : value(0) {
- }
+ TBoolValue() noexcept;
virtual ~TBoolValue() noexcept;
bool value;
@@ -979,14 +853,7 @@ class TBoolValue : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TBoolValue &rhs) const {
return !(*this == rhs);
}
@@ -999,7 +866,7 @@ class TBoolValue : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TBoolValue &a, TBoolValue &b);
+void swap(TBoolValue &a, TBoolValue &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TBoolValue& obj);
@@ -1013,9 +880,7 @@ class TByteValue : public virtual ::apache::thrift::TBase {
TByteValue(const TByteValue&) noexcept;
TByteValue& operator=(const TByteValue&) noexcept;
- TByteValue() noexcept
- : value(0) {
- }
+ TByteValue() noexcept;
virtual ~TByteValue() noexcept;
int8_t value;
@@ -1024,14 +889,7 @@ class TByteValue : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TByteValue &rhs) const {
return !(*this == rhs);
}
@@ -1044,7 +902,7 @@ class TByteValue : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TByteValue &a, TByteValue &b);
+void swap(TByteValue &a, TByteValue &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TByteValue& obj);
@@ -1058,9 +916,7 @@ class TI16Value : public virtual ::apache::thrift::TBase {
TI16Value(const TI16Value&) noexcept;
TI16Value& operator=(const TI16Value&) noexcept;
- TI16Value() noexcept
- : value(0) {
- }
+ TI16Value() noexcept;
virtual ~TI16Value() noexcept;
int16_t value;
@@ -1069,14 +925,7 @@ class TI16Value : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TI16Value &rhs) const {
return !(*this == rhs);
}
@@ -1089,7 +938,7 @@ class TI16Value : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TI16Value &a, TI16Value &b);
+void swap(TI16Value &a, TI16Value &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TI16Value& obj);
@@ -1103,9 +952,7 @@ class TI32Value : public virtual ::apache::thrift::TBase {
TI32Value(const TI32Value&) noexcept;
TI32Value& operator=(const TI32Value&) noexcept;
- TI32Value() noexcept
- : value(0) {
- }
+ TI32Value() noexcept;
virtual ~TI32Value() noexcept;
int32_t value;
@@ -1114,14 +961,7 @@ class TI32Value : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TI32Value &rhs) const {
return !(*this == rhs);
}
@@ -1134,7 +974,7 @@ class TI32Value : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TI32Value &a, TI32Value &b);
+void swap(TI32Value &a, TI32Value &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TI32Value& obj);
@@ -1148,9 +988,7 @@ class TI64Value : public virtual ::apache::thrift::TBase {
TI64Value(const TI64Value&) noexcept;
TI64Value& operator=(const TI64Value&) noexcept;
- TI64Value() noexcept
- : value(0) {
- }
+ TI64Value() noexcept;
virtual ~TI64Value() noexcept;
int64_t value;
@@ -1159,14 +997,7 @@ class TI64Value : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TI64Value &rhs) const {
return !(*this == rhs);
}
@@ -1179,7 +1010,7 @@ class TI64Value : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TI64Value &a, TI64Value &b);
+void swap(TI64Value &a, TI64Value &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TI64Value& obj);
@@ -1193,9 +1024,7 @@ class TDoubleValue : public virtual ::apache::thrift::TBase {
TDoubleValue(const TDoubleValue&) noexcept;
TDoubleValue& operator=(const TDoubleValue&) noexcept;
- TDoubleValue() noexcept
- : value(0) {
- }
+ TDoubleValue() noexcept;
virtual ~TDoubleValue() noexcept;
double value;
@@ -1204,14 +1033,7 @@ class TDoubleValue : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TDoubleValue &rhs) const {
return !(*this == rhs);
}
@@ -1224,7 +1046,7 @@ class TDoubleValue : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TDoubleValue &a, TDoubleValue &b);
+void swap(TDoubleValue &a, TDoubleValue &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TDoubleValue& obj);
@@ -1238,9 +1060,7 @@ class TStringValue : public virtual ::apache::thrift::TBase {
TStringValue(const TStringValue&);
TStringValue& operator=(const TStringValue&);
- TStringValue() noexcept
- : value() {
- }
+ TStringValue() noexcept;
virtual ~TStringValue() noexcept;
std::string value;
@@ -1249,14 +1069,7 @@ class TStringValue : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TStringValue &rhs) const {
return !(*this == rhs);
}
@@ -1269,7 +1082,7 @@ class TStringValue : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TStringValue &a, TStringValue &b);
+void swap(TStringValue &a, TStringValue &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TStringValue& obj);
@@ -1289,8 +1102,7 @@ class TColumnValue : public virtual ::apache::thrift::TBase {
TColumnValue(const TColumnValue&);
TColumnValue& operator=(const TColumnValue&);
- TColumnValue() noexcept {
- }
+ TColumnValue() noexcept;
virtual ~TColumnValue() noexcept;
TBoolValue boolVal;
@@ -1317,38 +1129,7 @@ class TColumnValue : public virtual ::apache::thrift::TBase {
void __set_stringVal(const TStringValue& val);
- bool operator == (const TColumnValue & rhs) const
- {
- if (__isset.boolVal != rhs.__isset.boolVal)
- return false;
- else if (__isset.boolVal && !(boolVal == rhs.boolVal))
- return false;
- if (__isset.byteVal != rhs.__isset.byteVal)
- return false;
- else if (__isset.byteVal && !(byteVal == rhs.byteVal))
- return false;
- if (__isset.i16Val != rhs.__isset.i16Val)
- return false;
- else if (__isset.i16Val && !(i16Val == rhs.i16Val))
- return false;
- if (__isset.i32Val != rhs.__isset.i32Val)
- return false;
- else if (__isset.i32Val && !(i32Val == rhs.i32Val))
- return false;
- if (__isset.i64Val != rhs.__isset.i64Val)
- return false;
- else if (__isset.i64Val && !(i64Val == rhs.i64Val))
- return false;
- if (__isset.doubleVal != rhs.__isset.doubleVal)
- return false;
- else if (__isset.doubleVal && !(doubleVal == rhs.doubleVal))
- return false;
- if (__isset.stringVal != rhs.__isset.stringVal)
- return false;
- else if (__isset.stringVal && !(stringVal == rhs.stringVal))
- return false;
- return true;
- }
+ bool operator == (const TColumnValue & rhs) const;
bool operator != (const TColumnValue &rhs) const {
return !(*this == rhs);
}
@@ -1361,7 +1142,7 @@ class TColumnValue : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TColumnValue &a, TColumnValue &b);
+void swap(TColumnValue &a, TColumnValue &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TColumnValue& obj);
@@ -1371,20 +1152,14 @@ class TRow : public virtual ::apache::thrift::TBase {
TRow(const TRow&);
TRow& operator=(const TRow&);
- TRow() noexcept {
- }
+ TRow() noexcept;
virtual ~TRow() noexcept;
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;
bool operator != (const TRow &rhs) const {
return !(*this == rhs);
}
@@ -1397,7 +1172,7 @@ class TRow : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TRow &a, TRow &b);
+void swap(TRow &a, TRow &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TRow& obj);
@@ -1407,9 +1182,7 @@ class TBoolColumn : public virtual ::apache::thrift::TBase {
TBoolColumn(const TBoolColumn&);
TBoolColumn& operator=(const TBoolColumn&);
- TBoolColumn() noexcept
- : nulls() {
- }
+ TBoolColumn() noexcept;
virtual ~TBoolColumn() noexcept;
std::vector values;
@@ -1419,14 +1192,7 @@ class TBoolColumn : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TBoolColumn &rhs) const {
return !(*this == rhs);
}
@@ -1439,7 +1205,7 @@ class TBoolColumn : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TBoolColumn &a, TBoolColumn &b);
+void swap(TBoolColumn &a, TBoolColumn &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TBoolColumn& obj);
@@ -1449,9 +1215,7 @@ class TByteColumn : public virtual ::apache::thrift::TBase {
TByteColumn(const TByteColumn&);
TByteColumn& operator=(const TByteColumn&);
- TByteColumn() noexcept
- : nulls() {
- }
+ TByteColumn() noexcept;
virtual ~TByteColumn() noexcept;
std::vector values;
@@ -1461,14 +1225,7 @@ class TByteColumn : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TByteColumn &rhs) const {
return !(*this == rhs);
}
@@ -1481,7 +1238,7 @@ class TByteColumn : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TByteColumn &a, TByteColumn &b);
+void swap(TByteColumn &a, TByteColumn &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TByteColumn& obj);
@@ -1491,9 +1248,7 @@ class TI16Column : public virtual ::apache::thrift::TBase {
TI16Column(const TI16Column&);
TI16Column& operator=(const TI16Column&);
- TI16Column() noexcept
- : nulls() {
- }
+ TI16Column() noexcept;
virtual ~TI16Column() noexcept;
std::vector values;
@@ -1503,14 +1258,7 @@ class TI16Column : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TI16Column &rhs) const {
return !(*this == rhs);
}
@@ -1523,7 +1271,7 @@ class TI16Column : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TI16Column &a, TI16Column &b);
+void swap(TI16Column &a, TI16Column &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TI16Column& obj);
@@ -1533,9 +1281,7 @@ class TI32Column : public virtual ::apache::thrift::TBase {
TI32Column(const TI32Column&);
TI32Column& operator=(const TI32Column&);
- TI32Column() noexcept
- : nulls() {
- }
+ TI32Column() noexcept;
virtual ~TI32Column() noexcept;
std::vector values;
@@ -1545,14 +1291,7 @@ class TI32Column : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TI32Column &rhs) const {
return !(*this == rhs);
}
@@ -1565,7 +1304,7 @@ class TI32Column : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TI32Column &a, TI32Column &b);
+void swap(TI32Column &a, TI32Column &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TI32Column& obj);
@@ -1575,9 +1314,7 @@ class TI64Column : public virtual ::apache::thrift::TBase {
TI64Column(const TI64Column&);
TI64Column& operator=(const TI64Column&);
- TI64Column() noexcept
- : nulls() {
- }
+ TI64Column() noexcept;
virtual ~TI64Column() noexcept;
std::vector values;
@@ -1587,14 +1324,7 @@ class TI64Column : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TI64Column &rhs) const {
return !(*this == rhs);
}
@@ -1607,7 +1337,7 @@ class TI64Column : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TI64Column &a, TI64Column &b);
+void swap(TI64Column &a, TI64Column &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TI64Column& obj);
@@ -1617,9 +1347,7 @@ class TDoubleColumn : public virtual ::apache::thrift::TBase {
TDoubleColumn(const TDoubleColumn&);
TDoubleColumn& operator=(const TDoubleColumn&);
- TDoubleColumn() noexcept
- : nulls() {
- }
+ TDoubleColumn() noexcept;
virtual ~TDoubleColumn() noexcept;
std::vector values;
@@ -1629,14 +1357,7 @@ class TDoubleColumn : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TDoubleColumn &rhs) const {
return !(*this == rhs);
}
@@ -1649,7 +1370,7 @@ class TDoubleColumn : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TDoubleColumn &a, TDoubleColumn &b);
+void swap(TDoubleColumn &a, TDoubleColumn &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TDoubleColumn& obj);
@@ -1659,9 +1380,7 @@ class TStringColumn : public virtual ::apache::thrift::TBase {
TStringColumn(const TStringColumn&);
TStringColumn& operator=(const TStringColumn&);
- TStringColumn() noexcept
- : nulls() {
- }
+ TStringColumn() noexcept;
virtual ~TStringColumn() noexcept;
std::vector values;
@@ -1671,14 +1390,7 @@ class TStringColumn : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TStringColumn &rhs) const {
return !(*this == rhs);
}
@@ -1691,7 +1403,7 @@ class TStringColumn : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TStringColumn &a, TStringColumn &b);
+void swap(TStringColumn &a, TStringColumn &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TStringColumn& obj);
@@ -1701,9 +1413,7 @@ class TBinaryColumn : public virtual ::apache::thrift::TBase {
TBinaryColumn(const TBinaryColumn&);
TBinaryColumn& operator=(const TBinaryColumn&);
- TBinaryColumn() noexcept
- : nulls() {
- }
+ TBinaryColumn() noexcept;
virtual ~TBinaryColumn() noexcept;
std::vector values;
@@ -1713,14 +1423,7 @@ class TBinaryColumn : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TBinaryColumn &rhs) const {
return !(*this == rhs);
}
@@ -1733,7 +1436,7 @@ class TBinaryColumn : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TBinaryColumn &a, TBinaryColumn &b);
+void swap(TBinaryColumn &a, TBinaryColumn &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TBinaryColumn& obj);
@@ -1754,8 +1457,7 @@ class TColumn : public virtual ::apache::thrift::TBase {
TColumn(const TColumn&);
TColumn& operator=(const TColumn&);
- TColumn() noexcept {
- }
+ TColumn() noexcept;
virtual ~TColumn() noexcept;
TBoolColumn boolVal;
@@ -1785,42 +1487,7 @@ class TColumn : public virtual ::apache::thrift::TBase {
void __set_binaryVal(const TBinaryColumn& val);
- bool operator == (const TColumn & rhs) const
- {
- if (__isset.boolVal != rhs.__isset.boolVal)
- return false;
- else if (__isset.boolVal && !(boolVal == rhs.boolVal))
- return false;
- if (__isset.byteVal != rhs.__isset.byteVal)
- return false;
- else if (__isset.byteVal && !(byteVal == rhs.byteVal))
- return false;
- if (__isset.i16Val != rhs.__isset.i16Val)
- return false;
- else if (__isset.i16Val && !(i16Val == rhs.i16Val))
- return false;
- if (__isset.i32Val != rhs.__isset.i32Val)
- return false;
- else if (__isset.i32Val && !(i32Val == rhs.i32Val))
- return false;
- if (__isset.i64Val != rhs.__isset.i64Val)
- return false;
- else if (__isset.i64Val && !(i64Val == rhs.i64Val))
- return false;
- if (__isset.doubleVal != rhs.__isset.doubleVal)
- return false;
- else if (__isset.doubleVal && !(doubleVal == rhs.doubleVal))
- return false;
- if (__isset.stringVal != rhs.__isset.stringVal)
- return false;
- else if (__isset.stringVal && !(stringVal == rhs.stringVal))
- return false;
- if (__isset.binaryVal != rhs.__isset.binaryVal)
- return false;
- else if (__isset.binaryVal && !(binaryVal == rhs.binaryVal))
- return false;
- return true;
- }
+ bool operator == (const TColumn & rhs) const;
bool operator != (const TColumn &rhs) const {
return !(*this == rhs);
}
@@ -1833,7 +1500,7 @@ class TColumn : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TColumn &a, TColumn &b);
+void swap(TColumn &a, TColumn &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TColumn& obj);
@@ -1849,11 +1516,7 @@ class TRowSet : public virtual ::apache::thrift::TBase {
TRowSet(const TRowSet&);
TRowSet& operator=(const TRowSet&);
- TRowSet() noexcept
- : startRowOffset(0),
- binaryColumns(),
- columnCount(0) {
- }
+ TRowSet() noexcept;
virtual ~TRowSet() noexcept;
int64_t startRowOffset;
@@ -1874,26 +1537,7 @@ class TRowSet : public virtual ::apache::thrift::TBase {
void __set_columnCount(const int32_t 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;
- if (__isset.binaryColumns != rhs.__isset.binaryColumns)
- return false;
- else if (__isset.binaryColumns && !(binaryColumns == rhs.binaryColumns))
- return false;
- if (__isset.columnCount != rhs.__isset.columnCount)
- return false;
- else if (__isset.columnCount && !(columnCount == rhs.columnCount))
- return false;
- return true;
- }
+ bool operator == (const TRowSet & rhs) const;
bool operator != (const TRowSet &rhs) const {
return !(*this == rhs);
}
@@ -1906,7 +1550,7 @@ class TRowSet : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TRowSet &a, TRowSet &b);
+void swap(TRowSet &a, TRowSet &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TRowSet& obj);
@@ -1923,12 +1567,7 @@ class TStatus : public virtual ::apache::thrift::TBase {
TStatus(const TStatus&);
TStatus& operator=(const TStatus&);
- TStatus() noexcept
- : statusCode(static_cast(0)),
- sqlState(),
- errorCode(0),
- errorMessage() {
- }
+ TStatus() noexcept;
virtual ~TStatus() noexcept;
/**
@@ -1953,28 +1592,7 @@ class TStatus : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TStatus &rhs) const {
return !(*this == rhs);
}
@@ -1987,7 +1605,7 @@ class TStatus : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TStatus &a, TStatus &b);
+void swap(TStatus &a, TStatus &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TStatus& obj);
@@ -1997,10 +1615,7 @@ class THandleIdentifier : public virtual ::apache::thrift::TBase {
THandleIdentifier(const THandleIdentifier&);
THandleIdentifier& operator=(const THandleIdentifier&);
- THandleIdentifier() noexcept
- : guid(),
- secret() {
- }
+ THandleIdentifier() noexcept;
virtual ~THandleIdentifier() noexcept;
std::string guid;
@@ -2010,14 +1625,7 @@ class THandleIdentifier : public virtual ::apache::thrift::TBase {
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;
bool operator != (const THandleIdentifier &rhs) const {
return !(*this == rhs);
}
@@ -2030,7 +1638,7 @@ class THandleIdentifier : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(THandleIdentifier &a, THandleIdentifier &b);
+void swap(THandleIdentifier &a, THandleIdentifier &b) noexcept;
std::ostream& operator<<(std::ostream& out, const THandleIdentifier& obj);
@@ -2040,20 +1648,14 @@ class TSessionHandle : public virtual ::apache::thrift::TBase {
TSessionHandle(const TSessionHandle&);
TSessionHandle& operator=(const TSessionHandle&);
- TSessionHandle() noexcept {
- }
+ TSessionHandle() noexcept;
virtual ~TSessionHandle() noexcept;
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;
bool operator != (const TSessionHandle &rhs) const {
return !(*this == rhs);
}
@@ -2066,7 +1668,7 @@ class TSessionHandle : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TSessionHandle &a, TSessionHandle &b);
+void swap(TSessionHandle &a, TSessionHandle &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TSessionHandle& obj);
@@ -2080,11 +1682,7 @@ class TOperationHandle : public virtual ::apache::thrift::TBase {
TOperationHandle(const TOperationHandle&);
TOperationHandle& operator=(const TOperationHandle&);
- TOperationHandle() noexcept
- : operationType(static_cast(0)),
- hasResultSet(0),
- modifiedRowCount(0) {
- }
+ TOperationHandle() noexcept;
virtual ~TOperationHandle() noexcept;
THandleIdentifier operationId;
@@ -2106,20 +1704,7 @@ class TOperationHandle : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TOperationHandle &rhs) const {
return !(*this == rhs);
}
@@ -2132,7 +1717,7 @@ class TOperationHandle : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TOperationHandle &a, TOperationHandle &b);
+void swap(TOperationHandle &a, TOperationHandle &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TOperationHandle& obj);
@@ -2148,13 +1733,7 @@ class TOpenSessionReq : public virtual ::apache::thrift::TBase {
TOpenSessionReq(const TOpenSessionReq&);
TOpenSessionReq& operator=(const TOpenSessionReq&);
- TOpenSessionReq() noexcept
- : client_protocol((TProtocolVersion::type)9),
- username(),
- password() {
- client_protocol = (TProtocolVersion::type)9;
-
- }
+ TOpenSessionReq() noexcept;
virtual ~TOpenSessionReq() noexcept;
/**
@@ -2176,24 +1755,7 @@ class TOpenSessionReq : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TOpenSessionReq &rhs) const {
return !(*this == rhs);
}
@@ -2206,7 +1768,7 @@ class TOpenSessionReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TOpenSessionReq &a, TOpenSessionReq &b);
+void swap(TOpenSessionReq &a, TOpenSessionReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TOpenSessionReq& obj);
@@ -2221,11 +1783,7 @@ class TOpenSessionResp : public virtual ::apache::thrift::TBase {
TOpenSessionResp(const TOpenSessionResp&);
TOpenSessionResp& operator=(const TOpenSessionResp&);
- TOpenSessionResp() noexcept
- : serverProtocolVersion((TProtocolVersion::type)9) {
- serverProtocolVersion = (TProtocolVersion::type)9;
-
- }
+ TOpenSessionResp() noexcept;
virtual ~TOpenSessionResp() noexcept;
TStatus status;
@@ -2247,22 +1805,7 @@ class TOpenSessionResp : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TOpenSessionResp &rhs) const {
return !(*this == rhs);
}
@@ -2275,7 +1818,7 @@ class TOpenSessionResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TOpenSessionResp &a, TOpenSessionResp &b);
+void swap(TOpenSessionResp &a, TOpenSessionResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TOpenSessionResp& obj);
@@ -2289,8 +1832,7 @@ class TSetClientInfoReq : public virtual ::apache::thrift::TBase {
TSetClientInfoReq(const TSetClientInfoReq&);
TSetClientInfoReq& operator=(const TSetClientInfoReq&);
- TSetClientInfoReq() noexcept {
- }
+ TSetClientInfoReq() noexcept;
virtual ~TSetClientInfoReq() noexcept;
TSessionHandle sessionHandle;
@@ -2302,16 +1844,7 @@ class TSetClientInfoReq : public virtual ::apache::thrift::TBase {
void __set_configuration(const std::map & val);
- bool operator == (const TSetClientInfoReq & rhs) const
- {
- if (!(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 TSetClientInfoReq & rhs) const;
bool operator != (const TSetClientInfoReq &rhs) const {
return !(*this == rhs);
}
@@ -2324,7 +1857,7 @@ class TSetClientInfoReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TSetClientInfoReq &a, TSetClientInfoReq &b);
+void swap(TSetClientInfoReq &a, TSetClientInfoReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TSetClientInfoReq& obj);
@@ -2334,20 +1867,14 @@ class TSetClientInfoResp : public virtual ::apache::thrift::TBase {
TSetClientInfoResp(const TSetClientInfoResp&);
TSetClientInfoResp& operator=(const TSetClientInfoResp&);
- TSetClientInfoResp() noexcept {
- }
+ TSetClientInfoResp() noexcept;
virtual ~TSetClientInfoResp() noexcept;
TStatus status;
void __set_status(const TStatus& val);
- bool operator == (const TSetClientInfoResp & rhs) const
- {
- if (!(status == rhs.status))
- return false;
- return true;
- }
+ bool operator == (const TSetClientInfoResp & rhs) const;
bool operator != (const TSetClientInfoResp &rhs) const {
return !(*this == rhs);
}
@@ -2360,7 +1887,7 @@ class TSetClientInfoResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TSetClientInfoResp &a, TSetClientInfoResp &b);
+void swap(TSetClientInfoResp &a, TSetClientInfoResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TSetClientInfoResp& obj);
@@ -2370,20 +1897,14 @@ class TCloseSessionReq : public virtual ::apache::thrift::TBase {
TCloseSessionReq(const TCloseSessionReq&);
TCloseSessionReq& operator=(const TCloseSessionReq&);
- TCloseSessionReq() noexcept {
- }
+ TCloseSessionReq() noexcept;
virtual ~TCloseSessionReq() noexcept;
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;
bool operator != (const TCloseSessionReq &rhs) const {
return !(*this == rhs);
}
@@ -2396,7 +1917,7 @@ class TCloseSessionReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TCloseSessionReq &a, TCloseSessionReq &b);
+void swap(TCloseSessionReq &a, TCloseSessionReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TCloseSessionReq& obj);
@@ -2406,20 +1927,14 @@ class TCloseSessionResp : public virtual ::apache::thrift::TBase {
TCloseSessionResp(const TCloseSessionResp&);
TCloseSessionResp& operator=(const TCloseSessionResp&);
- TCloseSessionResp() noexcept {
- }
+ TCloseSessionResp() noexcept;
virtual ~TCloseSessionResp() noexcept;
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;
bool operator != (const TCloseSessionResp &rhs) const {
return !(*this == rhs);
}
@@ -2432,7 +1947,7 @@ class TCloseSessionResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TCloseSessionResp &a, TCloseSessionResp &b);
+void swap(TCloseSessionResp &a, TCloseSessionResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TCloseSessionResp& obj);
@@ -2451,14 +1966,7 @@ class TGetInfoValue : public virtual ::apache::thrift::TBase {
TGetInfoValue(const TGetInfoValue&);
TGetInfoValue& operator=(const TGetInfoValue&);
- TGetInfoValue() noexcept
- : stringValue(),
- smallIntValue(0),
- integerBitmask(0),
- integerFlag(0),
- binaryValue(0),
- lenValue(0) {
- }
+ TGetInfoValue() noexcept;
virtual ~TGetInfoValue() noexcept;
std::string stringValue;
@@ -2482,34 +1990,7 @@ class TGetInfoValue : public virtual ::apache::thrift::TBase {
void __set_lenValue(const int64_t val);
- bool operator == (const TGetInfoValue & rhs) const
- {
- if (__isset.stringValue != rhs.__isset.stringValue)
- return false;
- else if (__isset.stringValue && !(stringValue == rhs.stringValue))
- return false;
- if (__isset.smallIntValue != rhs.__isset.smallIntValue)
- return false;
- else if (__isset.smallIntValue && !(smallIntValue == rhs.smallIntValue))
- return false;
- if (__isset.integerBitmask != rhs.__isset.integerBitmask)
- return false;
- else if (__isset.integerBitmask && !(integerBitmask == rhs.integerBitmask))
- return false;
- if (__isset.integerFlag != rhs.__isset.integerFlag)
- return false;
- else if (__isset.integerFlag && !(integerFlag == rhs.integerFlag))
- return false;
- if (__isset.binaryValue != rhs.__isset.binaryValue)
- return false;
- else if (__isset.binaryValue && !(binaryValue == rhs.binaryValue))
- return false;
- if (__isset.lenValue != rhs.__isset.lenValue)
- return false;
- else if (__isset.lenValue && !(lenValue == rhs.lenValue))
- return false;
- return true;
- }
+ bool operator == (const TGetInfoValue & rhs) const;
bool operator != (const TGetInfoValue &rhs) const {
return !(*this == rhs);
}
@@ -2522,7 +2003,7 @@ class TGetInfoValue : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetInfoValue &a, TGetInfoValue &b);
+void swap(TGetInfoValue &a, TGetInfoValue &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetInfoValue& obj);
@@ -2532,9 +2013,7 @@ class TGetInfoReq : public virtual ::apache::thrift::TBase {
TGetInfoReq(const TGetInfoReq&);
TGetInfoReq& operator=(const TGetInfoReq&);
- TGetInfoReq() noexcept
- : infoType(static_cast(0)) {
- }
+ TGetInfoReq() noexcept;
virtual ~TGetInfoReq() noexcept;
TSessionHandle sessionHandle;
@@ -2548,14 +2027,7 @@ class TGetInfoReq : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TGetInfoReq &rhs) const {
return !(*this == rhs);
}
@@ -2568,7 +2040,7 @@ class TGetInfoReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetInfoReq &a, TGetInfoReq &b);
+void swap(TGetInfoReq &a, TGetInfoReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetInfoReq& obj);
@@ -2578,8 +2050,7 @@ class TGetInfoResp : public virtual ::apache::thrift::TBase {
TGetInfoResp(const TGetInfoResp&);
TGetInfoResp& operator=(const TGetInfoResp&);
- TGetInfoResp() noexcept {
- }
+ TGetInfoResp() noexcept;
virtual ~TGetInfoResp() noexcept;
TStatus status;
@@ -2589,14 +2060,7 @@ class TGetInfoResp : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TGetInfoResp &rhs) const {
return !(*this == rhs);
}
@@ -2609,7 +2073,7 @@ class TGetInfoResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetInfoResp &a, TGetInfoResp &b);
+void swap(TGetInfoResp &a, TGetInfoResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetInfoResp& obj);
@@ -2625,11 +2089,7 @@ class TExecuteStatementReq : public virtual ::apache::thrift::TBase {
TExecuteStatementReq(const TExecuteStatementReq&);
TExecuteStatementReq& operator=(const TExecuteStatementReq&);
- TExecuteStatementReq() noexcept
- : statement(),
- runAsync(false),
- queryTimeout(0LL) {
- }
+ TExecuteStatementReq() noexcept;
virtual ~TExecuteStatementReq() noexcept;
TSessionHandle sessionHandle;
@@ -2650,26 +2110,7 @@ class TExecuteStatementReq : public virtual ::apache::thrift::TBase {
void __set_queryTimeout(const int64_t 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;
- if (__isset.queryTimeout != rhs.__isset.queryTimeout)
- return false;
- else if (__isset.queryTimeout && !(queryTimeout == rhs.queryTimeout))
- return false;
- return true;
- }
+ bool operator == (const TExecuteStatementReq & rhs) const;
bool operator != (const TExecuteStatementReq &rhs) const {
return !(*this == rhs);
}
@@ -2682,7 +2123,7 @@ class TExecuteStatementReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TExecuteStatementReq &a, TExecuteStatementReq &b);
+void swap(TExecuteStatementReq &a, TExecuteStatementReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TExecuteStatementReq& obj);
@@ -2696,8 +2137,7 @@ class TExecuteStatementResp : public virtual ::apache::thrift::TBase {
TExecuteStatementResp(const TExecuteStatementResp&);
TExecuteStatementResp& operator=(const TExecuteStatementResp&);
- TExecuteStatementResp() noexcept {
- }
+ TExecuteStatementResp() noexcept;
virtual ~TExecuteStatementResp() noexcept;
TStatus status;
@@ -2709,16 +2149,7 @@ class TExecuteStatementResp : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TExecuteStatementResp &rhs) const {
return !(*this == rhs);
}
@@ -2731,7 +2162,7 @@ class TExecuteStatementResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TExecuteStatementResp &a, TExecuteStatementResp &b);
+void swap(TExecuteStatementResp &a, TExecuteStatementResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TExecuteStatementResp& obj);
@@ -2741,20 +2172,14 @@ class TGetTypeInfoReq : public virtual ::apache::thrift::TBase {
TGetTypeInfoReq(const TGetTypeInfoReq&);
TGetTypeInfoReq& operator=(const TGetTypeInfoReq&);
- TGetTypeInfoReq() noexcept {
- }
+ TGetTypeInfoReq() noexcept;
virtual ~TGetTypeInfoReq() noexcept;
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;
bool operator != (const TGetTypeInfoReq &rhs) const {
return !(*this == rhs);
}
@@ -2767,7 +2192,7 @@ class TGetTypeInfoReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetTypeInfoReq &a, TGetTypeInfoReq &b);
+void swap(TGetTypeInfoReq &a, TGetTypeInfoReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetTypeInfoReq& obj);
@@ -2781,8 +2206,7 @@ class TGetTypeInfoResp : public virtual ::apache::thrift::TBase {
TGetTypeInfoResp(const TGetTypeInfoResp&);
TGetTypeInfoResp& operator=(const TGetTypeInfoResp&);
- TGetTypeInfoResp() noexcept {
- }
+ TGetTypeInfoResp() noexcept;
virtual ~TGetTypeInfoResp() noexcept;
TStatus status;
@@ -2794,16 +2218,7 @@ class TGetTypeInfoResp : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TGetTypeInfoResp &rhs) const {
return !(*this == rhs);
}
@@ -2816,7 +2231,7 @@ class TGetTypeInfoResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetTypeInfoResp &a, TGetTypeInfoResp &b);
+void swap(TGetTypeInfoResp &a, TGetTypeInfoResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetTypeInfoResp& obj);
@@ -2831,11 +2246,7 @@ class TUploadDataReq : public virtual ::apache::thrift::TBase {
TUploadDataReq(const TUploadDataReq&);
TUploadDataReq& operator=(const TUploadDataReq&);
- TUploadDataReq() noexcept
- : tableName(),
- path(),
- values() {
- }
+ TUploadDataReq() noexcept;
virtual ~TUploadDataReq() noexcept;
TSessionHandle sessionHandle;
@@ -2853,22 +2264,7 @@ class TUploadDataReq : public virtual ::apache::thrift::TBase {
void __set_values(const std::string& val);
- bool operator == (const TUploadDataReq & rhs) const
- {
- if (!(sessionHandle == rhs.sessionHandle))
- return false;
- if (__isset.tableName != rhs.__isset.tableName)
- return false;
- else if (__isset.tableName && !(tableName == rhs.tableName))
- return false;
- if (__isset.path != rhs.__isset.path)
- return false;
- else if (__isset.path && !(path == rhs.path))
- return false;
- if (!(values == rhs.values))
- return false;
- return true;
- }
+ bool operator == (const TUploadDataReq & rhs) const;
bool operator != (const TUploadDataReq &rhs) const {
return !(*this == rhs);
}
@@ -2881,7 +2277,7 @@ class TUploadDataReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TUploadDataReq &a, TUploadDataReq &b);
+void swap(TUploadDataReq &a, TUploadDataReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TUploadDataReq& obj);
@@ -2891,8 +2287,7 @@ class TUploadDataResp : public virtual ::apache::thrift::TBase {
TUploadDataResp(const TUploadDataResp&);
TUploadDataResp& operator=(const TUploadDataResp&);
- TUploadDataResp() noexcept {
- }
+ TUploadDataResp() noexcept;
virtual ~TUploadDataResp() noexcept;
TStatus status;
@@ -2902,14 +2297,7 @@ class TUploadDataResp : public virtual ::apache::thrift::TBase {
void __set_operationHandle(const TOperationHandle& val);
- bool operator == (const TUploadDataResp & rhs) const
- {
- if (!(status == rhs.status))
- return false;
- if (!(operationHandle == rhs.operationHandle))
- return false;
- return true;
- }
+ bool operator == (const TUploadDataResp & rhs) const;
bool operator != (const TUploadDataResp &rhs) const {
return !(*this == rhs);
}
@@ -2922,7 +2310,7 @@ class TUploadDataResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TUploadDataResp &a, TUploadDataResp &b);
+void swap(TUploadDataResp &a, TUploadDataResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TUploadDataResp& obj);
@@ -2939,11 +2327,7 @@ class TDownloadDataReq : public virtual ::apache::thrift::TBase {
TDownloadDataReq(const TDownloadDataReq&);
TDownloadDataReq& operator=(const TDownloadDataReq&);
- TDownloadDataReq() noexcept
- : tableName(),
- query(),
- format() {
- }
+ TDownloadDataReq() noexcept;
virtual ~TDownloadDataReq() noexcept;
TSessionHandle sessionHandle;
@@ -2964,28 +2348,7 @@ class TDownloadDataReq : public virtual ::apache::thrift::TBase {
void __set_downloadOptions(const std::map & val);
- bool operator == (const TDownloadDataReq & rhs) const
- {
- if (!(sessionHandle == rhs.sessionHandle))
- return false;
- if (__isset.tableName != rhs.__isset.tableName)
- return false;
- else if (__isset.tableName && !(tableName == rhs.tableName))
- return false;
- if (__isset.query != rhs.__isset.query)
- return false;
- else if (__isset.query && !(query == rhs.query))
- return false;
- if (__isset.format != rhs.__isset.format)
- return false;
- else if (__isset.format && !(format == rhs.format))
- return false;
- if (__isset.downloadOptions != rhs.__isset.downloadOptions)
- return false;
- else if (__isset.downloadOptions && !(downloadOptions == rhs.downloadOptions))
- return false;
- return true;
- }
+ bool operator == (const TDownloadDataReq & rhs) const;
bool operator != (const TDownloadDataReq &rhs) const {
return !(*this == rhs);
}
@@ -2998,7 +2361,7 @@ class TDownloadDataReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TDownloadDataReq &a, TDownloadDataReq &b);
+void swap(TDownloadDataReq &a, TDownloadDataReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TDownloadDataReq& obj);
@@ -3008,8 +2371,7 @@ class TDownloadDataResp : public virtual ::apache::thrift::TBase {
TDownloadDataResp(const TDownloadDataResp&);
TDownloadDataResp& operator=(const TDownloadDataResp&);
- TDownloadDataResp() noexcept {
- }
+ TDownloadDataResp() noexcept;
virtual ~TDownloadDataResp() noexcept;
TStatus status;
@@ -3019,14 +2381,7 @@ class TDownloadDataResp : public virtual ::apache::thrift::TBase {
void __set_operationHandle(const TOperationHandle& val);
- bool operator == (const TDownloadDataResp & rhs) const
- {
- if (!(status == rhs.status))
- return false;
- if (!(operationHandle == rhs.operationHandle))
- return false;
- return true;
- }
+ bool operator == (const TDownloadDataResp & rhs) const;
bool operator != (const TDownloadDataResp &rhs) const {
return !(*this == rhs);
}
@@ -3039,7 +2394,7 @@ class TDownloadDataResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TDownloadDataResp &a, TDownloadDataResp &b);
+void swap(TDownloadDataResp &a, TDownloadDataResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TDownloadDataResp& obj);
@@ -3049,20 +2404,14 @@ class TGetCatalogsReq : public virtual ::apache::thrift::TBase {
TGetCatalogsReq(const TGetCatalogsReq&);
TGetCatalogsReq& operator=(const TGetCatalogsReq&);
- TGetCatalogsReq() noexcept {
- }
+ TGetCatalogsReq() noexcept;
virtual ~TGetCatalogsReq() noexcept;
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;
bool operator != (const TGetCatalogsReq &rhs) const {
return !(*this == rhs);
}
@@ -3075,7 +2424,7 @@ class TGetCatalogsReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetCatalogsReq &a, TGetCatalogsReq &b);
+void swap(TGetCatalogsReq &a, TGetCatalogsReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetCatalogsReq& obj);
@@ -3089,8 +2438,7 @@ class TGetCatalogsResp : public virtual ::apache::thrift::TBase {
TGetCatalogsResp(const TGetCatalogsResp&);
TGetCatalogsResp& operator=(const TGetCatalogsResp&);
- TGetCatalogsResp() noexcept {
- }
+ TGetCatalogsResp() noexcept;
virtual ~TGetCatalogsResp() noexcept;
TStatus status;
@@ -3102,16 +2450,7 @@ class TGetCatalogsResp : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TGetCatalogsResp &rhs) const {
return !(*this == rhs);
}
@@ -3124,7 +2463,7 @@ class TGetCatalogsResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetCatalogsResp &a, TGetCatalogsResp &b);
+void swap(TGetCatalogsResp &a, TGetCatalogsResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetCatalogsResp& obj);
@@ -3139,10 +2478,7 @@ class TGetSchemasReq : public virtual ::apache::thrift::TBase {
TGetSchemasReq(const TGetSchemasReq&);
TGetSchemasReq& operator=(const TGetSchemasReq&);
- TGetSchemasReq() noexcept
- : catalogName(),
- schemaName() {
- }
+ TGetSchemasReq() noexcept;
virtual ~TGetSchemasReq() noexcept;
TSessionHandle sessionHandle;
@@ -3157,20 +2493,7 @@ class TGetSchemasReq : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TGetSchemasReq &rhs) const {
return !(*this == rhs);
}
@@ -3183,7 +2506,7 @@ class TGetSchemasReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetSchemasReq &a, TGetSchemasReq &b);
+void swap(TGetSchemasReq &a, TGetSchemasReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetSchemasReq& obj);
@@ -3197,8 +2520,7 @@ class TGetSchemasResp : public virtual ::apache::thrift::TBase {
TGetSchemasResp(const TGetSchemasResp&);
TGetSchemasResp& operator=(const TGetSchemasResp&);
- TGetSchemasResp() noexcept {
- }
+ TGetSchemasResp() noexcept;
virtual ~TGetSchemasResp() noexcept;
TStatus status;
@@ -3210,16 +2532,7 @@ class TGetSchemasResp : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TGetSchemasResp &rhs) const {
return !(*this == rhs);
}
@@ -3232,7 +2545,7 @@ class TGetSchemasResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetSchemasResp &a, TGetSchemasResp &b);
+void swap(TGetSchemasResp &a, TGetSchemasResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetSchemasResp& obj);
@@ -3249,11 +2562,7 @@ class TGetTablesReq : public virtual ::apache::thrift::TBase {
TGetTablesReq(const TGetTablesReq&);
TGetTablesReq& operator=(const TGetTablesReq&);
- TGetTablesReq() noexcept
- : catalogName(),
- schemaName(),
- tableName() {
- }
+ TGetTablesReq() noexcept;
virtual ~TGetTablesReq() noexcept;
TSessionHandle sessionHandle;
@@ -3274,28 +2583,7 @@ class TGetTablesReq : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TGetTablesReq &rhs) const {
return !(*this == rhs);
}
@@ -3308,7 +2596,7 @@ class TGetTablesReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetTablesReq &a, TGetTablesReq &b);
+void swap(TGetTablesReq &a, TGetTablesReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetTablesReq& obj);
@@ -3322,8 +2610,7 @@ class TGetTablesResp : public virtual ::apache::thrift::TBase {
TGetTablesResp(const TGetTablesResp&);
TGetTablesResp& operator=(const TGetTablesResp&);
- TGetTablesResp() noexcept {
- }
+ TGetTablesResp() noexcept;
virtual ~TGetTablesResp() noexcept;
TStatus status;
@@ -3335,16 +2622,7 @@ class TGetTablesResp : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TGetTablesResp &rhs) const {
return !(*this == rhs);
}
@@ -3357,7 +2635,7 @@ class TGetTablesResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetTablesResp &a, TGetTablesResp &b);
+void swap(TGetTablesResp &a, TGetTablesResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetTablesResp& obj);
@@ -3367,20 +2645,14 @@ class TGetTableTypesReq : public virtual ::apache::thrift::TBase {
TGetTableTypesReq(const TGetTableTypesReq&);
TGetTableTypesReq& operator=(const TGetTableTypesReq&);
- TGetTableTypesReq() noexcept {
- }
+ TGetTableTypesReq() noexcept;
virtual ~TGetTableTypesReq() noexcept;
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;
bool operator != (const TGetTableTypesReq &rhs) const {
return !(*this == rhs);
}
@@ -3393,7 +2665,7 @@ class TGetTableTypesReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetTableTypesReq &a, TGetTableTypesReq &b);
+void swap(TGetTableTypesReq &a, TGetTableTypesReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetTableTypesReq& obj);
@@ -3407,8 +2679,7 @@ class TGetTableTypesResp : public virtual ::apache::thrift::TBase {
TGetTableTypesResp(const TGetTableTypesResp&);
TGetTableTypesResp& operator=(const TGetTableTypesResp&);
- TGetTableTypesResp() noexcept {
- }
+ TGetTableTypesResp() noexcept;
virtual ~TGetTableTypesResp() noexcept;
TStatus status;
@@ -3420,16 +2691,7 @@ class TGetTableTypesResp : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TGetTableTypesResp &rhs) const {
return !(*this == rhs);
}
@@ -3442,7 +2704,7 @@ class TGetTableTypesResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetTableTypesResp &a, TGetTableTypesResp &b);
+void swap(TGetTableTypesResp &a, TGetTableTypesResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetTableTypesResp& obj);
@@ -3459,12 +2721,7 @@ class TGetColumnsReq : public virtual ::apache::thrift::TBase {
TGetColumnsReq(const TGetColumnsReq&);
TGetColumnsReq& operator=(const TGetColumnsReq&);
- TGetColumnsReq() noexcept
- : catalogName(),
- schemaName(),
- tableName(),
- columnName() {
- }
+ TGetColumnsReq() noexcept;
virtual ~TGetColumnsReq() noexcept;
TSessionHandle sessionHandle;
@@ -3485,28 +2742,7 @@ class TGetColumnsReq : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TGetColumnsReq &rhs) const {
return !(*this == rhs);
}
@@ -3519,7 +2755,7 @@ class TGetColumnsReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetColumnsReq &a, TGetColumnsReq &b);
+void swap(TGetColumnsReq &a, TGetColumnsReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetColumnsReq& obj);
@@ -3533,8 +2769,7 @@ class TGetColumnsResp : public virtual ::apache::thrift::TBase {
TGetColumnsResp(const TGetColumnsResp&);
TGetColumnsResp& operator=(const TGetColumnsResp&);
- TGetColumnsResp() noexcept {
- }
+ TGetColumnsResp() noexcept;
virtual ~TGetColumnsResp() noexcept;
TStatus status;
@@ -3546,16 +2781,7 @@ class TGetColumnsResp : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TGetColumnsResp &rhs) const {
return !(*this == rhs);
}
@@ -3568,7 +2794,7 @@ class TGetColumnsResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetColumnsResp &a, TGetColumnsResp &b);
+void swap(TGetColumnsResp &a, TGetColumnsResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetColumnsResp& obj);
@@ -3583,11 +2809,7 @@ class TGetFunctionsReq : public virtual ::apache::thrift::TBase {
TGetFunctionsReq(const TGetFunctionsReq&);
TGetFunctionsReq& operator=(const TGetFunctionsReq&);
- TGetFunctionsReq() noexcept
- : catalogName(),
- schemaName(),
- functionName() {
- }
+ TGetFunctionsReq() noexcept;
virtual ~TGetFunctionsReq() noexcept;
TSessionHandle sessionHandle;
@@ -3605,22 +2827,7 @@ class TGetFunctionsReq : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TGetFunctionsReq &rhs) const {
return !(*this == rhs);
}
@@ -3633,7 +2840,7 @@ class TGetFunctionsReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetFunctionsReq &a, TGetFunctionsReq &b);
+void swap(TGetFunctionsReq &a, TGetFunctionsReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetFunctionsReq& obj);
@@ -3647,8 +2854,7 @@ class TGetFunctionsResp : public virtual ::apache::thrift::TBase {
TGetFunctionsResp(const TGetFunctionsResp&);
TGetFunctionsResp& operator=(const TGetFunctionsResp&);
- TGetFunctionsResp() noexcept {
- }
+ TGetFunctionsResp() noexcept;
virtual ~TGetFunctionsResp() noexcept;
TStatus status;
@@ -3660,16 +2866,7 @@ class TGetFunctionsResp : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TGetFunctionsResp &rhs) const {
return !(*this == rhs);
}
@@ -3682,7 +2879,7 @@ class TGetFunctionsResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetFunctionsResp &a, TGetFunctionsResp &b);
+void swap(TGetFunctionsResp &a, TGetFunctionsResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetFunctionsResp& obj);
@@ -3698,11 +2895,7 @@ class TGetPrimaryKeysReq : public virtual ::apache::thrift::TBase {
TGetPrimaryKeysReq(const TGetPrimaryKeysReq&);
TGetPrimaryKeysReq& operator=(const TGetPrimaryKeysReq&);
- TGetPrimaryKeysReq() noexcept
- : catalogName(),
- schemaName(),
- tableName() {
- }
+ TGetPrimaryKeysReq() noexcept;
virtual ~TGetPrimaryKeysReq() noexcept;
TSessionHandle sessionHandle;
@@ -3720,24 +2913,7 @@ class TGetPrimaryKeysReq : public virtual ::apache::thrift::TBase {
void __set_tableName(const TIdentifier& val);
- bool operator == (const TGetPrimaryKeysReq & 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;
- return true;
- }
+ bool operator == (const TGetPrimaryKeysReq & rhs) const;
bool operator != (const TGetPrimaryKeysReq &rhs) const {
return !(*this == rhs);
}
@@ -3750,7 +2926,7 @@ class TGetPrimaryKeysReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetPrimaryKeysReq &a, TGetPrimaryKeysReq &b);
+void swap(TGetPrimaryKeysReq &a, TGetPrimaryKeysReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetPrimaryKeysReq& obj);
@@ -3764,8 +2940,7 @@ class TGetPrimaryKeysResp : public virtual ::apache::thrift::TBase {
TGetPrimaryKeysResp(const TGetPrimaryKeysResp&);
TGetPrimaryKeysResp& operator=(const TGetPrimaryKeysResp&);
- TGetPrimaryKeysResp() noexcept {
- }
+ TGetPrimaryKeysResp() noexcept;
virtual ~TGetPrimaryKeysResp() noexcept;
TStatus status;
@@ -3777,16 +2952,7 @@ class TGetPrimaryKeysResp : public virtual ::apache::thrift::TBase {
void __set_operationHandle(const TOperationHandle& val);
- bool operator == (const TGetPrimaryKeysResp & 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 TGetPrimaryKeysResp & rhs) const;
bool operator != (const TGetPrimaryKeysResp &rhs) const {
return !(*this == rhs);
}
@@ -3799,7 +2965,7 @@ class TGetPrimaryKeysResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetPrimaryKeysResp &a, TGetPrimaryKeysResp &b);
+void swap(TGetPrimaryKeysResp &a, TGetPrimaryKeysResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetPrimaryKeysResp& obj);
@@ -3818,14 +2984,7 @@ class TGetCrossReferenceReq : public virtual ::apache::thrift::TBase {
TGetCrossReferenceReq(const TGetCrossReferenceReq&);
TGetCrossReferenceReq& operator=(const TGetCrossReferenceReq&);
- TGetCrossReferenceReq() noexcept
- : parentCatalogName(),
- parentSchemaName(),
- parentTableName(),
- foreignCatalogName(),
- foreignSchemaName(),
- foreignTableName() {
- }
+ TGetCrossReferenceReq() noexcept;
virtual ~TGetCrossReferenceReq() noexcept;
TSessionHandle sessionHandle;
@@ -3852,36 +3011,7 @@ class TGetCrossReferenceReq : public virtual ::apache::thrift::TBase {
void __set_foreignTableName(const TIdentifier& val);
- bool operator == (const TGetCrossReferenceReq & rhs) const
- {
- if (!(sessionHandle == rhs.sessionHandle))
- return false;
- if (__isset.parentCatalogName != rhs.__isset.parentCatalogName)
- return false;
- else if (__isset.parentCatalogName && !(parentCatalogName == rhs.parentCatalogName))
- return false;
- if (__isset.parentSchemaName != rhs.__isset.parentSchemaName)
- return false;
- else if (__isset.parentSchemaName && !(parentSchemaName == rhs.parentSchemaName))
- return false;
- if (__isset.parentTableName != rhs.__isset.parentTableName)
- return false;
- else if (__isset.parentTableName && !(parentTableName == rhs.parentTableName))
- return false;
- if (__isset.foreignCatalogName != rhs.__isset.foreignCatalogName)
- return false;
- else if (__isset.foreignCatalogName && !(foreignCatalogName == rhs.foreignCatalogName))
- return false;
- if (__isset.foreignSchemaName != rhs.__isset.foreignSchemaName)
- return false;
- else if (__isset.foreignSchemaName && !(foreignSchemaName == rhs.foreignSchemaName))
- return false;
- if (__isset.foreignTableName != rhs.__isset.foreignTableName)
- return false;
- else if (__isset.foreignTableName && !(foreignTableName == rhs.foreignTableName))
- return false;
- return true;
- }
+ bool operator == (const TGetCrossReferenceReq & rhs) const;
bool operator != (const TGetCrossReferenceReq &rhs) const {
return !(*this == rhs);
}
@@ -3894,7 +3024,7 @@ class TGetCrossReferenceReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetCrossReferenceReq &a, TGetCrossReferenceReq &b);
+void swap(TGetCrossReferenceReq &a, TGetCrossReferenceReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetCrossReferenceReq& obj);
@@ -3908,8 +3038,7 @@ class TGetCrossReferenceResp : public virtual ::apache::thrift::TBase {
TGetCrossReferenceResp(const TGetCrossReferenceResp&);
TGetCrossReferenceResp& operator=(const TGetCrossReferenceResp&);
- TGetCrossReferenceResp() noexcept {
- }
+ TGetCrossReferenceResp() noexcept;
virtual ~TGetCrossReferenceResp() noexcept;
TStatus status;
@@ -3921,16 +3050,7 @@ class TGetCrossReferenceResp : public virtual ::apache::thrift::TBase {
void __set_operationHandle(const TOperationHandle& val);
- bool operator == (const TGetCrossReferenceResp & 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 TGetCrossReferenceResp & rhs) const;
bool operator != (const TGetCrossReferenceResp &rhs) const {
return !(*this == rhs);
}
@@ -3943,7 +3063,7 @@ class TGetCrossReferenceResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetCrossReferenceResp &a, TGetCrossReferenceResp &b);
+void swap(TGetCrossReferenceResp &a, TGetCrossReferenceResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetCrossReferenceResp& obj);
@@ -3957,9 +3077,7 @@ class TGetOperationStatusReq : public virtual ::apache::thrift::TBase {
TGetOperationStatusReq(const TGetOperationStatusReq&);
TGetOperationStatusReq& operator=(const TGetOperationStatusReq&);
- TGetOperationStatusReq() noexcept
- : getProgressUpdate(0) {
- }
+ TGetOperationStatusReq() noexcept;
virtual ~TGetOperationStatusReq() noexcept;
TOperationHandle operationHandle;
@@ -3971,16 +3089,7 @@ class TGetOperationStatusReq : public virtual ::apache::thrift::TBase {
void __set_getProgressUpdate(const bool val);
- bool operator == (const TGetOperationStatusReq & rhs) const
- {
- if (!(operationHandle == rhs.operationHandle))
- return false;
- if (__isset.getProgressUpdate != rhs.__isset.getProgressUpdate)
- return false;
- else if (__isset.getProgressUpdate && !(getProgressUpdate == rhs.getProgressUpdate))
- return false;
- return true;
- }
+ bool operator == (const TGetOperationStatusReq & rhs) const;
bool operator != (const TGetOperationStatusReq &rhs) const {
return !(*this == rhs);
}
@@ -3993,7 +3102,7 @@ class TGetOperationStatusReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetOperationStatusReq &a, TGetOperationStatusReq &b);
+void swap(TGetOperationStatusReq &a, TGetOperationStatusReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetOperationStatusReq& obj);
@@ -4016,17 +3125,7 @@ class TGetOperationStatusResp : public virtual ::apache::thrift::TBase {
TGetOperationStatusResp(const TGetOperationStatusResp&);
TGetOperationStatusResp& operator=(const TGetOperationStatusResp&);
- TGetOperationStatusResp() noexcept
- : operationState(static_cast(0)),
- sqlState(),
- errorCode(0),
- errorMessage(),
- taskStatus(),
- operationStarted(0),
- operationCompleted(0),
- hasResultSet(0),
- numModifiedRows(0) {
- }
+ TGetOperationStatusResp() noexcept;
virtual ~TGetOperationStatusResp() noexcept;
TStatus status;
@@ -4069,52 +3168,7 @@ class TGetOperationStatusResp : public virtual ::apache::thrift::TBase {
void __set_numModifiedRows(const int64_t 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;
- if (__isset.taskStatus != rhs.__isset.taskStatus)
- return false;
- else if (__isset.taskStatus && !(taskStatus == rhs.taskStatus))
- return false;
- if (__isset.operationStarted != rhs.__isset.operationStarted)
- return false;
- else if (__isset.operationStarted && !(operationStarted == rhs.operationStarted))
- return false;
- if (__isset.operationCompleted != rhs.__isset.operationCompleted)
- return false;
- else if (__isset.operationCompleted && !(operationCompleted == rhs.operationCompleted))
- return false;
- if (__isset.hasResultSet != rhs.__isset.hasResultSet)
- return false;
- else if (__isset.hasResultSet && !(hasResultSet == rhs.hasResultSet))
- return false;
- if (__isset.progressUpdateResponse != rhs.__isset.progressUpdateResponse)
- return false;
- else if (__isset.progressUpdateResponse && !(progressUpdateResponse == rhs.progressUpdateResponse))
- return false;
- if (__isset.numModifiedRows != rhs.__isset.numModifiedRows)
- return false;
- else if (__isset.numModifiedRows && !(numModifiedRows == rhs.numModifiedRows))
- return false;
- return true;
- }
+ bool operator == (const TGetOperationStatusResp & rhs) const;
bool operator != (const TGetOperationStatusResp &rhs) const {
return !(*this == rhs);
}
@@ -4127,7 +3181,7 @@ class TGetOperationStatusResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetOperationStatusResp &a, TGetOperationStatusResp &b);
+void swap(TGetOperationStatusResp &a, TGetOperationStatusResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetOperationStatusResp& obj);
@@ -4137,20 +3191,14 @@ class TCancelOperationReq : public virtual ::apache::thrift::TBase {
TCancelOperationReq(const TCancelOperationReq&);
TCancelOperationReq& operator=(const TCancelOperationReq&);
- TCancelOperationReq() noexcept {
- }
+ TCancelOperationReq() noexcept;
virtual ~TCancelOperationReq() noexcept;
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;
bool operator != (const TCancelOperationReq &rhs) const {
return !(*this == rhs);
}
@@ -4163,7 +3211,7 @@ class TCancelOperationReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TCancelOperationReq &a, TCancelOperationReq &b);
+void swap(TCancelOperationReq &a, TCancelOperationReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TCancelOperationReq& obj);
@@ -4173,20 +3221,14 @@ class TCancelOperationResp : public virtual ::apache::thrift::TBase {
TCancelOperationResp(const TCancelOperationResp&);
TCancelOperationResp& operator=(const TCancelOperationResp&);
- TCancelOperationResp() noexcept {
- }
+ TCancelOperationResp() noexcept;
virtual ~TCancelOperationResp() noexcept;
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;
bool operator != (const TCancelOperationResp &rhs) const {
return !(*this == rhs);
}
@@ -4199,7 +3241,7 @@ class TCancelOperationResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TCancelOperationResp &a, TCancelOperationResp &b);
+void swap(TCancelOperationResp &a, TCancelOperationResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TCancelOperationResp& obj);
@@ -4209,20 +3251,14 @@ class TCloseOperationReq : public virtual ::apache::thrift::TBase {
TCloseOperationReq(const TCloseOperationReq&);
TCloseOperationReq& operator=(const TCloseOperationReq&);
- TCloseOperationReq() noexcept {
- }
+ TCloseOperationReq() noexcept;
virtual ~TCloseOperationReq() noexcept;
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;
bool operator != (const TCloseOperationReq &rhs) const {
return !(*this == rhs);
}
@@ -4235,7 +3271,7 @@ class TCloseOperationReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TCloseOperationReq &a, TCloseOperationReq &b);
+void swap(TCloseOperationReq &a, TCloseOperationReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TCloseOperationReq& obj);
@@ -4245,20 +3281,14 @@ class TCloseOperationResp : public virtual ::apache::thrift::TBase {
TCloseOperationResp(const TCloseOperationResp&);
TCloseOperationResp& operator=(const TCloseOperationResp&);
- TCloseOperationResp() noexcept {
- }
+ TCloseOperationResp() noexcept;
virtual ~TCloseOperationResp() noexcept;
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;
bool operator != (const TCloseOperationResp &rhs) const {
return !(*this == rhs);
}
@@ -4271,7 +3301,7 @@ class TCloseOperationResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TCloseOperationResp &a, TCloseOperationResp &b);
+void swap(TCloseOperationResp &a, TCloseOperationResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TCloseOperationResp& obj);
@@ -4281,20 +3311,14 @@ class TGetResultSetMetadataReq : public virtual ::apache::thrift::TBase {
TGetResultSetMetadataReq(const TGetResultSetMetadataReq&);
TGetResultSetMetadataReq& operator=(const TGetResultSetMetadataReq&);
- TGetResultSetMetadataReq() noexcept {
- }
+ TGetResultSetMetadataReq() noexcept;
virtual ~TGetResultSetMetadataReq() noexcept;
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;
bool operator != (const TGetResultSetMetadataReq &rhs) const {
return !(*this == rhs);
}
@@ -4307,7 +3331,7 @@ class TGetResultSetMetadataReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetResultSetMetadataReq &a, TGetResultSetMetadataReq &b);
+void swap(TGetResultSetMetadataReq &a, TGetResultSetMetadataReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetResultSetMetadataReq& obj);
@@ -4321,8 +3345,7 @@ class TGetResultSetMetadataResp : public virtual ::apache::thrift::TBase {
TGetResultSetMetadataResp(const TGetResultSetMetadataResp&);
TGetResultSetMetadataResp& operator=(const TGetResultSetMetadataResp&);
- TGetResultSetMetadataResp() noexcept {
- }
+ TGetResultSetMetadataResp() noexcept;
virtual ~TGetResultSetMetadataResp() noexcept;
TStatus status;
@@ -4334,16 +3357,7 @@ class TGetResultSetMetadataResp : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TGetResultSetMetadataResp &rhs) const {
return !(*this == rhs);
}
@@ -4356,7 +3370,7 @@ class TGetResultSetMetadataResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetResultSetMetadataResp &a, TGetResultSetMetadataResp &b);
+void swap(TGetResultSetMetadataResp &a, TGetResultSetMetadataResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetResultSetMetadataResp& obj);
@@ -4370,13 +3384,7 @@ class TFetchResultsReq : public virtual ::apache::thrift::TBase {
TFetchResultsReq(const TFetchResultsReq&);
TFetchResultsReq& operator=(const TFetchResultsReq&);
- TFetchResultsReq() noexcept
- : orientation((TFetchOrientation::type)0),
- maxRows(0),
- fetchType(0) {
- orientation = (TFetchOrientation::type)0;
-
- }
+ TFetchResultsReq() noexcept;
virtual ~TFetchResultsReq() noexcept;
TOperationHandle operationHandle;
@@ -4398,20 +3406,7 @@ class TFetchResultsReq : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TFetchResultsReq &rhs) const {
return !(*this == rhs);
}
@@ -4424,7 +3419,7 @@ class TFetchResultsReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TFetchResultsReq &a, TFetchResultsReq &b);
+void swap(TFetchResultsReq &a, TFetchResultsReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TFetchResultsReq& obj);
@@ -4439,9 +3434,7 @@ class TFetchResultsResp : public virtual ::apache::thrift::TBase {
TFetchResultsResp(const TFetchResultsResp&);
TFetchResultsResp& operator=(const TFetchResultsResp&);
- TFetchResultsResp() noexcept
- : hasMoreRows(0) {
- }
+ TFetchResultsResp() noexcept;
virtual ~TFetchResultsResp() noexcept;
TStatus status;
@@ -4456,20 +3449,7 @@ class TFetchResultsResp : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TFetchResultsResp &rhs) const {
return !(*this == rhs);
}
@@ -4482,7 +3462,7 @@ class TFetchResultsResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TFetchResultsResp &a, TFetchResultsResp &b);
+void swap(TFetchResultsResp &a, TFetchResultsResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TFetchResultsResp& obj);
@@ -4492,10 +3472,7 @@ class TGetDelegationTokenReq : public virtual ::apache::thrift::TBase {
TGetDelegationTokenReq(const TGetDelegationTokenReq&);
TGetDelegationTokenReq& operator=(const TGetDelegationTokenReq&);
- TGetDelegationTokenReq() noexcept
- : owner(),
- renewer() {
- }
+ TGetDelegationTokenReq() noexcept;
virtual ~TGetDelegationTokenReq() noexcept;
TSessionHandle sessionHandle;
@@ -4508,16 +3485,7 @@ class TGetDelegationTokenReq : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TGetDelegationTokenReq &rhs) const {
return !(*this == rhs);
}
@@ -4530,7 +3498,7 @@ class TGetDelegationTokenReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetDelegationTokenReq &a, TGetDelegationTokenReq &b);
+void swap(TGetDelegationTokenReq &a, TGetDelegationTokenReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetDelegationTokenReq& obj);
@@ -4544,9 +3512,7 @@ class TGetDelegationTokenResp : public virtual ::apache::thrift::TBase {
TGetDelegationTokenResp(const TGetDelegationTokenResp&);
TGetDelegationTokenResp& operator=(const TGetDelegationTokenResp&);
- TGetDelegationTokenResp() noexcept
- : delegationToken() {
- }
+ TGetDelegationTokenResp() noexcept;
virtual ~TGetDelegationTokenResp() noexcept;
TStatus status;
@@ -4558,16 +3524,7 @@ class TGetDelegationTokenResp : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TGetDelegationTokenResp &rhs) const {
return !(*this == rhs);
}
@@ -4580,7 +3537,7 @@ class TGetDelegationTokenResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetDelegationTokenResp &a, TGetDelegationTokenResp &b);
+void swap(TGetDelegationTokenResp &a, TGetDelegationTokenResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetDelegationTokenResp& obj);
@@ -4590,9 +3547,7 @@ class TCancelDelegationTokenReq : public virtual ::apache::thrift::TBase {
TCancelDelegationTokenReq(const TCancelDelegationTokenReq&);
TCancelDelegationTokenReq& operator=(const TCancelDelegationTokenReq&);
- TCancelDelegationTokenReq() noexcept
- : delegationToken() {
- }
+ TCancelDelegationTokenReq() noexcept;
virtual ~TCancelDelegationTokenReq() noexcept;
TSessionHandle sessionHandle;
@@ -4602,14 +3557,7 @@ class TCancelDelegationTokenReq : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TCancelDelegationTokenReq &rhs) const {
return !(*this == rhs);
}
@@ -4622,7 +3570,7 @@ class TCancelDelegationTokenReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TCancelDelegationTokenReq &a, TCancelDelegationTokenReq &b);
+void swap(TCancelDelegationTokenReq &a, TCancelDelegationTokenReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TCancelDelegationTokenReq& obj);
@@ -4632,20 +3580,14 @@ class TCancelDelegationTokenResp : public virtual ::apache::thrift::TBase {
TCancelDelegationTokenResp(const TCancelDelegationTokenResp&);
TCancelDelegationTokenResp& operator=(const TCancelDelegationTokenResp&);
- TCancelDelegationTokenResp() noexcept {
- }
+ TCancelDelegationTokenResp() noexcept;
virtual ~TCancelDelegationTokenResp() noexcept;
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;
bool operator != (const TCancelDelegationTokenResp &rhs) const {
return !(*this == rhs);
}
@@ -4658,7 +3600,7 @@ class TCancelDelegationTokenResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TCancelDelegationTokenResp &a, TCancelDelegationTokenResp &b);
+void swap(TCancelDelegationTokenResp &a, TCancelDelegationTokenResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TCancelDelegationTokenResp& obj);
@@ -4668,9 +3610,7 @@ class TRenewDelegationTokenReq : public virtual ::apache::thrift::TBase {
TRenewDelegationTokenReq(const TRenewDelegationTokenReq&);
TRenewDelegationTokenReq& operator=(const TRenewDelegationTokenReq&);
- TRenewDelegationTokenReq() noexcept
- : delegationToken() {
- }
+ TRenewDelegationTokenReq() noexcept;
virtual ~TRenewDelegationTokenReq() noexcept;
TSessionHandle sessionHandle;
@@ -4680,14 +3620,7 @@ class TRenewDelegationTokenReq : public virtual ::apache::thrift::TBase {
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;
bool operator != (const TRenewDelegationTokenReq &rhs) const {
return !(*this == rhs);
}
@@ -4700,7 +3633,7 @@ class TRenewDelegationTokenReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TRenewDelegationTokenReq &a, TRenewDelegationTokenReq &b);
+void swap(TRenewDelegationTokenReq &a, TRenewDelegationTokenReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TRenewDelegationTokenReq& obj);
@@ -4710,20 +3643,14 @@ class TRenewDelegationTokenResp : public virtual ::apache::thrift::TBase {
TRenewDelegationTokenResp(const TRenewDelegationTokenResp&);
TRenewDelegationTokenResp& operator=(const TRenewDelegationTokenResp&);
- TRenewDelegationTokenResp() noexcept {
- }
+ TRenewDelegationTokenResp() noexcept;
virtual ~TRenewDelegationTokenResp() noexcept;
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;
bool operator != (const TRenewDelegationTokenResp &rhs) const {
return !(*this == rhs);
}
@@ -4736,7 +3663,7 @@ class TRenewDelegationTokenResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TRenewDelegationTokenResp &a, TRenewDelegationTokenResp &b);
+void swap(TRenewDelegationTokenResp &a, TRenewDelegationTokenResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TRenewDelegationTokenResp& obj);
@@ -4746,12 +3673,7 @@ class TProgressUpdateResp : public virtual ::apache::thrift::TBase {
TProgressUpdateResp(const TProgressUpdateResp&);
TProgressUpdateResp& operator=(const TProgressUpdateResp&);
- TProgressUpdateResp() noexcept
- : progressedPercentage(0),
- status(static_cast(0)),
- footerSummary(),
- startTime(0) {
- }
+ TProgressUpdateResp() noexcept;
virtual ~TProgressUpdateResp() noexcept;
std::vector headerNames;
@@ -4777,22 +3699,7 @@ class TProgressUpdateResp : public virtual ::apache::thrift::TBase {
void __set_startTime(const int64_t val);
- bool operator == (const TProgressUpdateResp & rhs) const
- {
- if (!(headerNames == rhs.headerNames))
- return false;
- if (!(rows == rhs.rows))
- return false;
- if (!(progressedPercentage == rhs.progressedPercentage))
- return false;
- if (!(status == rhs.status))
- return false;
- if (!(footerSummary == rhs.footerSummary))
- return false;
- if (!(startTime == rhs.startTime))
- return false;
- return true;
- }
+ bool operator == (const TProgressUpdateResp & rhs) const;
bool operator != (const TProgressUpdateResp &rhs) const {
return !(*this == rhs);
}
@@ -4805,7 +3712,7 @@ class TProgressUpdateResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TProgressUpdateResp &a, TProgressUpdateResp &b);
+void swap(TProgressUpdateResp &a, TProgressUpdateResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TProgressUpdateResp& obj);
@@ -4815,20 +3722,14 @@ class TGetQueryIdReq : public virtual ::apache::thrift::TBase {
TGetQueryIdReq(const TGetQueryIdReq&);
TGetQueryIdReq& operator=(const TGetQueryIdReq&);
- TGetQueryIdReq() noexcept {
- }
+ TGetQueryIdReq() noexcept;
virtual ~TGetQueryIdReq() noexcept;
TOperationHandle operationHandle;
void __set_operationHandle(const TOperationHandle& val);
- bool operator == (const TGetQueryIdReq & rhs) const
- {
- if (!(operationHandle == rhs.operationHandle))
- return false;
- return true;
- }
+ bool operator == (const TGetQueryIdReq & rhs) const;
bool operator != (const TGetQueryIdReq &rhs) const {
return !(*this == rhs);
}
@@ -4841,7 +3742,7 @@ class TGetQueryIdReq : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetQueryIdReq &a, TGetQueryIdReq &b);
+void swap(TGetQueryIdReq &a, TGetQueryIdReq &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetQueryIdReq& obj);
@@ -4851,21 +3752,14 @@ class TGetQueryIdResp : public virtual ::apache::thrift::TBase {
TGetQueryIdResp(const TGetQueryIdResp&);
TGetQueryIdResp& operator=(const TGetQueryIdResp&);
- TGetQueryIdResp() noexcept
- : queryId() {
- }
+ TGetQueryIdResp() noexcept;
virtual ~TGetQueryIdResp() noexcept;
std::string queryId;
void __set_queryId(const std::string& val);
- bool operator == (const TGetQueryIdResp & rhs) const
- {
- if (!(queryId == rhs.queryId))
- return false;
- return true;
- }
+ bool operator == (const TGetQueryIdResp & rhs) const;
bool operator != (const TGetQueryIdResp &rhs) const {
return !(*this == rhs);
}
@@ -4878,7 +3772,7 @@ class TGetQueryIdResp : public virtual ::apache::thrift::TBase {
virtual void printTo(std::ostream& out) const;
};
-void swap(TGetQueryIdResp &a, TGetQueryIdResp &b);
+void swap(TGetQueryIdResp &a, TGetQueryIdResp &b) noexcept;
std::ostream& operator<<(std::ostream& out, const TGetQueryIdResp& obj);
diff --git a/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TArrayTypeEntry.java b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TArrayTypeEntry.java
index a698e28fcb54..8c3a9d86c29a 100644
--- a/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TArrayTypeEntry.java
+++ b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TArrayTypeEntry.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -7,7 +7,7 @@
package org.apache.hive.service.rpc.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.23.0)")
@org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable 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");
@@ -69,10 +69,12 @@ public static _Fields findByName(java.lang.String name) {
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
+ @Override
public java.lang.String getFieldName() {
return _fieldName;
}
@@ -109,6 +111,7 @@ public TArrayTypeEntry(TArrayTypeEntry other) {
this.objectTypePtr = other.objectTypePtr;
}
+ @Override
public TArrayTypeEntry deepCopy() {
return new TArrayTypeEntry(this);
}
@@ -141,6 +144,7 @@ public void setObjectTypePtrIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __OBJECTTYPEPTR_ISSET_ID, value);
}
+ @Override
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case OBJECT_TYPE_PTR:
@@ -155,6 +159,7 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable
}
@org.apache.thrift.annotation.Nullable
+ @Override
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case OBJECT_TYPE_PTR:
@@ -165,6 +170,7 @@ public java.lang.Object getFieldValue(_Fields field) {
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
@@ -233,14 +239,17 @@ public int compareTo(TArrayTypeEntry other) {
}
@org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@@ -285,6 +294,7 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException
}
private static class TArrayTypeEntryStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public TArrayTypeEntryStandardScheme getScheme() {
return new TArrayTypeEntryStandardScheme();
}
@@ -292,33 +302,40 @@ public TArrayTypeEntryStandardScheme getScheme() {
private static class TArrayTypeEntryStandardScheme extends org.apache.thrift.scheme.StandardScheme {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, TArrayTypeEntry struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // OBJECT_TYPE_PTR
- if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
- struct.objectTypePtr = iprot.readI32();
- struct.setObjectTypePtrIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
+ iprot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ switch (schemeField.id) {
+ case 1: // OBJECT_TYPE_PTR
+ if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+ struct.objectTypePtr = iprot.readI32();
+ struct.setObjectTypePtrIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
}
- iprot.readFieldEnd();
+ iprot.readStructEnd();
+ struct.validate();
+ } finally {
+ iprot.decrementRecursionDepth();
}
- iprot.readStructEnd();
- struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, TArrayTypeEntry struct) throws org.apache.thrift.TException {
struct.validate();
@@ -333,6 +350,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, TArrayTypeEntry st
}
private static class TArrayTypeEntryTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public TArrayTypeEntryTupleScheme getScheme() {
return new TArrayTypeEntryTupleScheme();
}
@@ -348,9 +366,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TArrayTypeEntry str
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TArrayTypeEntry struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- struct.objectTypePtr = iprot.readI32();
- struct.setObjectTypePtrIsSet(true);
+ prot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ struct.objectTypePtr = iprot.readI32();
+ struct.setObjectTypePtrIsSet(true);
+ } finally {
+ prot.decrementRecursionDepth();
+ }
}
}
diff --git a/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TBinaryColumn.java b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TBinaryColumn.java
index 752e2d42b52f..ad53900968c5 100644
--- a/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TBinaryColumn.java
+++ b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TBinaryColumn.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -7,7 +7,7 @@
package org.apache.hive.service.rpc.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.23.0)")
@org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public class TBinaryColumn 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("TBinaryColumn");
@@ -74,10 +74,12 @@ public static _Fields findByName(java.lang.String name) {
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
+ @Override
public java.lang.String getFieldName() {
return _fieldName;
}
@@ -121,6 +123,7 @@ public TBinaryColumn(TBinaryColumn other) {
}
}
+ @Override
public TBinaryColumn deepCopy() {
return new TBinaryColumn(this);
}
@@ -203,6 +206,7 @@ public void setNullsIsSet(boolean value) {
}
}
+ @Override
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case VALUES:
@@ -229,6 +233,7 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable
}
@org.apache.thrift.annotation.Nullable
+ @Override
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case VALUES:
@@ -242,6 +247,7 @@ public java.lang.Object getFieldValue(_Fields field) {
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
@@ -337,14 +343,17 @@ public int compareTo(TBinaryColumn other) {
}
@org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@@ -403,6 +412,7 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException
}
private static class TBinaryColumnStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public TBinaryColumnStandardScheme getScheme() {
return new TBinaryColumnStandardScheme();
}
@@ -410,51 +420,58 @@ public TBinaryColumnStandardScheme getScheme() {
private static class TBinaryColumnStandardScheme extends org.apache.thrift.scheme.StandardScheme {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, TBinaryColumn struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // VALUES
- if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
- {
- org.apache.thrift.protocol.TList _list110 = iprot.readListBegin();
- struct.values = new java.util.ArrayList(_list110.size);
- @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem111;
- for (int _i112 = 0; _i112 < _list110.size; ++_i112)
+ iprot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // VALUES
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- _elem111 = iprot.readBinary();
- struct.values.add(_elem111);
+ org.apache.thrift.protocol.TList _list110 = iprot.readListBegin();
+ struct.values = new java.util.ArrayList(_list110.size);
+ @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem111;
+ for (int _i112 = 0; _i112 < _list110.size; ++_i112)
+ {
+ _elem111 = iprot.readBinary();
+ struct.values.add(_elem111);
+ }
+ iprot.readListEnd();
}
- iprot.readListEnd();
+ struct.setValuesIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setValuesIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 2: // NULLS
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.nulls = iprot.readBinary();
- struct.setNullsIsSet(true);
- } else {
+ break;
+ case 2: // NULLS
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.nulls = iprot.readBinary();
+ struct.setNullsIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
}
- iprot.readFieldEnd();
+ iprot.readStructEnd();
+ struct.validate();
+ } finally {
+ iprot.decrementRecursionDepth();
}
- iprot.readStructEnd();
- struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, TBinaryColumn struct) throws org.apache.thrift.TException {
struct.validate();
@@ -483,6 +500,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, TBinaryColumn stru
}
private static class TBinaryColumnTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public TBinaryColumnTupleScheme getScheme() {
return new TBinaryColumnTupleScheme();
}
@@ -505,20 +523,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TBinaryColumn struc
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TBinaryColumn struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- {
- org.apache.thrift.protocol.TList _list115 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
- struct.values = new java.util.ArrayList(_list115.size);
- @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem116;
- for (int _i117 = 0; _i117 < _list115.size; ++_i117)
+ prot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
{
- _elem116 = iprot.readBinary();
- struct.values.add(_elem116);
+ org.apache.thrift.protocol.TList _list115 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
+ struct.values = new java.util.ArrayList(_list115.size);
+ @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem116;
+ for (int _i117 = 0; _i117 < _list115.size; ++_i117)
+ {
+ _elem116 = iprot.readBinary();
+ struct.values.add(_elem116);
+ }
}
+ struct.setValuesIsSet(true);
+ struct.nulls = iprot.readBinary();
+ struct.setNullsIsSet(true);
+ } finally {
+ prot.decrementRecursionDepth();
}
- struct.setValuesIsSet(true);
- struct.nulls = iprot.readBinary();
- struct.setNullsIsSet(true);
}
}
diff --git a/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TBoolColumn.java b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TBoolColumn.java
index ae0fb235a8d6..77290f70c20f 100644
--- a/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TBoolColumn.java
+++ b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TBoolColumn.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -7,7 +7,7 @@
package org.apache.hive.service.rpc.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.23.0)")
@org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public class TBoolColumn 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("TBoolColumn");
@@ -74,10 +74,12 @@ public static _Fields findByName(java.lang.String name) {
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
+ @Override
public java.lang.String getFieldName() {
return _fieldName;
}
@@ -121,6 +123,7 @@ public TBoolColumn(TBoolColumn other) {
}
}
+ @Override
public TBoolColumn deepCopy() {
return new TBoolColumn(this);
}
@@ -203,6 +206,7 @@ public void setNullsIsSet(boolean value) {
}
}
+ @Override
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case VALUES:
@@ -229,6 +233,7 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable
}
@org.apache.thrift.annotation.Nullable
+ @Override
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case VALUES:
@@ -242,6 +247,7 @@ public java.lang.Object getFieldValue(_Fields field) {
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
@@ -337,14 +343,17 @@ public int compareTo(TBoolColumn other) {
}
@org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@@ -403,6 +412,7 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException
}
private static class TBoolColumnStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public TBoolColumnStandardScheme getScheme() {
return new TBoolColumnStandardScheme();
}
@@ -410,51 +420,58 @@ public TBoolColumnStandardScheme getScheme() {
private static class TBoolColumnStandardScheme extends org.apache.thrift.scheme.StandardScheme {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, TBoolColumn struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // VALUES
- if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
- {
- org.apache.thrift.protocol.TList _list54 = iprot.readListBegin();
- struct.values = new java.util.ArrayList(_list54.size);
- boolean _elem55;
- for (int _i56 = 0; _i56 < _list54.size; ++_i56)
+ iprot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // VALUES
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- _elem55 = iprot.readBool();
- struct.values.add(_elem55);
+ org.apache.thrift.protocol.TList _list54 = iprot.readListBegin();
+ struct.values = new java.util.ArrayList(_list54.size);
+ boolean _elem55;
+ for (int _i56 = 0; _i56 < _list54.size; ++_i56)
+ {
+ _elem55 = iprot.readBool();
+ struct.values.add(_elem55);
+ }
+ iprot.readListEnd();
}
- iprot.readListEnd();
+ struct.setValuesIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setValuesIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 2: // NULLS
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.nulls = iprot.readBinary();
- struct.setNullsIsSet(true);
- } else {
+ break;
+ case 2: // NULLS
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.nulls = iprot.readBinary();
+ struct.setNullsIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
}
- iprot.readFieldEnd();
+ iprot.readStructEnd();
+ struct.validate();
+ } finally {
+ iprot.decrementRecursionDepth();
}
- iprot.readStructEnd();
- struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, TBoolColumn struct) throws org.apache.thrift.TException {
struct.validate();
@@ -483,6 +500,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, TBoolColumn struct
}
private static class TBoolColumnTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public TBoolColumnTupleScheme getScheme() {
return new TBoolColumnTupleScheme();
}
@@ -505,20 +523,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TBoolColumn struct)
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TBoolColumn struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- {
- org.apache.thrift.protocol.TList _list59 = iprot.readListBegin(org.apache.thrift.protocol.TType.BOOL);
- struct.values = new java.util.ArrayList(_list59.size);
- boolean _elem60;
- for (int _i61 = 0; _i61 < _list59.size; ++_i61)
+ prot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
{
- _elem60 = iprot.readBool();
- struct.values.add(_elem60);
+ org.apache.thrift.protocol.TList _list59 = iprot.readListBegin(org.apache.thrift.protocol.TType.BOOL);
+ struct.values = new java.util.ArrayList(_list59.size);
+ boolean _elem60;
+ for (int _i61 = 0; _i61 < _list59.size; ++_i61)
+ {
+ _elem60 = iprot.readBool();
+ struct.values.add(_elem60);
+ }
}
+ struct.setValuesIsSet(true);
+ struct.nulls = iprot.readBinary();
+ struct.setNullsIsSet(true);
+ } finally {
+ prot.decrementRecursionDepth();
}
- struct.setValuesIsSet(true);
- struct.nulls = iprot.readBinary();
- struct.setNullsIsSet(true);
}
}
diff --git a/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TBoolValue.java b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TBoolValue.java
index bbc1d122ff3a..5ed9117ff3bc 100644
--- a/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TBoolValue.java
+++ b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TBoolValue.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -7,7 +7,7 @@
package org.apache.hive.service.rpc.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.23.0)")
@org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public class TBoolValue 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("TBoolValue");
@@ -69,10 +69,12 @@ public static _Fields findByName(java.lang.String name) {
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
+ @Override
public java.lang.String getFieldName() {
return _fieldName;
}
@@ -81,7 +83,7 @@ public java.lang.String getFieldName() {
// isset id assignments
private static final int __VALUE_ISSET_ID = 0;
private byte __isset_bitfield = 0;
- private static final _Fields optionals[] = {_Fields.VALUE};
+ private static final _Fields[] optionals = {_Fields.VALUE};
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
@@ -102,6 +104,7 @@ public TBoolValue(TBoolValue other) {
this.value = other.value;
}
+ @Override
public TBoolValue deepCopy() {
return new TBoolValue(this);
}
@@ -134,6 +137,7 @@ public void setValueIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __VALUE_ISSET_ID, value);
}
+ @Override
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case VALUE:
@@ -148,6 +152,7 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable
}
@org.apache.thrift.annotation.Nullable
+ @Override
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case VALUE:
@@ -158,6 +163,7 @@ public java.lang.Object getFieldValue(_Fields field) {
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
@@ -228,14 +234,17 @@ public int compareTo(TBoolValue other) {
}
@org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@@ -278,6 +287,7 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException
}
private static class TBoolValueStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public TBoolValueStandardScheme getScheme() {
return new TBoolValueStandardScheme();
}
@@ -285,33 +295,40 @@ public TBoolValueStandardScheme getScheme() {
private static class TBoolValueStandardScheme extends org.apache.thrift.scheme.StandardScheme {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, TBoolValue struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // VALUE
- if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
- struct.value = iprot.readBool();
- struct.setValueIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
+ iprot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ switch (schemeField.id) {
+ case 1: // VALUE
+ if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+ struct.value = iprot.readBool();
+ struct.setValueIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
}
- iprot.readFieldEnd();
+ iprot.readStructEnd();
+ struct.validate();
+ } finally {
+ iprot.decrementRecursionDepth();
}
- iprot.readStructEnd();
- struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, TBoolValue struct) throws org.apache.thrift.TException {
struct.validate();
@@ -328,6 +345,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, TBoolValue struct)
}
private static class TBoolValueTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public TBoolValueTupleScheme getScheme() {
return new TBoolValueTupleScheme();
}
@@ -350,11 +368,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TBoolValue struct)
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TBoolValue struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(1);
- if (incoming.get(0)) {
- struct.value = iprot.readBool();
- struct.setValueIsSet(true);
+ prot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ struct.value = iprot.readBool();
+ struct.setValueIsSet(true);
+ }
+ } finally {
+ prot.decrementRecursionDepth();
}
}
}
diff --git a/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TByteColumn.java b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TByteColumn.java
index fe0e9de99f02..fc05ec77aee4 100644
--- a/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TByteColumn.java
+++ b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TByteColumn.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -7,7 +7,7 @@
package org.apache.hive.service.rpc.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.23.0)")
@org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public class TByteColumn 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("TByteColumn");
@@ -74,10 +74,12 @@ public static _Fields findByName(java.lang.String name) {
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
+ @Override
public java.lang.String getFieldName() {
return _fieldName;
}
@@ -121,6 +123,7 @@ public TByteColumn(TByteColumn other) {
}
}
+ @Override
public TByteColumn deepCopy() {
return new TByteColumn(this);
}
@@ -203,6 +206,7 @@ public void setNullsIsSet(boolean value) {
}
}
+ @Override
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case VALUES:
@@ -229,6 +233,7 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable
}
@org.apache.thrift.annotation.Nullable
+ @Override
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case VALUES:
@@ -242,6 +247,7 @@ public java.lang.Object getFieldValue(_Fields field) {
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
@@ -337,14 +343,17 @@ public int compareTo(TByteColumn other) {
}
@org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@@ -403,6 +412,7 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException
}
private static class TByteColumnStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public TByteColumnStandardScheme getScheme() {
return new TByteColumnStandardScheme();
}
@@ -410,51 +420,58 @@ public TByteColumnStandardScheme getScheme() {
private static class TByteColumnStandardScheme extends org.apache.thrift.scheme.StandardScheme {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, TByteColumn struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // VALUES
- if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
- {
- org.apache.thrift.protocol.TList _list62 = iprot.readListBegin();
- struct.values = new java.util.ArrayList(_list62.size);
- byte _elem63;
- for (int _i64 = 0; _i64 < _list62.size; ++_i64)
+ iprot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // VALUES
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- _elem63 = iprot.readByte();
- struct.values.add(_elem63);
+ org.apache.thrift.protocol.TList _list62 = iprot.readListBegin();
+ struct.values = new java.util.ArrayList(_list62.size);
+ byte _elem63;
+ for (int _i64 = 0; _i64 < _list62.size; ++_i64)
+ {
+ _elem63 = iprot.readByte();
+ struct.values.add(_elem63);
+ }
+ iprot.readListEnd();
}
- iprot.readListEnd();
+ struct.setValuesIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
- struct.setValuesIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 2: // NULLS
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.nulls = iprot.readBinary();
- struct.setNullsIsSet(true);
- } else {
+ break;
+ case 2: // NULLS
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.nulls = iprot.readBinary();
+ struct.setNullsIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
}
- iprot.readFieldEnd();
+ iprot.readStructEnd();
+ struct.validate();
+ } finally {
+ iprot.decrementRecursionDepth();
}
- iprot.readStructEnd();
- struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, TByteColumn struct) throws org.apache.thrift.TException {
struct.validate();
@@ -483,6 +500,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, TByteColumn struct
}
private static class TByteColumnTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public TByteColumnTupleScheme getScheme() {
return new TByteColumnTupleScheme();
}
@@ -505,20 +523,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TByteColumn struct)
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TByteColumn struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- {
- org.apache.thrift.protocol.TList _list67 = iprot.readListBegin(org.apache.thrift.protocol.TType.BYTE);
- struct.values = new java.util.ArrayList(_list67.size);
- byte _elem68;
- for (int _i69 = 0; _i69 < _list67.size; ++_i69)
+ prot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
{
- _elem68 = iprot.readByte();
- struct.values.add(_elem68);
+ org.apache.thrift.protocol.TList _list67 = iprot.readListBegin(org.apache.thrift.protocol.TType.BYTE);
+ struct.values = new java.util.ArrayList(_list67.size);
+ byte _elem68;
+ for (int _i69 = 0; _i69 < _list67.size; ++_i69)
+ {
+ _elem68 = iprot.readByte();
+ struct.values.add(_elem68);
+ }
}
+ struct.setValuesIsSet(true);
+ struct.nulls = iprot.readBinary();
+ struct.setNullsIsSet(true);
+ } finally {
+ prot.decrementRecursionDepth();
}
- struct.setValuesIsSet(true);
- struct.nulls = iprot.readBinary();
- struct.setNullsIsSet(true);
}
}
diff --git a/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TByteValue.java b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TByteValue.java
index e5c763a920cd..48a7f8720cfc 100644
--- a/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TByteValue.java
+++ b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TByteValue.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -7,7 +7,7 @@
package org.apache.hive.service.rpc.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.23.0)")
@org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public class TByteValue 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("TByteValue");
@@ -69,10 +69,12 @@ public static _Fields findByName(java.lang.String name) {
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
+ @Override
public java.lang.String getFieldName() {
return _fieldName;
}
@@ -81,7 +83,7 @@ public java.lang.String getFieldName() {
// isset id assignments
private static final int __VALUE_ISSET_ID = 0;
private byte __isset_bitfield = 0;
- private static final _Fields optionals[] = {_Fields.VALUE};
+ private static final _Fields[] optionals = {_Fields.VALUE};
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
@@ -102,6 +104,7 @@ public TByteValue(TByteValue other) {
this.value = other.value;
}
+ @Override
public TByteValue deepCopy() {
return new TByteValue(this);
}
@@ -134,6 +137,7 @@ public void setValueIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __VALUE_ISSET_ID, value);
}
+ @Override
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case VALUE:
@@ -148,6 +152,7 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable
}
@org.apache.thrift.annotation.Nullable
+ @Override
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case VALUE:
@@ -158,6 +163,7 @@ public java.lang.Object getFieldValue(_Fields field) {
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
@@ -228,14 +234,17 @@ public int compareTo(TByteValue other) {
}
@org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@@ -278,6 +287,7 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException
}
private static class TByteValueStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public TByteValueStandardScheme getScheme() {
return new TByteValueStandardScheme();
}
@@ -285,33 +295,40 @@ public TByteValueStandardScheme getScheme() {
private static class TByteValueStandardScheme extends org.apache.thrift.scheme.StandardScheme {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, TByteValue struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // VALUE
- if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) {
- struct.value = iprot.readByte();
- struct.setValueIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
+ iprot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ switch (schemeField.id) {
+ case 1: // VALUE
+ if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) {
+ struct.value = iprot.readByte();
+ struct.setValueIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
}
- iprot.readFieldEnd();
+ iprot.readStructEnd();
+ struct.validate();
+ } finally {
+ iprot.decrementRecursionDepth();
}
- iprot.readStructEnd();
- struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, TByteValue struct) throws org.apache.thrift.TException {
struct.validate();
@@ -328,6 +345,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, TByteValue struct)
}
private static class TByteValueTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public TByteValueTupleScheme getScheme() {
return new TByteValueTupleScheme();
}
@@ -350,11 +368,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TByteValue struct)
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TByteValue struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(1);
- if (incoming.get(0)) {
- struct.value = iprot.readByte();
- struct.setValueIsSet(true);
+ prot.incrementRecursionDepth();
+ try {
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ struct.value = iprot.readByte();
+ struct.setValueIsSet(true);
+ }
+ } finally {
+ prot.decrementRecursionDepth();
}
}
}
diff --git a/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TCLIService.java b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TCLIService.java
index fdb9a9eb4b89..b86be3de6ad4 100644
--- a/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TCLIService.java
+++ b/service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TCLIService.java
@@ -1,13 +1,13 @@
/**
- * Autogenerated by Thrift Compiler (0.16.0)
+ * Autogenerated by Thrift Compiler (0.23.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.hive.service.rpc.thrift;
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.23.0)")
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)")
@org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public class TCLIService {
@org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public interface Iface {
@@ -121,9 +121,11 @@
@org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class Client extends org.apache.thrift.TServiceClient implements Iface {
@org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class Factory implements org.apache.thrift.TServiceClientFactory {
public Factory() {}
+ @Override
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
return new Client(prot);
}
+ @Override
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
return new Client(iprot, oprot);
}
@@ -138,6 +140,7 @@ public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.prot
super(iprot, oprot);
}
+ @Override
public TOpenSessionResp OpenSession(TOpenSessionReq req) throws org.apache.thrift.TException
{
send_OpenSession(req);
@@ -161,6 +164,7 @@ public TOpenSessionResp recv_OpenSession() throws org.apache.thrift.TException
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "OpenSession failed: unknown result");
}
+ @Override
public TCloseSessionResp CloseSession(TCloseSessionReq req) throws org.apache.thrift.TException
{
send_CloseSession(req);
@@ -184,6 +188,7 @@ public TCloseSessionResp recv_CloseSession() throws org.apache.thrift.TException
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "CloseSession failed: unknown result");
}
+ @Override
public TGetInfoResp GetInfo(TGetInfoReq req) throws org.apache.thrift.TException
{
send_GetInfo(req);
@@ -207,6 +212,7 @@ public TGetInfoResp recv_GetInfo() throws org.apache.thrift.TException
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetInfo failed: unknown result");
}
+ @Override
public TExecuteStatementResp ExecuteStatement(TExecuteStatementReq req) throws org.apache.thrift.TException
{
send_ExecuteStatement(req);
@@ -230,6 +236,7 @@ public TExecuteStatementResp recv_ExecuteStatement() throws org.apache.thrift.TE
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "ExecuteStatement failed: unknown result");
}
+ @Override
public TGetTypeInfoResp GetTypeInfo(TGetTypeInfoReq req) throws org.apache.thrift.TException
{
send_GetTypeInfo(req);
@@ -253,6 +260,7 @@ public TGetTypeInfoResp recv_GetTypeInfo() throws org.apache.thrift.TException
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetTypeInfo failed: unknown result");
}
+ @Override
public TGetCatalogsResp GetCatalogs(TGetCatalogsReq req) throws org.apache.thrift.TException
{
send_GetCatalogs(req);
@@ -276,6 +284,7 @@ public TGetCatalogsResp recv_GetCatalogs() throws org.apache.thrift.TException
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetCatalogs failed: unknown result");
}
+ @Override
public TGetSchemasResp GetSchemas(TGetSchemasReq req) throws org.apache.thrift.TException
{
send_GetSchemas(req);
@@ -299,6 +308,7 @@ public TGetSchemasResp recv_GetSchemas() throws org.apache.thrift.TException
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetSchemas failed: unknown result");
}
+ @Override
public TGetTablesResp GetTables(TGetTablesReq req) throws org.apache.thrift.TException
{
send_GetTables(req);
@@ -322,6 +332,7 @@ public TGetTablesResp recv_GetTables() throws org.apache.thrift.TException
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetTables failed: unknown result");
}
+ @Override
public TGetTableTypesResp GetTableTypes(TGetTableTypesReq req) throws org.apache.thrift.TException
{
send_GetTableTypes(req);
@@ -345,6 +356,7 @@ public TGetTableTypesResp recv_GetTableTypes() throws org.apache.thrift.TExcepti
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetTableTypes failed: unknown result");
}
+ @Override
public TGetColumnsResp GetColumns(TGetColumnsReq req) throws org.apache.thrift.TException
{
send_GetColumns(req);
@@ -368,6 +380,7 @@ public TGetColumnsResp recv_GetColumns() throws org.apache.thrift.TException
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetColumns failed: unknown result");
}
+ @Override
public TGetFunctionsResp GetFunctions(TGetFunctionsReq req) throws org.apache.thrift.TException
{
send_GetFunctions(req);
@@ -391,6 +404,7 @@ public TGetFunctionsResp recv_GetFunctions() throws org.apache.thrift.TException
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetFunctions failed: unknown result");
}
+ @Override
public TGetPrimaryKeysResp GetPrimaryKeys(TGetPrimaryKeysReq req) throws org.apache.thrift.TException
{
send_GetPrimaryKeys(req);
@@ -414,6 +428,7 @@ public TGetPrimaryKeysResp recv_GetPrimaryKeys() throws org.apache.thrift.TExcep
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetPrimaryKeys failed: unknown result");
}
+ @Override
public TGetCrossReferenceResp GetCrossReference(TGetCrossReferenceReq req) throws org.apache.thrift.TException
{
send_GetCrossReference(req);
@@ -437,6 +452,7 @@ public TGetCrossReferenceResp recv_GetCrossReference() throws org.apache.thrift.
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetCrossReference failed: unknown result");
}
+ @Override
public TGetOperationStatusResp GetOperationStatus(TGetOperationStatusReq req) throws org.apache.thrift.TException
{
send_GetOperationStatus(req);
@@ -460,6 +476,7 @@ public TGetOperationStatusResp recv_GetOperationStatus() throws org.apache.thrif
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetOperationStatus failed: unknown result");
}
+ @Override
public TCancelOperationResp CancelOperation(TCancelOperationReq req) throws org.apache.thrift.TException
{
send_CancelOperation(req);
@@ -483,6 +500,7 @@ public TCancelOperationResp recv_CancelOperation() throws org.apache.thrift.TExc
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "CancelOperation failed: unknown result");
}
+ @Override
public TCloseOperationResp CloseOperation(TCloseOperationReq req) throws org.apache.thrift.TException
{
send_CloseOperation(req);
@@ -506,6 +524,7 @@ public TCloseOperationResp recv_CloseOperation() throws org.apache.thrift.TExcep
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "CloseOperation failed: unknown result");
}
+ @Override
public TGetResultSetMetadataResp GetResultSetMetadata(TGetResultSetMetadataReq req) throws org.apache.thrift.TException
{
send_GetResultSetMetadata(req);
@@ -529,6 +548,7 @@ public TGetResultSetMetadataResp recv_GetResultSetMetadata() throws org.apache.t
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetResultSetMetadata failed: unknown result");
}
+ @Override
public TFetchResultsResp FetchResults(TFetchResultsReq req) throws org.apache.thrift.TException
{
send_FetchResults(req);
@@ -552,6 +572,7 @@ public TFetchResultsResp recv_FetchResults() throws org.apache.thrift.TException
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "FetchResults failed: unknown result");
}
+ @Override
public TGetDelegationTokenResp GetDelegationToken(TGetDelegationTokenReq req) throws org.apache.thrift.TException
{
send_GetDelegationToken(req);
@@ -575,6 +596,7 @@ public TGetDelegationTokenResp recv_GetDelegationToken() throws org.apache.thrif
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetDelegationToken failed: unknown result");
}
+ @Override
public TCancelDelegationTokenResp CancelDelegationToken(TCancelDelegationTokenReq req) throws org.apache.thrift.TException
{
send_CancelDelegationToken(req);
@@ -598,6 +620,7 @@ public TCancelDelegationTokenResp recv_CancelDelegationToken() throws org.apache
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "CancelDelegationToken failed: unknown result");
}
+ @Override
public TRenewDelegationTokenResp RenewDelegationToken(TRenewDelegationTokenReq req) throws org.apache.thrift.TException
{
send_RenewDelegationToken(req);
@@ -621,6 +644,7 @@ public TRenewDelegationTokenResp recv_RenewDelegationToken() throws org.apache.t
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "RenewDelegationToken failed: unknown result");
}
+ @Override
public TGetQueryIdResp GetQueryId(TGetQueryIdReq req) throws org.apache.thrift.TException
{
send_GetQueryId(req);
@@ -644,6 +668,7 @@ public TGetQueryIdResp recv_GetQueryId() throws org.apache.thrift.TException
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetQueryId failed: unknown result");
}
+ @Override
public TSetClientInfoResp SetClientInfo(TSetClientInfoReq req) throws org.apache.thrift.TException
{
send_SetClientInfo(req);
@@ -667,6 +692,7 @@ public TSetClientInfoResp recv_SetClientInfo() throws org.apache.thrift.TExcepti
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "SetClientInfo failed: unknown result");
}
+ @Override
public TUploadDataResp UploadData(TUploadDataReq req) throws org.apache.thrift.TException
{
send_UploadData(req);
@@ -690,6 +716,7 @@ public TUploadDataResp recv_UploadData() throws org.apache.thrift.TException
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "UploadData failed: unknown result");
}
+ @Override
public TDownloadDataResp DownloadData(TDownloadDataReq req) throws org.apache.thrift.TException
{
send_DownloadData(req);
@@ -722,6 +749,7 @@ public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.ap
this.clientManager = clientManager;
this.protocolFactory = protocolFactory;
}
+ @Override
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
return new AsyncClient(protocolFactory, clientManager, transport);
}
@@ -731,6 +759,7 @@ public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory,
super(protocolFactory, clientManager, transport);
}
+ @Override
public void OpenSession(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
OpenSession_call method_call = new OpenSession_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -745,6 +774,7 @@ public OpenSession_call(TOpenSessionReq req, org.apache.thrift.async.AsyncMethod
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("OpenSession", org.apache.thrift.protocol.TMessageType.CALL, 0));
OpenSession_args args = new OpenSession_args();
@@ -753,6 +783,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TOpenSessionResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -763,6 +794,7 @@ public TOpenSessionResp getResult() throws org.apache.thrift.TException {
}
}
+ @Override
public void CloseSession(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
CloseSession_call method_call = new CloseSession_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -777,6 +809,7 @@ public CloseSession_call(TCloseSessionReq req, org.apache.thrift.async.AsyncMeth
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("CloseSession", org.apache.thrift.protocol.TMessageType.CALL, 0));
CloseSession_args args = new CloseSession_args();
@@ -785,6 +818,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TCloseSessionResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -795,6 +829,7 @@ public TCloseSessionResp getResult() throws org.apache.thrift.TException {
}
}
+ @Override
public void GetInfo(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
GetInfo_call method_call = new GetInfo_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -809,6 +844,7 @@ public GetInfo_call(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetInfo_args args = new GetInfo_args();
@@ -817,6 +853,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TGetInfoResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -827,6 +864,7 @@ public TGetInfoResp getResult() throws org.apache.thrift.TException {
}
}
+ @Override
public void ExecuteStatement(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
ExecuteStatement_call method_call = new ExecuteStatement_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -841,6 +879,7 @@ public ExecuteStatement_call(TExecuteStatementReq req, org.apache.thrift.async.A
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("ExecuteStatement", org.apache.thrift.protocol.TMessageType.CALL, 0));
ExecuteStatement_args args = new ExecuteStatement_args();
@@ -849,6 +888,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TExecuteStatementResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -859,6 +899,7 @@ public TExecuteStatementResp getResult() throws org.apache.thrift.TException {
}
}
+ @Override
public void GetTypeInfo(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
GetTypeInfo_call method_call = new GetTypeInfo_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -873,6 +914,7 @@ public GetTypeInfo_call(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethod
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetTypeInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetTypeInfo_args args = new GetTypeInfo_args();
@@ -881,6 +923,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TGetTypeInfoResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -891,6 +934,7 @@ public TGetTypeInfoResp getResult() throws org.apache.thrift.TException {
}
}
+ @Override
public void GetCatalogs(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
GetCatalogs_call method_call = new GetCatalogs_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -905,6 +949,7 @@ public GetCatalogs_call(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethod
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetCatalogs", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetCatalogs_args args = new GetCatalogs_args();
@@ -913,6 +958,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TGetCatalogsResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -923,6 +969,7 @@ public TGetCatalogsResp getResult() throws org.apache.thrift.TException {
}
}
+ @Override
public void GetSchemas(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
GetSchemas_call method_call = new GetSchemas_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -937,6 +984,7 @@ public GetSchemas_call(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCa
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetSchemas", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetSchemas_args args = new GetSchemas_args();
@@ -945,6 +993,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TGetSchemasResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -955,6 +1004,7 @@ public TGetSchemasResp getResult() throws org.apache.thrift.TException {
}
}
+ @Override
public void GetTables(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
GetTables_call method_call = new GetTables_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -969,6 +1019,7 @@ public GetTables_call(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCall
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetTables", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetTables_args args = new GetTables_args();
@@ -977,6 +1028,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TGetTablesResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -987,6 +1039,7 @@ public TGetTablesResp getResult() throws org.apache.thrift.TException {
}
}
+ @Override
public void GetTableTypes(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
GetTableTypes_call method_call = new GetTableTypes_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -1001,6 +1054,7 @@ public GetTableTypes_call(TGetTableTypesReq req, org.apache.thrift.async.AsyncMe
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetTableTypes", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetTableTypes_args args = new GetTableTypes_args();
@@ -1009,6 +1063,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TGetTableTypesResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -1019,6 +1074,7 @@ public TGetTableTypesResp getResult() throws org.apache.thrift.TException {
}
}
+ @Override
public void GetColumns(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
GetColumns_call method_call = new GetColumns_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -1033,6 +1089,7 @@ public GetColumns_call(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCa
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetColumns", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetColumns_args args = new GetColumns_args();
@@ -1041,6 +1098,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TGetColumnsResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -1051,6 +1109,7 @@ public TGetColumnsResp getResult() throws org.apache.thrift.TException {
}
}
+ @Override
public void GetFunctions(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
GetFunctions_call method_call = new GetFunctions_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -1065,6 +1124,7 @@ public GetFunctions_call(TGetFunctionsReq req, org.apache.thrift.async.AsyncMeth
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetFunctions", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetFunctions_args args = new GetFunctions_args();
@@ -1073,6 +1133,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TGetFunctionsResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -1083,6 +1144,7 @@ public TGetFunctionsResp getResult() throws org.apache.thrift.TException {
}
}
+ @Override
public void GetPrimaryKeys(TGetPrimaryKeysReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
GetPrimaryKeys_call method_call = new GetPrimaryKeys_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -1097,6 +1159,7 @@ public GetPrimaryKeys_call(TGetPrimaryKeysReq req, org.apache.thrift.async.Async
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetPrimaryKeys", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetPrimaryKeys_args args = new GetPrimaryKeys_args();
@@ -1105,6 +1168,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TGetPrimaryKeysResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -1115,6 +1179,7 @@ public TGetPrimaryKeysResp getResult() throws org.apache.thrift.TException {
}
}
+ @Override
public void GetCrossReference(TGetCrossReferenceReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
GetCrossReference_call method_call = new GetCrossReference_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -1129,6 +1194,7 @@ public GetCrossReference_call(TGetCrossReferenceReq req, org.apache.thrift.async
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetCrossReference", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetCrossReference_args args = new GetCrossReference_args();
@@ -1137,6 +1203,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TGetCrossReferenceResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -1147,6 +1214,7 @@ public TGetCrossReferenceResp getResult() throws org.apache.thrift.TException {
}
}
+ @Override
public void GetOperationStatus(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
GetOperationStatus_call method_call = new GetOperationStatus_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -1161,6 +1229,7 @@ public GetOperationStatus_call(TGetOperationStatusReq req, org.apache.thrift.asy
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetOperationStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetOperationStatus_args args = new GetOperationStatus_args();
@@ -1169,6 +1238,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TGetOperationStatusResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -1179,6 +1249,7 @@ public TGetOperationStatusResp getResult() throws org.apache.thrift.TException {
}
}
+ @Override
public void CancelOperation(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
CancelOperation_call method_call = new CancelOperation_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -1193,6 +1264,7 @@ public CancelOperation_call(TCancelOperationReq req, org.apache.thrift.async.Asy
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("CancelOperation", org.apache.thrift.protocol.TMessageType.CALL, 0));
CancelOperation_args args = new CancelOperation_args();
@@ -1201,6 +1273,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TCancelOperationResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -1211,6 +1284,7 @@ public TCancelOperationResp getResult() throws org.apache.thrift.TException {
}
}
+ @Override
public void CloseOperation(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
CloseOperation_call method_call = new CloseOperation_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -1225,6 +1299,7 @@ public CloseOperation_call(TCloseOperationReq req, org.apache.thrift.async.Async
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("CloseOperation", org.apache.thrift.protocol.TMessageType.CALL, 0));
CloseOperation_args args = new CloseOperation_args();
@@ -1233,6 +1308,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TCloseOperationResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -1243,6 +1319,7 @@ public TCloseOperationResp getResult() throws org.apache.thrift.TException {
}
}
+ @Override
public void GetResultSetMetadata(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
GetResultSetMetadata_call method_call = new GetResultSetMetadata_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -1257,6 +1334,7 @@ public GetResultSetMetadata_call(TGetResultSetMetadataReq req, org.apache.thrift
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetResultSetMetadata", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetResultSetMetadata_args args = new GetResultSetMetadata_args();
@@ -1265,6 +1343,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TGetResultSetMetadataResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -1275,6 +1354,7 @@ public TGetResultSetMetadataResp getResult() throws org.apache.thrift.TException
}
}
+ @Override
public void FetchResults(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
FetchResults_call method_call = new FetchResults_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -1289,6 +1369,7 @@ public FetchResults_call(TFetchResultsReq req, org.apache.thrift.async.AsyncMeth
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("FetchResults", org.apache.thrift.protocol.TMessageType.CALL, 0));
FetchResults_args args = new FetchResults_args();
@@ -1297,6 +1378,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TFetchResultsResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -1307,6 +1389,7 @@ public TFetchResultsResp getResult() throws org.apache.thrift.TException {
}
}
+ @Override
public void GetDelegationToken(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
GetDelegationToken_call method_call = new GetDelegationToken_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -1321,6 +1404,7 @@ public GetDelegationToken_call(TGetDelegationTokenReq req, org.apache.thrift.asy
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetDelegationToken", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetDelegationToken_args args = new GetDelegationToken_args();
@@ -1329,6 +1413,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TGetDelegationTokenResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -1339,6 +1424,7 @@ public TGetDelegationTokenResp getResult() throws org.apache.thrift.TException {
}
}
+ @Override
public void CancelDelegationToken(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
CancelDelegationToken_call method_call = new CancelDelegationToken_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -1353,6 +1439,7 @@ public CancelDelegationToken_call(TCancelDelegationTokenReq req, org.apache.thri
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("CancelDelegationToken", org.apache.thrift.protocol.TMessageType.CALL, 0));
CancelDelegationToken_args args = new CancelDelegationToken_args();
@@ -1361,6 +1448,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TCancelDelegationTokenResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -1371,6 +1459,7 @@ public TCancelDelegationTokenResp getResult() throws org.apache.thrift.TExceptio
}
}
+ @Override
public void RenewDelegationToken(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
RenewDelegationToken_call method_call = new RenewDelegationToken_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -1385,6 +1474,7 @@ public RenewDelegationToken_call(TRenewDelegationTokenReq req, org.apache.thrift
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("RenewDelegationToken", org.apache.thrift.protocol.TMessageType.CALL, 0));
RenewDelegationToken_args args = new RenewDelegationToken_args();
@@ -1393,6 +1483,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TRenewDelegationTokenResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -1403,6 +1494,7 @@ public TRenewDelegationTokenResp getResult() throws org.apache.thrift.TException
}
}
+ @Override
public void GetQueryId(TGetQueryIdReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
GetQueryId_call method_call = new GetQueryId_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -1417,6 +1509,7 @@ public GetQueryId_call(TGetQueryIdReq req, org.apache.thrift.async.AsyncMethodCa
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetQueryId", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetQueryId_args args = new GetQueryId_args();
@@ -1425,6 +1518,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TGetQueryIdResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -1435,6 +1529,7 @@ public TGetQueryIdResp getResult() throws org.apache.thrift.TException {
}
}
+ @Override
public void SetClientInfo(TSetClientInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
SetClientInfo_call method_call = new SetClientInfo_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -1449,6 +1544,7 @@ public SetClientInfo_call(TSetClientInfoReq req, org.apache.thrift.async.AsyncMe
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("SetClientInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
SetClientInfo_args args = new SetClientInfo_args();
@@ -1457,6 +1553,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TSetClientInfoResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -1467,6 +1564,7 @@ public TSetClientInfoResp getResult() throws org.apache.thrift.TException {
}
}
+ @Override
public void UploadData(TUploadDataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
UploadData_call method_call = new UploadData_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -1481,6 +1579,7 @@ public UploadData_call(TUploadDataReq req, org.apache.thrift.async.AsyncMethodCa
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("UploadData", org.apache.thrift.protocol.TMessageType.CALL, 0));
UploadData_args args = new UploadData_args();
@@ -1489,6 +1588,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TUploadDataResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -1499,6 +1599,7 @@ public TUploadDataResp getResult() throws org.apache.thrift.TException {
}
}
+ @Override
public void DownloadData(TDownloadDataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
DownloadData_call method_call = new DownloadData_call(req, resultHandler, this, ___protocolFactory, ___transport);
@@ -1513,6 +1614,7 @@ public DownloadData_call(TDownloadDataReq req, org.apache.thrift.async.AsyncMeth
this.req = req;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("DownloadData", org.apache.thrift.protocol.TMessageType.CALL, 0));
DownloadData_args args = new DownloadData_args();
@@ -1521,6 +1623,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
prot.writeMessageEnd();
}
+ @Override
public TDownloadDataResp getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
@@ -1536,14 +1639,14 @@ public TDownloadDataResp getResult() throws org.apache.thrift.TException {
@org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor {
private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName());
public Processor(I iface) {
- super(iface, getProcessMap(new java.util.HashMap>()));
+ super(iface, getProcessMap(new java.util.HashMap>()));
}
- protected Processor(I iface, java.util.Map> processMap) {
+ protected Processor(I iface, java.util.Map> processMap) {
super(iface, getProcessMap(processMap));
}
- private static java.util.Map> getProcessMap(java.util.Map> processMap) {
+ private static java.util.Map> getProcessMap(java.util.Map> processMap) {
processMap.put("OpenSession", new OpenSession());
processMap.put("CloseSession", new CloseSession());
processMap.put("GetInfo", new GetInfo());
@@ -1572,16 +1675,18 @@ protected Processor(I iface, java.util.Map extends org.apache.thrift.ProcessFunction {
+ @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class OpenSession extends org.apache.thrift.ProcessFunction {
public OpenSession() {
super("OpenSession");
}
+ @Override
public OpenSession_args getEmptyArgsInstance() {
return new OpenSession_args();
}
- protected boolean isOneway() {
+ @Override
+ public boolean isOneway() {
return false;
}
@@ -1590,23 +1695,31 @@ protected boolean rethrowUnhandledExceptions() {
return false;
}
+ @Override
+ public OpenSession_result getEmptyResultInstance() {
+ return new OpenSession_result();
+ }
+
+ @Override
public OpenSession_result getResult(I iface, OpenSession_args args) throws org.apache.thrift.TException {
- OpenSession_result result = new OpenSession_result();
+ OpenSession_result result = getEmptyResultInstance();
result.success = iface.OpenSession(args.req);
return result;
}
}
- @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class CloseSession extends org.apache.thrift.ProcessFunction {
+ @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class CloseSession extends org.apache.thrift.ProcessFunction {
public CloseSession() {
super("CloseSession");
}
+ @Override
public CloseSession_args getEmptyArgsInstance() {
return new CloseSession_args();
}
- protected boolean isOneway() {
+ @Override
+ public boolean isOneway() {
return false;
}
@@ -1615,23 +1728,31 @@ protected boolean rethrowUnhandledExceptions() {
return false;
}
+ @Override
+ public CloseSession_result getEmptyResultInstance() {
+ return new CloseSession_result();
+ }
+
+ @Override
public CloseSession_result getResult(I iface, CloseSession_args args) throws org.apache.thrift.TException {
- CloseSession_result result = new CloseSession_result();
+ CloseSession_result result = getEmptyResultInstance();
result.success = iface.CloseSession(args.req);
return result;
}
}
- @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetInfo extends org.apache.thrift.ProcessFunction {
+ @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetInfo extends org.apache.thrift.ProcessFunction {
public GetInfo() {
super("GetInfo");
}
+ @Override
public GetInfo_args getEmptyArgsInstance() {
return new GetInfo_args();
}
- protected boolean isOneway() {
+ @Override
+ public boolean isOneway() {
return false;
}
@@ -1640,23 +1761,31 @@ protected boolean rethrowUnhandledExceptions() {
return false;
}
+ @Override
+ public GetInfo_result getEmptyResultInstance() {
+ return new GetInfo_result();
+ }
+
+ @Override
public GetInfo_result getResult(I iface, GetInfo_args args) throws org.apache.thrift.TException {
- GetInfo_result result = new GetInfo_result();
+ GetInfo_result result = getEmptyResultInstance();
result.success = iface.GetInfo(args.req);
return result;
}
}
- @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class ExecuteStatement extends org.apache.thrift.ProcessFunction {
+ @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class ExecuteStatement extends org.apache.thrift.ProcessFunction {
public ExecuteStatement() {
super("ExecuteStatement");
}
+ @Override
public ExecuteStatement_args getEmptyArgsInstance() {
return new ExecuteStatement_args();
}
- protected boolean isOneway() {
+ @Override
+ public boolean isOneway() {
return false;
}
@@ -1665,23 +1794,31 @@ protected boolean rethrowUnhandledExceptions() {
return false;
}
+ @Override
+ public ExecuteStatement_result getEmptyResultInstance() {
+ return new ExecuteStatement_result();
+ }
+
+ @Override
public ExecuteStatement_result getResult(I iface, ExecuteStatement_args args) throws org.apache.thrift.TException {
- ExecuteStatement_result result = new ExecuteStatement_result();
+ ExecuteStatement_result result = getEmptyResultInstance();
result.success = iface.ExecuteStatement(args.req);
return result;
}
}
- @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetTypeInfo extends org.apache.thrift.ProcessFunction {
+ @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetTypeInfo extends org.apache.thrift.ProcessFunction {
public GetTypeInfo() {
super("GetTypeInfo");
}
+ @Override
public GetTypeInfo_args getEmptyArgsInstance() {
return new GetTypeInfo_args();
}
- protected boolean isOneway() {
+ @Override
+ public boolean isOneway() {
return false;
}
@@ -1690,23 +1827,31 @@ protected boolean rethrowUnhandledExceptions() {
return false;
}
+ @Override
+ public GetTypeInfo_result getEmptyResultInstance() {
+ return new GetTypeInfo_result();
+ }
+
+ @Override
public GetTypeInfo_result getResult(I iface, GetTypeInfo_args args) throws org.apache.thrift.TException {
- GetTypeInfo_result result = new GetTypeInfo_result();
+ GetTypeInfo_result result = getEmptyResultInstance();
result.success = iface.GetTypeInfo(args.req);
return result;
}
}
- @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetCatalogs extends org.apache.thrift.ProcessFunction {
+ @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetCatalogs extends org.apache.thrift.ProcessFunction {
public GetCatalogs() {
super("GetCatalogs");
}
+ @Override
public GetCatalogs_args getEmptyArgsInstance() {
return new GetCatalogs_args();
}
- protected boolean isOneway() {
+ @Override
+ public boolean isOneway() {
return false;
}
@@ -1715,23 +1860,31 @@ protected boolean rethrowUnhandledExceptions() {
return false;
}
+ @Override
+ public GetCatalogs_result getEmptyResultInstance() {
+ return new GetCatalogs_result();
+ }
+
+ @Override
public GetCatalogs_result getResult(I iface, GetCatalogs_args args) throws org.apache.thrift.TException {
- GetCatalogs_result result = new GetCatalogs_result();
+ GetCatalogs_result result = getEmptyResultInstance();
result.success = iface.GetCatalogs(args.req);
return result;
}
}
- @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetSchemas extends org.apache.thrift.ProcessFunction {
+ @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetSchemas extends org.apache.thrift.ProcessFunction {
public GetSchemas() {
super("GetSchemas");
}
+ @Override
public GetSchemas_args getEmptyArgsInstance() {
return new GetSchemas_args();
}
- protected boolean isOneway() {
+ @Override
+ public boolean isOneway() {
return false;
}
@@ -1740,23 +1893,31 @@ protected boolean rethrowUnhandledExceptions() {
return false;
}
+ @Override
+ public GetSchemas_result getEmptyResultInstance() {
+ return new GetSchemas_result();
+ }
+
+ @Override
public GetSchemas_result getResult(I iface, GetSchemas_args args) throws org.apache.thrift.TException {
- GetSchemas_result result = new GetSchemas_result();
+ GetSchemas_result result = getEmptyResultInstance();
result.success = iface.GetSchemas(args.req);
return result;
}
}
- @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetTables extends org.apache.thrift.ProcessFunction {
+ @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetTables extends org.apache.thrift.ProcessFunction {
public GetTables() {
super("GetTables");
}
+ @Override
public GetTables_args getEmptyArgsInstance() {
return new GetTables_args();
}
- protected boolean isOneway() {
+ @Override
+ public boolean isOneway() {
return false;
}
@@ -1765,23 +1926,31 @@ protected boolean rethrowUnhandledExceptions() {
return false;
}
+ @Override
+ public GetTables_result getEmptyResultInstance() {
+ return new GetTables_result();
+ }
+
+ @Override
public GetTables_result getResult(I iface, GetTables_args args) throws org.apache.thrift.TException {
- GetTables_result result = new GetTables_result();
+ GetTables_result result = getEmptyResultInstance();
result.success = iface.GetTables(args.req);
return result;
}
}
- @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetTableTypes extends org.apache.thrift.ProcessFunction {
+ @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetTableTypes extends org.apache.thrift.ProcessFunction {
public GetTableTypes() {
super("GetTableTypes");
}
+ @Override
public GetTableTypes_args getEmptyArgsInstance() {
return new GetTableTypes_args();
}
- protected boolean isOneway() {
+ @Override
+ public boolean isOneway() {
return false;
}
@@ -1790,23 +1959,31 @@ protected boolean rethrowUnhandledExceptions() {
return false;
}
+ @Override
+ public GetTableTypes_result getEmptyResultInstance() {
+ return new GetTableTypes_result();
+ }
+
+ @Override
public GetTableTypes_result getResult(I iface, GetTableTypes_args args) throws org.apache.thrift.TException {
- GetTableTypes_result result = new GetTableTypes_result();
+ GetTableTypes_result result = getEmptyResultInstance();
result.success = iface.GetTableTypes(args.req);
return result;
}
}
- @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetColumns extends org.apache.thrift.ProcessFunction {
+ @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetColumns extends org.apache.thrift.ProcessFunction {
public GetColumns() {
super("GetColumns");
}
+ @Override
public GetColumns_args getEmptyArgsInstance() {
return new GetColumns_args();
}
- protected boolean isOneway() {
+ @Override
+ public boolean isOneway() {
return false;
}
@@ -1815,23 +1992,31 @@ protected boolean rethrowUnhandledExceptions() {
return false;
}
+ @Override
+ public GetColumns_result getEmptyResultInstance() {
+ return new GetColumns_result();
+ }
+
+ @Override
public GetColumns_result getResult(I iface, GetColumns_args args) throws org.apache.thrift.TException {
- GetColumns_result result = new GetColumns_result();
+ GetColumns_result result = getEmptyResultInstance();
result.success = iface.GetColumns(args.req);
return result;
}
}
- @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetFunctions extends org.apache.thrift.ProcessFunction {
+ @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetFunctions extends org.apache.thrift.ProcessFunction {
public GetFunctions() {
super("GetFunctions");
}
+ @Override
public GetFunctions_args getEmptyArgsInstance() {
return new GetFunctions_args();
}
- protected boolean isOneway() {
+ @Override
+ public boolean isOneway() {
return false;
}
@@ -1840,23 +2025,31 @@ protected boolean rethrowUnhandledExceptions() {
return false;
}
+ @Override
+ public GetFunctions_result getEmptyResultInstance() {
+ return new GetFunctions_result();
+ }
+
+ @Override
public GetFunctions_result getResult(I iface, GetFunctions_args args) throws org.apache.thrift.TException {
- GetFunctions_result result = new GetFunctions_result();
+ GetFunctions_result result = getEmptyResultInstance();
result.success = iface.GetFunctions(args.req);
return result;
}
}
- @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetPrimaryKeys extends org.apache.thrift.ProcessFunction {
+ @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetPrimaryKeys extends org.apache.thrift.ProcessFunction {
public GetPrimaryKeys() {
super("GetPrimaryKeys");
}
+ @Override
public GetPrimaryKeys_args getEmptyArgsInstance() {
return new GetPrimaryKeys_args();
}
- protected boolean isOneway() {
+ @Override
+ public boolean isOneway() {
return false;
}
@@ -1865,23 +2058,31 @@ protected boolean rethrowUnhandledExceptions() {
return false;
}
+ @Override
+ public GetPrimaryKeys_result getEmptyResultInstance() {
+ return new GetPrimaryKeys_result();
+ }
+
+ @Override
public GetPrimaryKeys_result getResult(I iface, GetPrimaryKeys_args args) throws org.apache.thrift.TException {
- GetPrimaryKeys_result result = new GetPrimaryKeys_result();
+ GetPrimaryKeys_result result = getEmptyResultInstance();
result.success = iface.GetPrimaryKeys(args.req);
return result;
}
}
- @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetCrossReference extends org.apache.thrift.ProcessFunction {
+ @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetCrossReference extends org.apache.thrift.ProcessFunction {
public GetCrossReference() {
super("GetCrossReference");
}
+ @Override
public GetCrossReference_args getEmptyArgsInstance() {
return new GetCrossReference_args();
}
- protected boolean isOneway() {
+ @Override
+ public boolean isOneway() {
return false;
}
@@ -1890,23 +2091,31 @@ protected boolean rethrowUnhandledExceptions() {
return false;
}
+ @Override
+ public GetCrossReference_result getEmptyResultInstance() {
+ return new GetCrossReference_result();
+ }
+
+ @Override
public GetCrossReference_result getResult(I iface, GetCrossReference_args args) throws org.apache.thrift.TException {
- GetCrossReference_result result = new GetCrossReference_result();
+ GetCrossReference_result result = getEmptyResultInstance();
result.success = iface.GetCrossReference(args.req);
return result;
}
}
- @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetOperationStatus extends org.apache.thrift.ProcessFunction {
+ @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetOperationStatus extends org.apache.thrift.ProcessFunction {
public GetOperationStatus() {
super("GetOperationStatus");
}
+ @Override
public GetOperationStatus_args getEmptyArgsInstance() {
return new GetOperationStatus_args();
}
- protected boolean isOneway() {
+ @Override
+ public boolean isOneway() {
return false;
}
@@ -1915,23 +2124,31 @@ protected boolean rethrowUnhandledExceptions() {
return false;
}
+ @Override
+ public GetOperationStatus_result getEmptyResultInstance() {
+ return new GetOperationStatus_result();
+ }
+
+ @Override
public GetOperationStatus_result getResult(I iface, GetOperationStatus_args args) throws org.apache.thrift.TException {
- GetOperationStatus_result result = new GetOperationStatus_result();
+ GetOperationStatus_result result = getEmptyResultInstance();
result.success = iface.GetOperationStatus(args.req);
return result;
}
}
- @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class CancelOperation extends org.apache.thrift.ProcessFunction {
+ @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class CancelOperation extends org.apache.thrift.ProcessFunction {
public CancelOperation() {
super("CancelOperation");
}
+ @Override
public CancelOperation_args getEmptyArgsInstance() {
return new CancelOperation_args();
}
- protected boolean isOneway() {
+ @Override
+ public boolean isOneway() {
return false;
}
@@ -1940,23 +2157,31 @@ protected boolean rethrowUnhandledExceptions() {
return false;
}
+ @Override
+ public CancelOperation_result getEmptyResultInstance() {
+ return new CancelOperation_result();
+ }
+
+ @Override
public CancelOperation_result getResult(I iface, CancelOperation_args args) throws org.apache.thrift.TException {
- CancelOperation_result result = new CancelOperation_result();
+ CancelOperation_result result = getEmptyResultInstance();
result.success = iface.CancelOperation(args.req);
return result;
}
}
- @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class CloseOperation extends org.apache.thrift.ProcessFunction {
+ @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class CloseOperation extends org.apache.thrift.ProcessFunction {
public CloseOperation() {
super("CloseOperation");
}
+ @Override
public CloseOperation_args getEmptyArgsInstance() {
return new CloseOperation_args();
}
- protected boolean isOneway() {
+ @Override
+ public boolean isOneway() {
return false;
}
@@ -1965,23 +2190,31 @@ protected boolean rethrowUnhandledExceptions() {
return false;
}
+ @Override
+ public CloseOperation_result getEmptyResultInstance() {
+ return new CloseOperation_result();
+ }
+
+ @Override
public CloseOperation_result getResult(I iface, CloseOperation_args args) throws org.apache.thrift.TException {
- CloseOperation_result result = new CloseOperation_result();
+ CloseOperation_result result = getEmptyResultInstance();
result.success = iface.CloseOperation(args.req);
return result;
}
}
- @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetResultSetMetadata extends org.apache.thrift.ProcessFunction {
+ @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetResultSetMetadata extends org.apache.thrift.ProcessFunction {
public GetResultSetMetadata() {
super("GetResultSetMetadata");
}
+ @Override
public GetResultSetMetadata_args getEmptyArgsInstance() {
return new GetResultSetMetadata_args();
}
- protected boolean isOneway() {
+ @Override
+ public boolean isOneway() {
return false;
}
@@ -1990,23 +2223,31 @@ protected boolean rethrowUnhandledExceptions() {
return false;
}
+ @Override
+ public GetResultSetMetadata_result getEmptyResultInstance() {
+ return new GetResultSetMetadata_result();
+ }
+
+ @Override
public GetResultSetMetadata_result getResult(I iface, GetResultSetMetadata_args args) throws org.apache.thrift.TException {
- GetResultSetMetadata_result result = new GetResultSetMetadata_result();
+ GetResultSetMetadata_result result = getEmptyResultInstance();
result.success = iface.GetResultSetMetadata(args.req);
return result;
}
}
- @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class FetchResults extends org.apache.thrift.ProcessFunction {
+ @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class FetchResults extends org.apache.thrift.ProcessFunction {
public FetchResults() {
super("FetchResults");
}
+ @Override
public FetchResults_args getEmptyArgsInstance() {
return new FetchResults_args();
}
- protected boolean isOneway() {
+ @Override
+ public boolean isOneway() {
return false;
}
@@ -2015,23 +2256,31 @@ protected boolean rethrowUnhandledExceptions() {
return false;
}
+ @Override
+ public FetchResults_result getEmptyResultInstance() {
+ return new FetchResults_result();
+ }
+
+ @Override
public FetchResults_result getResult(I iface, FetchResults_args args) throws org.apache.thrift.TException {
- FetchResults_result result = new FetchResults_result();
+ FetchResults_result result = getEmptyResultInstance();
result.success = iface.FetchResults(args.req);
return result;
}
}
- @org.apache.hadoop.hive.common.classification.InterfaceAudience.Public @org.apache.hadoop.hive.common.classification.InterfaceStability.Stable public static class GetDelegationToken extends org.apache.thrift.ProcessFunction