com.databricks.jdbc.client.impl.thrift.generated.TCLIService Maven / Gradle / Ivy
/**
* Autogenerated by Thrift Compiler (0.19.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*
* @generated
*/
package com.databricks.jdbc.client.impl.thrift.generated;
import com.databricks.jdbc.commons.LogLevel;
import com.databricks.jdbc.commons.util.LoggingUtil;
@javax.annotation.Generated(
value = "Autogenerated by Thrift Compiler (0.19.0)",
date = "2024-05-06")
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public class TCLIService {
public interface Iface {
public TOpenSessionResp OpenSession(TOpenSessionReq req) throws org.apache.thrift.TException;
public TCloseSessionResp CloseSession(TCloseSessionReq req) throws org.apache.thrift.TException;
public TGetInfoResp GetInfo(TGetInfoReq req) throws org.apache.thrift.TException;
public TExecuteStatementResp ExecuteStatement(TExecuteStatementReq req)
throws org.apache.thrift.TException;
public TGetTypeInfoResp GetTypeInfo(TGetTypeInfoReq req) throws org.apache.thrift.TException;
public TGetCatalogsResp GetCatalogs(TGetCatalogsReq req) throws org.apache.thrift.TException;
public TGetSchemasResp GetSchemas(TGetSchemasReq req) throws org.apache.thrift.TException;
public TGetTablesResp GetTables(TGetTablesReq req) throws org.apache.thrift.TException;
public TGetTableTypesResp GetTableTypes(TGetTableTypesReq req)
throws org.apache.thrift.TException;
public TGetColumnsResp GetColumns(TGetColumnsReq req) throws org.apache.thrift.TException;
public TGetFunctionsResp GetFunctions(TGetFunctionsReq req) throws org.apache.thrift.TException;
public TGetPrimaryKeysResp GetPrimaryKeys(TGetPrimaryKeysReq req)
throws org.apache.thrift.TException;
public TGetCrossReferenceResp GetCrossReference(TGetCrossReferenceReq req)
throws org.apache.thrift.TException;
public TGetOperationStatusResp GetOperationStatus(TGetOperationStatusReq req)
throws org.apache.thrift.TException;
public TCancelOperationResp CancelOperation(TCancelOperationReq req)
throws org.apache.thrift.TException;
public TCloseOperationResp CloseOperation(TCloseOperationReq req)
throws org.apache.thrift.TException;
public TGetResultSetMetadataResp GetResultSetMetadata(TGetResultSetMetadataReq req)
throws org.apache.thrift.TException;
public TFetchResultsResp FetchResults(TFetchResultsReq req) throws org.apache.thrift.TException;
public TGetDelegationTokenResp GetDelegationToken(TGetDelegationTokenReq req)
throws org.apache.thrift.TException;
public TCancelDelegationTokenResp CancelDelegationToken(TCancelDelegationTokenReq req)
throws org.apache.thrift.TException;
public TRenewDelegationTokenResp RenewDelegationToken(TRenewDelegationTokenReq req)
throws org.apache.thrift.TException;
}
public interface AsyncIface {
public void OpenSession(
TOpenSessionReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
public void CloseSession(
TCloseSessionReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
public void GetInfo(
TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
public void ExecuteStatement(
TExecuteStatementReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
public void GetTypeInfo(
TGetTypeInfoReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
public void GetCatalogs(
TGetCatalogsReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
public void GetSchemas(
TGetSchemasReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
public void GetTables(
TGetTablesReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
public void GetTableTypes(
TGetTableTypesReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
public void GetColumns(
TGetColumnsReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
public void GetFunctions(
TGetFunctionsReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
public void GetPrimaryKeys(
TGetPrimaryKeysReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
public void GetCrossReference(
TGetCrossReferenceReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
public void GetOperationStatus(
TGetOperationStatusReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
public void CancelOperation(
TCancelOperationReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
public void CloseOperation(
TCloseOperationReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
public void GetResultSetMetadata(
TGetResultSetMetadataReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
public void FetchResults(
TFetchResultsReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
public void GetDelegationToken(
TGetDelegationTokenReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
public void CancelDelegationToken(
TCancelDelegationTokenReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
public void RenewDelegationToken(
TRenewDelegationTokenReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
}
public static class Client extends org.apache.thrift.TServiceClient implements Iface {
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);
}
}
public Client(org.apache.thrift.protocol.TProtocol prot) {
super(prot, prot);
}
public Client(
org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
super(iprot, oprot);
}
@Override
public TOpenSessionResp OpenSession(TOpenSessionReq req) throws org.apache.thrift.TException {
send_OpenSession(req);
return recv_OpenSession();
}
public void send_OpenSession(TOpenSessionReq req) throws org.apache.thrift.TException {
OpenSession_args args = new OpenSession_args();
args.setReq(req);
sendBase("OpenSession", args);
}
public TOpenSessionResp recv_OpenSession() throws org.apache.thrift.TException {
OpenSession_result result = new OpenSession_result();
receiveBase(result, "OpenSession");
if (result.isSetSuccess()) {
return result.success;
}
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);
return recv_CloseSession();
}
public void send_CloseSession(TCloseSessionReq req) throws org.apache.thrift.TException {
CloseSession_args args = new CloseSession_args();
args.setReq(req);
sendBase("CloseSession", args);
}
public TCloseSessionResp recv_CloseSession() throws org.apache.thrift.TException {
CloseSession_result result = new CloseSession_result();
receiveBase(result, "CloseSession");
if (result.isSetSuccess()) {
return result.success;
}
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);
return recv_GetInfo();
}
public void send_GetInfo(TGetInfoReq req) throws org.apache.thrift.TException {
GetInfo_args args = new GetInfo_args();
args.setReq(req);
sendBase("GetInfo", args);
}
public TGetInfoResp recv_GetInfo() throws org.apache.thrift.TException {
GetInfo_result result = new GetInfo_result();
receiveBase(result, "GetInfo");
if (result.isSetSuccess()) {
return result.success;
}
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);
return recv_ExecuteStatement();
}
public void send_ExecuteStatement(TExecuteStatementReq req)
throws org.apache.thrift.TException {
ExecuteStatement_args args = new ExecuteStatement_args();
args.setReq(req);
sendBase("ExecuteStatement", args);
}
public TExecuteStatementResp recv_ExecuteStatement() throws org.apache.thrift.TException {
ExecuteStatement_result result = new ExecuteStatement_result();
receiveBase(result, "ExecuteStatement");
if (result.isSetSuccess()) {
return result.success;
}
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);
return recv_GetTypeInfo();
}
public void send_GetTypeInfo(TGetTypeInfoReq req) throws org.apache.thrift.TException {
GetTypeInfo_args args = new GetTypeInfo_args();
args.setReq(req);
sendBase("GetTypeInfo", args);
}
public TGetTypeInfoResp recv_GetTypeInfo() throws org.apache.thrift.TException {
GetTypeInfo_result result = new GetTypeInfo_result();
receiveBase(result, "GetTypeInfo");
if (result.isSetSuccess()) {
return result.success;
}
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);
return recv_GetCatalogs();
}
public void send_GetCatalogs(TGetCatalogsReq req) throws org.apache.thrift.TException {
GetCatalogs_args args = new GetCatalogs_args();
args.setReq(req);
sendBase("GetCatalogs", args);
}
public TGetCatalogsResp recv_GetCatalogs() throws org.apache.thrift.TException {
GetCatalogs_result result = new GetCatalogs_result();
receiveBase(result, "GetCatalogs");
if (result.isSetSuccess()) {
return result.success;
}
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);
return recv_GetSchemas();
}
public void send_GetSchemas(TGetSchemasReq req) throws org.apache.thrift.TException {
GetSchemas_args args = new GetSchemas_args();
args.setReq(req);
sendBase("GetSchemas", args);
}
public TGetSchemasResp recv_GetSchemas() throws org.apache.thrift.TException {
GetSchemas_result result = new GetSchemas_result();
receiveBase(result, "GetSchemas");
if (result.isSetSuccess()) {
return result.success;
}
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);
return recv_GetTables();
}
public void send_GetTables(TGetTablesReq req) throws org.apache.thrift.TException {
GetTables_args args = new GetTables_args();
args.setReq(req);
sendBase("GetTables", args);
}
public TGetTablesResp recv_GetTables() throws org.apache.thrift.TException {
GetTables_result result = new GetTables_result();
receiveBase(result, "GetTables");
if (result.isSetSuccess()) {
return result.success;
}
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);
return recv_GetTableTypes();
}
public void send_GetTableTypes(TGetTableTypesReq req) throws org.apache.thrift.TException {
GetTableTypes_args args = new GetTableTypes_args();
args.setReq(req);
sendBase("GetTableTypes", args);
}
public TGetTableTypesResp recv_GetTableTypes() throws org.apache.thrift.TException {
GetTableTypes_result result = new GetTableTypes_result();
receiveBase(result, "GetTableTypes");
if (result.isSetSuccess()) {
return result.success;
}
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);
return recv_GetColumns();
}
public void send_GetColumns(TGetColumnsReq req) throws org.apache.thrift.TException {
GetColumns_args args = new GetColumns_args();
args.setReq(req);
sendBase("GetColumns", args);
}
public TGetColumnsResp recv_GetColumns() throws org.apache.thrift.TException {
GetColumns_result result = new GetColumns_result();
receiveBase(result, "GetColumns");
if (result.isSetSuccess()) {
return result.success;
}
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);
return recv_GetFunctions();
}
public void send_GetFunctions(TGetFunctionsReq req) throws org.apache.thrift.TException {
GetFunctions_args args = new GetFunctions_args();
args.setReq(req);
sendBase("GetFunctions", args);
}
public TGetFunctionsResp recv_GetFunctions() throws org.apache.thrift.TException {
GetFunctions_result result = new GetFunctions_result();
receiveBase(result, "GetFunctions");
if (result.isSetSuccess()) {
return result.success;
}
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);
return recv_GetPrimaryKeys();
}
public void send_GetPrimaryKeys(TGetPrimaryKeysReq req) throws org.apache.thrift.TException {
GetPrimaryKeys_args args = new GetPrimaryKeys_args();
args.setReq(req);
sendBase("GetPrimaryKeys", args);
}
public TGetPrimaryKeysResp recv_GetPrimaryKeys() throws org.apache.thrift.TException {
GetPrimaryKeys_result result = new GetPrimaryKeys_result();
receiveBase(result, "GetPrimaryKeys");
if (result.isSetSuccess()) {
return result.success;
}
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);
return recv_GetCrossReference();
}
public void send_GetCrossReference(TGetCrossReferenceReq req)
throws org.apache.thrift.TException {
GetCrossReference_args args = new GetCrossReference_args();
args.setReq(req);
sendBase("GetCrossReference", args);
}
public TGetCrossReferenceResp recv_GetCrossReference() throws org.apache.thrift.TException {
GetCrossReference_result result = new GetCrossReference_result();
receiveBase(result, "GetCrossReference");
if (result.isSetSuccess()) {
return result.success;
}
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);
return recv_GetOperationStatus();
}
public void send_GetOperationStatus(TGetOperationStatusReq req)
throws org.apache.thrift.TException {
GetOperationStatus_args args = new GetOperationStatus_args();
args.setReq(req);
sendBase("GetOperationStatus", args);
}
public TGetOperationStatusResp recv_GetOperationStatus() throws org.apache.thrift.TException {
GetOperationStatus_result result = new GetOperationStatus_result();
receiveBase(result, "GetOperationStatus");
if (result.isSetSuccess()) {
return result.success;
}
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);
return recv_CancelOperation();
}
public void send_CancelOperation(TCancelOperationReq req) throws org.apache.thrift.TException {
CancelOperation_args args = new CancelOperation_args();
args.setReq(req);
sendBase("CancelOperation", args);
}
public TCancelOperationResp recv_CancelOperation() throws org.apache.thrift.TException {
CancelOperation_result result = new CancelOperation_result();
receiveBase(result, "CancelOperation");
if (result.isSetSuccess()) {
return result.success;
}
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);
return recv_CloseOperation();
}
public void send_CloseOperation(TCloseOperationReq req) throws org.apache.thrift.TException {
CloseOperation_args args = new CloseOperation_args();
args.setReq(req);
sendBase("CloseOperation", args);
}
public TCloseOperationResp recv_CloseOperation() throws org.apache.thrift.TException {
CloseOperation_result result = new CloseOperation_result();
receiveBase(result, "CloseOperation");
if (result.isSetSuccess()) {
return result.success;
}
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);
return recv_GetResultSetMetadata();
}
public void send_GetResultSetMetadata(TGetResultSetMetadataReq req)
throws org.apache.thrift.TException {
GetResultSetMetadata_args args = new GetResultSetMetadata_args();
args.setReq(req);
sendBase("GetResultSetMetadata", args);
}
public TGetResultSetMetadataResp recv_GetResultSetMetadata()
throws org.apache.thrift.TException {
GetResultSetMetadata_result result = new GetResultSetMetadata_result();
receiveBase(result, "GetResultSetMetadata");
if (result.isSetSuccess()) {
return result.success;
}
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);
return recv_FetchResults();
}
public void send_FetchResults(TFetchResultsReq req) throws org.apache.thrift.TException {
FetchResults_args args = new FetchResults_args();
args.setReq(req);
sendBase("FetchResults", args);
}
public TFetchResultsResp recv_FetchResults() throws org.apache.thrift.TException {
FetchResults_result result = new FetchResults_result();
receiveBase(result, "FetchResults");
if (result.isSetSuccess()) {
return result.success;
}
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);
return recv_GetDelegationToken();
}
public void send_GetDelegationToken(TGetDelegationTokenReq req)
throws org.apache.thrift.TException {
GetDelegationToken_args args = new GetDelegationToken_args();
args.setReq(req);
sendBase("GetDelegationToken", args);
}
public TGetDelegationTokenResp recv_GetDelegationToken() throws org.apache.thrift.TException {
GetDelegationToken_result result = new GetDelegationToken_result();
receiveBase(result, "GetDelegationToken");
if (result.isSetSuccess()) {
return result.success;
}
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);
return recv_CancelDelegationToken();
}
public void send_CancelDelegationToken(TCancelDelegationTokenReq req)
throws org.apache.thrift.TException {
CancelDelegationToken_args args = new CancelDelegationToken_args();
args.setReq(req);
sendBase("CancelDelegationToken", args);
}
public TCancelDelegationTokenResp recv_CancelDelegationToken()
throws org.apache.thrift.TException {
CancelDelegationToken_result result = new CancelDelegationToken_result();
receiveBase(result, "CancelDelegationToken");
if (result.isSetSuccess()) {
return result.success;
}
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);
return recv_RenewDelegationToken();
}
public void send_RenewDelegationToken(TRenewDelegationTokenReq req)
throws org.apache.thrift.TException {
RenewDelegationToken_args args = new RenewDelegationToken_args();
args.setReq(req);
sendBase("RenewDelegationToken", args);
}
public TRenewDelegationTokenResp recv_RenewDelegationToken()
throws org.apache.thrift.TException {
RenewDelegationToken_result result = new RenewDelegationToken_result();
receiveBase(result, "RenewDelegationToken");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.MISSING_RESULT,
"RenewDelegationToken failed: unknown result");
}
}
public static class AsyncClient extends org.apache.thrift.async.TAsyncClient
implements AsyncIface {
public static class Factory
implements org.apache.thrift.async.TAsyncClientFactory {
private org.apache.thrift.async.TAsyncClientManager clientManager;
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
public Factory(
org.apache.thrift.async.TAsyncClientManager clientManager,
org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
this.clientManager = clientManager;
this.protocolFactory = protocolFactory;
}
@Override
public AsyncClient getAsyncClient(
org.apache.thrift.transport.TNonblockingTransport transport) {
return new AsyncClient(protocolFactory, clientManager, transport);
}
}
public AsyncClient(
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.async.TAsyncClientManager clientManager,
org.apache.thrift.transport.TNonblockingTransport transport) {
super(protocolFactory, clientManager, transport);
}
@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);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class OpenSession_call
extends org.apache.thrift.async.TAsyncMethodCall {
private TOpenSessionReq req;
public OpenSession_call(
TOpenSessionReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
org.apache.thrift.async.TAsyncClient client,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.transport.TNonblockingTransport transport)
throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.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();
args.setReq(req);
args.write(prot);
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!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport =
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot =
client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_OpenSession();
}
}
@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);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class CloseSession_call
extends org.apache.thrift.async.TAsyncMethodCall {
private TCloseSessionReq req;
public CloseSession_call(
TCloseSessionReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
org.apache.thrift.async.TAsyncClient client,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.transport.TNonblockingTransport transport)
throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.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();
args.setReq(req);
args.write(prot);
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!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport =
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot =
client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_CloseSession();
}
}
@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);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetInfo_call
extends org.apache.thrift.async.TAsyncMethodCall {
private TGetInfoReq req;
public GetInfo_call(
TGetInfoReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
org.apache.thrift.async.TAsyncClient client,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.transport.TNonblockingTransport transport)
throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.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();
args.setReq(req);
args.write(prot);
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!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport =
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot =
client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetInfo();
}
}
@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);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class ExecuteStatement_call
extends org.apache.thrift.async.TAsyncMethodCall {
private TExecuteStatementReq req;
public ExecuteStatement_call(
TExecuteStatementReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
org.apache.thrift.async.TAsyncClient client,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.transport.TNonblockingTransport transport)
throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.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();
args.setReq(req);
args.write(prot);
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!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport =
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot =
client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_ExecuteStatement();
}
}
@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);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetTypeInfo_call
extends org.apache.thrift.async.TAsyncMethodCall {
private TGetTypeInfoReq req;
public GetTypeInfo_call(
TGetTypeInfoReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
org.apache.thrift.async.TAsyncClient client,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.transport.TNonblockingTransport transport)
throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.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();
args.setReq(req);
args.write(prot);
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!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport =
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot =
client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetTypeInfo();
}
}
@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);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetCatalogs_call
extends org.apache.thrift.async.TAsyncMethodCall {
private TGetCatalogsReq req;
public GetCatalogs_call(
TGetCatalogsReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
org.apache.thrift.async.TAsyncClient client,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.transport.TNonblockingTransport transport)
throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.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();
args.setReq(req);
args.write(prot);
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!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport =
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot =
client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetCatalogs();
}
}
@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);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetSchemas_call
extends org.apache.thrift.async.TAsyncMethodCall {
private TGetSchemasReq req;
public GetSchemas_call(
TGetSchemasReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
org.apache.thrift.async.TAsyncClient client,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.transport.TNonblockingTransport transport)
throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.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();
args.setReq(req);
args.write(prot);
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!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport =
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot =
client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetSchemas();
}
}
@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);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetTables_call
extends org.apache.thrift.async.TAsyncMethodCall {
private TGetTablesReq req;
public GetTables_call(
TGetTablesReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
org.apache.thrift.async.TAsyncClient client,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.transport.TNonblockingTransport transport)
throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.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();
args.setReq(req);
args.write(prot);
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!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport =
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot =
client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetTables();
}
}
@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);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetTableTypes_call
extends org.apache.thrift.async.TAsyncMethodCall {
private TGetTableTypesReq req;
public GetTableTypes_call(
TGetTableTypesReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
org.apache.thrift.async.TAsyncClient client,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.transport.TNonblockingTransport transport)
throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.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();
args.setReq(req);
args.write(prot);
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!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport =
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot =
client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetTableTypes();
}
}
@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);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetColumns_call
extends org.apache.thrift.async.TAsyncMethodCall {
private TGetColumnsReq req;
public GetColumns_call(
TGetColumnsReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
org.apache.thrift.async.TAsyncClient client,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.transport.TNonblockingTransport transport)
throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.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();
args.setReq(req);
args.write(prot);
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!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport =
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot =
client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetColumns();
}
}
@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);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetFunctions_call
extends org.apache.thrift.async.TAsyncMethodCall {
private TGetFunctionsReq req;
public GetFunctions_call(
TGetFunctionsReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
org.apache.thrift.async.TAsyncClient client,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.transport.TNonblockingTransport transport)
throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.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();
args.setReq(req);
args.write(prot);
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!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport =
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot =
client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetFunctions();
}
}
@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);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetPrimaryKeys_call
extends org.apache.thrift.async.TAsyncMethodCall {
private TGetPrimaryKeysReq req;
public GetPrimaryKeys_call(
TGetPrimaryKeysReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
org.apache.thrift.async.TAsyncClient client,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.transport.TNonblockingTransport transport)
throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.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();
args.setReq(req);
args.write(prot);
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!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport =
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot =
client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetPrimaryKeys();
}
}
@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);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetCrossReference_call
extends org.apache.thrift.async.TAsyncMethodCall {
private TGetCrossReferenceReq req;
public GetCrossReference_call(
TGetCrossReferenceReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
org.apache.thrift.async.TAsyncClient client,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.transport.TNonblockingTransport transport)
throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.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();
args.setReq(req);
args.write(prot);
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!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport =
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot =
client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetCrossReference();
}
}
@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);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetOperationStatus_call
extends org.apache.thrift.async.TAsyncMethodCall {
private TGetOperationStatusReq req;
public GetOperationStatus_call(
TGetOperationStatusReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
org.apache.thrift.async.TAsyncClient client,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.transport.TNonblockingTransport transport)
throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.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();
args.setReq(req);
args.write(prot);
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!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport =
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot =
client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetOperationStatus();
}
}
@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);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class CancelOperation_call
extends org.apache.thrift.async.TAsyncMethodCall {
private TCancelOperationReq req;
public CancelOperation_call(
TCancelOperationReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
org.apache.thrift.async.TAsyncClient client,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.transport.TNonblockingTransport transport)
throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.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();
args.setReq(req);
args.write(prot);
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!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport =
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot =
client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_CancelOperation();
}
}
@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);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class CloseOperation_call
extends org.apache.thrift.async.TAsyncMethodCall {
private TCloseOperationReq req;
public CloseOperation_call(
TCloseOperationReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
org.apache.thrift.async.TAsyncClient client,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.transport.TNonblockingTransport transport)
throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.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();
args.setReq(req);
args.write(prot);
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!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport =
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot =
client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_CloseOperation();
}
}
@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);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetResultSetMetadata_call
extends org.apache.thrift.async.TAsyncMethodCall {
private TGetResultSetMetadataReq req;
public GetResultSetMetadata_call(
TGetResultSetMetadataReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
org.apache.thrift.async.TAsyncClient client,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.transport.TNonblockingTransport transport)
throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.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();
args.setReq(req);
args.write(prot);
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!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport =
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot =
client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetResultSetMetadata();
}
}
@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);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class FetchResults_call
extends org.apache.thrift.async.TAsyncMethodCall {
private TFetchResultsReq req;
public FetchResults_call(
TFetchResultsReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
org.apache.thrift.async.TAsyncClient client,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.transport.TNonblockingTransport transport)
throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.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();
args.setReq(req);
args.write(prot);
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!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport =
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot =
client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_FetchResults();
}
}
@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);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetDelegationToken_call
extends org.apache.thrift.async.TAsyncMethodCall {
private TGetDelegationTokenReq req;
public GetDelegationToken_call(
TGetDelegationTokenReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
org.apache.thrift.async.TAsyncClient client,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.transport.TNonblockingTransport transport)
throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.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();
args.setReq(req);
args.write(prot);
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!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport =
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot =
client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetDelegationToken();
}
}
@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);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class CancelDelegationToken_call
extends org.apache.thrift.async.TAsyncMethodCall {
private TCancelDelegationTokenReq req;
public CancelDelegationToken_call(
TCancelDelegationTokenReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
org.apache.thrift.async.TAsyncClient client,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.transport.TNonblockingTransport transport)
throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.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();
args.setReq(req);
args.write(prot);
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!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport =
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot =
client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_CancelDelegationToken();
}
}
@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);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class RenewDelegationToken_call
extends org.apache.thrift.async.TAsyncMethodCall {
private TRenewDelegationTokenReq req;
public RenewDelegationToken_call(
TRenewDelegationTokenReq req,
org.apache.thrift.async.AsyncMethodCallback resultHandler,
org.apache.thrift.async.TAsyncClient client,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.thrift.transport.TNonblockingTransport transport)
throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.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();
args.setReq(req);
args.write(prot);
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!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport =
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot =
client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_RenewDelegationToken();
}
}
}
public static class Processor extends org.apache.thrift.TBaseProcessor
implements org.apache.thrift.TProcessor {
public Processor(I iface) {
super(
iface,
getProcessMap(
new java.util.HashMap<
java.lang.String,
org.apache.thrift.ProcessFunction>()));
}
protected Processor(
I iface,
java.util.Map<
java.lang.String,
org.apache.thrift.ProcessFunction>
processMap) {
super(iface, getProcessMap(processMap));
}
private static
java.util.Map<
java.lang.String,
org.apache.thrift.ProcessFunction>
getProcessMap(
java.util.Map<
java.lang.String,
org.apache.thrift.ProcessFunction>
processMap) {
processMap.put("OpenSession", new OpenSession());
processMap.put("CloseSession", new CloseSession());
processMap.put("GetInfo", new GetInfo());
processMap.put("ExecuteStatement", new ExecuteStatement());
processMap.put("GetTypeInfo", new GetTypeInfo());
processMap.put("GetCatalogs", new GetCatalogs());
processMap.put("GetSchemas", new GetSchemas());
processMap.put("GetTables", new GetTables());
processMap.put("GetTableTypes", new GetTableTypes());
processMap.put("GetColumns", new GetColumns());
processMap.put("GetFunctions", new GetFunctions());
processMap.put("GetPrimaryKeys", new GetPrimaryKeys());
processMap.put("GetCrossReference", new GetCrossReference());
processMap.put("GetOperationStatus", new GetOperationStatus());
processMap.put("CancelOperation", new CancelOperation());
processMap.put("CloseOperation", new CloseOperation());
processMap.put("GetResultSetMetadata", new GetResultSetMetadata());
processMap.put("FetchResults", new FetchResults());
processMap.put("GetDelegationToken", new GetDelegationToken());
processMap.put("CancelDelegationToken", new CancelDelegationToken());
processMap.put("RenewDelegationToken", new RenewDelegationToken());
return processMap;
}
public static class OpenSession
extends org.apache.thrift.ProcessFunction {
public OpenSession() {
super("OpenSession");
}
@Override
public OpenSession_args getEmptyArgsInstance() {
return new OpenSession_args();
}
@Override
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
@Override
public OpenSession_result getResult(I iface, OpenSession_args args)
throws org.apache.thrift.TException {
OpenSession_result result = new OpenSession_result();
result.success = iface.OpenSession(args.req);
return result;
}
}
public static class CloseSession
extends org.apache.thrift.ProcessFunction {
public CloseSession() {
super("CloseSession");
}
@Override
public CloseSession_args getEmptyArgsInstance() {
return new CloseSession_args();
}
@Override
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
@Override
public CloseSession_result getResult(I iface, CloseSession_args args)
throws org.apache.thrift.TException {
CloseSession_result result = new CloseSession_result();
result.success = iface.CloseSession(args.req);
return result;
}
}
public static class GetInfo
extends org.apache.thrift.ProcessFunction {
public GetInfo() {
super("GetInfo");
}
@Override
public GetInfo_args getEmptyArgsInstance() {
return new GetInfo_args();
}
@Override
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
@Override
public GetInfo_result getResult(I iface, GetInfo_args args)
throws org.apache.thrift.TException {
GetInfo_result result = new GetInfo_result();
result.success = iface.GetInfo(args.req);
return result;
}
}
public static class ExecuteStatement
extends org.apache.thrift.ProcessFunction {
public ExecuteStatement() {
super("ExecuteStatement");
}
@Override
public ExecuteStatement_args getEmptyArgsInstance() {
return new ExecuteStatement_args();
}
@Override
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
@Override
public ExecuteStatement_result getResult(I iface, ExecuteStatement_args args)
throws org.apache.thrift.TException {
ExecuteStatement_result result = new ExecuteStatement_result();
result.success = iface.ExecuteStatement(args.req);
return result;
}
}
public static class GetTypeInfo
extends org.apache.thrift.ProcessFunction {
public GetTypeInfo() {
super("GetTypeInfo");
}
@Override
public GetTypeInfo_args getEmptyArgsInstance() {
return new GetTypeInfo_args();
}
@Override
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
@Override
public GetTypeInfo_result getResult(I iface, GetTypeInfo_args args)
throws org.apache.thrift.TException {
GetTypeInfo_result result = new GetTypeInfo_result();
result.success = iface.GetTypeInfo(args.req);
return result;
}
}
public static class GetCatalogs
extends org.apache.thrift.ProcessFunction {
public GetCatalogs() {
super("GetCatalogs");
}
@Override
public GetCatalogs_args getEmptyArgsInstance() {
return new GetCatalogs_args();
}
@Override
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
@Override
public GetCatalogs_result getResult(I iface, GetCatalogs_args args)
throws org.apache.thrift.TException {
GetCatalogs_result result = new GetCatalogs_result();
result.success = iface.GetCatalogs(args.req);
return result;
}
}
public static class GetSchemas
extends org.apache.thrift.ProcessFunction {
public GetSchemas() {
super("GetSchemas");
}
@Override
public GetSchemas_args getEmptyArgsInstance() {
return new GetSchemas_args();
}
@Override
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
@Override
public GetSchemas_result getResult(I iface, GetSchemas_args args)
throws org.apache.thrift.TException {
GetSchemas_result result = new GetSchemas_result();
result.success = iface.GetSchemas(args.req);
return result;
}
}
public static class GetTables
extends org.apache.thrift.ProcessFunction {
public GetTables() {
super("GetTables");
}
@Override
public GetTables_args getEmptyArgsInstance() {
return new GetTables_args();
}
@Override
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
@Override
public GetTables_result getResult(I iface, GetTables_args args)
throws org.apache.thrift.TException {
GetTables_result result = new GetTables_result();
result.success = iface.GetTables(args.req);
return result;
}
}
public static class GetTableTypes
extends org.apache.thrift.ProcessFunction {
public GetTableTypes() {
super("GetTableTypes");
}
@Override
public GetTableTypes_args getEmptyArgsInstance() {
return new GetTableTypes_args();
}
@Override
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
@Override
public GetTableTypes_result getResult(I iface, GetTableTypes_args args)
throws org.apache.thrift.TException {
GetTableTypes_result result = new GetTableTypes_result();
result.success = iface.GetTableTypes(args.req);
return result;
}
}
public static class GetColumns
extends org.apache.thrift.ProcessFunction {
public GetColumns() {
super("GetColumns");
}
@Override
public GetColumns_args getEmptyArgsInstance() {
return new GetColumns_args();
}
@Override
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
@Override
public GetColumns_result getResult(I iface, GetColumns_args args)
throws org.apache.thrift.TException {
GetColumns_result result = new GetColumns_result();
result.success = iface.GetColumns(args.req);
return result;
}
}
public static class GetFunctions
extends org.apache.thrift.ProcessFunction {
public GetFunctions() {
super("GetFunctions");
}
@Override
public GetFunctions_args getEmptyArgsInstance() {
return new GetFunctions_args();
}
@Override
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
@Override
public GetFunctions_result getResult(I iface, GetFunctions_args args)
throws org.apache.thrift.TException {
GetFunctions_result result = new GetFunctions_result();
result.success = iface.GetFunctions(args.req);
return result;
}
}
public static class GetPrimaryKeys
extends org.apache.thrift.ProcessFunction {
public GetPrimaryKeys() {
super("GetPrimaryKeys");
}
@Override
public GetPrimaryKeys_args getEmptyArgsInstance() {
return new GetPrimaryKeys_args();
}
@Override
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
@Override
public GetPrimaryKeys_result getResult(I iface, GetPrimaryKeys_args args)
throws org.apache.thrift.TException {
GetPrimaryKeys_result result = new GetPrimaryKeys_result();
result.success = iface.GetPrimaryKeys(args.req);
return result;
}
}
public static class GetCrossReference
extends org.apache.thrift.ProcessFunction {
public GetCrossReference() {
super("GetCrossReference");
}
@Override
public GetCrossReference_args getEmptyArgsInstance() {
return new GetCrossReference_args();
}
@Override
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
@Override
public GetCrossReference_result getResult(I iface, GetCrossReference_args args)
throws org.apache.thrift.TException {
GetCrossReference_result result = new GetCrossReference_result();
result.success = iface.GetCrossReference(args.req);
return result;
}
}
public static class GetOperationStatus
extends org.apache.thrift.ProcessFunction {
public GetOperationStatus() {
super("GetOperationStatus");
}
@Override
public GetOperationStatus_args getEmptyArgsInstance() {
return new GetOperationStatus_args();
}
@Override
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
@Override
public GetOperationStatus_result getResult(I iface, GetOperationStatus_args args)
throws org.apache.thrift.TException {
GetOperationStatus_result result = new GetOperationStatus_result();
result.success = iface.GetOperationStatus(args.req);
return result;
}
}
public static class CancelOperation
extends org.apache.thrift.ProcessFunction {
public CancelOperation() {
super("CancelOperation");
}
@Override
public CancelOperation_args getEmptyArgsInstance() {
return new CancelOperation_args();
}
@Override
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
@Override
public CancelOperation_result getResult(I iface, CancelOperation_args args)
throws org.apache.thrift.TException {
CancelOperation_result result = new CancelOperation_result();
result.success = iface.CancelOperation(args.req);
return result;
}
}
public static class CloseOperation
extends org.apache.thrift.ProcessFunction {
public CloseOperation() {
super("CloseOperation");
}
@Override
public CloseOperation_args getEmptyArgsInstance() {
return new CloseOperation_args();
}
@Override
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
@Override
public CloseOperation_result getResult(I iface, CloseOperation_args args)
throws org.apache.thrift.TException {
CloseOperation_result result = new CloseOperation_result();
result.success = iface.CloseOperation(args.req);
return result;
}
}
public static class GetResultSetMetadata
extends org.apache.thrift.ProcessFunction {
public GetResultSetMetadata() {
super("GetResultSetMetadata");
}
@Override
public GetResultSetMetadata_args getEmptyArgsInstance() {
return new GetResultSetMetadata_args();
}
@Override
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
@Override
public GetResultSetMetadata_result getResult(I iface, GetResultSetMetadata_args args)
throws org.apache.thrift.TException {
GetResultSetMetadata_result result = new GetResultSetMetadata_result();
result.success = iface.GetResultSetMetadata(args.req);
return result;
}
}
public static class FetchResults
extends org.apache.thrift.ProcessFunction {
public FetchResults() {
super("FetchResults");
}
@Override
public FetchResults_args getEmptyArgsInstance() {
return new FetchResults_args();
}
@Override
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
@Override
public FetchResults_result getResult(I iface, FetchResults_args args)
throws org.apache.thrift.TException {
FetchResults_result result = new FetchResults_result();
result.success = iface.FetchResults(args.req);
return result;
}
}
public static class GetDelegationToken
extends org.apache.thrift.ProcessFunction {
public GetDelegationToken() {
super("GetDelegationToken");
}
@Override
public GetDelegationToken_args getEmptyArgsInstance() {
return new GetDelegationToken_args();
}
@Override
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
@Override
public GetDelegationToken_result getResult(I iface, GetDelegationToken_args args)
throws org.apache.thrift.TException {
GetDelegationToken_result result = new GetDelegationToken_result();
result.success = iface.GetDelegationToken(args.req);
return result;
}
}
public static class CancelDelegationToken
extends org.apache.thrift.ProcessFunction {
public CancelDelegationToken() {
super("CancelDelegationToken");
}
@Override
public CancelDelegationToken_args getEmptyArgsInstance() {
return new CancelDelegationToken_args();
}
@Override
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
@Override
public CancelDelegationToken_result getResult(I iface, CancelDelegationToken_args args)
throws org.apache.thrift.TException {
CancelDelegationToken_result result = new CancelDelegationToken_result();
result.success = iface.CancelDelegationToken(args.req);
return result;
}
}
public static class RenewDelegationToken
extends org.apache.thrift.ProcessFunction {
public RenewDelegationToken() {
super("RenewDelegationToken");
}
@Override
public RenewDelegationToken_args getEmptyArgsInstance() {
return new RenewDelegationToken_args();
}
@Override
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
@Override
public RenewDelegationToken_result getResult(I iface, RenewDelegationToken_args args)
throws org.apache.thrift.TException {
RenewDelegationToken_result result = new RenewDelegationToken_result();
result.success = iface.RenewDelegationToken(args.req);
return result;
}
}
}
public static class AsyncProcessor
extends org.apache.thrift.TBaseAsyncProcessor {
public AsyncProcessor(I iface) {
super(
iface,
getProcessMap(
new java.util.HashMap<
java.lang.String,
org.apache.thrift.AsyncProcessFunction<
I, ? extends org.apache.thrift.TBase, ?>>()));
}
protected AsyncProcessor(
I iface,
java.util.Map<
java.lang.String,
org.apache.thrift.AsyncProcessFunction>
processMap) {
super(iface, getProcessMap(processMap));
}
private static
java.util.Map<
java.lang.String,
org.apache.thrift.AsyncProcessFunction>
getProcessMap(
java.util.Map<
java.lang.String,
org.apache.thrift.AsyncProcessFunction<
I, ? extends org.apache.thrift.TBase, ?>>
processMap) {
processMap.put("OpenSession", new OpenSession());
processMap.put("CloseSession", new CloseSession());
processMap.put("GetInfo", new GetInfo());
processMap.put("ExecuteStatement", new ExecuteStatement());
processMap.put("GetTypeInfo", new GetTypeInfo());
processMap.put("GetCatalogs", new GetCatalogs());
processMap.put("GetSchemas", new GetSchemas());
processMap.put("GetTables", new GetTables());
processMap.put("GetTableTypes", new GetTableTypes());
processMap.put("GetColumns", new GetColumns());
processMap.put("GetFunctions", new GetFunctions());
processMap.put("GetPrimaryKeys", new GetPrimaryKeys());
processMap.put("GetCrossReference", new GetCrossReference());
processMap.put("GetOperationStatus", new GetOperationStatus());
processMap.put("CancelOperation", new CancelOperation());
processMap.put("CloseOperation", new CloseOperation());
processMap.put("GetResultSetMetadata", new GetResultSetMetadata());
processMap.put("FetchResults", new FetchResults());
processMap.put("GetDelegationToken", new GetDelegationToken());
processMap.put("CancelDelegationToken", new CancelDelegationToken());
processMap.put("RenewDelegationToken", new RenewDelegationToken());
return processMap;
}
public static class OpenSession
extends org.apache.thrift.AsyncProcessFunction {
public OpenSession() {
super("OpenSession");
}
@Override
public OpenSession_args getEmptyArgsInstance() {
return new OpenSession_args();
}
@Override
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(
final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb,
final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
@Override
public void onComplete(TOpenSessionResp o) {
OpenSession_result result = new OpenSession_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException writing to internal frame buffer" + e,
this.getClass().getName());
fb.close();
} catch (java.lang.Exception e) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
onError(e);
}
}
@Override
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
OpenSession_result result = new OpenSession_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException inside handler " + e,
this.getClass().getName());
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
LoggingUtil.log(
LogLevel.ERROR,
"TApplicationException inside handler " + e,
this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException) e;
} else {
LoggingUtil.log(
LogLevel.ERROR, "Exception inside handler " + e, this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg =
new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb, msg, msgType, seqid);
} catch (java.lang.Exception ex) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
}
}
};
}
@Override
protected boolean isOneway() {
return false;
}
@Override
public void start(
I iface,
OpenSession_args args,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException {
iface.OpenSession(args.req, resultHandler);
}
}
public static class CloseSession
extends org.apache.thrift.AsyncProcessFunction {
public CloseSession() {
super("CloseSession");
}
@Override
public CloseSession_args getEmptyArgsInstance() {
return new CloseSession_args();
}
@Override
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(
final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb,
final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
@Override
public void onComplete(TCloseSessionResp o) {
CloseSession_result result = new CloseSession_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
} catch (java.lang.Exception e) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
onError(e);
}
}
@Override
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
CloseSession_result result = new CloseSession_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException inside handler " + e,
this.getClass().getName());
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
LoggingUtil.log(
LogLevel.ERROR,
"TApplicationException inside handler " + e,
this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException) e;
} else {
LoggingUtil.log(
LogLevel.ERROR, "Exception inside handler " + e, this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg =
new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb, msg, msgType, seqid);
} catch (java.lang.Exception ex) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
}
}
};
}
@Override
protected boolean isOneway() {
return false;
}
@Override
public void start(
I iface,
CloseSession_args args,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException {
iface.CloseSession(args.req, resultHandler);
}
}
public static class GetInfo
extends org.apache.thrift.AsyncProcessFunction {
public GetInfo() {
super("GetInfo");
}
@Override
public GetInfo_args getEmptyArgsInstance() {
return new GetInfo_args();
}
@Override
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(
final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb,
final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
@Override
public void onComplete(TGetInfoResp o) {
GetInfo_result result = new GetInfo_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
} catch (java.lang.Exception e) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
onError(e);
}
}
@Override
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
GetInfo_result result = new GetInfo_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException inside handler " + e,
this.getClass().getName());
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
LoggingUtil.log(
LogLevel.ERROR,
"TApplicationException inside handler " + e,
this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException) e;
} else {
LoggingUtil.log(
LogLevel.ERROR, "Exception inside handler " + e, this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg =
new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb, msg, msgType, seqid);
} catch (java.lang.Exception ex) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
}
}
};
}
@Override
protected boolean isOneway() {
return false;
}
@Override
public void start(
I iface,
GetInfo_args args,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException {
iface.GetInfo(args.req, resultHandler);
}
}
public static class ExecuteStatement
extends org.apache.thrift.AsyncProcessFunction<
I, ExecuteStatement_args, TExecuteStatementResp> {
public ExecuteStatement() {
super("ExecuteStatement");
}
@Override
public ExecuteStatement_args getEmptyArgsInstance() {
return new ExecuteStatement_args();
}
@Override
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(
final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb,
final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
@Override
public void onComplete(TExecuteStatementResp o) {
ExecuteStatement_result result = new ExecuteStatement_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
} catch (java.lang.Exception e) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
onError(e);
}
}
@Override
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
ExecuteStatement_result result = new ExecuteStatement_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException inside handler " + e,
this.getClass().getName());
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
LoggingUtil.log(
LogLevel.ERROR,
"TApplicationException inside handler " + e,
this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException) e;
} else {
LoggingUtil.log(
LogLevel.ERROR, "Exception inside handler " + e, this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg =
new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb, msg, msgType, seqid);
} catch (java.lang.Exception ex) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
}
}
};
}
@Override
protected boolean isOneway() {
return false;
}
@Override
public void start(
I iface,
ExecuteStatement_args args,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException {
iface.ExecuteStatement(args.req, resultHandler);
}
}
public static class GetTypeInfo
extends org.apache.thrift.AsyncProcessFunction {
public GetTypeInfo() {
super("GetTypeInfo");
}
@Override
public GetTypeInfo_args getEmptyArgsInstance() {
return new GetTypeInfo_args();
}
@Override
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(
final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb,
final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
@Override
public void onComplete(TGetTypeInfoResp o) {
GetTypeInfo_result result = new GetTypeInfo_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
} catch (java.lang.Exception e) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
onError(e);
}
}
@Override
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
GetTypeInfo_result result = new GetTypeInfo_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException inside handler " + e,
this.getClass().getName());
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
LoggingUtil.log(
LogLevel.ERROR,
"TApplicationException inside handler " + e,
this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException) e;
} else {
LoggingUtil.log(
LogLevel.ERROR, "Exception inside handler " + e, this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg =
new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb, msg, msgType, seqid);
} catch (java.lang.Exception ex) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
}
}
};
}
@Override
protected boolean isOneway() {
return false;
}
@Override
public void start(
I iface,
GetTypeInfo_args args,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException {
iface.GetTypeInfo(args.req, resultHandler);
}
}
public static class GetCatalogs
extends org.apache.thrift.AsyncProcessFunction {
public GetCatalogs() {
super("GetCatalogs");
}
@Override
public GetCatalogs_args getEmptyArgsInstance() {
return new GetCatalogs_args();
}
@Override
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(
final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb,
final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
@Override
public void onComplete(TGetCatalogsResp o) {
GetCatalogs_result result = new GetCatalogs_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
} catch (java.lang.Exception e) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
onError(e);
}
}
@Override
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
GetCatalogs_result result = new GetCatalogs_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException inside handler " + e,
this.getClass().getName());
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
LoggingUtil.log(
LogLevel.ERROR,
"TApplicationException inside handler " + e,
this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException) e;
} else {
LoggingUtil.log(
LogLevel.ERROR, "Exception inside handler " + e, this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg =
new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb, msg, msgType, seqid);
} catch (java.lang.Exception ex) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
}
}
};
}
@Override
protected boolean isOneway() {
return false;
}
@Override
public void start(
I iface,
GetCatalogs_args args,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException {
iface.GetCatalogs(args.req, resultHandler);
}
}
public static class GetSchemas
extends org.apache.thrift.AsyncProcessFunction {
public GetSchemas() {
super("GetSchemas");
}
@Override
public GetSchemas_args getEmptyArgsInstance() {
return new GetSchemas_args();
}
@Override
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(
final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb,
final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
@Override
public void onComplete(TGetSchemasResp o) {
GetSchemas_result result = new GetSchemas_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
} catch (java.lang.Exception e) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
onError(e);
}
}
@Override
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
GetSchemas_result result = new GetSchemas_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException inside handler " + e,
this.getClass().getName());
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
LoggingUtil.log(
LogLevel.ERROR,
"TApplicationException inside handler " + e,
this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException) e;
} else {
LoggingUtil.log(
LogLevel.ERROR, "Exception inside handler " + e, this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg =
new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb, msg, msgType, seqid);
} catch (java.lang.Exception ex) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
}
}
};
}
@Override
protected boolean isOneway() {
return false;
}
@Override
public void start(
I iface,
GetSchemas_args args,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException {
iface.GetSchemas(args.req, resultHandler);
}
}
public static class GetTables
extends org.apache.thrift.AsyncProcessFunction {
public GetTables() {
super("GetTables");
}
@Override
public GetTables_args getEmptyArgsInstance() {
return new GetTables_args();
}
@Override
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(
final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb,
final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
@Override
public void onComplete(TGetTablesResp o) {
GetTables_result result = new GetTables_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
} catch (java.lang.Exception e) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
onError(e);
}
}
@Override
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
GetTables_result result = new GetTables_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException inside handler " + e,
this.getClass().getName());
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
LoggingUtil.log(
LogLevel.ERROR,
"TApplicationException inside handler " + e,
this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException) e;
} else {
LoggingUtil.log(
LogLevel.ERROR, "Exception inside handler " + e, this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg =
new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb, msg, msgType, seqid);
} catch (java.lang.Exception ex) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
}
}
};
}
@Override
protected boolean isOneway() {
return false;
}
@Override
public void start(
I iface,
GetTables_args args,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException {
iface.GetTables(args.req, resultHandler);
}
}
public static class GetTableTypes
extends org.apache.thrift.AsyncProcessFunction {
public GetTableTypes() {
super("GetTableTypes");
}
@Override
public GetTableTypes_args getEmptyArgsInstance() {
return new GetTableTypes_args();
}
@Override
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(
final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb,
final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
@Override
public void onComplete(TGetTableTypesResp o) {
GetTableTypes_result result = new GetTableTypes_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
} catch (java.lang.Exception e) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
onError(e);
}
}
@Override
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
GetTableTypes_result result = new GetTableTypes_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException inside handler " + e,
this.getClass().getName());
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
LoggingUtil.log(
LogLevel.ERROR,
"TApplicationException inside handler " + e,
this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException) e;
} else {
LoggingUtil.log(
LogLevel.ERROR, "Exception inside handler " + e, this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg =
new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb, msg, msgType, seqid);
} catch (java.lang.Exception ex) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
}
}
};
}
@Override
protected boolean isOneway() {
return false;
}
@Override
public void start(
I iface,
GetTableTypes_args args,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException {
iface.GetTableTypes(args.req, resultHandler);
}
}
public static class GetColumns
extends org.apache.thrift.AsyncProcessFunction {
public GetColumns() {
super("GetColumns");
}
@Override
public GetColumns_args getEmptyArgsInstance() {
return new GetColumns_args();
}
@Override
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(
final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb,
final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
@Override
public void onComplete(TGetColumnsResp o) {
GetColumns_result result = new GetColumns_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
} catch (java.lang.Exception e) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
onError(e);
}
}
@Override
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
GetColumns_result result = new GetColumns_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException inside handler " + e,
this.getClass().getName());
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
LoggingUtil.log(
LogLevel.ERROR,
"TApplicationException inside handler " + e,
this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException) e;
} else {
LoggingUtil.log(
LogLevel.ERROR, "Exception inside handler " + e, this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg =
new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb, msg, msgType, seqid);
} catch (java.lang.Exception ex) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
}
}
};
}
@Override
protected boolean isOneway() {
return false;
}
@Override
public void start(
I iface,
GetColumns_args args,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException {
iface.GetColumns(args.req, resultHandler);
}
}
public static class GetFunctions
extends org.apache.thrift.AsyncProcessFunction {
public GetFunctions() {
super("GetFunctions");
}
@Override
public GetFunctions_args getEmptyArgsInstance() {
return new GetFunctions_args();
}
@Override
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(
final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb,
final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
@Override
public void onComplete(TGetFunctionsResp o) {
GetFunctions_result result = new GetFunctions_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
} catch (java.lang.Exception e) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
onError(e);
}
}
@Override
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
GetFunctions_result result = new GetFunctions_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException inside handler " + e,
this.getClass().getName());
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
LoggingUtil.log(
LogLevel.ERROR,
"TApplicationException inside handler " + e,
this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException) e;
} else {
LoggingUtil.log(
LogLevel.ERROR, "Exception inside handler " + e, this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg =
new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb, msg, msgType, seqid);
} catch (java.lang.Exception ex) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
}
}
};
}
@Override
protected boolean isOneway() {
return false;
}
@Override
public void start(
I iface,
GetFunctions_args args,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException {
iface.GetFunctions(args.req, resultHandler);
}
}
public static class GetPrimaryKeys
extends org.apache.thrift.AsyncProcessFunction<
I, GetPrimaryKeys_args, TGetPrimaryKeysResp> {
public GetPrimaryKeys() {
super("GetPrimaryKeys");
}
@Override
public GetPrimaryKeys_args getEmptyArgsInstance() {
return new GetPrimaryKeys_args();
}
@Override
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(
final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb,
final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
@Override
public void onComplete(TGetPrimaryKeysResp o) {
GetPrimaryKeys_result result = new GetPrimaryKeys_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
} catch (java.lang.Exception e) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
onError(e);
}
}
@Override
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
GetPrimaryKeys_result result = new GetPrimaryKeys_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException inside handler " + e,
this.getClass().getName());
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
LoggingUtil.log(
LogLevel.ERROR,
"TApplicationException inside handler " + e,
this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException) e;
} else {
LoggingUtil.log(
LogLevel.ERROR, "Exception inside handler " + e, this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg =
new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb, msg, msgType, seqid);
} catch (java.lang.Exception ex) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
}
}
};
}
@Override
protected boolean isOneway() {
return false;
}
@Override
public void start(
I iface,
GetPrimaryKeys_args args,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException {
iface.GetPrimaryKeys(args.req, resultHandler);
}
}
public static class GetCrossReference
extends org.apache.thrift.AsyncProcessFunction<
I, GetCrossReference_args, TGetCrossReferenceResp> {
public GetCrossReference() {
super("GetCrossReference");
}
@Override
public GetCrossReference_args getEmptyArgsInstance() {
return new GetCrossReference_args();
}
@Override
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(
final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb,
final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
@Override
public void onComplete(TGetCrossReferenceResp o) {
GetCrossReference_result result = new GetCrossReference_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
} catch (java.lang.Exception e) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
onError(e);
}
}
@Override
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
GetCrossReference_result result = new GetCrossReference_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException inside handler " + e,
this.getClass().getName());
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
LoggingUtil.log(
LogLevel.ERROR,
"TApplicationException inside handler " + e,
this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException) e;
} else {
LoggingUtil.log(
LogLevel.ERROR, "Exception inside handler " + e, this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg =
new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb, msg, msgType, seqid);
} catch (java.lang.Exception ex) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
}
}
};
}
@Override
protected boolean isOneway() {
return false;
}
@Override
public void start(
I iface,
GetCrossReference_args args,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException {
iface.GetCrossReference(args.req, resultHandler);
}
}
public static class GetOperationStatus
extends org.apache.thrift.AsyncProcessFunction<
I, GetOperationStatus_args, TGetOperationStatusResp> {
public GetOperationStatus() {
super("GetOperationStatus");
}
@Override
public GetOperationStatus_args getEmptyArgsInstance() {
return new GetOperationStatus_args();
}
@Override
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(
final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb,
final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
@Override
public void onComplete(TGetOperationStatusResp o) {
GetOperationStatus_result result = new GetOperationStatus_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
} catch (java.lang.Exception e) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
onError(e);
}
}
@Override
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
GetOperationStatus_result result = new GetOperationStatus_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException inside handler " + e,
this.getClass().getName());
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
LoggingUtil.log(
LogLevel.ERROR,
"TApplicationException inside handler " + e,
this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException) e;
} else {
LoggingUtil.log(
LogLevel.ERROR, "Exception inside handler " + e, this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg =
new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb, msg, msgType, seqid);
} catch (java.lang.Exception ex) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
}
}
};
}
@Override
protected boolean isOneway() {
return false;
}
@Override
public void start(
I iface,
GetOperationStatus_args args,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException {
iface.GetOperationStatus(args.req, resultHandler);
}
}
public static class CancelOperation
extends org.apache.thrift.AsyncProcessFunction<
I, CancelOperation_args, TCancelOperationResp> {
public CancelOperation() {
super("CancelOperation");
}
@Override
public CancelOperation_args getEmptyArgsInstance() {
return new CancelOperation_args();
}
@Override
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(
final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb,
final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
@Override
public void onComplete(TCancelOperationResp o) {
CancelOperation_result result = new CancelOperation_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
} catch (java.lang.Exception e) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
onError(e);
}
}
@Override
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
CancelOperation_result result = new CancelOperation_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException inside handler " + e,
this.getClass().getName());
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
LoggingUtil.log(
LogLevel.ERROR,
"TApplicationException inside handler " + e,
this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException) e;
} else {
LoggingUtil.log(
LogLevel.ERROR, "Exception inside handler " + e, this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg =
new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb, msg, msgType, seqid);
} catch (java.lang.Exception ex) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
}
}
};
}
@Override
protected boolean isOneway() {
return false;
}
@Override
public void start(
I iface,
CancelOperation_args args,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException {
iface.CancelOperation(args.req, resultHandler);
}
}
public static class CloseOperation
extends org.apache.thrift.AsyncProcessFunction<
I, CloseOperation_args, TCloseOperationResp> {
public CloseOperation() {
super("CloseOperation");
}
@Override
public CloseOperation_args getEmptyArgsInstance() {
return new CloseOperation_args();
}
@Override
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(
final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb,
final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
@Override
public void onComplete(TCloseOperationResp o) {
CloseOperation_result result = new CloseOperation_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
} catch (java.lang.Exception e) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
onError(e);
}
}
@Override
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
CloseOperation_result result = new CloseOperation_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException inside handler " + e,
this.getClass().getName());
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
LoggingUtil.log(
LogLevel.ERROR,
"TApplicationException inside handler " + e,
this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException) e;
} else {
LoggingUtil.log(
LogLevel.ERROR, "Exception inside handler " + e, this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg =
new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb, msg, msgType, seqid);
} catch (java.lang.Exception ex) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
}
}
};
}
@Override
protected boolean isOneway() {
return false;
}
@Override
public void start(
I iface,
CloseOperation_args args,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException {
iface.CloseOperation(args.req, resultHandler);
}
}
public static class GetResultSetMetadata
extends org.apache.thrift.AsyncProcessFunction<
I, GetResultSetMetadata_args, TGetResultSetMetadataResp> {
public GetResultSetMetadata() {
super("GetResultSetMetadata");
}
@Override
public GetResultSetMetadata_args getEmptyArgsInstance() {
return new GetResultSetMetadata_args();
}
@Override
public org.apache.thrift.async.AsyncMethodCallback
getResultHandler(
final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb,
final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
@Override
public void onComplete(TGetResultSetMetadataResp o) {
GetResultSetMetadata_result result = new GetResultSetMetadata_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
} catch (java.lang.Exception e) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
onError(e);
}
}
@Override
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
GetResultSetMetadata_result result = new GetResultSetMetadata_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException inside handler " + e,
this.getClass().getName());
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
LoggingUtil.log(
LogLevel.ERROR,
"TApplicationException inside handler " + e,
this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException) e;
} else {
LoggingUtil.log(
LogLevel.ERROR, "Exception inside handler " + e, this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg =
new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb, msg, msgType, seqid);
} catch (java.lang.Exception ex) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
}
}
};
}
@Override
protected boolean isOneway() {
return false;
}
@Override
public void start(
I iface,
GetResultSetMetadata_args args,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException {
iface.GetResultSetMetadata(args.req, resultHandler);
}
}
public static class FetchResults
extends org.apache.thrift.AsyncProcessFunction {
public FetchResults() {
super("FetchResults");
}
@Override
public FetchResults_args getEmptyArgsInstance() {
return new FetchResults_args();
}
@Override
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(
final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb,
final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
@Override
public void onComplete(TFetchResultsResp o) {
FetchResults_result result = new FetchResults_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
} catch (java.lang.Exception e) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
onError(e);
}
}
@Override
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
FetchResults_result result = new FetchResults_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException inside handler " + e,
this.getClass().getName());
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
LoggingUtil.log(
LogLevel.ERROR,
"TApplicationException inside handler " + e,
this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException) e;
} else {
LoggingUtil.log(
LogLevel.ERROR, "Exception inside handler " + e, this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg =
new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb, msg, msgType, seqid);
} catch (java.lang.Exception ex) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
}
}
};
}
@Override
protected boolean isOneway() {
return false;
}
@Override
public void start(
I iface,
FetchResults_args args,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException {
iface.FetchResults(args.req, resultHandler);
}
}
public static class GetDelegationToken
extends org.apache.thrift.AsyncProcessFunction<
I, GetDelegationToken_args, TGetDelegationTokenResp> {
public GetDelegationToken() {
super("GetDelegationToken");
}
@Override
public GetDelegationToken_args getEmptyArgsInstance() {
return new GetDelegationToken_args();
}
@Override
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(
final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb,
final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
@Override
public void onComplete(TGetDelegationTokenResp o) {
GetDelegationToken_result result = new GetDelegationToken_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
} catch (java.lang.Exception e) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
onError(e);
}
}
@Override
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
GetDelegationToken_result result = new GetDelegationToken_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException inside handler " + e,
this.getClass().getName());
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
LoggingUtil.log(
LogLevel.ERROR,
"TApplicationException inside handler " + e,
this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException) e;
} else {
LoggingUtil.log(
LogLevel.ERROR, "Exception inside handler " + e, this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg =
new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb, msg, msgType, seqid);
} catch (java.lang.Exception ex) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
}
}
};
}
@Override
protected boolean isOneway() {
return false;
}
@Override
public void start(
I iface,
GetDelegationToken_args args,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException {
iface.GetDelegationToken(args.req, resultHandler);
}
}
public static class CancelDelegationToken
extends org.apache.thrift.AsyncProcessFunction<
I, CancelDelegationToken_args, TCancelDelegationTokenResp> {
public CancelDelegationToken() {
super("CancelDelegationToken");
}
@Override
public CancelDelegationToken_args getEmptyArgsInstance() {
return new CancelDelegationToken_args();
}
@Override
public org.apache.thrift.async.AsyncMethodCallback
getResultHandler(
final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb,
final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
@Override
public void onComplete(TCancelDelegationTokenResp o) {
CancelDelegationToken_result result = new CancelDelegationToken_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
} catch (java.lang.Exception e) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
onError(e);
}
}
@Override
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
CancelDelegationToken_result result = new CancelDelegationToken_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException inside handler " + e,
this.getClass().getName());
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
LoggingUtil.log(
LogLevel.ERROR,
"TApplicationException inside handler " + e,
this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException) e;
} else {
LoggingUtil.log(
LogLevel.ERROR, "Exception inside handler " + e, this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg =
new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb, msg, msgType, seqid);
} catch (java.lang.Exception ex) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
}
}
};
}
@Override
protected boolean isOneway() {
return false;
}
@Override
public void start(
I iface,
CancelDelegationToken_args args,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException {
iface.CancelDelegationToken(args.req, resultHandler);
}
}
public static class RenewDelegationToken
extends org.apache.thrift.AsyncProcessFunction<
I, RenewDelegationToken_args, TRenewDelegationTokenResp> {
public RenewDelegationToken() {
super("RenewDelegationToken");
}
@Override
public RenewDelegationToken_args getEmptyArgsInstance() {
return new RenewDelegationToken_args();
}
@Override
public org.apache.thrift.async.AsyncMethodCallback
getResultHandler(
final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb,
final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
@Override
public void onComplete(TRenewDelegationTokenResp o) {
RenewDelegationToken_result result = new RenewDelegationToken_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY, seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
} catch (java.lang.Exception e) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
onError(e);
}
}
@Override
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
RenewDelegationToken_result result = new RenewDelegationToken_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
LoggingUtil.log(
LogLevel.ERROR,
"TTransportException inside handler " + e,
this.getClass().getName());
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
LoggingUtil.log(
LogLevel.ERROR,
"TApplicationException inside handler " + e,
this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException) e;
} else {
LoggingUtil.log(
LogLevel.ERROR, "Exception inside handler " + e, this.getClass().getName());
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg =
new org.apache.thrift.TApplicationException(
org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb, msg, msgType, seqid);
} catch (java.lang.Exception ex) {
LoggingUtil.log(
LogLevel.ERROR,
"Exception writing to internal frame buffer " + e,
this.getClass().getName());
fb.close();
}
}
};
}
@Override
protected boolean isOneway() {
return false;
}
@Override
public void start(
I iface,
RenewDelegationToken_args args,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException {
iface.RenewDelegationToken(args.req, resultHandler);
}
}
}
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class OpenSession_args
implements org.apache.thrift.TBase,
java.io.Serializable,
Cloneable,
Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC =
new org.apache.thrift.protocol.TStruct("OpenSession_args");
private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC =
new org.apache.thrift.protocol.TField(
"req", org.apache.thrift.protocol.TType.STRUCT, (short) 1);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY =
new OpenSession_argsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY =
new OpenSession_argsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TOpenSessionReq req; // required
/**
* The set of fields this struct contains, along with convenience methods for finding and
* manipulating them.
*/
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
REQ((short) 1, "req");
private static final java.util.Map byName =
new java.util.HashMap();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/** Find the _Fields constant that matches fieldId, or null if its not found. */
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch (fieldId) {
case 1: // REQ
return REQ;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null)
throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/** Find the _Fields constant that matches name, or null if its not found. */
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
@Override
public short getThriftFieldId() {
return _thriftId;
}
@Override
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
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);
tmpMap.put(
_Fields.REQ,
new org.apache.thrift.meta_data.FieldMetaData(
"req",
org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(
org.apache.thrift.protocol.TType.STRUCT, TOpenSessionReq.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(
OpenSession_args.class, metaDataMap);
}
public OpenSession_args() {}
public OpenSession_args(TOpenSessionReq req) {
this();
this.req = req;
}
/** Performs a deep copy on other. */
public OpenSession_args(OpenSession_args other) {
if (other.isSetReq()) {
this.req = new TOpenSessionReq(other.req);
}
}
@Override
public OpenSession_args deepCopy() {
return new OpenSession_args(this);
}
@Override
public void clear() {
this.req = null;
}
@org.apache.thrift.annotation.Nullable
public TOpenSessionReq getReq() {
return this.req;
}
public OpenSession_args setReq(@org.apache.thrift.annotation.Nullable TOpenSessionReq req) {
this.req = req;
return this;
}
public void unsetReq() {
this.req = null;
}
/** Returns true if field req is set (has been assigned a value) and false otherwise */
public boolean isSetReq() {
return this.req != null;
}
public void setReqIsSet(boolean value) {
if (!value) {
this.req = null;
}
}
@Override
public void setFieldValue(
_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case REQ:
if (value == null) {
unsetReq();
} else {
setReq((TOpenSessionReq) value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
@Override
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case REQ:
return getReq();
}
throw new java.lang.IllegalStateException();
}
/**
* 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();
}
switch (field) {
case REQ:
return isSetReq();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof OpenSession_args) return this.equals((OpenSession_args) that);
return false;
}
public boolean equals(OpenSession_args that) {
if (that == null) return false;
if (this == that) return true;
boolean this_present_req = true && this.isSetReq();
boolean that_present_req = true && that.isSetReq();
if (this_present_req || that_present_req) {
if (!(this_present_req && that_present_req)) return false;
if (!this.req.equals(that.req)) return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetReq()) ? 131071 : 524287);
if (isSetReq()) hashCode = hashCode * 8191 + req.hashCode();
return hashCode;
}
@Override
public int compareTo(OpenSession_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetReq(), other.isSetReq());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetReq()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@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);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("OpenSession_args(");
boolean first = true;
sb.append("req:");
if (this.req == null) {
sb.append("null");
} else {
sb.append(this.req);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (req != null) {
req.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(
new org.apache.thrift.protocol.TCompactProtocol(
new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in)
throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(
new org.apache.thrift.protocol.TCompactProtocol(
new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class OpenSession_argsStandardSchemeFactory
implements org.apache.thrift.scheme.SchemeFactory {
@Override
public OpenSession_argsStandardScheme getScheme() {
return new OpenSession_argsStandardScheme();
}
}
private static class OpenSession_argsStandardScheme
extends org.apache.thrift.scheme.StandardScheme {
@Override
public void read(org.apache.thrift.protocol.TProtocol iprot, OpenSession_args struct)
throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true) {
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // REQ
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.req = new TOpenSessionReq();
struct.req.read(iprot);
struct.setReqIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate
// method
struct.validate();
}
@Override
public void write(org.apache.thrift.protocol.TProtocol oprot, OpenSession_args struct)
throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.req != null) {
oprot.writeFieldBegin(REQ_FIELD_DESC);
struct.req.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class OpenSession_argsTupleSchemeFactory
implements org.apache.thrift.scheme.SchemeFactory {
@Override
public OpenSession_argsTupleScheme getScheme() {
return new OpenSession_argsTupleScheme();
}
}
private static class OpenSession_argsTupleScheme
extends org.apache.thrift.scheme.TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, OpenSession_args struct)
throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot =
(org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetReq()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetReq()) {
struct.req.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, OpenSession_args 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.req = new TOpenSessionReq();
struct.req.read(iprot);
struct.setReqIsSet(true);
}
}
}
private static S scheme(
org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme())
? STANDARD_SCHEME_FACTORY
: TUPLE_SCHEME_FACTORY)
.getScheme();
}
}
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class OpenSession_result
implements org.apache.thrift.TBase,
java.io.Serializable,
Cloneable,
Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC =
new org.apache.thrift.protocol.TStruct("OpenSession_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC =
new org.apache.thrift.protocol.TField(
"success", org.apache.thrift.protocol.TType.STRUCT, (short) 0);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY =
new OpenSession_resultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY =
new OpenSession_resultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable TOpenSessionResp success; // required
/**
* The set of fields this struct contains, along with convenience methods for finding and
* manipulating them.
*/
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short) 0, "success");
private static final java.util.Map byName =
new java.util.HashMap();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/** Find the _Fields constant that matches fieldId, or null if its not found. */
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch (fieldId) {
case 0: // SUCCESS
return SUCCESS;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null)
throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/** Find the _Fields constant that matches name, or null if its not found. */
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
@Override
public short getThriftFieldId() {
return _thriftId;
}
@Override
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
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);
tmpMap.put(
_Fields.SUCCESS,
new org.apache.thrift.meta_data.FieldMetaData(
"success",
org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(
org.apache.thrift.protocol.TType.STRUCT, TOpenSessionResp.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(
OpenSession_result.class, metaDataMap);
}
public OpenSession_result() {}
public OpenSession_result(TOpenSessionResp success) {
this();
this.success = success;
}
/** Performs a deep copy on other. */
public OpenSession_result(OpenSession_result other) {
if (other.isSetSuccess()) {
this.success = new TOpenSessionResp(other.success);
}
}
@Override
public OpenSession_result deepCopy() {
return new OpenSession_result(this);
}
@Override
public void clear() {
this.success = null;
}
@org.apache.thrift.annotation.Nullable
public TOpenSessionResp getSuccess() {
return this.success;
}
public OpenSession_result setSuccess(
@org.apache.thrift.annotation.Nullable TOpenSessionResp success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
@Override
public void setFieldValue(
_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((TOpenSessionResp) value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
@Override
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
}
throw new java.lang.IllegalStateException();
}
/**
* 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();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof OpenSession_result) return this.equals((OpenSession_result) that);
return false;
}
public boolean equals(OpenSession_result that) {
if (that == null) return false;
if (this == that) return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
if (this_present_success || that_present_success) {
if (!(this_present_success && that_present_success)) return false;
if (!this.success.equals(that.success)) return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
if (isSetSuccess()) hashCode = hashCode * 8191 + success.hashCode();
return hashCode;
}
@Override
public int compareTo(OpenSession_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@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);
}
public void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("OpenSession_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (success != null) {
success.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(
new org.apache.thrift.protocol.TCompactProtocol(
new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in)
throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(
new org.apache.thrift.protocol.TCompactProtocol(
new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class OpenSession_resultStandardSchemeFactory
implements org.apache.thrift.scheme.SchemeFactory {
@Override
public OpenSession_resultStandardScheme getScheme() {
return new OpenSession_resultStandardScheme();
}
}
private static class OpenSession_resultStandardScheme
extends org.apache.thrift.scheme.StandardScheme {
@Override
public void read(org.apache.thrift.protocol.TProtocol iprot, OpenSession_result struct)
throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true) {
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.success = new TOpenSessionResp();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate
// method
struct.validate();
}
@Override
public void write(org.apache.thrift.protocol.TProtocol oprot, OpenSession_result struct)
throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
struct.success.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class OpenSession_resultTupleSchemeFactory
implements org.apache.thrift.scheme.SchemeFactory {
@Override
public OpenSession_resultTupleScheme getScheme() {
return new OpenSession_resultTupleScheme();
}
}
private static class OpenSession_resultTupleScheme
extends org.apache.thrift.scheme.TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, OpenSession_result struct)
throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot =
(org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, OpenSession_result 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.success = new TOpenSessionResp();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
}
}
private static S scheme(
org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme())
? STANDARD_SCHEME_FACTORY
: TUPLE_SCHEME_FACTORY)
.getScheme();
}
}
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class CloseSession_args
implements org.apache.thrift.TBase,
java.io.Serializable,
Cloneable,
Comparable