0001
0002
0003
0004
0005
0006
0007 package org.apache.hive.service.cli.thrift;
0008
0009 import org.apache.commons.lang.builder.HashCodeBuilder;
0010 import org.apache.thrift.scheme.IScheme;
0011 import org.apache.thrift.scheme.SchemeFactory;
0012 import org.apache.thrift.scheme.StandardScheme;
0013
0014 import org.apache.thrift.scheme.TupleScheme;
0015 import org.apache.thrift.protocol.TTupleProtocol;
0016 import org.apache.thrift.protocol.TProtocolException;
0017 import org.apache.thrift.EncodingUtils;
0018 import org.apache.thrift.TException;
0019 import java.util.List;
0020 import java.util.ArrayList;
0021 import java.util.Map;
0022 import java.util.HashMap;
0023 import java.util.EnumMap;
0024 import java.util.Set;
0025 import java.util.HashSet;
0026 import java.util.EnumSet;
0027 import java.util.Collections;
0028 import java.util.BitSet;
0029 import java.nio.ByteBuffer;
0030 import java.util.Arrays;
0031 import org.slf4j.Logger;
0032 import org.slf4j.LoggerFactory;
0033
0034 public class TCLIService {
0035
0036 public interface Iface {
0037
0038 public TOpenSessionResp OpenSession(TOpenSessionReq req) throws org.apache.thrift.TException;
0039
0040 public TCloseSessionResp CloseSession(TCloseSessionReq req) throws org.apache.thrift.TException;
0041
0042 public TGetInfoResp GetInfo(TGetInfoReq req) throws org.apache.thrift.TException;
0043
0044 public TExecuteStatementResp ExecuteStatement(TExecuteStatementReq req) throws org.apache.thrift.TException;
0045
0046 public TGetTypeInfoResp GetTypeInfo(TGetTypeInfoReq req) throws org.apache.thrift.TException;
0047
0048 public TGetCatalogsResp GetCatalogs(TGetCatalogsReq req) throws org.apache.thrift.TException;
0049
0050 public TGetSchemasResp GetSchemas(TGetSchemasReq req) throws org.apache.thrift.TException;
0051
0052 public TGetTablesResp GetTables(TGetTablesReq req) throws org.apache.thrift.TException;
0053
0054 public TGetTableTypesResp GetTableTypes(TGetTableTypesReq req) throws org.apache.thrift.TException;
0055
0056 public TGetColumnsResp GetColumns(TGetColumnsReq req) throws org.apache.thrift.TException;
0057
0058 public TGetFunctionsResp GetFunctions(TGetFunctionsReq req) throws org.apache.thrift.TException;
0059
0060 public TGetOperationStatusResp GetOperationStatus(TGetOperationStatusReq req) throws org.apache.thrift.TException;
0061
0062 public TCancelOperationResp CancelOperation(TCancelOperationReq req) throws org.apache.thrift.TException;
0063
0064 public TCloseOperationResp CloseOperation(TCloseOperationReq req) throws org.apache.thrift.TException;
0065
0066 public TGetResultSetMetadataResp GetResultSetMetadata(TGetResultSetMetadataReq req) throws org.apache.thrift.TException;
0067
0068 public TFetchResultsResp FetchResults(TFetchResultsReq req) throws org.apache.thrift.TException;
0069
0070 public TGetDelegationTokenResp GetDelegationToken(TGetDelegationTokenReq req) throws org.apache.thrift.TException;
0071
0072 public TCancelDelegationTokenResp CancelDelegationToken(TCancelDelegationTokenReq req) throws org.apache.thrift.TException;
0073
0074 public TRenewDelegationTokenResp RenewDelegationToken(TRenewDelegationTokenReq req) throws org.apache.thrift.TException;
0075
0076 }
0077
0078 public interface AsyncIface {
0079
0080 public void OpenSession(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.OpenSession_call> resultHandler) throws org.apache.thrift.TException;
0081
0082 public void CloseSession(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.CloseSession_call> resultHandler) throws org.apache.thrift.TException;
0083
0084 public void GetInfo(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetInfo_call> resultHandler) throws org.apache.thrift.TException;
0085
0086 public void ExecuteStatement(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.ExecuteStatement_call> resultHandler) throws org.apache.thrift.TException;
0087
0088 public void GetTypeInfo(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetTypeInfo_call> resultHandler) throws org.apache.thrift.TException;
0089
0090 public void GetCatalogs(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetCatalogs_call> resultHandler) throws org.apache.thrift.TException;
0091
0092 public void GetSchemas(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetSchemas_call> resultHandler) throws org.apache.thrift.TException;
0093
0094 public void GetTables(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetTables_call> resultHandler) throws org.apache.thrift.TException;
0095
0096 public void GetTableTypes(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetTableTypes_call> resultHandler) throws org.apache.thrift.TException;
0097
0098 public void GetColumns(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetColumns_call> resultHandler) throws org.apache.thrift.TException;
0099
0100 public void GetFunctions(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetFunctions_call> resultHandler) throws org.apache.thrift.TException;
0101
0102 public void GetOperationStatus(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetOperationStatus_call> resultHandler) throws org.apache.thrift.TException;
0103
0104 public void CancelOperation(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.CancelOperation_call> resultHandler) throws org.apache.thrift.TException;
0105
0106 public void CloseOperation(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.CloseOperation_call> resultHandler) throws org.apache.thrift.TException;
0107
0108 public void GetResultSetMetadata(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetResultSetMetadata_call> resultHandler) throws org.apache.thrift.TException;
0109
0110 public void FetchResults(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.FetchResults_call> resultHandler) throws org.apache.thrift.TException;
0111
0112 public void GetDelegationToken(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.GetDelegationToken_call> resultHandler) throws org.apache.thrift.TException;
0113
0114 public void CancelDelegationToken(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.CancelDelegationToken_call> resultHandler) throws org.apache.thrift.TException;
0115
0116 public void RenewDelegationToken(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.RenewDelegationToken_call> resultHandler) throws org.apache.thrift.TException;
0117
0118 }
0119
0120 public static class Client extends org.apache.thrift.TServiceClient implements Iface {
0121 public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
0122 public Factory() {}
0123 public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
0124 return new Client(prot);
0125 }
0126 public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
0127 return new Client(iprot, oprot);
0128 }
0129 }
0130
0131 public Client(org.apache.thrift.protocol.TProtocol prot)
0132 {
0133 super(prot, prot);
0134 }
0135
0136 public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
0137 super(iprot, oprot);
0138 }
0139
0140 public TOpenSessionResp OpenSession(TOpenSessionReq req) throws org.apache.thrift.TException
0141 {
0142 send_OpenSession(req);
0143 return recv_OpenSession();
0144 }
0145
0146 public void send_OpenSession(TOpenSessionReq req) throws org.apache.thrift.TException
0147 {
0148 OpenSession_args args = new OpenSession_args();
0149 args.setReq(req);
0150 sendBase("OpenSession", args);
0151 }
0152
0153 public TOpenSessionResp recv_OpenSession() throws org.apache.thrift.TException
0154 {
0155 OpenSession_result result = new OpenSession_result();
0156 receiveBase(result, "OpenSession");
0157 if (result.isSetSuccess()) {
0158 return result.success;
0159 }
0160 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "OpenSession failed: unknown result");
0161 }
0162
0163 public TCloseSessionResp CloseSession(TCloseSessionReq req) throws org.apache.thrift.TException
0164 {
0165 send_CloseSession(req);
0166 return recv_CloseSession();
0167 }
0168
0169 public void send_CloseSession(TCloseSessionReq req) throws org.apache.thrift.TException
0170 {
0171 CloseSession_args args = new CloseSession_args();
0172 args.setReq(req);
0173 sendBase("CloseSession", args);
0174 }
0175
0176 public TCloseSessionResp recv_CloseSession() throws org.apache.thrift.TException
0177 {
0178 CloseSession_result result = new CloseSession_result();
0179 receiveBase(result, "CloseSession");
0180 if (result.isSetSuccess()) {
0181 return result.success;
0182 }
0183 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "CloseSession failed: unknown result");
0184 }
0185
0186 public TGetInfoResp GetInfo(TGetInfoReq req) throws org.apache.thrift.TException
0187 {
0188 send_GetInfo(req);
0189 return recv_GetInfo();
0190 }
0191
0192 public void send_GetInfo(TGetInfoReq req) throws org.apache.thrift.TException
0193 {
0194 GetInfo_args args = new GetInfo_args();
0195 args.setReq(req);
0196 sendBase("GetInfo", args);
0197 }
0198
0199 public TGetInfoResp recv_GetInfo() throws org.apache.thrift.TException
0200 {
0201 GetInfo_result result = new GetInfo_result();
0202 receiveBase(result, "GetInfo");
0203 if (result.isSetSuccess()) {
0204 return result.success;
0205 }
0206 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetInfo failed: unknown result");
0207 }
0208
0209 public TExecuteStatementResp ExecuteStatement(TExecuteStatementReq req) throws org.apache.thrift.TException
0210 {
0211 send_ExecuteStatement(req);
0212 return recv_ExecuteStatement();
0213 }
0214
0215 public void send_ExecuteStatement(TExecuteStatementReq req) throws org.apache.thrift.TException
0216 {
0217 ExecuteStatement_args args = new ExecuteStatement_args();
0218 args.setReq(req);
0219 sendBase("ExecuteStatement", args);
0220 }
0221
0222 public TExecuteStatementResp recv_ExecuteStatement() throws org.apache.thrift.TException
0223 {
0224 ExecuteStatement_result result = new ExecuteStatement_result();
0225 receiveBase(result, "ExecuteStatement");
0226 if (result.isSetSuccess()) {
0227 return result.success;
0228 }
0229 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "ExecuteStatement failed: unknown result");
0230 }
0231
0232 public TGetTypeInfoResp GetTypeInfo(TGetTypeInfoReq req) throws org.apache.thrift.TException
0233 {
0234 send_GetTypeInfo(req);
0235 return recv_GetTypeInfo();
0236 }
0237
0238 public void send_GetTypeInfo(TGetTypeInfoReq req) throws org.apache.thrift.TException
0239 {
0240 GetTypeInfo_args args = new GetTypeInfo_args();
0241 args.setReq(req);
0242 sendBase("GetTypeInfo", args);
0243 }
0244
0245 public TGetTypeInfoResp recv_GetTypeInfo() throws org.apache.thrift.TException
0246 {
0247 GetTypeInfo_result result = new GetTypeInfo_result();
0248 receiveBase(result, "GetTypeInfo");
0249 if (result.isSetSuccess()) {
0250 return result.success;
0251 }
0252 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetTypeInfo failed: unknown result");
0253 }
0254
0255 public TGetCatalogsResp GetCatalogs(TGetCatalogsReq req) throws org.apache.thrift.TException
0256 {
0257 send_GetCatalogs(req);
0258 return recv_GetCatalogs();
0259 }
0260
0261 public void send_GetCatalogs(TGetCatalogsReq req) throws org.apache.thrift.TException
0262 {
0263 GetCatalogs_args args = new GetCatalogs_args();
0264 args.setReq(req);
0265 sendBase("GetCatalogs", args);
0266 }
0267
0268 public TGetCatalogsResp recv_GetCatalogs() throws org.apache.thrift.TException
0269 {
0270 GetCatalogs_result result = new GetCatalogs_result();
0271 receiveBase(result, "GetCatalogs");
0272 if (result.isSetSuccess()) {
0273 return result.success;
0274 }
0275 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetCatalogs failed: unknown result");
0276 }
0277
0278 public TGetSchemasResp GetSchemas(TGetSchemasReq req) throws org.apache.thrift.TException
0279 {
0280 send_GetSchemas(req);
0281 return recv_GetSchemas();
0282 }
0283
0284 public void send_GetSchemas(TGetSchemasReq req) throws org.apache.thrift.TException
0285 {
0286 GetSchemas_args args = new GetSchemas_args();
0287 args.setReq(req);
0288 sendBase("GetSchemas", args);
0289 }
0290
0291 public TGetSchemasResp recv_GetSchemas() throws org.apache.thrift.TException
0292 {
0293 GetSchemas_result result = new GetSchemas_result();
0294 receiveBase(result, "GetSchemas");
0295 if (result.isSetSuccess()) {
0296 return result.success;
0297 }
0298 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetSchemas failed: unknown result");
0299 }
0300
0301 public TGetTablesResp GetTables(TGetTablesReq req) throws org.apache.thrift.TException
0302 {
0303 send_GetTables(req);
0304 return recv_GetTables();
0305 }
0306
0307 public void send_GetTables(TGetTablesReq req) throws org.apache.thrift.TException
0308 {
0309 GetTables_args args = new GetTables_args();
0310 args.setReq(req);
0311 sendBase("GetTables", args);
0312 }
0313
0314 public TGetTablesResp recv_GetTables() throws org.apache.thrift.TException
0315 {
0316 GetTables_result result = new GetTables_result();
0317 receiveBase(result, "GetTables");
0318 if (result.isSetSuccess()) {
0319 return result.success;
0320 }
0321 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetTables failed: unknown result");
0322 }
0323
0324 public TGetTableTypesResp GetTableTypes(TGetTableTypesReq req) throws org.apache.thrift.TException
0325 {
0326 send_GetTableTypes(req);
0327 return recv_GetTableTypes();
0328 }
0329
0330 public void send_GetTableTypes(TGetTableTypesReq req) throws org.apache.thrift.TException
0331 {
0332 GetTableTypes_args args = new GetTableTypes_args();
0333 args.setReq(req);
0334 sendBase("GetTableTypes", args);
0335 }
0336
0337 public TGetTableTypesResp recv_GetTableTypes() throws org.apache.thrift.TException
0338 {
0339 GetTableTypes_result result = new GetTableTypes_result();
0340 receiveBase(result, "GetTableTypes");
0341 if (result.isSetSuccess()) {
0342 return result.success;
0343 }
0344 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetTableTypes failed: unknown result");
0345 }
0346
0347 public TGetColumnsResp GetColumns(TGetColumnsReq req) throws org.apache.thrift.TException
0348 {
0349 send_GetColumns(req);
0350 return recv_GetColumns();
0351 }
0352
0353 public void send_GetColumns(TGetColumnsReq req) throws org.apache.thrift.TException
0354 {
0355 GetColumns_args args = new GetColumns_args();
0356 args.setReq(req);
0357 sendBase("GetColumns", args);
0358 }
0359
0360 public TGetColumnsResp recv_GetColumns() throws org.apache.thrift.TException
0361 {
0362 GetColumns_result result = new GetColumns_result();
0363 receiveBase(result, "GetColumns");
0364 if (result.isSetSuccess()) {
0365 return result.success;
0366 }
0367 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetColumns failed: unknown result");
0368 }
0369
0370 public TGetFunctionsResp GetFunctions(TGetFunctionsReq req) throws org.apache.thrift.TException
0371 {
0372 send_GetFunctions(req);
0373 return recv_GetFunctions();
0374 }
0375
0376 public void send_GetFunctions(TGetFunctionsReq req) throws org.apache.thrift.TException
0377 {
0378 GetFunctions_args args = new GetFunctions_args();
0379 args.setReq(req);
0380 sendBase("GetFunctions", args);
0381 }
0382
0383 public TGetFunctionsResp recv_GetFunctions() throws org.apache.thrift.TException
0384 {
0385 GetFunctions_result result = new GetFunctions_result();
0386 receiveBase(result, "GetFunctions");
0387 if (result.isSetSuccess()) {
0388 return result.success;
0389 }
0390 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetFunctions failed: unknown result");
0391 }
0392
0393 public TGetOperationStatusResp GetOperationStatus(TGetOperationStatusReq req) throws org.apache.thrift.TException
0394 {
0395 send_GetOperationStatus(req);
0396 return recv_GetOperationStatus();
0397 }
0398
0399 public void send_GetOperationStatus(TGetOperationStatusReq req) throws org.apache.thrift.TException
0400 {
0401 GetOperationStatus_args args = new GetOperationStatus_args();
0402 args.setReq(req);
0403 sendBase("GetOperationStatus", args);
0404 }
0405
0406 public TGetOperationStatusResp recv_GetOperationStatus() throws org.apache.thrift.TException
0407 {
0408 GetOperationStatus_result result = new GetOperationStatus_result();
0409 receiveBase(result, "GetOperationStatus");
0410 if (result.isSetSuccess()) {
0411 return result.success;
0412 }
0413 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetOperationStatus failed: unknown result");
0414 }
0415
0416 public TCancelOperationResp CancelOperation(TCancelOperationReq req) throws org.apache.thrift.TException
0417 {
0418 send_CancelOperation(req);
0419 return recv_CancelOperation();
0420 }
0421
0422 public void send_CancelOperation(TCancelOperationReq req) throws org.apache.thrift.TException
0423 {
0424 CancelOperation_args args = new CancelOperation_args();
0425 args.setReq(req);
0426 sendBase("CancelOperation", args);
0427 }
0428
0429 public TCancelOperationResp recv_CancelOperation() throws org.apache.thrift.TException
0430 {
0431 CancelOperation_result result = new CancelOperation_result();
0432 receiveBase(result, "CancelOperation");
0433 if (result.isSetSuccess()) {
0434 return result.success;
0435 }
0436 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "CancelOperation failed: unknown result");
0437 }
0438
0439 public TCloseOperationResp CloseOperation(TCloseOperationReq req) throws org.apache.thrift.TException
0440 {
0441 send_CloseOperation(req);
0442 return recv_CloseOperation();
0443 }
0444
0445 public void send_CloseOperation(TCloseOperationReq req) throws org.apache.thrift.TException
0446 {
0447 CloseOperation_args args = new CloseOperation_args();
0448 args.setReq(req);
0449 sendBase("CloseOperation", args);
0450 }
0451
0452 public TCloseOperationResp recv_CloseOperation() throws org.apache.thrift.TException
0453 {
0454 CloseOperation_result result = new CloseOperation_result();
0455 receiveBase(result, "CloseOperation");
0456 if (result.isSetSuccess()) {
0457 return result.success;
0458 }
0459 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "CloseOperation failed: unknown result");
0460 }
0461
0462 public TGetResultSetMetadataResp GetResultSetMetadata(TGetResultSetMetadataReq req) throws org.apache.thrift.TException
0463 {
0464 send_GetResultSetMetadata(req);
0465 return recv_GetResultSetMetadata();
0466 }
0467
0468 public void send_GetResultSetMetadata(TGetResultSetMetadataReq req) throws org.apache.thrift.TException
0469 {
0470 GetResultSetMetadata_args args = new GetResultSetMetadata_args();
0471 args.setReq(req);
0472 sendBase("GetResultSetMetadata", args);
0473 }
0474
0475 public TGetResultSetMetadataResp recv_GetResultSetMetadata() throws org.apache.thrift.TException
0476 {
0477 GetResultSetMetadata_result result = new GetResultSetMetadata_result();
0478 receiveBase(result, "GetResultSetMetadata");
0479 if (result.isSetSuccess()) {
0480 return result.success;
0481 }
0482 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetResultSetMetadata failed: unknown result");
0483 }
0484
0485 public TFetchResultsResp FetchResults(TFetchResultsReq req) throws org.apache.thrift.TException
0486 {
0487 send_FetchResults(req);
0488 return recv_FetchResults();
0489 }
0490
0491 public void send_FetchResults(TFetchResultsReq req) throws org.apache.thrift.TException
0492 {
0493 FetchResults_args args = new FetchResults_args();
0494 args.setReq(req);
0495 sendBase("FetchResults", args);
0496 }
0497
0498 public TFetchResultsResp recv_FetchResults() throws org.apache.thrift.TException
0499 {
0500 FetchResults_result result = new FetchResults_result();
0501 receiveBase(result, "FetchResults");
0502 if (result.isSetSuccess()) {
0503 return result.success;
0504 }
0505 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "FetchResults failed: unknown result");
0506 }
0507
0508 public TGetDelegationTokenResp GetDelegationToken(TGetDelegationTokenReq req) throws org.apache.thrift.TException
0509 {
0510 send_GetDelegationToken(req);
0511 return recv_GetDelegationToken();
0512 }
0513
0514 public void send_GetDelegationToken(TGetDelegationTokenReq req) throws org.apache.thrift.TException
0515 {
0516 GetDelegationToken_args args = new GetDelegationToken_args();
0517 args.setReq(req);
0518 sendBase("GetDelegationToken", args);
0519 }
0520
0521 public TGetDelegationTokenResp recv_GetDelegationToken() throws org.apache.thrift.TException
0522 {
0523 GetDelegationToken_result result = new GetDelegationToken_result();
0524 receiveBase(result, "GetDelegationToken");
0525 if (result.isSetSuccess()) {
0526 return result.success;
0527 }
0528 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetDelegationToken failed: unknown result");
0529 }
0530
0531 public TCancelDelegationTokenResp CancelDelegationToken(TCancelDelegationTokenReq req) throws org.apache.thrift.TException
0532 {
0533 send_CancelDelegationToken(req);
0534 return recv_CancelDelegationToken();
0535 }
0536
0537 public void send_CancelDelegationToken(TCancelDelegationTokenReq req) throws org.apache.thrift.TException
0538 {
0539 CancelDelegationToken_args args = new CancelDelegationToken_args();
0540 args.setReq(req);
0541 sendBase("CancelDelegationToken", args);
0542 }
0543
0544 public TCancelDelegationTokenResp recv_CancelDelegationToken() throws org.apache.thrift.TException
0545 {
0546 CancelDelegationToken_result result = new CancelDelegationToken_result();
0547 receiveBase(result, "CancelDelegationToken");
0548 if (result.isSetSuccess()) {
0549 return result.success;
0550 }
0551 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "CancelDelegationToken failed: unknown result");
0552 }
0553
0554 public TRenewDelegationTokenResp RenewDelegationToken(TRenewDelegationTokenReq req) throws org.apache.thrift.TException
0555 {
0556 send_RenewDelegationToken(req);
0557 return recv_RenewDelegationToken();
0558 }
0559
0560 public void send_RenewDelegationToken(TRenewDelegationTokenReq req) throws org.apache.thrift.TException
0561 {
0562 RenewDelegationToken_args args = new RenewDelegationToken_args();
0563 args.setReq(req);
0564 sendBase("RenewDelegationToken", args);
0565 }
0566
0567 public TRenewDelegationTokenResp recv_RenewDelegationToken() throws org.apache.thrift.TException
0568 {
0569 RenewDelegationToken_result result = new RenewDelegationToken_result();
0570 receiveBase(result, "RenewDelegationToken");
0571 if (result.isSetSuccess()) {
0572 return result.success;
0573 }
0574 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "RenewDelegationToken failed: unknown result");
0575 }
0576
0577 }
0578 public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
0579 public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
0580 private org.apache.thrift.async.TAsyncClientManager clientManager;
0581 private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
0582 public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
0583 this.clientManager = clientManager;
0584 this.protocolFactory = protocolFactory;
0585 }
0586 public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
0587 return new AsyncClient(protocolFactory, clientManager, transport);
0588 }
0589 }
0590
0591 public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
0592 super(protocolFactory, clientManager, transport);
0593 }
0594
0595 public void OpenSession(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback<OpenSession_call> resultHandler) throws org.apache.thrift.TException {
0596 checkReady();
0597 OpenSession_call method_call = new OpenSession_call(req, resultHandler, this, ___protocolFactory, ___transport);
0598 this.___currentMethod = method_call;
0599 ___manager.call(method_call);
0600 }
0601
0602 public static class OpenSession_call extends org.apache.thrift.async.TAsyncMethodCall {
0603 private TOpenSessionReq req;
0604 public OpenSession_call(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback<OpenSession_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0605 super(client, protocolFactory, transport, resultHandler, false);
0606 this.req = req;
0607 }
0608
0609 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0610 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("OpenSession", org.apache.thrift.protocol.TMessageType.CALL, 0));
0611 OpenSession_args args = new OpenSession_args();
0612 args.setReq(req);
0613 args.write(prot);
0614 prot.writeMessageEnd();
0615 }
0616
0617 public TOpenSessionResp getResult() throws org.apache.thrift.TException {
0618 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0619 throw new IllegalStateException("Method call not finished!");
0620 }
0621 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0622 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0623 return (new Client(prot)).recv_OpenSession();
0624 }
0625 }
0626
0627 public void CloseSession(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback<CloseSession_call> resultHandler) throws org.apache.thrift.TException {
0628 checkReady();
0629 CloseSession_call method_call = new CloseSession_call(req, resultHandler, this, ___protocolFactory, ___transport);
0630 this.___currentMethod = method_call;
0631 ___manager.call(method_call);
0632 }
0633
0634 public static class CloseSession_call extends org.apache.thrift.async.TAsyncMethodCall {
0635 private TCloseSessionReq req;
0636 public CloseSession_call(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback<CloseSession_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0637 super(client, protocolFactory, transport, resultHandler, false);
0638 this.req = req;
0639 }
0640
0641 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0642 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("CloseSession", org.apache.thrift.protocol.TMessageType.CALL, 0));
0643 CloseSession_args args = new CloseSession_args();
0644 args.setReq(req);
0645 args.write(prot);
0646 prot.writeMessageEnd();
0647 }
0648
0649 public TCloseSessionResp getResult() throws org.apache.thrift.TException {
0650 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0651 throw new IllegalStateException("Method call not finished!");
0652 }
0653 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0654 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0655 return (new Client(prot)).recv_CloseSession();
0656 }
0657 }
0658
0659 public void GetInfo(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback<GetInfo_call> resultHandler) throws org.apache.thrift.TException {
0660 checkReady();
0661 GetInfo_call method_call = new GetInfo_call(req, resultHandler, this, ___protocolFactory, ___transport);
0662 this.___currentMethod = method_call;
0663 ___manager.call(method_call);
0664 }
0665
0666 public static class GetInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
0667 private TGetInfoReq req;
0668 public GetInfo_call(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback<GetInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0669 super(client, protocolFactory, transport, resultHandler, false);
0670 this.req = req;
0671 }
0672
0673 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0674 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
0675 GetInfo_args args = new GetInfo_args();
0676 args.setReq(req);
0677 args.write(prot);
0678 prot.writeMessageEnd();
0679 }
0680
0681 public TGetInfoResp getResult() throws org.apache.thrift.TException {
0682 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0683 throw new IllegalStateException("Method call not finished!");
0684 }
0685 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0686 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0687 return (new Client(prot)).recv_GetInfo();
0688 }
0689 }
0690
0691 public void ExecuteStatement(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback<ExecuteStatement_call> resultHandler) throws org.apache.thrift.TException {
0692 checkReady();
0693 ExecuteStatement_call method_call = new ExecuteStatement_call(req, resultHandler, this, ___protocolFactory, ___transport);
0694 this.___currentMethod = method_call;
0695 ___manager.call(method_call);
0696 }
0697
0698 public static class ExecuteStatement_call extends org.apache.thrift.async.TAsyncMethodCall {
0699 private TExecuteStatementReq req;
0700 public ExecuteStatement_call(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback<ExecuteStatement_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0701 super(client, protocolFactory, transport, resultHandler, false);
0702 this.req = req;
0703 }
0704
0705 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0706 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("ExecuteStatement", org.apache.thrift.protocol.TMessageType.CALL, 0));
0707 ExecuteStatement_args args = new ExecuteStatement_args();
0708 args.setReq(req);
0709 args.write(prot);
0710 prot.writeMessageEnd();
0711 }
0712
0713 public TExecuteStatementResp getResult() throws org.apache.thrift.TException {
0714 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0715 throw new IllegalStateException("Method call not finished!");
0716 }
0717 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0718 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0719 return (new Client(prot)).recv_ExecuteStatement();
0720 }
0721 }
0722
0723 public void GetTypeInfo(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback<GetTypeInfo_call> resultHandler) throws org.apache.thrift.TException {
0724 checkReady();
0725 GetTypeInfo_call method_call = new GetTypeInfo_call(req, resultHandler, this, ___protocolFactory, ___transport);
0726 this.___currentMethod = method_call;
0727 ___manager.call(method_call);
0728 }
0729
0730 public static class GetTypeInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
0731 private TGetTypeInfoReq req;
0732 public GetTypeInfo_call(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback<GetTypeInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0733 super(client, protocolFactory, transport, resultHandler, false);
0734 this.req = req;
0735 }
0736
0737 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0738 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetTypeInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
0739 GetTypeInfo_args args = new GetTypeInfo_args();
0740 args.setReq(req);
0741 args.write(prot);
0742 prot.writeMessageEnd();
0743 }
0744
0745 public TGetTypeInfoResp getResult() throws org.apache.thrift.TException {
0746 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0747 throw new IllegalStateException("Method call not finished!");
0748 }
0749 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0750 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0751 return (new Client(prot)).recv_GetTypeInfo();
0752 }
0753 }
0754
0755 public void GetCatalogs(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback<GetCatalogs_call> resultHandler) throws org.apache.thrift.TException {
0756 checkReady();
0757 GetCatalogs_call method_call = new GetCatalogs_call(req, resultHandler, this, ___protocolFactory, ___transport);
0758 this.___currentMethod = method_call;
0759 ___manager.call(method_call);
0760 }
0761
0762 public static class GetCatalogs_call extends org.apache.thrift.async.TAsyncMethodCall {
0763 private TGetCatalogsReq req;
0764 public GetCatalogs_call(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback<GetCatalogs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0765 super(client, protocolFactory, transport, resultHandler, false);
0766 this.req = req;
0767 }
0768
0769 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0770 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetCatalogs", org.apache.thrift.protocol.TMessageType.CALL, 0));
0771 GetCatalogs_args args = new GetCatalogs_args();
0772 args.setReq(req);
0773 args.write(prot);
0774 prot.writeMessageEnd();
0775 }
0776
0777 public TGetCatalogsResp getResult() throws org.apache.thrift.TException {
0778 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0779 throw new IllegalStateException("Method call not finished!");
0780 }
0781 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0782 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0783 return (new Client(prot)).recv_GetCatalogs();
0784 }
0785 }
0786
0787 public void GetSchemas(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback<GetSchemas_call> resultHandler) throws org.apache.thrift.TException {
0788 checkReady();
0789 GetSchemas_call method_call = new GetSchemas_call(req, resultHandler, this, ___protocolFactory, ___transport);
0790 this.___currentMethod = method_call;
0791 ___manager.call(method_call);
0792 }
0793
0794 public static class GetSchemas_call extends org.apache.thrift.async.TAsyncMethodCall {
0795 private TGetSchemasReq req;
0796 public GetSchemas_call(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback<GetSchemas_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0797 super(client, protocolFactory, transport, resultHandler, false);
0798 this.req = req;
0799 }
0800
0801 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0802 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetSchemas", org.apache.thrift.protocol.TMessageType.CALL, 0));
0803 GetSchemas_args args = new GetSchemas_args();
0804 args.setReq(req);
0805 args.write(prot);
0806 prot.writeMessageEnd();
0807 }
0808
0809 public TGetSchemasResp getResult() throws org.apache.thrift.TException {
0810 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0811 throw new IllegalStateException("Method call not finished!");
0812 }
0813 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0814 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0815 return (new Client(prot)).recv_GetSchemas();
0816 }
0817 }
0818
0819 public void GetTables(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback<GetTables_call> resultHandler) throws org.apache.thrift.TException {
0820 checkReady();
0821 GetTables_call method_call = new GetTables_call(req, resultHandler, this, ___protocolFactory, ___transport);
0822 this.___currentMethod = method_call;
0823 ___manager.call(method_call);
0824 }
0825
0826 public static class GetTables_call extends org.apache.thrift.async.TAsyncMethodCall {
0827 private TGetTablesReq req;
0828 public GetTables_call(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback<GetTables_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0829 super(client, protocolFactory, transport, resultHandler, false);
0830 this.req = req;
0831 }
0832
0833 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0834 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetTables", org.apache.thrift.protocol.TMessageType.CALL, 0));
0835 GetTables_args args = new GetTables_args();
0836 args.setReq(req);
0837 args.write(prot);
0838 prot.writeMessageEnd();
0839 }
0840
0841 public TGetTablesResp getResult() throws org.apache.thrift.TException {
0842 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0843 throw new IllegalStateException("Method call not finished!");
0844 }
0845 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0846 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0847 return (new Client(prot)).recv_GetTables();
0848 }
0849 }
0850
0851 public void GetTableTypes(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback<GetTableTypes_call> resultHandler) throws org.apache.thrift.TException {
0852 checkReady();
0853 GetTableTypes_call method_call = new GetTableTypes_call(req, resultHandler, this, ___protocolFactory, ___transport);
0854 this.___currentMethod = method_call;
0855 ___manager.call(method_call);
0856 }
0857
0858 public static class GetTableTypes_call extends org.apache.thrift.async.TAsyncMethodCall {
0859 private TGetTableTypesReq req;
0860 public GetTableTypes_call(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback<GetTableTypes_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0861 super(client, protocolFactory, transport, resultHandler, false);
0862 this.req = req;
0863 }
0864
0865 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0866 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetTableTypes", org.apache.thrift.protocol.TMessageType.CALL, 0));
0867 GetTableTypes_args args = new GetTableTypes_args();
0868 args.setReq(req);
0869 args.write(prot);
0870 prot.writeMessageEnd();
0871 }
0872
0873 public TGetTableTypesResp getResult() throws org.apache.thrift.TException {
0874 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0875 throw new IllegalStateException("Method call not finished!");
0876 }
0877 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0878 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0879 return (new Client(prot)).recv_GetTableTypes();
0880 }
0881 }
0882
0883 public void GetColumns(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback<GetColumns_call> resultHandler) throws org.apache.thrift.TException {
0884 checkReady();
0885 GetColumns_call method_call = new GetColumns_call(req, resultHandler, this, ___protocolFactory, ___transport);
0886 this.___currentMethod = method_call;
0887 ___manager.call(method_call);
0888 }
0889
0890 public static class GetColumns_call extends org.apache.thrift.async.TAsyncMethodCall {
0891 private TGetColumnsReq req;
0892 public GetColumns_call(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback<GetColumns_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0893 super(client, protocolFactory, transport, resultHandler, false);
0894 this.req = req;
0895 }
0896
0897 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0898 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetColumns", org.apache.thrift.protocol.TMessageType.CALL, 0));
0899 GetColumns_args args = new GetColumns_args();
0900 args.setReq(req);
0901 args.write(prot);
0902 prot.writeMessageEnd();
0903 }
0904
0905 public TGetColumnsResp getResult() throws org.apache.thrift.TException {
0906 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0907 throw new IllegalStateException("Method call not finished!");
0908 }
0909 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0910 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0911 return (new Client(prot)).recv_GetColumns();
0912 }
0913 }
0914
0915 public void GetFunctions(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback<GetFunctions_call> resultHandler) throws org.apache.thrift.TException {
0916 checkReady();
0917 GetFunctions_call method_call = new GetFunctions_call(req, resultHandler, this, ___protocolFactory, ___transport);
0918 this.___currentMethod = method_call;
0919 ___manager.call(method_call);
0920 }
0921
0922 public static class GetFunctions_call extends org.apache.thrift.async.TAsyncMethodCall {
0923 private TGetFunctionsReq req;
0924 public GetFunctions_call(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback<GetFunctions_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0925 super(client, protocolFactory, transport, resultHandler, false);
0926 this.req = req;
0927 }
0928
0929 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0930 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetFunctions", org.apache.thrift.protocol.TMessageType.CALL, 0));
0931 GetFunctions_args args = new GetFunctions_args();
0932 args.setReq(req);
0933 args.write(prot);
0934 prot.writeMessageEnd();
0935 }
0936
0937 public TGetFunctionsResp getResult() throws org.apache.thrift.TException {
0938 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0939 throw new IllegalStateException("Method call not finished!");
0940 }
0941 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0942 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0943 return (new Client(prot)).recv_GetFunctions();
0944 }
0945 }
0946
0947 public void GetOperationStatus(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback<GetOperationStatus_call> resultHandler) throws org.apache.thrift.TException {
0948 checkReady();
0949 GetOperationStatus_call method_call = new GetOperationStatus_call(req, resultHandler, this, ___protocolFactory, ___transport);
0950 this.___currentMethod = method_call;
0951 ___manager.call(method_call);
0952 }
0953
0954 public static class GetOperationStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
0955 private TGetOperationStatusReq req;
0956 public GetOperationStatus_call(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback<GetOperationStatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0957 super(client, protocolFactory, transport, resultHandler, false);
0958 this.req = req;
0959 }
0960
0961 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0962 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetOperationStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
0963 GetOperationStatus_args args = new GetOperationStatus_args();
0964 args.setReq(req);
0965 args.write(prot);
0966 prot.writeMessageEnd();
0967 }
0968
0969 public TGetOperationStatusResp getResult() throws org.apache.thrift.TException {
0970 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0971 throw new IllegalStateException("Method call not finished!");
0972 }
0973 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0974 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0975 return (new Client(prot)).recv_GetOperationStatus();
0976 }
0977 }
0978
0979 public void CancelOperation(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback<CancelOperation_call> resultHandler) throws org.apache.thrift.TException {
0980 checkReady();
0981 CancelOperation_call method_call = new CancelOperation_call(req, resultHandler, this, ___protocolFactory, ___transport);
0982 this.___currentMethod = method_call;
0983 ___manager.call(method_call);
0984 }
0985
0986 public static class CancelOperation_call extends org.apache.thrift.async.TAsyncMethodCall {
0987 private TCancelOperationReq req;
0988 public CancelOperation_call(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback<CancelOperation_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0989 super(client, protocolFactory, transport, resultHandler, false);
0990 this.req = req;
0991 }
0992
0993 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0994 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("CancelOperation", org.apache.thrift.protocol.TMessageType.CALL, 0));
0995 CancelOperation_args args = new CancelOperation_args();
0996 args.setReq(req);
0997 args.write(prot);
0998 prot.writeMessageEnd();
0999 }
1000
1001 public TCancelOperationResp getResult() throws org.apache.thrift.TException {
1002 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1003 throw new IllegalStateException("Method call not finished!");
1004 }
1005 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1006 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1007 return (new Client(prot)).recv_CancelOperation();
1008 }
1009 }
1010
1011 public void CloseOperation(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback<CloseOperation_call> resultHandler) throws org.apache.thrift.TException {
1012 checkReady();
1013 CloseOperation_call method_call = new CloseOperation_call(req, resultHandler, this, ___protocolFactory, ___transport);
1014 this.___currentMethod = method_call;
1015 ___manager.call(method_call);
1016 }
1017
1018 public static class CloseOperation_call extends org.apache.thrift.async.TAsyncMethodCall {
1019 private TCloseOperationReq req;
1020 public CloseOperation_call(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback<CloseOperation_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1021 super(client, protocolFactory, transport, resultHandler, false);
1022 this.req = req;
1023 }
1024
1025 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1026 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("CloseOperation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1027 CloseOperation_args args = new CloseOperation_args();
1028 args.setReq(req);
1029 args.write(prot);
1030 prot.writeMessageEnd();
1031 }
1032
1033 public TCloseOperationResp getResult() throws org.apache.thrift.TException {
1034 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1035 throw new IllegalStateException("Method call not finished!");
1036 }
1037 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1038 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1039 return (new Client(prot)).recv_CloseOperation();
1040 }
1041 }
1042
1043 public void GetResultSetMetadata(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback<GetResultSetMetadata_call> resultHandler) throws org.apache.thrift.TException {
1044 checkReady();
1045 GetResultSetMetadata_call method_call = new GetResultSetMetadata_call(req, resultHandler, this, ___protocolFactory, ___transport);
1046 this.___currentMethod = method_call;
1047 ___manager.call(method_call);
1048 }
1049
1050 public static class GetResultSetMetadata_call extends org.apache.thrift.async.TAsyncMethodCall {
1051 private TGetResultSetMetadataReq req;
1052 public GetResultSetMetadata_call(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback<GetResultSetMetadata_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1053 super(client, protocolFactory, transport, resultHandler, false);
1054 this.req = req;
1055 }
1056
1057 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1058 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetResultSetMetadata", org.apache.thrift.protocol.TMessageType.CALL, 0));
1059 GetResultSetMetadata_args args = new GetResultSetMetadata_args();
1060 args.setReq(req);
1061 args.write(prot);
1062 prot.writeMessageEnd();
1063 }
1064
1065 public TGetResultSetMetadataResp getResult() throws org.apache.thrift.TException {
1066 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1067 throw new IllegalStateException("Method call not finished!");
1068 }
1069 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1070 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1071 return (new Client(prot)).recv_GetResultSetMetadata();
1072 }
1073 }
1074
1075 public void FetchResults(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback<FetchResults_call> resultHandler) throws org.apache.thrift.TException {
1076 checkReady();
1077 FetchResults_call method_call = new FetchResults_call(req, resultHandler, this, ___protocolFactory, ___transport);
1078 this.___currentMethod = method_call;
1079 ___manager.call(method_call);
1080 }
1081
1082 public static class FetchResults_call extends org.apache.thrift.async.TAsyncMethodCall {
1083 private TFetchResultsReq req;
1084 public FetchResults_call(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback<FetchResults_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1085 super(client, protocolFactory, transport, resultHandler, false);
1086 this.req = req;
1087 }
1088
1089 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1090 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("FetchResults", org.apache.thrift.protocol.TMessageType.CALL, 0));
1091 FetchResults_args args = new FetchResults_args();
1092 args.setReq(req);
1093 args.write(prot);
1094 prot.writeMessageEnd();
1095 }
1096
1097 public TFetchResultsResp getResult() throws org.apache.thrift.TException {
1098 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1099 throw new IllegalStateException("Method call not finished!");
1100 }
1101 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1102 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1103 return (new Client(prot)).recv_FetchResults();
1104 }
1105 }
1106
1107 public void GetDelegationToken(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback<GetDelegationToken_call> resultHandler) throws org.apache.thrift.TException {
1108 checkReady();
1109 GetDelegationToken_call method_call = new GetDelegationToken_call(req, resultHandler, this, ___protocolFactory, ___transport);
1110 this.___currentMethod = method_call;
1111 ___manager.call(method_call);
1112 }
1113
1114 public static class GetDelegationToken_call extends org.apache.thrift.async.TAsyncMethodCall {
1115 private TGetDelegationTokenReq req;
1116 public GetDelegationToken_call(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback<GetDelegationToken_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1117 super(client, protocolFactory, transport, resultHandler, false);
1118 this.req = req;
1119 }
1120
1121 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1122 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetDelegationToken", org.apache.thrift.protocol.TMessageType.CALL, 0));
1123 GetDelegationToken_args args = new GetDelegationToken_args();
1124 args.setReq(req);
1125 args.write(prot);
1126 prot.writeMessageEnd();
1127 }
1128
1129 public TGetDelegationTokenResp getResult() throws org.apache.thrift.TException {
1130 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1131 throw new IllegalStateException("Method call not finished!");
1132 }
1133 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1134 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1135 return (new Client(prot)).recv_GetDelegationToken();
1136 }
1137 }
1138
1139 public void CancelDelegationToken(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback<CancelDelegationToken_call> resultHandler) throws org.apache.thrift.TException {
1140 checkReady();
1141 CancelDelegationToken_call method_call = new CancelDelegationToken_call(req, resultHandler, this, ___protocolFactory, ___transport);
1142 this.___currentMethod = method_call;
1143 ___manager.call(method_call);
1144 }
1145
1146 public static class CancelDelegationToken_call extends org.apache.thrift.async.TAsyncMethodCall {
1147 private TCancelDelegationTokenReq req;
1148 public CancelDelegationToken_call(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback<CancelDelegationToken_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1149 super(client, protocolFactory, transport, resultHandler, false);
1150 this.req = req;
1151 }
1152
1153 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1154 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("CancelDelegationToken", org.apache.thrift.protocol.TMessageType.CALL, 0));
1155 CancelDelegationToken_args args = new CancelDelegationToken_args();
1156 args.setReq(req);
1157 args.write(prot);
1158 prot.writeMessageEnd();
1159 }
1160
1161 public TCancelDelegationTokenResp getResult() throws org.apache.thrift.TException {
1162 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1163 throw new IllegalStateException("Method call not finished!");
1164 }
1165 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1166 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1167 return (new Client(prot)).recv_CancelDelegationToken();
1168 }
1169 }
1170
1171 public void RenewDelegationToken(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback<RenewDelegationToken_call> resultHandler) throws org.apache.thrift.TException {
1172 checkReady();
1173 RenewDelegationToken_call method_call = new RenewDelegationToken_call(req, resultHandler, this, ___protocolFactory, ___transport);
1174 this.___currentMethod = method_call;
1175 ___manager.call(method_call);
1176 }
1177
1178 public static class RenewDelegationToken_call extends org.apache.thrift.async.TAsyncMethodCall {
1179 private TRenewDelegationTokenReq req;
1180 public RenewDelegationToken_call(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback<RenewDelegationToken_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1181 super(client, protocolFactory, transport, resultHandler, false);
1182 this.req = req;
1183 }
1184
1185 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1186 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("RenewDelegationToken", org.apache.thrift.protocol.TMessageType.CALL, 0));
1187 RenewDelegationToken_args args = new RenewDelegationToken_args();
1188 args.setReq(req);
1189 args.write(prot);
1190 prot.writeMessageEnd();
1191 }
1192
1193 public TRenewDelegationTokenResp getResult() throws org.apache.thrift.TException {
1194 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1195 throw new IllegalStateException("Method call not finished!");
1196 }
1197 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1198 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1199 return (new Client(prot)).recv_RenewDelegationToken();
1200 }
1201 }
1202
1203 }
1204
1205 public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
1206 private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1207 public Processor(I iface) {
1208 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1209 }
1210
1211 protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
1212 super(iface, getProcessMap(processMap));
1213 }
1214
1215 private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
1216 processMap.put("OpenSession", new OpenSession());
1217 processMap.put("CloseSession", new CloseSession());
1218 processMap.put("GetInfo", new GetInfo());
1219 processMap.put("ExecuteStatement", new ExecuteStatement());
1220 processMap.put("GetTypeInfo", new GetTypeInfo());
1221 processMap.put("GetCatalogs", new GetCatalogs());
1222 processMap.put("GetSchemas", new GetSchemas());
1223 processMap.put("GetTables", new GetTables());
1224 processMap.put("GetTableTypes", new GetTableTypes());
1225 processMap.put("GetColumns", new GetColumns());
1226 processMap.put("GetFunctions", new GetFunctions());
1227 processMap.put("GetOperationStatus", new GetOperationStatus());
1228 processMap.put("CancelOperation", new CancelOperation());
1229 processMap.put("CloseOperation", new CloseOperation());
1230 processMap.put("GetResultSetMetadata", new GetResultSetMetadata());
1231 processMap.put("FetchResults", new FetchResults());
1232 processMap.put("GetDelegationToken", new GetDelegationToken());
1233 processMap.put("CancelDelegationToken", new CancelDelegationToken());
1234 processMap.put("RenewDelegationToken", new RenewDelegationToken());
1235 return processMap;
1236 }
1237
1238 public static class OpenSession<I extends Iface> extends org.apache.thrift.ProcessFunction<I, OpenSession_args> {
1239 public OpenSession() {
1240 super("OpenSession");
1241 }
1242
1243 public OpenSession_args getEmptyArgsInstance() {
1244 return new OpenSession_args();
1245 }
1246
1247 protected boolean isOneway() {
1248 return false;
1249 }
1250
1251 public OpenSession_result getResult(I iface, OpenSession_args args) throws org.apache.thrift.TException {
1252 OpenSession_result result = new OpenSession_result();
1253 result.success = iface.OpenSession(args.req);
1254 return result;
1255 }
1256 }
1257
1258 public static class CloseSession<I extends Iface> extends org.apache.thrift.ProcessFunction<I, CloseSession_args> {
1259 public CloseSession() {
1260 super("CloseSession");
1261 }
1262
1263 public CloseSession_args getEmptyArgsInstance() {
1264 return new CloseSession_args();
1265 }
1266
1267 protected boolean isOneway() {
1268 return false;
1269 }
1270
1271 public CloseSession_result getResult(I iface, CloseSession_args args) throws org.apache.thrift.TException {
1272 CloseSession_result result = new CloseSession_result();
1273 result.success = iface.CloseSession(args.req);
1274 return result;
1275 }
1276 }
1277
1278 public static class GetInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetInfo_args> {
1279 public GetInfo() {
1280 super("GetInfo");
1281 }
1282
1283 public GetInfo_args getEmptyArgsInstance() {
1284 return new GetInfo_args();
1285 }
1286
1287 protected boolean isOneway() {
1288 return false;
1289 }
1290
1291 public GetInfo_result getResult(I iface, GetInfo_args args) throws org.apache.thrift.TException {
1292 GetInfo_result result = new GetInfo_result();
1293 result.success = iface.GetInfo(args.req);
1294 return result;
1295 }
1296 }
1297
1298 public static class ExecuteStatement<I extends Iface> extends org.apache.thrift.ProcessFunction<I, ExecuteStatement_args> {
1299 public ExecuteStatement() {
1300 super("ExecuteStatement");
1301 }
1302
1303 public ExecuteStatement_args getEmptyArgsInstance() {
1304 return new ExecuteStatement_args();
1305 }
1306
1307 protected boolean isOneway() {
1308 return false;
1309 }
1310
1311 public ExecuteStatement_result getResult(I iface, ExecuteStatement_args args) throws org.apache.thrift.TException {
1312 ExecuteStatement_result result = new ExecuteStatement_result();
1313 result.success = iface.ExecuteStatement(args.req);
1314 return result;
1315 }
1316 }
1317
1318 public static class GetTypeInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetTypeInfo_args> {
1319 public GetTypeInfo() {
1320 super("GetTypeInfo");
1321 }
1322
1323 public GetTypeInfo_args getEmptyArgsInstance() {
1324 return new GetTypeInfo_args();
1325 }
1326
1327 protected boolean isOneway() {
1328 return false;
1329 }
1330
1331 public GetTypeInfo_result getResult(I iface, GetTypeInfo_args args) throws org.apache.thrift.TException {
1332 GetTypeInfo_result result = new GetTypeInfo_result();
1333 result.success = iface.GetTypeInfo(args.req);
1334 return result;
1335 }
1336 }
1337
1338 public static class GetCatalogs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetCatalogs_args> {
1339 public GetCatalogs() {
1340 super("GetCatalogs");
1341 }
1342
1343 public GetCatalogs_args getEmptyArgsInstance() {
1344 return new GetCatalogs_args();
1345 }
1346
1347 protected boolean isOneway() {
1348 return false;
1349 }
1350
1351 public GetCatalogs_result getResult(I iface, GetCatalogs_args args) throws org.apache.thrift.TException {
1352 GetCatalogs_result result = new GetCatalogs_result();
1353 result.success = iface.GetCatalogs(args.req);
1354 return result;
1355 }
1356 }
1357
1358 public static class GetSchemas<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetSchemas_args> {
1359 public GetSchemas() {
1360 super("GetSchemas");
1361 }
1362
1363 public GetSchemas_args getEmptyArgsInstance() {
1364 return new GetSchemas_args();
1365 }
1366
1367 protected boolean isOneway() {
1368 return false;
1369 }
1370
1371 public GetSchemas_result getResult(I iface, GetSchemas_args args) throws org.apache.thrift.TException {
1372 GetSchemas_result result = new GetSchemas_result();
1373 result.success = iface.GetSchemas(args.req);
1374 return result;
1375 }
1376 }
1377
1378 public static class GetTables<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetTables_args> {
1379 public GetTables() {
1380 super("GetTables");
1381 }
1382
1383 public GetTables_args getEmptyArgsInstance() {
1384 return new GetTables_args();
1385 }
1386
1387 protected boolean isOneway() {
1388 return false;
1389 }
1390
1391 public GetTables_result getResult(I iface, GetTables_args args) throws org.apache.thrift.TException {
1392 GetTables_result result = new GetTables_result();
1393 result.success = iface.GetTables(args.req);
1394 return result;
1395 }
1396 }
1397
1398 public static class GetTableTypes<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetTableTypes_args> {
1399 public GetTableTypes() {
1400 super("GetTableTypes");
1401 }
1402
1403 public GetTableTypes_args getEmptyArgsInstance() {
1404 return new GetTableTypes_args();
1405 }
1406
1407 protected boolean isOneway() {
1408 return false;
1409 }
1410
1411 public GetTableTypes_result getResult(I iface, GetTableTypes_args args) throws org.apache.thrift.TException {
1412 GetTableTypes_result result = new GetTableTypes_result();
1413 result.success = iface.GetTableTypes(args.req);
1414 return result;
1415 }
1416 }
1417
1418 public static class GetColumns<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetColumns_args> {
1419 public GetColumns() {
1420 super("GetColumns");
1421 }
1422
1423 public GetColumns_args getEmptyArgsInstance() {
1424 return new GetColumns_args();
1425 }
1426
1427 protected boolean isOneway() {
1428 return false;
1429 }
1430
1431 public GetColumns_result getResult(I iface, GetColumns_args args) throws org.apache.thrift.TException {
1432 GetColumns_result result = new GetColumns_result();
1433 result.success = iface.GetColumns(args.req);
1434 return result;
1435 }
1436 }
1437
1438 public static class GetFunctions<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetFunctions_args> {
1439 public GetFunctions() {
1440 super("GetFunctions");
1441 }
1442
1443 public GetFunctions_args getEmptyArgsInstance() {
1444 return new GetFunctions_args();
1445 }
1446
1447 protected boolean isOneway() {
1448 return false;
1449 }
1450
1451 public GetFunctions_result getResult(I iface, GetFunctions_args args) throws org.apache.thrift.TException {
1452 GetFunctions_result result = new GetFunctions_result();
1453 result.success = iface.GetFunctions(args.req);
1454 return result;
1455 }
1456 }
1457
1458 public static class GetOperationStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetOperationStatus_args> {
1459 public GetOperationStatus() {
1460 super("GetOperationStatus");
1461 }
1462
1463 public GetOperationStatus_args getEmptyArgsInstance() {
1464 return new GetOperationStatus_args();
1465 }
1466
1467 protected boolean isOneway() {
1468 return false;
1469 }
1470
1471 public GetOperationStatus_result getResult(I iface, GetOperationStatus_args args) throws org.apache.thrift.TException {
1472 GetOperationStatus_result result = new GetOperationStatus_result();
1473 result.success = iface.GetOperationStatus(args.req);
1474 return result;
1475 }
1476 }
1477
1478 public static class CancelOperation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, CancelOperation_args> {
1479 public CancelOperation() {
1480 super("CancelOperation");
1481 }
1482
1483 public CancelOperation_args getEmptyArgsInstance() {
1484 return new CancelOperation_args();
1485 }
1486
1487 protected boolean isOneway() {
1488 return false;
1489 }
1490
1491 public CancelOperation_result getResult(I iface, CancelOperation_args args) throws org.apache.thrift.TException {
1492 CancelOperation_result result = new CancelOperation_result();
1493 result.success = iface.CancelOperation(args.req);
1494 return result;
1495 }
1496 }
1497
1498 public static class CloseOperation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, CloseOperation_args> {
1499 public CloseOperation() {
1500 super("CloseOperation");
1501 }
1502
1503 public CloseOperation_args getEmptyArgsInstance() {
1504 return new CloseOperation_args();
1505 }
1506
1507 protected boolean isOneway() {
1508 return false;
1509 }
1510
1511 public CloseOperation_result getResult(I iface, CloseOperation_args args) throws org.apache.thrift.TException {
1512 CloseOperation_result result = new CloseOperation_result();
1513 result.success = iface.CloseOperation(args.req);
1514 return result;
1515 }
1516 }
1517
1518 public static class GetResultSetMetadata<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetResultSetMetadata_args> {
1519 public GetResultSetMetadata() {
1520 super("GetResultSetMetadata");
1521 }
1522
1523 public GetResultSetMetadata_args getEmptyArgsInstance() {
1524 return new GetResultSetMetadata_args();
1525 }
1526
1527 protected boolean isOneway() {
1528 return false;
1529 }
1530
1531 public GetResultSetMetadata_result getResult(I iface, GetResultSetMetadata_args args) throws org.apache.thrift.TException {
1532 GetResultSetMetadata_result result = new GetResultSetMetadata_result();
1533 result.success = iface.GetResultSetMetadata(args.req);
1534 return result;
1535 }
1536 }
1537
1538 public static class FetchResults<I extends Iface> extends org.apache.thrift.ProcessFunction<I, FetchResults_args> {
1539 public FetchResults() {
1540 super("FetchResults");
1541 }
1542
1543 public FetchResults_args getEmptyArgsInstance() {
1544 return new FetchResults_args();
1545 }
1546
1547 protected boolean isOneway() {
1548 return false;
1549 }
1550
1551 public FetchResults_result getResult(I iface, FetchResults_args args) throws org.apache.thrift.TException {
1552 FetchResults_result result = new FetchResults_result();
1553 result.success = iface.FetchResults(args.req);
1554 return result;
1555 }
1556 }
1557
1558 public static class GetDelegationToken<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetDelegationToken_args> {
1559 public GetDelegationToken() {
1560 super("GetDelegationToken");
1561 }
1562
1563 public GetDelegationToken_args getEmptyArgsInstance() {
1564 return new GetDelegationToken_args();
1565 }
1566
1567 protected boolean isOneway() {
1568 return false;
1569 }
1570
1571 public GetDelegationToken_result getResult(I iface, GetDelegationToken_args args) throws org.apache.thrift.TException {
1572 GetDelegationToken_result result = new GetDelegationToken_result();
1573 result.success = iface.GetDelegationToken(args.req);
1574 return result;
1575 }
1576 }
1577
1578 public static class CancelDelegationToken<I extends Iface> extends org.apache.thrift.ProcessFunction<I, CancelDelegationToken_args> {
1579 public CancelDelegationToken() {
1580 super("CancelDelegationToken");
1581 }
1582
1583 public CancelDelegationToken_args getEmptyArgsInstance() {
1584 return new CancelDelegationToken_args();
1585 }
1586
1587 protected boolean isOneway() {
1588 return false;
1589 }
1590
1591 public CancelDelegationToken_result getResult(I iface, CancelDelegationToken_args args) throws org.apache.thrift.TException {
1592 CancelDelegationToken_result result = new CancelDelegationToken_result();
1593 result.success = iface.CancelDelegationToken(args.req);
1594 return result;
1595 }
1596 }
1597
1598 public static class RenewDelegationToken<I extends Iface> extends org.apache.thrift.ProcessFunction<I, RenewDelegationToken_args> {
1599 public RenewDelegationToken() {
1600 super("RenewDelegationToken");
1601 }
1602
1603 public RenewDelegationToken_args getEmptyArgsInstance() {
1604 return new RenewDelegationToken_args();
1605 }
1606
1607 protected boolean isOneway() {
1608 return false;
1609 }
1610
1611 public RenewDelegationToken_result getResult(I iface, RenewDelegationToken_args args) throws org.apache.thrift.TException {
1612 RenewDelegationToken_result result = new RenewDelegationToken_result();
1613 result.success = iface.RenewDelegationToken(args.req);
1614 return result;
1615 }
1616 }
1617
1618 }
1619
1620 public static class OpenSession_args implements org.apache.thrift.TBase<OpenSession_args, OpenSession_args._Fields>, java.io.Serializable, Cloneable {
1621 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OpenSession_args");
1622
1623 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);
1624
1625 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
1626 static {
1627 schemes.put(StandardScheme.class, new OpenSession_argsStandardSchemeFactory());
1628 schemes.put(TupleScheme.class, new OpenSession_argsTupleSchemeFactory());
1629 }
1630
1631 private TOpenSessionReq req;
1632
1633
1634 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1635 REQ((short)1, "req");
1636
1637 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1638
1639 static {
1640 for (_Fields field : EnumSet.allOf(_Fields.class)) {
1641 byName.put(field.getFieldName(), field);
1642 }
1643 }
1644
1645
1646
1647
1648 public static _Fields findByThriftId(int fieldId) {
1649 switch(fieldId) {
1650 case 1:
1651 return REQ;
1652 default:
1653 return null;
1654 }
1655 }
1656
1657
1658
1659
1660
1661 public static _Fields findByThriftIdOrThrow(int fieldId) {
1662 _Fields fields = findByThriftId(fieldId);
1663 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1664 return fields;
1665 }
1666
1667
1668
1669
1670 public static _Fields findByName(String name) {
1671 return byName.get(name);
1672 }
1673
1674 private final short _thriftId;
1675 private final String _fieldName;
1676
1677 _Fields(short thriftId, String fieldName) {
1678 _thriftId = thriftId;
1679 _fieldName = fieldName;
1680 }
1681
1682 public short getThriftFieldId() {
1683 return _thriftId;
1684 }
1685
1686 public String getFieldName() {
1687 return _fieldName;
1688 }
1689 }
1690
1691
1692 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1693 static {
1694 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1695 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
1696 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TOpenSessionReq.class)));
1697 metaDataMap = Collections.unmodifiableMap(tmpMap);
1698 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(OpenSession_args.class, metaDataMap);
1699 }
1700
1701 public OpenSession_args() {
1702 }
1703
1704 public OpenSession_args(
1705 TOpenSessionReq req)
1706 {
1707 this();
1708 this.req = req;
1709 }
1710
1711
1712
1713
1714 public OpenSession_args(OpenSession_args other) {
1715 if (other.isSetReq()) {
1716 this.req = new TOpenSessionReq(other.req);
1717 }
1718 }
1719
1720 public OpenSession_args deepCopy() {
1721 return new OpenSession_args(this);
1722 }
1723
1724 @Override
1725 public void clear() {
1726 this.req = null;
1727 }
1728
1729 public TOpenSessionReq getReq() {
1730 return this.req;
1731 }
1732
1733 public void setReq(TOpenSessionReq req) {
1734 this.req = req;
1735 }
1736
1737 public void unsetReq() {
1738 this.req = null;
1739 }
1740
1741
1742 public boolean isSetReq() {
1743 return this.req != null;
1744 }
1745
1746 public void setReqIsSet(boolean value) {
1747 if (!value) {
1748 this.req = null;
1749 }
1750 }
1751
1752 public void setFieldValue(_Fields field, Object value) {
1753 switch (field) {
1754 case REQ:
1755 if (value == null) {
1756 unsetReq();
1757 } else {
1758 setReq((TOpenSessionReq)value);
1759 }
1760 break;
1761
1762 }
1763 }
1764
1765 public Object getFieldValue(_Fields field) {
1766 switch (field) {
1767 case REQ:
1768 return getReq();
1769
1770 }
1771 throw new IllegalStateException();
1772 }
1773
1774
1775 public boolean isSet(_Fields field) {
1776 if (field == null) {
1777 throw new IllegalArgumentException();
1778 }
1779
1780 switch (field) {
1781 case REQ:
1782 return isSetReq();
1783 }
1784 throw new IllegalStateException();
1785 }
1786
1787 @Override
1788 public boolean equals(Object that) {
1789 if (that == null)
1790 return false;
1791 if (that instanceof OpenSession_args)
1792 return this.equals((OpenSession_args)that);
1793 return false;
1794 }
1795
1796 public boolean equals(OpenSession_args that) {
1797 if (that == null)
1798 return false;
1799
1800 boolean this_present_req = true && this.isSetReq();
1801 boolean that_present_req = true && that.isSetReq();
1802 if (this_present_req || that_present_req) {
1803 if (!(this_present_req && that_present_req))
1804 return false;
1805 if (!this.req.equals(that.req))
1806 return false;
1807 }
1808
1809 return true;
1810 }
1811
1812 @Override
1813 public int hashCode() {
1814 HashCodeBuilder builder = new HashCodeBuilder();
1815
1816 boolean present_req = true && (isSetReq());
1817 builder.append(present_req);
1818 if (present_req)
1819 builder.append(req);
1820
1821 return builder.toHashCode();
1822 }
1823
1824 public int compareTo(OpenSession_args other) {
1825 if (!getClass().equals(other.getClass())) {
1826 return getClass().getName().compareTo(other.getClass().getName());
1827 }
1828
1829 int lastComparison = 0;
1830 OpenSession_args typedOther = (OpenSession_args)other;
1831
1832 lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq());
1833 if (lastComparison != 0) {
1834 return lastComparison;
1835 }
1836 if (isSetReq()) {
1837 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req);
1838 if (lastComparison != 0) {
1839 return lastComparison;
1840 }
1841 }
1842 return 0;
1843 }
1844
1845 public _Fields fieldForId(int fieldId) {
1846 return _Fields.findByThriftId(fieldId);
1847 }
1848
1849 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1850 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
1851 }
1852
1853 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1854 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
1855 }
1856
1857 @Override
1858 public String toString() {
1859 StringBuilder sb = new StringBuilder("OpenSession_args(");
1860 boolean first = true;
1861
1862 sb.append("req:");
1863 if (this.req == null) {
1864 sb.append("null");
1865 } else {
1866 sb.append(this.req);
1867 }
1868 first = false;
1869 sb.append(")");
1870 return sb.toString();
1871 }
1872
1873 public void validate() throws org.apache.thrift.TException {
1874
1875
1876 if (req != null) {
1877 req.validate();
1878 }
1879 }
1880
1881 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1882 try {
1883 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1884 } catch (org.apache.thrift.TException te) {
1885 throw new java.io.IOException(te);
1886 }
1887 }
1888
1889 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1890 try {
1891 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1892 } catch (org.apache.thrift.TException te) {
1893 throw new java.io.IOException(te);
1894 }
1895 }
1896
1897 private static class OpenSession_argsStandardSchemeFactory implements SchemeFactory {
1898 public OpenSession_argsStandardScheme getScheme() {
1899 return new OpenSession_argsStandardScheme();
1900 }
1901 }
1902
1903 private static class OpenSession_argsStandardScheme extends StandardScheme<OpenSession_args> {
1904
1905 public void read(org.apache.thrift.protocol.TProtocol iprot, OpenSession_args struct) throws org.apache.thrift.TException {
1906 org.apache.thrift.protocol.TField schemeField;
1907 iprot.readStructBegin();
1908 while (true)
1909 {
1910 schemeField = iprot.readFieldBegin();
1911 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
1912 break;
1913 }
1914 switch (schemeField.id) {
1915 case 1:
1916 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
1917 struct.req = new TOpenSessionReq();
1918 struct.req.read(iprot);
1919 struct.setReqIsSet(true);
1920 } else {
1921 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1922 }
1923 break;
1924 default:
1925 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1926 }
1927 iprot.readFieldEnd();
1928 }
1929 iprot.readStructEnd();
1930 struct.validate();
1931 }
1932
1933 public void write(org.apache.thrift.protocol.TProtocol oprot, OpenSession_args struct) throws org.apache.thrift.TException {
1934 struct.validate();
1935
1936 oprot.writeStructBegin(STRUCT_DESC);
1937 if (struct.req != null) {
1938 oprot.writeFieldBegin(REQ_FIELD_DESC);
1939 struct.req.write(oprot);
1940 oprot.writeFieldEnd();
1941 }
1942 oprot.writeFieldStop();
1943 oprot.writeStructEnd();
1944 }
1945
1946 }
1947
1948 private static class OpenSession_argsTupleSchemeFactory implements SchemeFactory {
1949 public OpenSession_argsTupleScheme getScheme() {
1950 return new OpenSession_argsTupleScheme();
1951 }
1952 }
1953
1954 private static class OpenSession_argsTupleScheme extends TupleScheme<OpenSession_args> {
1955
1956 @Override
1957 public void write(org.apache.thrift.protocol.TProtocol prot, OpenSession_args struct) throws org.apache.thrift.TException {
1958 TTupleProtocol oprot = (TTupleProtocol) prot;
1959 BitSet optionals = new BitSet();
1960 if (struct.isSetReq()) {
1961 optionals.set(0);
1962 }
1963 oprot.writeBitSet(optionals, 1);
1964 if (struct.isSetReq()) {
1965 struct.req.write(oprot);
1966 }
1967 }
1968
1969 @Override
1970 public void read(org.apache.thrift.protocol.TProtocol prot, OpenSession_args struct) throws org.apache.thrift.TException {
1971 TTupleProtocol iprot = (TTupleProtocol) prot;
1972 BitSet incoming = iprot.readBitSet(1);
1973 if (incoming.get(0)) {
1974 struct.req = new TOpenSessionReq();
1975 struct.req.read(iprot);
1976 struct.setReqIsSet(true);
1977 }
1978 }
1979 }
1980
1981 }
1982
1983 public static class OpenSession_result implements org.apache.thrift.TBase<OpenSession_result, OpenSession_result._Fields>, java.io.Serializable, Cloneable {
1984 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OpenSession_result");
1985
1986 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);
1987
1988 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
1989 static {
1990 schemes.put(StandardScheme.class, new OpenSession_resultStandardSchemeFactory());
1991 schemes.put(TupleScheme.class, new OpenSession_resultTupleSchemeFactory());
1992 }
1993
1994 private TOpenSessionResp success;
1995
1996
1997 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1998 SUCCESS((short)0, "success");
1999
2000 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2001
2002 static {
2003 for (_Fields field : EnumSet.allOf(_Fields.class)) {
2004 byName.put(field.getFieldName(), field);
2005 }
2006 }
2007
2008
2009
2010
2011 public static _Fields findByThriftId(int fieldId) {
2012 switch(fieldId) {
2013 case 0:
2014 return SUCCESS;
2015 default:
2016 return null;
2017 }
2018 }
2019
2020
2021
2022
2023
2024 public static _Fields findByThriftIdOrThrow(int fieldId) {
2025 _Fields fields = findByThriftId(fieldId);
2026 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2027 return fields;
2028 }
2029
2030
2031
2032
2033 public static _Fields findByName(String name) {
2034 return byName.get(name);
2035 }
2036
2037 private final short _thriftId;
2038 private final String _fieldName;
2039
2040 _Fields(short thriftId, String fieldName) {
2041 _thriftId = thriftId;
2042 _fieldName = fieldName;
2043 }
2044
2045 public short getThriftFieldId() {
2046 return _thriftId;
2047 }
2048
2049 public String getFieldName() {
2050 return _fieldName;
2051 }
2052 }
2053
2054
2055 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2056 static {
2057 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2058 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
2059 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TOpenSessionResp.class)));
2060 metaDataMap = Collections.unmodifiableMap(tmpMap);
2061 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(OpenSession_result.class, metaDataMap);
2062 }
2063
2064 public OpenSession_result() {
2065 }
2066
2067 public OpenSession_result(
2068 TOpenSessionResp success)
2069 {
2070 this();
2071 this.success = success;
2072 }
2073
2074
2075
2076
2077 public OpenSession_result(OpenSession_result other) {
2078 if (other.isSetSuccess()) {
2079 this.success = new TOpenSessionResp(other.success);
2080 }
2081 }
2082
2083 public OpenSession_result deepCopy() {
2084 return new OpenSession_result(this);
2085 }
2086
2087 @Override
2088 public void clear() {
2089 this.success = null;
2090 }
2091
2092 public TOpenSessionResp getSuccess() {
2093 return this.success;
2094 }
2095
2096 public void setSuccess(TOpenSessionResp success) {
2097 this.success = success;
2098 }
2099
2100 public void unsetSuccess() {
2101 this.success = null;
2102 }
2103
2104
2105 public boolean isSetSuccess() {
2106 return this.success != null;
2107 }
2108
2109 public void setSuccessIsSet(boolean value) {
2110 if (!value) {
2111 this.success = null;
2112 }
2113 }
2114
2115 public void setFieldValue(_Fields field, Object value) {
2116 switch (field) {
2117 case SUCCESS:
2118 if (value == null) {
2119 unsetSuccess();
2120 } else {
2121 setSuccess((TOpenSessionResp)value);
2122 }
2123 break;
2124
2125 }
2126 }
2127
2128 public Object getFieldValue(_Fields field) {
2129 switch (field) {
2130 case SUCCESS:
2131 return getSuccess();
2132
2133 }
2134 throw new IllegalStateException();
2135 }
2136
2137
2138 public boolean isSet(_Fields field) {
2139 if (field == null) {
2140 throw new IllegalArgumentException();
2141 }
2142
2143 switch (field) {
2144 case SUCCESS:
2145 return isSetSuccess();
2146 }
2147 throw new IllegalStateException();
2148 }
2149
2150 @Override
2151 public boolean equals(Object that) {
2152 if (that == null)
2153 return false;
2154 if (that instanceof OpenSession_result)
2155 return this.equals((OpenSession_result)that);
2156 return false;
2157 }
2158
2159 public boolean equals(OpenSession_result that) {
2160 if (that == null)
2161 return false;
2162
2163 boolean this_present_success = true && this.isSetSuccess();
2164 boolean that_present_success = true && that.isSetSuccess();
2165 if (this_present_success || that_present_success) {
2166 if (!(this_present_success && that_present_success))
2167 return false;
2168 if (!this.success.equals(that.success))
2169 return false;
2170 }
2171
2172 return true;
2173 }
2174
2175 @Override
2176 public int hashCode() {
2177 HashCodeBuilder builder = new HashCodeBuilder();
2178
2179 boolean present_success = true && (isSetSuccess());
2180 builder.append(present_success);
2181 if (present_success)
2182 builder.append(success);
2183
2184 return builder.toHashCode();
2185 }
2186
2187 public int compareTo(OpenSession_result other) {
2188 if (!getClass().equals(other.getClass())) {
2189 return getClass().getName().compareTo(other.getClass().getName());
2190 }
2191
2192 int lastComparison = 0;
2193 OpenSession_result typedOther = (OpenSession_result)other;
2194
2195 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2196 if (lastComparison != 0) {
2197 return lastComparison;
2198 }
2199 if (isSetSuccess()) {
2200 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2201 if (lastComparison != 0) {
2202 return lastComparison;
2203 }
2204 }
2205 return 0;
2206 }
2207
2208 public _Fields fieldForId(int fieldId) {
2209 return _Fields.findByThriftId(fieldId);
2210 }
2211
2212 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2213 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
2214 }
2215
2216 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2217 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
2218 }
2219
2220 @Override
2221 public String toString() {
2222 StringBuilder sb = new StringBuilder("OpenSession_result(");
2223 boolean first = true;
2224
2225 sb.append("success:");
2226 if (this.success == null) {
2227 sb.append("null");
2228 } else {
2229 sb.append(this.success);
2230 }
2231 first = false;
2232 sb.append(")");
2233 return sb.toString();
2234 }
2235
2236 public void validate() throws org.apache.thrift.TException {
2237
2238
2239 if (success != null) {
2240 success.validate();
2241 }
2242 }
2243
2244 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2245 try {
2246 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2247 } catch (org.apache.thrift.TException te) {
2248 throw new java.io.IOException(te);
2249 }
2250 }
2251
2252 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2253 try {
2254 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2255 } catch (org.apache.thrift.TException te) {
2256 throw new java.io.IOException(te);
2257 }
2258 }
2259
2260 private static class OpenSession_resultStandardSchemeFactory implements SchemeFactory {
2261 public OpenSession_resultStandardScheme getScheme() {
2262 return new OpenSession_resultStandardScheme();
2263 }
2264 }
2265
2266 private static class OpenSession_resultStandardScheme extends StandardScheme<OpenSession_result> {
2267
2268 public void read(org.apache.thrift.protocol.TProtocol iprot, OpenSession_result struct) throws org.apache.thrift.TException {
2269 org.apache.thrift.protocol.TField schemeField;
2270 iprot.readStructBegin();
2271 while (true)
2272 {
2273 schemeField = iprot.readFieldBegin();
2274 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
2275 break;
2276 }
2277 switch (schemeField.id) {
2278 case 0:
2279 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
2280 struct.success = new TOpenSessionResp();
2281 struct.success.read(iprot);
2282 struct.setSuccessIsSet(true);
2283 } else {
2284 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2285 }
2286 break;
2287 default:
2288 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2289 }
2290 iprot.readFieldEnd();
2291 }
2292 iprot.readStructEnd();
2293 struct.validate();
2294 }
2295
2296 public void write(org.apache.thrift.protocol.TProtocol oprot, OpenSession_result struct) throws org.apache.thrift.TException {
2297 struct.validate();
2298
2299 oprot.writeStructBegin(STRUCT_DESC);
2300 if (struct.success != null) {
2301 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2302 struct.success.write(oprot);
2303 oprot.writeFieldEnd();
2304 }
2305 oprot.writeFieldStop();
2306 oprot.writeStructEnd();
2307 }
2308
2309 }
2310
2311 private static class OpenSession_resultTupleSchemeFactory implements SchemeFactory {
2312 public OpenSession_resultTupleScheme getScheme() {
2313 return new OpenSession_resultTupleScheme();
2314 }
2315 }
2316
2317 private static class OpenSession_resultTupleScheme extends TupleScheme<OpenSession_result> {
2318
2319 @Override
2320 public void write(org.apache.thrift.protocol.TProtocol prot, OpenSession_result struct) throws org.apache.thrift.TException {
2321 TTupleProtocol oprot = (TTupleProtocol) prot;
2322 BitSet optionals = new BitSet();
2323 if (struct.isSetSuccess()) {
2324 optionals.set(0);
2325 }
2326 oprot.writeBitSet(optionals, 1);
2327 if (struct.isSetSuccess()) {
2328 struct.success.write(oprot);
2329 }
2330 }
2331
2332 @Override
2333 public void read(org.apache.thrift.protocol.TProtocol prot, OpenSession_result struct) throws org.apache.thrift.TException {
2334 TTupleProtocol iprot = (TTupleProtocol) prot;
2335 BitSet incoming = iprot.readBitSet(1);
2336 if (incoming.get(0)) {
2337 struct.success = new TOpenSessionResp();
2338 struct.success.read(iprot);
2339 struct.setSuccessIsSet(true);
2340 }
2341 }
2342 }
2343
2344 }
2345
2346 public static class CloseSession_args implements org.apache.thrift.TBase<CloseSession_args, CloseSession_args._Fields>, java.io.Serializable, Cloneable {
2347 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CloseSession_args");
2348
2349 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);
2350
2351 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
2352 static {
2353 schemes.put(StandardScheme.class, new CloseSession_argsStandardSchemeFactory());
2354 schemes.put(TupleScheme.class, new CloseSession_argsTupleSchemeFactory());
2355 }
2356
2357 private TCloseSessionReq req;
2358
2359
2360 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2361 REQ((short)1, "req");
2362
2363 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2364
2365 static {
2366 for (_Fields field : EnumSet.allOf(_Fields.class)) {
2367 byName.put(field.getFieldName(), field);
2368 }
2369 }
2370
2371
2372
2373
2374 public static _Fields findByThriftId(int fieldId) {
2375 switch(fieldId) {
2376 case 1:
2377 return REQ;
2378 default:
2379 return null;
2380 }
2381 }
2382
2383
2384
2385
2386
2387 public static _Fields findByThriftIdOrThrow(int fieldId) {
2388 _Fields fields = findByThriftId(fieldId);
2389 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2390 return fields;
2391 }
2392
2393
2394
2395
2396 public static _Fields findByName(String name) {
2397 return byName.get(name);
2398 }
2399
2400 private final short _thriftId;
2401 private final String _fieldName;
2402
2403 _Fields(short thriftId, String fieldName) {
2404 _thriftId = thriftId;
2405 _fieldName = fieldName;
2406 }
2407
2408 public short getThriftFieldId() {
2409 return _thriftId;
2410 }
2411
2412 public String getFieldName() {
2413 return _fieldName;
2414 }
2415 }
2416
2417
2418 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2419 static {
2420 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2421 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
2422 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCloseSessionReq.class)));
2423 metaDataMap = Collections.unmodifiableMap(tmpMap);
2424 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CloseSession_args.class, metaDataMap);
2425 }
2426
2427 public CloseSession_args() {
2428 }
2429
2430 public CloseSession_args(
2431 TCloseSessionReq req)
2432 {
2433 this();
2434 this.req = req;
2435 }
2436
2437
2438
2439
2440 public CloseSession_args(CloseSession_args other) {
2441 if (other.isSetReq()) {
2442 this.req = new TCloseSessionReq(other.req);
2443 }
2444 }
2445
2446 public CloseSession_args deepCopy() {
2447 return new CloseSession_args(this);
2448 }
2449
2450 @Override
2451 public void clear() {
2452 this.req = null;
2453 }
2454
2455 public TCloseSessionReq getReq() {
2456 return this.req;
2457 }
2458
2459 public void setReq(TCloseSessionReq req) {
2460 this.req = req;
2461 }
2462
2463 public void unsetReq() {
2464 this.req = null;
2465 }
2466
2467
2468 public boolean isSetReq() {
2469 return this.req != null;
2470 }
2471
2472 public void setReqIsSet(boolean value) {
2473 if (!value) {
2474 this.req = null;
2475 }
2476 }
2477
2478 public void setFieldValue(_Fields field, Object value) {
2479 switch (field) {
2480 case REQ:
2481 if (value == null) {
2482 unsetReq();
2483 } else {
2484 setReq((TCloseSessionReq)value);
2485 }
2486 break;
2487
2488 }
2489 }
2490
2491 public Object getFieldValue(_Fields field) {
2492 switch (field) {
2493 case REQ:
2494 return getReq();
2495
2496 }
2497 throw new IllegalStateException();
2498 }
2499
2500
2501 public boolean isSet(_Fields field) {
2502 if (field == null) {
2503 throw new IllegalArgumentException();
2504 }
2505
2506 switch (field) {
2507 case REQ:
2508 return isSetReq();
2509 }
2510 throw new IllegalStateException();
2511 }
2512
2513 @Override
2514 public boolean equals(Object that) {
2515 if (that == null)
2516 return false;
2517 if (that instanceof CloseSession_args)
2518 return this.equals((CloseSession_args)that);
2519 return false;
2520 }
2521
2522 public boolean equals(CloseSession_args that) {
2523 if (that == null)
2524 return false;
2525
2526 boolean this_present_req = true && this.isSetReq();
2527 boolean that_present_req = true && that.isSetReq();
2528 if (this_present_req || that_present_req) {
2529 if (!(this_present_req && that_present_req))
2530 return false;
2531 if (!this.req.equals(that.req))
2532 return false;
2533 }
2534
2535 return true;
2536 }
2537
2538 @Override
2539 public int hashCode() {
2540 HashCodeBuilder builder = new HashCodeBuilder();
2541
2542 boolean present_req = true && (isSetReq());
2543 builder.append(present_req);
2544 if (present_req)
2545 builder.append(req);
2546
2547 return builder.toHashCode();
2548 }
2549
2550 public int compareTo(CloseSession_args other) {
2551 if (!getClass().equals(other.getClass())) {
2552 return getClass().getName().compareTo(other.getClass().getName());
2553 }
2554
2555 int lastComparison = 0;
2556 CloseSession_args typedOther = (CloseSession_args)other;
2557
2558 lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq());
2559 if (lastComparison != 0) {
2560 return lastComparison;
2561 }
2562 if (isSetReq()) {
2563 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req);
2564 if (lastComparison != 0) {
2565 return lastComparison;
2566 }
2567 }
2568 return 0;
2569 }
2570
2571 public _Fields fieldForId(int fieldId) {
2572 return _Fields.findByThriftId(fieldId);
2573 }
2574
2575 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2576 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
2577 }
2578
2579 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2580 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
2581 }
2582
2583 @Override
2584 public String toString() {
2585 StringBuilder sb = new StringBuilder("CloseSession_args(");
2586 boolean first = true;
2587
2588 sb.append("req:");
2589 if (this.req == null) {
2590 sb.append("null");
2591 } else {
2592 sb.append(this.req);
2593 }
2594 first = false;
2595 sb.append(")");
2596 return sb.toString();
2597 }
2598
2599 public void validate() throws org.apache.thrift.TException {
2600
2601
2602 if (req != null) {
2603 req.validate();
2604 }
2605 }
2606
2607 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2608 try {
2609 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2610 } catch (org.apache.thrift.TException te) {
2611 throw new java.io.IOException(te);
2612 }
2613 }
2614
2615 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2616 try {
2617 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2618 } catch (org.apache.thrift.TException te) {
2619 throw new java.io.IOException(te);
2620 }
2621 }
2622
2623 private static class CloseSession_argsStandardSchemeFactory implements SchemeFactory {
2624 public CloseSession_argsStandardScheme getScheme() {
2625 return new CloseSession_argsStandardScheme();
2626 }
2627 }
2628
2629 private static class CloseSession_argsStandardScheme extends StandardScheme<CloseSession_args> {
2630
2631 public void read(org.apache.thrift.protocol.TProtocol iprot, CloseSession_args struct) throws org.apache.thrift.TException {
2632 org.apache.thrift.protocol.TField schemeField;
2633 iprot.readStructBegin();
2634 while (true)
2635 {
2636 schemeField = iprot.readFieldBegin();
2637 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
2638 break;
2639 }
2640 switch (schemeField.id) {
2641 case 1:
2642 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
2643 struct.req = new TCloseSessionReq();
2644 struct.req.read(iprot);
2645 struct.setReqIsSet(true);
2646 } else {
2647 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2648 }
2649 break;
2650 default:
2651 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2652 }
2653 iprot.readFieldEnd();
2654 }
2655 iprot.readStructEnd();
2656 struct.validate();
2657 }
2658
2659 public void write(org.apache.thrift.protocol.TProtocol oprot, CloseSession_args struct) throws org.apache.thrift.TException {
2660 struct.validate();
2661
2662 oprot.writeStructBegin(STRUCT_DESC);
2663 if (struct.req != null) {
2664 oprot.writeFieldBegin(REQ_FIELD_DESC);
2665 struct.req.write(oprot);
2666 oprot.writeFieldEnd();
2667 }
2668 oprot.writeFieldStop();
2669 oprot.writeStructEnd();
2670 }
2671
2672 }
2673
2674 private static class CloseSession_argsTupleSchemeFactory implements SchemeFactory {
2675 public CloseSession_argsTupleScheme getScheme() {
2676 return new CloseSession_argsTupleScheme();
2677 }
2678 }
2679
2680 private static class CloseSession_argsTupleScheme extends TupleScheme<CloseSession_args> {
2681
2682 @Override
2683 public void write(org.apache.thrift.protocol.TProtocol prot, CloseSession_args struct) throws org.apache.thrift.TException {
2684 TTupleProtocol oprot = (TTupleProtocol) prot;
2685 BitSet optionals = new BitSet();
2686 if (struct.isSetReq()) {
2687 optionals.set(0);
2688 }
2689 oprot.writeBitSet(optionals, 1);
2690 if (struct.isSetReq()) {
2691 struct.req.write(oprot);
2692 }
2693 }
2694
2695 @Override
2696 public void read(org.apache.thrift.protocol.TProtocol prot, CloseSession_args struct) throws org.apache.thrift.TException {
2697 TTupleProtocol iprot = (TTupleProtocol) prot;
2698 BitSet incoming = iprot.readBitSet(1);
2699 if (incoming.get(0)) {
2700 struct.req = new TCloseSessionReq();
2701 struct.req.read(iprot);
2702 struct.setReqIsSet(true);
2703 }
2704 }
2705 }
2706
2707 }
2708
2709 public static class CloseSession_result implements org.apache.thrift.TBase<CloseSession_result, CloseSession_result._Fields>, java.io.Serializable, Cloneable {
2710 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CloseSession_result");
2711
2712 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);
2713
2714 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
2715 static {
2716 schemes.put(StandardScheme.class, new CloseSession_resultStandardSchemeFactory());
2717 schemes.put(TupleScheme.class, new CloseSession_resultTupleSchemeFactory());
2718 }
2719
2720 private TCloseSessionResp success;
2721
2722
2723 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2724 SUCCESS((short)0, "success");
2725
2726 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2727
2728 static {
2729 for (_Fields field : EnumSet.allOf(_Fields.class)) {
2730 byName.put(field.getFieldName(), field);
2731 }
2732 }
2733
2734
2735
2736
2737 public static _Fields findByThriftId(int fieldId) {
2738 switch(fieldId) {
2739 case 0:
2740 return SUCCESS;
2741 default:
2742 return null;
2743 }
2744 }
2745
2746
2747
2748
2749
2750 public static _Fields findByThriftIdOrThrow(int fieldId) {
2751 _Fields fields = findByThriftId(fieldId);
2752 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2753 return fields;
2754 }
2755
2756
2757
2758
2759 public static _Fields findByName(String name) {
2760 return byName.get(name);
2761 }
2762
2763 private final short _thriftId;
2764 private final String _fieldName;
2765
2766 _Fields(short thriftId, String fieldName) {
2767 _thriftId = thriftId;
2768 _fieldName = fieldName;
2769 }
2770
2771 public short getThriftFieldId() {
2772 return _thriftId;
2773 }
2774
2775 public String getFieldName() {
2776 return _fieldName;
2777 }
2778 }
2779
2780
2781 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2782 static {
2783 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2784 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
2785 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCloseSessionResp.class)));
2786 metaDataMap = Collections.unmodifiableMap(tmpMap);
2787 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CloseSession_result.class, metaDataMap);
2788 }
2789
2790 public CloseSession_result() {
2791 }
2792
2793 public CloseSession_result(
2794 TCloseSessionResp success)
2795 {
2796 this();
2797 this.success = success;
2798 }
2799
2800
2801
2802
2803 public CloseSession_result(CloseSession_result other) {
2804 if (other.isSetSuccess()) {
2805 this.success = new TCloseSessionResp(other.success);
2806 }
2807 }
2808
2809 public CloseSession_result deepCopy() {
2810 return new CloseSession_result(this);
2811 }
2812
2813 @Override
2814 public void clear() {
2815 this.success = null;
2816 }
2817
2818 public TCloseSessionResp getSuccess() {
2819 return this.success;
2820 }
2821
2822 public void setSuccess(TCloseSessionResp success) {
2823 this.success = success;
2824 }
2825
2826 public void unsetSuccess() {
2827 this.success = null;
2828 }
2829
2830
2831 public boolean isSetSuccess() {
2832 return this.success != null;
2833 }
2834
2835 public void setSuccessIsSet(boolean value) {
2836 if (!value) {
2837 this.success = null;
2838 }
2839 }
2840
2841 public void setFieldValue(_Fields field, Object value) {
2842 switch (field) {
2843 case SUCCESS:
2844 if (value == null) {
2845 unsetSuccess();
2846 } else {
2847 setSuccess((TCloseSessionResp)value);
2848 }
2849 break;
2850
2851 }
2852 }
2853
2854 public Object getFieldValue(_Fields field) {
2855 switch (field) {
2856 case SUCCESS:
2857 return getSuccess();
2858
2859 }
2860 throw new IllegalStateException();
2861 }
2862
2863
2864 public boolean isSet(_Fields field) {
2865 if (field == null) {
2866 throw new IllegalArgumentException();
2867 }
2868
2869 switch (field) {
2870 case SUCCESS:
2871 return isSetSuccess();
2872 }
2873 throw new IllegalStateException();
2874 }
2875
2876 @Override
2877 public boolean equals(Object that) {
2878 if (that == null)
2879 return false;
2880 if (that instanceof CloseSession_result)
2881 return this.equals((CloseSession_result)that);
2882 return false;
2883 }
2884
2885 public boolean equals(CloseSession_result that) {
2886 if (that == null)
2887 return false;
2888
2889 boolean this_present_success = true && this.isSetSuccess();
2890 boolean that_present_success = true && that.isSetSuccess();
2891 if (this_present_success || that_present_success) {
2892 if (!(this_present_success && that_present_success))
2893 return false;
2894 if (!this.success.equals(that.success))
2895 return false;
2896 }
2897
2898 return true;
2899 }
2900
2901 @Override
2902 public int hashCode() {
2903 HashCodeBuilder builder = new HashCodeBuilder();
2904
2905 boolean present_success = true && (isSetSuccess());
2906 builder.append(present_success);
2907 if (present_success)
2908 builder.append(success);
2909
2910 return builder.toHashCode();
2911 }
2912
2913 public int compareTo(CloseSession_result other) {
2914 if (!getClass().equals(other.getClass())) {
2915 return getClass().getName().compareTo(other.getClass().getName());
2916 }
2917
2918 int lastComparison = 0;
2919 CloseSession_result typedOther = (CloseSession_result)other;
2920
2921 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2922 if (lastComparison != 0) {
2923 return lastComparison;
2924 }
2925 if (isSetSuccess()) {
2926 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2927 if (lastComparison != 0) {
2928 return lastComparison;
2929 }
2930 }
2931 return 0;
2932 }
2933
2934 public _Fields fieldForId(int fieldId) {
2935 return _Fields.findByThriftId(fieldId);
2936 }
2937
2938 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2939 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
2940 }
2941
2942 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2943 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
2944 }
2945
2946 @Override
2947 public String toString() {
2948 StringBuilder sb = new StringBuilder("CloseSession_result(");
2949 boolean first = true;
2950
2951 sb.append("success:");
2952 if (this.success == null) {
2953 sb.append("null");
2954 } else {
2955 sb.append(this.success);
2956 }
2957 first = false;
2958 sb.append(")");
2959 return sb.toString();
2960 }
2961
2962 public void validate() throws org.apache.thrift.TException {
2963
2964
2965 if (success != null) {
2966 success.validate();
2967 }
2968 }
2969
2970 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2971 try {
2972 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2973 } catch (org.apache.thrift.TException te) {
2974 throw new java.io.IOException(te);
2975 }
2976 }
2977
2978 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2979 try {
2980 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2981 } catch (org.apache.thrift.TException te) {
2982 throw new java.io.IOException(te);
2983 }
2984 }
2985
2986 private static class CloseSession_resultStandardSchemeFactory implements SchemeFactory {
2987 public CloseSession_resultStandardScheme getScheme() {
2988 return new CloseSession_resultStandardScheme();
2989 }
2990 }
2991
2992 private static class CloseSession_resultStandardScheme extends StandardScheme<CloseSession_result> {
2993
2994 public void read(org.apache.thrift.protocol.TProtocol iprot, CloseSession_result struct) throws org.apache.thrift.TException {
2995 org.apache.thrift.protocol.TField schemeField;
2996 iprot.readStructBegin();
2997 while (true)
2998 {
2999 schemeField = iprot.readFieldBegin();
3000 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
3001 break;
3002 }
3003 switch (schemeField.id) {
3004 case 0:
3005 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
3006 struct.success = new TCloseSessionResp();
3007 struct.success.read(iprot);
3008 struct.setSuccessIsSet(true);
3009 } else {
3010 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3011 }
3012 break;
3013 default:
3014 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3015 }
3016 iprot.readFieldEnd();
3017 }
3018 iprot.readStructEnd();
3019 struct.validate();
3020 }
3021
3022 public void write(org.apache.thrift.protocol.TProtocol oprot, CloseSession_result struct) throws org.apache.thrift.TException {
3023 struct.validate();
3024
3025 oprot.writeStructBegin(STRUCT_DESC);
3026 if (struct.success != null) {
3027 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3028 struct.success.write(oprot);
3029 oprot.writeFieldEnd();
3030 }
3031 oprot.writeFieldStop();
3032 oprot.writeStructEnd();
3033 }
3034
3035 }
3036
3037 private static class CloseSession_resultTupleSchemeFactory implements SchemeFactory {
3038 public CloseSession_resultTupleScheme getScheme() {
3039 return new CloseSession_resultTupleScheme();
3040 }
3041 }
3042
3043 private static class CloseSession_resultTupleScheme extends TupleScheme<CloseSession_result> {
3044
3045 @Override
3046 public void write(org.apache.thrift.protocol.TProtocol prot, CloseSession_result struct) throws org.apache.thrift.TException {
3047 TTupleProtocol oprot = (TTupleProtocol) prot;
3048 BitSet optionals = new BitSet();
3049 if (struct.isSetSuccess()) {
3050 optionals.set(0);
3051 }
3052 oprot.writeBitSet(optionals, 1);
3053 if (struct.isSetSuccess()) {
3054 struct.success.write(oprot);
3055 }
3056 }
3057
3058 @Override
3059 public void read(org.apache.thrift.protocol.TProtocol prot, CloseSession_result struct) throws org.apache.thrift.TException {
3060 TTupleProtocol iprot = (TTupleProtocol) prot;
3061 BitSet incoming = iprot.readBitSet(1);
3062 if (incoming.get(0)) {
3063 struct.success = new TCloseSessionResp();
3064 struct.success.read(iprot);
3065 struct.setSuccessIsSet(true);
3066 }
3067 }
3068 }
3069
3070 }
3071
3072 public static class GetInfo_args implements org.apache.thrift.TBase<GetInfo_args, GetInfo_args._Fields>, java.io.Serializable, Cloneable {
3073 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetInfo_args");
3074
3075 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);
3076
3077 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
3078 static {
3079 schemes.put(StandardScheme.class, new GetInfo_argsStandardSchemeFactory());
3080 schemes.put(TupleScheme.class, new GetInfo_argsTupleSchemeFactory());
3081 }
3082
3083 private TGetInfoReq req;
3084
3085
3086 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 REQ((short)1, "req");
3088
3089 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3090
3091 static {
3092 for (_Fields field : EnumSet.allOf(_Fields.class)) {
3093 byName.put(field.getFieldName(), field);
3094 }
3095 }
3096
3097
3098
3099
3100 public static _Fields findByThriftId(int fieldId) {
3101 switch(fieldId) {
3102 case 1:
3103 return REQ;
3104 default:
3105 return null;
3106 }
3107 }
3108
3109
3110
3111
3112
3113 public static _Fields findByThriftIdOrThrow(int fieldId) {
3114 _Fields fields = findByThriftId(fieldId);
3115 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3116 return fields;
3117 }
3118
3119
3120
3121
3122 public static _Fields findByName(String name) {
3123 return byName.get(name);
3124 }
3125
3126 private final short _thriftId;
3127 private final String _fieldName;
3128
3129 _Fields(short thriftId, String fieldName) {
3130 _thriftId = thriftId;
3131 _fieldName = fieldName;
3132 }
3133
3134 public short getThriftFieldId() {
3135 return _thriftId;
3136 }
3137
3138 public String getFieldName() {
3139 return _fieldName;
3140 }
3141 }
3142
3143
3144 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3145 static {
3146 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3147 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
3148 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetInfoReq.class)));
3149 metaDataMap = Collections.unmodifiableMap(tmpMap);
3150 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetInfo_args.class, metaDataMap);
3151 }
3152
3153 public GetInfo_args() {
3154 }
3155
3156 public GetInfo_args(
3157 TGetInfoReq req)
3158 {
3159 this();
3160 this.req = req;
3161 }
3162
3163
3164
3165
3166 public GetInfo_args(GetInfo_args other) {
3167 if (other.isSetReq()) {
3168 this.req = new TGetInfoReq(other.req);
3169 }
3170 }
3171
3172 public GetInfo_args deepCopy() {
3173 return new GetInfo_args(this);
3174 }
3175
3176 @Override
3177 public void clear() {
3178 this.req = null;
3179 }
3180
3181 public TGetInfoReq getReq() {
3182 return this.req;
3183 }
3184
3185 public void setReq(TGetInfoReq req) {
3186 this.req = req;
3187 }
3188
3189 public void unsetReq() {
3190 this.req = null;
3191 }
3192
3193
3194 public boolean isSetReq() {
3195 return this.req != null;
3196 }
3197
3198 public void setReqIsSet(boolean value) {
3199 if (!value) {
3200 this.req = null;
3201 }
3202 }
3203
3204 public void setFieldValue(_Fields field, Object value) {
3205 switch (field) {
3206 case REQ:
3207 if (value == null) {
3208 unsetReq();
3209 } else {
3210 setReq((TGetInfoReq)value);
3211 }
3212 break;
3213
3214 }
3215 }
3216
3217 public Object getFieldValue(_Fields field) {
3218 switch (field) {
3219 case REQ:
3220 return getReq();
3221
3222 }
3223 throw new IllegalStateException();
3224 }
3225
3226
3227 public boolean isSet(_Fields field) {
3228 if (field == null) {
3229 throw new IllegalArgumentException();
3230 }
3231
3232 switch (field) {
3233 case REQ:
3234 return isSetReq();
3235 }
3236 throw new IllegalStateException();
3237 }
3238
3239 @Override
3240 public boolean equals(Object that) {
3241 if (that == null)
3242 return false;
3243 if (that instanceof GetInfo_args)
3244 return this.equals((GetInfo_args)that);
3245 return false;
3246 }
3247
3248 public boolean equals(GetInfo_args that) {
3249 if (that == null)
3250 return false;
3251
3252 boolean this_present_req = true && this.isSetReq();
3253 boolean that_present_req = true && that.isSetReq();
3254 if (this_present_req || that_present_req) {
3255 if (!(this_present_req && that_present_req))
3256 return false;
3257 if (!this.req.equals(that.req))
3258 return false;
3259 }
3260
3261 return true;
3262 }
3263
3264 @Override
3265 public int hashCode() {
3266 HashCodeBuilder builder = new HashCodeBuilder();
3267
3268 boolean present_req = true && (isSetReq());
3269 builder.append(present_req);
3270 if (present_req)
3271 builder.append(req);
3272
3273 return builder.toHashCode();
3274 }
3275
3276 public int compareTo(GetInfo_args other) {
3277 if (!getClass().equals(other.getClass())) {
3278 return getClass().getName().compareTo(other.getClass().getName());
3279 }
3280
3281 int lastComparison = 0;
3282 GetInfo_args typedOther = (GetInfo_args)other;
3283
3284 lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq());
3285 if (lastComparison != 0) {
3286 return lastComparison;
3287 }
3288 if (isSetReq()) {
3289 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req);
3290 if (lastComparison != 0) {
3291 return lastComparison;
3292 }
3293 }
3294 return 0;
3295 }
3296
3297 public _Fields fieldForId(int fieldId) {
3298 return _Fields.findByThriftId(fieldId);
3299 }
3300
3301 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3302 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
3303 }
3304
3305 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3306 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
3307 }
3308
3309 @Override
3310 public String toString() {
3311 StringBuilder sb = new StringBuilder("GetInfo_args(");
3312 boolean first = true;
3313
3314 sb.append("req:");
3315 if (this.req == null) {
3316 sb.append("null");
3317 } else {
3318 sb.append(this.req);
3319 }
3320 first = false;
3321 sb.append(")");
3322 return sb.toString();
3323 }
3324
3325 public void validate() throws org.apache.thrift.TException {
3326
3327
3328 if (req != null) {
3329 req.validate();
3330 }
3331 }
3332
3333 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3334 try {
3335 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3336 } catch (org.apache.thrift.TException te) {
3337 throw new java.io.IOException(te);
3338 }
3339 }
3340
3341 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3342 try {
3343 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3344 } catch (org.apache.thrift.TException te) {
3345 throw new java.io.IOException(te);
3346 }
3347 }
3348
3349 private static class GetInfo_argsStandardSchemeFactory implements SchemeFactory {
3350 public GetInfo_argsStandardScheme getScheme() {
3351 return new GetInfo_argsStandardScheme();
3352 }
3353 }
3354
3355 private static class GetInfo_argsStandardScheme extends StandardScheme<GetInfo_args> {
3356
3357 public void read(org.apache.thrift.protocol.TProtocol iprot, GetInfo_args struct) throws org.apache.thrift.TException {
3358 org.apache.thrift.protocol.TField schemeField;
3359 iprot.readStructBegin();
3360 while (true)
3361 {
3362 schemeField = iprot.readFieldBegin();
3363 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
3364 break;
3365 }
3366 switch (schemeField.id) {
3367 case 1:
3368 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
3369 struct.req = new TGetInfoReq();
3370 struct.req.read(iprot);
3371 struct.setReqIsSet(true);
3372 } else {
3373 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3374 }
3375 break;
3376 default:
3377 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3378 }
3379 iprot.readFieldEnd();
3380 }
3381 iprot.readStructEnd();
3382 struct.validate();
3383 }
3384
3385 public void write(org.apache.thrift.protocol.TProtocol oprot, GetInfo_args struct) throws org.apache.thrift.TException {
3386 struct.validate();
3387
3388 oprot.writeStructBegin(STRUCT_DESC);
3389 if (struct.req != null) {
3390 oprot.writeFieldBegin(REQ_FIELD_DESC);
3391 struct.req.write(oprot);
3392 oprot.writeFieldEnd();
3393 }
3394 oprot.writeFieldStop();
3395 oprot.writeStructEnd();
3396 }
3397
3398 }
3399
3400 private static class GetInfo_argsTupleSchemeFactory implements SchemeFactory {
3401 public GetInfo_argsTupleScheme getScheme() {
3402 return new GetInfo_argsTupleScheme();
3403 }
3404 }
3405
3406 private static class GetInfo_argsTupleScheme extends TupleScheme<GetInfo_args> {
3407
3408 @Override
3409 public void write(org.apache.thrift.protocol.TProtocol prot, GetInfo_args struct) throws org.apache.thrift.TException {
3410 TTupleProtocol oprot = (TTupleProtocol) prot;
3411 BitSet optionals = new BitSet();
3412 if (struct.isSetReq()) {
3413 optionals.set(0);
3414 }
3415 oprot.writeBitSet(optionals, 1);
3416 if (struct.isSetReq()) {
3417 struct.req.write(oprot);
3418 }
3419 }
3420
3421 @Override
3422 public void read(org.apache.thrift.protocol.TProtocol prot, GetInfo_args struct) throws org.apache.thrift.TException {
3423 TTupleProtocol iprot = (TTupleProtocol) prot;
3424 BitSet incoming = iprot.readBitSet(1);
3425 if (incoming.get(0)) {
3426 struct.req = new TGetInfoReq();
3427 struct.req.read(iprot);
3428 struct.setReqIsSet(true);
3429 }
3430 }
3431 }
3432
3433 }
3434
3435 public static class GetInfo_result implements org.apache.thrift.TBase<GetInfo_result, GetInfo_result._Fields>, java.io.Serializable, Cloneable {
3436 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetInfo_result");
3437
3438 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);
3439
3440 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
3441 static {
3442 schemes.put(StandardScheme.class, new GetInfo_resultStandardSchemeFactory());
3443 schemes.put(TupleScheme.class, new GetInfo_resultTupleSchemeFactory());
3444 }
3445
3446 private TGetInfoResp success;
3447
3448
3449 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3450 SUCCESS((short)0, "success");
3451
3452 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3453
3454 static {
3455 for (_Fields field : EnumSet.allOf(_Fields.class)) {
3456 byName.put(field.getFieldName(), field);
3457 }
3458 }
3459
3460
3461
3462
3463 public static _Fields findByThriftId(int fieldId) {
3464 switch(fieldId) {
3465 case 0:
3466 return SUCCESS;
3467 default:
3468 return null;
3469 }
3470 }
3471
3472
3473
3474
3475
3476 public static _Fields findByThriftIdOrThrow(int fieldId) {
3477 _Fields fields = findByThriftId(fieldId);
3478 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3479 return fields;
3480 }
3481
3482
3483
3484
3485 public static _Fields findByName(String name) {
3486 return byName.get(name);
3487 }
3488
3489 private final short _thriftId;
3490 private final String _fieldName;
3491
3492 _Fields(short thriftId, String fieldName) {
3493 _thriftId = thriftId;
3494 _fieldName = fieldName;
3495 }
3496
3497 public short getThriftFieldId() {
3498 return _thriftId;
3499 }
3500
3501 public String getFieldName() {
3502 return _fieldName;
3503 }
3504 }
3505
3506
3507 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3508 static {
3509 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3510 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
3511 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetInfoResp.class)));
3512 metaDataMap = Collections.unmodifiableMap(tmpMap);
3513 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetInfo_result.class, metaDataMap);
3514 }
3515
3516 public GetInfo_result() {
3517 }
3518
3519 public GetInfo_result(
3520 TGetInfoResp success)
3521 {
3522 this();
3523 this.success = success;
3524 }
3525
3526
3527
3528
3529 public GetInfo_result(GetInfo_result other) {
3530 if (other.isSetSuccess()) {
3531 this.success = new TGetInfoResp(other.success);
3532 }
3533 }
3534
3535 public GetInfo_result deepCopy() {
3536 return new GetInfo_result(this);
3537 }
3538
3539 @Override
3540 public void clear() {
3541 this.success = null;
3542 }
3543
3544 public TGetInfoResp getSuccess() {
3545 return this.success;
3546 }
3547
3548 public void setSuccess(TGetInfoResp success) {
3549 this.success = success;
3550 }
3551
3552 public void unsetSuccess() {
3553 this.success = null;
3554 }
3555
3556
3557 public boolean isSetSuccess() {
3558 return this.success != null;
3559 }
3560
3561 public void setSuccessIsSet(boolean value) {
3562 if (!value) {
3563 this.success = null;
3564 }
3565 }
3566
3567 public void setFieldValue(_Fields field, Object value) {
3568 switch (field) {
3569 case SUCCESS:
3570 if (value == null) {
3571 unsetSuccess();
3572 } else {
3573 setSuccess((TGetInfoResp)value);
3574 }
3575 break;
3576
3577 }
3578 }
3579
3580 public Object getFieldValue(_Fields field) {
3581 switch (field) {
3582 case SUCCESS:
3583 return getSuccess();
3584
3585 }
3586 throw new IllegalStateException();
3587 }
3588
3589
3590 public boolean isSet(_Fields field) {
3591 if (field == null) {
3592 throw new IllegalArgumentException();
3593 }
3594
3595 switch (field) {
3596 case SUCCESS:
3597 return isSetSuccess();
3598 }
3599 throw new IllegalStateException();
3600 }
3601
3602 @Override
3603 public boolean equals(Object that) {
3604 if (that == null)
3605 return false;
3606 if (that instanceof GetInfo_result)
3607 return this.equals((GetInfo_result)that);
3608 return false;
3609 }
3610
3611 public boolean equals(GetInfo_result that) {
3612 if (that == null)
3613 return false;
3614
3615 boolean this_present_success = true && this.isSetSuccess();
3616 boolean that_present_success = true && that.isSetSuccess();
3617 if (this_present_success || that_present_success) {
3618 if (!(this_present_success && that_present_success))
3619 return false;
3620 if (!this.success.equals(that.success))
3621 return false;
3622 }
3623
3624 return true;
3625 }
3626
3627 @Override
3628 public int hashCode() {
3629 HashCodeBuilder builder = new HashCodeBuilder();
3630
3631 boolean present_success = true && (isSetSuccess());
3632 builder.append(present_success);
3633 if (present_success)
3634 builder.append(success);
3635
3636 return builder.toHashCode();
3637 }
3638
3639 public int compareTo(GetInfo_result other) {
3640 if (!getClass().equals(other.getClass())) {
3641 return getClass().getName().compareTo(other.getClass().getName());
3642 }
3643
3644 int lastComparison = 0;
3645 GetInfo_result typedOther = (GetInfo_result)other;
3646
3647 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3648 if (lastComparison != 0) {
3649 return lastComparison;
3650 }
3651 if (isSetSuccess()) {
3652 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3653 if (lastComparison != 0) {
3654 return lastComparison;
3655 }
3656 }
3657 return 0;
3658 }
3659
3660 public _Fields fieldForId(int fieldId) {
3661 return _Fields.findByThriftId(fieldId);
3662 }
3663
3664 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3665 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
3666 }
3667
3668 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3669 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
3670 }
3671
3672 @Override
3673 public String toString() {
3674 StringBuilder sb = new StringBuilder("GetInfo_result(");
3675 boolean first = true;
3676
3677 sb.append("success:");
3678 if (this.success == null) {
3679 sb.append("null");
3680 } else {
3681 sb.append(this.success);
3682 }
3683 first = false;
3684 sb.append(")");
3685 return sb.toString();
3686 }
3687
3688 public void validate() throws org.apache.thrift.TException {
3689
3690
3691 if (success != null) {
3692 success.validate();
3693 }
3694 }
3695
3696 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3697 try {
3698 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3699 } catch (org.apache.thrift.TException te) {
3700 throw new java.io.IOException(te);
3701 }
3702 }
3703
3704 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3705 try {
3706 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3707 } catch (org.apache.thrift.TException te) {
3708 throw new java.io.IOException(te);
3709 }
3710 }
3711
3712 private static class GetInfo_resultStandardSchemeFactory implements SchemeFactory {
3713 public GetInfo_resultStandardScheme getScheme() {
3714 return new GetInfo_resultStandardScheme();
3715 }
3716 }
3717
3718 private static class GetInfo_resultStandardScheme extends StandardScheme<GetInfo_result> {
3719
3720 public void read(org.apache.thrift.protocol.TProtocol iprot, GetInfo_result struct) throws org.apache.thrift.TException {
3721 org.apache.thrift.protocol.TField schemeField;
3722 iprot.readStructBegin();
3723 while (true)
3724 {
3725 schemeField = iprot.readFieldBegin();
3726 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
3727 break;
3728 }
3729 switch (schemeField.id) {
3730 case 0:
3731 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
3732 struct.success = new TGetInfoResp();
3733 struct.success.read(iprot);
3734 struct.setSuccessIsSet(true);
3735 } else {
3736 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3737 }
3738 break;
3739 default:
3740 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3741 }
3742 iprot.readFieldEnd();
3743 }
3744 iprot.readStructEnd();
3745 struct.validate();
3746 }
3747
3748 public void write(org.apache.thrift.protocol.TProtocol oprot, GetInfo_result struct) throws org.apache.thrift.TException {
3749 struct.validate();
3750
3751 oprot.writeStructBegin(STRUCT_DESC);
3752 if (struct.success != null) {
3753 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3754 struct.success.write(oprot);
3755 oprot.writeFieldEnd();
3756 }
3757 oprot.writeFieldStop();
3758 oprot.writeStructEnd();
3759 }
3760
3761 }
3762
3763 private static class GetInfo_resultTupleSchemeFactory implements SchemeFactory {
3764 public GetInfo_resultTupleScheme getScheme() {
3765 return new GetInfo_resultTupleScheme();
3766 }
3767 }
3768
3769 private static class GetInfo_resultTupleScheme extends TupleScheme<GetInfo_result> {
3770
3771 @Override
3772 public void write(org.apache.thrift.protocol.TProtocol prot, GetInfo_result struct) throws org.apache.thrift.TException {
3773 TTupleProtocol oprot = (TTupleProtocol) prot;
3774 BitSet optionals = new BitSet();
3775 if (struct.isSetSuccess()) {
3776 optionals.set(0);
3777 }
3778 oprot.writeBitSet(optionals, 1);
3779 if (struct.isSetSuccess()) {
3780 struct.success.write(oprot);
3781 }
3782 }
3783
3784 @Override
3785 public void read(org.apache.thrift.protocol.TProtocol prot, GetInfo_result struct) throws org.apache.thrift.TException {
3786 TTupleProtocol iprot = (TTupleProtocol) prot;
3787 BitSet incoming = iprot.readBitSet(1);
3788 if (incoming.get(0)) {
3789 struct.success = new TGetInfoResp();
3790 struct.success.read(iprot);
3791 struct.setSuccessIsSet(true);
3792 }
3793 }
3794 }
3795
3796 }
3797
3798 public static class ExecuteStatement_args implements org.apache.thrift.TBase<ExecuteStatement_args, ExecuteStatement_args._Fields>, java.io.Serializable, Cloneable {
3799 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExecuteStatement_args");
3800
3801 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);
3802
3803 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
3804 static {
3805 schemes.put(StandardScheme.class, new ExecuteStatement_argsStandardSchemeFactory());
3806 schemes.put(TupleScheme.class, new ExecuteStatement_argsTupleSchemeFactory());
3807 }
3808
3809 private TExecuteStatementReq req;
3810
3811
3812 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3813 REQ((short)1, "req");
3814
3815 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3816
3817 static {
3818 for (_Fields field : EnumSet.allOf(_Fields.class)) {
3819 byName.put(field.getFieldName(), field);
3820 }
3821 }
3822
3823
3824
3825
3826 public static _Fields findByThriftId(int fieldId) {
3827 switch(fieldId) {
3828 case 1:
3829 return REQ;
3830 default:
3831 return null;
3832 }
3833 }
3834
3835
3836
3837
3838
3839 public static _Fields findByThriftIdOrThrow(int fieldId) {
3840 _Fields fields = findByThriftId(fieldId);
3841 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3842 return fields;
3843 }
3844
3845
3846
3847
3848 public static _Fields findByName(String name) {
3849 return byName.get(name);
3850 }
3851
3852 private final short _thriftId;
3853 private final String _fieldName;
3854
3855 _Fields(short thriftId, String fieldName) {
3856 _thriftId = thriftId;
3857 _fieldName = fieldName;
3858 }
3859
3860 public short getThriftFieldId() {
3861 return _thriftId;
3862 }
3863
3864 public String getFieldName() {
3865 return _fieldName;
3866 }
3867 }
3868
3869
3870 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3871 static {
3872 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3873 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
3874 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TExecuteStatementReq.class)));
3875 metaDataMap = Collections.unmodifiableMap(tmpMap);
3876 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ExecuteStatement_args.class, metaDataMap);
3877 }
3878
3879 public ExecuteStatement_args() {
3880 }
3881
3882 public ExecuteStatement_args(
3883 TExecuteStatementReq req)
3884 {
3885 this();
3886 this.req = req;
3887 }
3888
3889
3890
3891
3892 public ExecuteStatement_args(ExecuteStatement_args other) {
3893 if (other.isSetReq()) {
3894 this.req = new TExecuteStatementReq(other.req);
3895 }
3896 }
3897
3898 public ExecuteStatement_args deepCopy() {
3899 return new ExecuteStatement_args(this);
3900 }
3901
3902 @Override
3903 public void clear() {
3904 this.req = null;
3905 }
3906
3907 public TExecuteStatementReq getReq() {
3908 return this.req;
3909 }
3910
3911 public void setReq(TExecuteStatementReq req) {
3912 this.req = req;
3913 }
3914
3915 public void unsetReq() {
3916 this.req = null;
3917 }
3918
3919
3920 public boolean isSetReq() {
3921 return this.req != null;
3922 }
3923
3924 public void setReqIsSet(boolean value) {
3925 if (!value) {
3926 this.req = null;
3927 }
3928 }
3929
3930 public void setFieldValue(_Fields field, Object value) {
3931 switch (field) {
3932 case REQ:
3933 if (value == null) {
3934 unsetReq();
3935 } else {
3936 setReq((TExecuteStatementReq)value);
3937 }
3938 break;
3939
3940 }
3941 }
3942
3943 public Object getFieldValue(_Fields field) {
3944 switch (field) {
3945 case REQ:
3946 return getReq();
3947
3948 }
3949 throw new IllegalStateException();
3950 }
3951
3952
3953 public boolean isSet(_Fields field) {
3954 if (field == null) {
3955 throw new IllegalArgumentException();
3956 }
3957
3958 switch (field) {
3959 case REQ:
3960 return isSetReq();
3961 }
3962 throw new IllegalStateException();
3963 }
3964
3965 @Override
3966 public boolean equals(Object that) {
3967 if (that == null)
3968 return false;
3969 if (that instanceof ExecuteStatement_args)
3970 return this.equals((ExecuteStatement_args)that);
3971 return false;
3972 }
3973
3974 public boolean equals(ExecuteStatement_args that) {
3975 if (that == null)
3976 return false;
3977
3978 boolean this_present_req = true && this.isSetReq();
3979 boolean that_present_req = true && that.isSetReq();
3980 if (this_present_req || that_present_req) {
3981 if (!(this_present_req && that_present_req))
3982 return false;
3983 if (!this.req.equals(that.req))
3984 return false;
3985 }
3986
3987 return true;
3988 }
3989
3990 @Override
3991 public int hashCode() {
3992 HashCodeBuilder builder = new HashCodeBuilder();
3993
3994 boolean present_req = true && (isSetReq());
3995 builder.append(present_req);
3996 if (present_req)
3997 builder.append(req);
3998
3999 return builder.toHashCode();
4000 }
4001
4002 public int compareTo(ExecuteStatement_args other) {
4003 if (!getClass().equals(other.getClass())) {
4004 return getClass().getName().compareTo(other.getClass().getName());
4005 }
4006
4007 int lastComparison = 0;
4008 ExecuteStatement_args typedOther = (ExecuteStatement_args)other;
4009
4010 lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq());
4011 if (lastComparison != 0) {
4012 return lastComparison;
4013 }
4014 if (isSetReq()) {
4015 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req);
4016 if (lastComparison != 0) {
4017 return lastComparison;
4018 }
4019 }
4020 return 0;
4021 }
4022
4023 public _Fields fieldForId(int fieldId) {
4024 return _Fields.findByThriftId(fieldId);
4025 }
4026
4027 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4028 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4029 }
4030
4031 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4032 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4033 }
4034
4035 @Override
4036 public String toString() {
4037 StringBuilder sb = new StringBuilder("ExecuteStatement_args(");
4038 boolean first = true;
4039
4040 sb.append("req:");
4041 if (this.req == null) {
4042 sb.append("null");
4043 } else {
4044 sb.append(this.req);
4045 }
4046 first = false;
4047 sb.append(")");
4048 return sb.toString();
4049 }
4050
4051 public void validate() throws org.apache.thrift.TException {
4052
4053
4054 if (req != null) {
4055 req.validate();
4056 }
4057 }
4058
4059 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4060 try {
4061 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4062 } catch (org.apache.thrift.TException te) {
4063 throw new java.io.IOException(te);
4064 }
4065 }
4066
4067 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4068 try {
4069 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4070 } catch (org.apache.thrift.TException te) {
4071 throw new java.io.IOException(te);
4072 }
4073 }
4074
4075 private static class ExecuteStatement_argsStandardSchemeFactory implements SchemeFactory {
4076 public ExecuteStatement_argsStandardScheme getScheme() {
4077 return new ExecuteStatement_argsStandardScheme();
4078 }
4079 }
4080
4081 private static class ExecuteStatement_argsStandardScheme extends StandardScheme<ExecuteStatement_args> {
4082
4083 public void read(org.apache.thrift.protocol.TProtocol iprot, ExecuteStatement_args struct) throws org.apache.thrift.TException {
4084 org.apache.thrift.protocol.TField schemeField;
4085 iprot.readStructBegin();
4086 while (true)
4087 {
4088 schemeField = iprot.readFieldBegin();
4089 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
4090 break;
4091 }
4092 switch (schemeField.id) {
4093 case 1:
4094 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
4095 struct.req = new TExecuteStatementReq();
4096 struct.req.read(iprot);
4097 struct.setReqIsSet(true);
4098 } else {
4099 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4100 }
4101 break;
4102 default:
4103 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4104 }
4105 iprot.readFieldEnd();
4106 }
4107 iprot.readStructEnd();
4108 struct.validate();
4109 }
4110
4111 public void write(org.apache.thrift.protocol.TProtocol oprot, ExecuteStatement_args struct) throws org.apache.thrift.TException {
4112 struct.validate();
4113
4114 oprot.writeStructBegin(STRUCT_DESC);
4115 if (struct.req != null) {
4116 oprot.writeFieldBegin(REQ_FIELD_DESC);
4117 struct.req.write(oprot);
4118 oprot.writeFieldEnd();
4119 }
4120 oprot.writeFieldStop();
4121 oprot.writeStructEnd();
4122 }
4123
4124 }
4125
4126 private static class ExecuteStatement_argsTupleSchemeFactory implements SchemeFactory {
4127 public ExecuteStatement_argsTupleScheme getScheme() {
4128 return new ExecuteStatement_argsTupleScheme();
4129 }
4130 }
4131
4132 private static class ExecuteStatement_argsTupleScheme extends TupleScheme<ExecuteStatement_args> {
4133
4134 @Override
4135 public void write(org.apache.thrift.protocol.TProtocol prot, ExecuteStatement_args struct) throws org.apache.thrift.TException {
4136 TTupleProtocol oprot = (TTupleProtocol) prot;
4137 BitSet optionals = new BitSet();
4138 if (struct.isSetReq()) {
4139 optionals.set(0);
4140 }
4141 oprot.writeBitSet(optionals, 1);
4142 if (struct.isSetReq()) {
4143 struct.req.write(oprot);
4144 }
4145 }
4146
4147 @Override
4148 public void read(org.apache.thrift.protocol.TProtocol prot, ExecuteStatement_args struct) throws org.apache.thrift.TException {
4149 TTupleProtocol iprot = (TTupleProtocol) prot;
4150 BitSet incoming = iprot.readBitSet(1);
4151 if (incoming.get(0)) {
4152 struct.req = new TExecuteStatementReq();
4153 struct.req.read(iprot);
4154 struct.setReqIsSet(true);
4155 }
4156 }
4157 }
4158
4159 }
4160
4161 public static class ExecuteStatement_result implements org.apache.thrift.TBase<ExecuteStatement_result, ExecuteStatement_result._Fields>, java.io.Serializable, Cloneable {
4162 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExecuteStatement_result");
4163
4164 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);
4165
4166 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4167 static {
4168 schemes.put(StandardScheme.class, new ExecuteStatement_resultStandardSchemeFactory());
4169 schemes.put(TupleScheme.class, new ExecuteStatement_resultTupleSchemeFactory());
4170 }
4171
4172 private TExecuteStatementResp success;
4173
4174
4175 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4176 SUCCESS((short)0, "success");
4177
4178 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4179
4180 static {
4181 for (_Fields field : EnumSet.allOf(_Fields.class)) {
4182 byName.put(field.getFieldName(), field);
4183 }
4184 }
4185
4186
4187
4188
4189 public static _Fields findByThriftId(int fieldId) {
4190 switch(fieldId) {
4191 case 0:
4192 return SUCCESS;
4193 default:
4194 return null;
4195 }
4196 }
4197
4198
4199
4200
4201
4202 public static _Fields findByThriftIdOrThrow(int fieldId) {
4203 _Fields fields = findByThriftId(fieldId);
4204 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4205 return fields;
4206 }
4207
4208
4209
4210
4211 public static _Fields findByName(String name) {
4212 return byName.get(name);
4213 }
4214
4215 private final short _thriftId;
4216 private final String _fieldName;
4217
4218 _Fields(short thriftId, String fieldName) {
4219 _thriftId = thriftId;
4220 _fieldName = fieldName;
4221 }
4222
4223 public short getThriftFieldId() {
4224 return _thriftId;
4225 }
4226
4227 public String getFieldName() {
4228 return _fieldName;
4229 }
4230 }
4231
4232
4233 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4234 static {
4235 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4236 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
4237 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TExecuteStatementResp.class)));
4238 metaDataMap = Collections.unmodifiableMap(tmpMap);
4239 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ExecuteStatement_result.class, metaDataMap);
4240 }
4241
4242 public ExecuteStatement_result() {
4243 }
4244
4245 public ExecuteStatement_result(
4246 TExecuteStatementResp success)
4247 {
4248 this();
4249 this.success = success;
4250 }
4251
4252
4253
4254
4255 public ExecuteStatement_result(ExecuteStatement_result other) {
4256 if (other.isSetSuccess()) {
4257 this.success = new TExecuteStatementResp(other.success);
4258 }
4259 }
4260
4261 public ExecuteStatement_result deepCopy() {
4262 return new ExecuteStatement_result(this);
4263 }
4264
4265 @Override
4266 public void clear() {
4267 this.success = null;
4268 }
4269
4270 public TExecuteStatementResp getSuccess() {
4271 return this.success;
4272 }
4273
4274 public void setSuccess(TExecuteStatementResp success) {
4275 this.success = success;
4276 }
4277
4278 public void unsetSuccess() {
4279 this.success = null;
4280 }
4281
4282
4283 public boolean isSetSuccess() {
4284 return this.success != null;
4285 }
4286
4287 public void setSuccessIsSet(boolean value) {
4288 if (!value) {
4289 this.success = null;
4290 }
4291 }
4292
4293 public void setFieldValue(_Fields field, Object value) {
4294 switch (field) {
4295 case SUCCESS:
4296 if (value == null) {
4297 unsetSuccess();
4298 } else {
4299 setSuccess((TExecuteStatementResp)value);
4300 }
4301 break;
4302
4303 }
4304 }
4305
4306 public Object getFieldValue(_Fields field) {
4307 switch (field) {
4308 case SUCCESS:
4309 return getSuccess();
4310
4311 }
4312 throw new IllegalStateException();
4313 }
4314
4315
4316 public boolean isSet(_Fields field) {
4317 if (field == null) {
4318 throw new IllegalArgumentException();
4319 }
4320
4321 switch (field) {
4322 case SUCCESS:
4323 return isSetSuccess();
4324 }
4325 throw new IllegalStateException();
4326 }
4327
4328 @Override
4329 public boolean equals(Object that) {
4330 if (that == null)
4331 return false;
4332 if (that instanceof ExecuteStatement_result)
4333 return this.equals((ExecuteStatement_result)that);
4334 return false;
4335 }
4336
4337 public boolean equals(ExecuteStatement_result that) {
4338 if (that == null)
4339 return false;
4340
4341 boolean this_present_success = true && this.isSetSuccess();
4342 boolean that_present_success = true && that.isSetSuccess();
4343 if (this_present_success || that_present_success) {
4344 if (!(this_present_success && that_present_success))
4345 return false;
4346 if (!this.success.equals(that.success))
4347 return false;
4348 }
4349
4350 return true;
4351 }
4352
4353 @Override
4354 public int hashCode() {
4355 HashCodeBuilder builder = new HashCodeBuilder();
4356
4357 boolean present_success = true && (isSetSuccess());
4358 builder.append(present_success);
4359 if (present_success)
4360 builder.append(success);
4361
4362 return builder.toHashCode();
4363 }
4364
4365 public int compareTo(ExecuteStatement_result other) {
4366 if (!getClass().equals(other.getClass())) {
4367 return getClass().getName().compareTo(other.getClass().getName());
4368 }
4369
4370 int lastComparison = 0;
4371 ExecuteStatement_result typedOther = (ExecuteStatement_result)other;
4372
4373 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
4374 if (lastComparison != 0) {
4375 return lastComparison;
4376 }
4377 if (isSetSuccess()) {
4378 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4379 if (lastComparison != 0) {
4380 return lastComparison;
4381 }
4382 }
4383 return 0;
4384 }
4385
4386 public _Fields fieldForId(int fieldId) {
4387 return _Fields.findByThriftId(fieldId);
4388 }
4389
4390 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4391 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4392 }
4393
4394 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4395 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4396 }
4397
4398 @Override
4399 public String toString() {
4400 StringBuilder sb = new StringBuilder("ExecuteStatement_result(");
4401 boolean first = true;
4402
4403 sb.append("success:");
4404 if (this.success == null) {
4405 sb.append("null");
4406 } else {
4407 sb.append(this.success);
4408 }
4409 first = false;
4410 sb.append(")");
4411 return sb.toString();
4412 }
4413
4414 public void validate() throws org.apache.thrift.TException {
4415
4416
4417 if (success != null) {
4418 success.validate();
4419 }
4420 }
4421
4422 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4423 try {
4424 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4425 } catch (org.apache.thrift.TException te) {
4426 throw new java.io.IOException(te);
4427 }
4428 }
4429
4430 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4431 try {
4432 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4433 } catch (org.apache.thrift.TException te) {
4434 throw new java.io.IOException(te);
4435 }
4436 }
4437
4438 private static class ExecuteStatement_resultStandardSchemeFactory implements SchemeFactory {
4439 public ExecuteStatement_resultStandardScheme getScheme() {
4440 return new ExecuteStatement_resultStandardScheme();
4441 }
4442 }
4443
4444 private static class ExecuteStatement_resultStandardScheme extends StandardScheme<ExecuteStatement_result> {
4445
4446 public void read(org.apache.thrift.protocol.TProtocol iprot, ExecuteStatement_result struct) throws org.apache.thrift.TException {
4447 org.apache.thrift.protocol.TField schemeField;
4448 iprot.readStructBegin();
4449 while (true)
4450 {
4451 schemeField = iprot.readFieldBegin();
4452 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
4453 break;
4454 }
4455 switch (schemeField.id) {
4456 case 0:
4457 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
4458 struct.success = new TExecuteStatementResp();
4459 struct.success.read(iprot);
4460 struct.setSuccessIsSet(true);
4461 } else {
4462 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4463 }
4464 break;
4465 default:
4466 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4467 }
4468 iprot.readFieldEnd();
4469 }
4470 iprot.readStructEnd();
4471 struct.validate();
4472 }
4473
4474 public void write(org.apache.thrift.protocol.TProtocol oprot, ExecuteStatement_result struct) throws org.apache.thrift.TException {
4475 struct.validate();
4476
4477 oprot.writeStructBegin(STRUCT_DESC);
4478 if (struct.success != null) {
4479 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4480 struct.success.write(oprot);
4481 oprot.writeFieldEnd();
4482 }
4483 oprot.writeFieldStop();
4484 oprot.writeStructEnd();
4485 }
4486
4487 }
4488
4489 private static class ExecuteStatement_resultTupleSchemeFactory implements SchemeFactory {
4490 public ExecuteStatement_resultTupleScheme getScheme() {
4491 return new ExecuteStatement_resultTupleScheme();
4492 }
4493 }
4494
4495 private static class ExecuteStatement_resultTupleScheme extends TupleScheme<ExecuteStatement_result> {
4496
4497 @Override
4498 public void write(org.apache.thrift.protocol.TProtocol prot, ExecuteStatement_result struct) throws org.apache.thrift.TException {
4499 TTupleProtocol oprot = (TTupleProtocol) prot;
4500 BitSet optionals = new BitSet();
4501 if (struct.isSetSuccess()) {
4502 optionals.set(0);
4503 }
4504 oprot.writeBitSet(optionals, 1);
4505 if (struct.isSetSuccess()) {
4506 struct.success.write(oprot);
4507 }
4508 }
4509
4510 @Override
4511 public void read(org.apache.thrift.protocol.TProtocol prot, ExecuteStatement_result struct) throws org.apache.thrift.TException {
4512 TTupleProtocol iprot = (TTupleProtocol) prot;
4513 BitSet incoming = iprot.readBitSet(1);
4514 if (incoming.get(0)) {
4515 struct.success = new TExecuteStatementResp();
4516 struct.success.read(iprot);
4517 struct.setSuccessIsSet(true);
4518 }
4519 }
4520 }
4521
4522 }
4523
4524 public static class GetTypeInfo_args implements org.apache.thrift.TBase<GetTypeInfo_args, GetTypeInfo_args._Fields>, java.io.Serializable, Cloneable {
4525 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTypeInfo_args");
4526
4527 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);
4528
4529 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4530 static {
4531 schemes.put(StandardScheme.class, new GetTypeInfo_argsStandardSchemeFactory());
4532 schemes.put(TupleScheme.class, new GetTypeInfo_argsTupleSchemeFactory());
4533 }
4534
4535 private TGetTypeInfoReq req;
4536
4537
4538 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4539 REQ((short)1, "req");
4540
4541 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4542
4543 static {
4544 for (_Fields field : EnumSet.allOf(_Fields.class)) {
4545 byName.put(field.getFieldName(), field);
4546 }
4547 }
4548
4549
4550
4551
4552 public static _Fields findByThriftId(int fieldId) {
4553 switch(fieldId) {
4554 case 1:
4555 return REQ;
4556 default:
4557 return null;
4558 }
4559 }
4560
4561
4562
4563
4564
4565 public static _Fields findByThriftIdOrThrow(int fieldId) {
4566 _Fields fields = findByThriftId(fieldId);
4567 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4568 return fields;
4569 }
4570
4571
4572
4573
4574 public static _Fields findByName(String name) {
4575 return byName.get(name);
4576 }
4577
4578 private final short _thriftId;
4579 private final String _fieldName;
4580
4581 _Fields(short thriftId, String fieldName) {
4582 _thriftId = thriftId;
4583 _fieldName = fieldName;
4584 }
4585
4586 public short getThriftFieldId() {
4587 return _thriftId;
4588 }
4589
4590 public String getFieldName() {
4591 return _fieldName;
4592 }
4593 }
4594
4595
4596 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4597 static {
4598 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4599 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
4600 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetTypeInfoReq.class)));
4601 metaDataMap = Collections.unmodifiableMap(tmpMap);
4602 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetTypeInfo_args.class, metaDataMap);
4603 }
4604
4605 public GetTypeInfo_args() {
4606 }
4607
4608 public GetTypeInfo_args(
4609 TGetTypeInfoReq req)
4610 {
4611 this();
4612 this.req = req;
4613 }
4614
4615
4616
4617
4618 public GetTypeInfo_args(GetTypeInfo_args other) {
4619 if (other.isSetReq()) {
4620 this.req = new TGetTypeInfoReq(other.req);
4621 }
4622 }
4623
4624 public GetTypeInfo_args deepCopy() {
4625 return new GetTypeInfo_args(this);
4626 }
4627
4628 @Override
4629 public void clear() {
4630 this.req = null;
4631 }
4632
4633 public TGetTypeInfoReq getReq() {
4634 return this.req;
4635 }
4636
4637 public void setReq(TGetTypeInfoReq req) {
4638 this.req = req;
4639 }
4640
4641 public void unsetReq() {
4642 this.req = null;
4643 }
4644
4645
4646 public boolean isSetReq() {
4647 return this.req != null;
4648 }
4649
4650 public void setReqIsSet(boolean value) {
4651 if (!value) {
4652 this.req = null;
4653 }
4654 }
4655
4656 public void setFieldValue(_Fields field, Object value) {
4657 switch (field) {
4658 case REQ:
4659 if (value == null) {
4660 unsetReq();
4661 } else {
4662 setReq((TGetTypeInfoReq)value);
4663 }
4664 break;
4665
4666 }
4667 }
4668
4669 public Object getFieldValue(_Fields field) {
4670 switch (field) {
4671 case REQ:
4672 return getReq();
4673
4674 }
4675 throw new IllegalStateException();
4676 }
4677
4678
4679 public boolean isSet(_Fields field) {
4680 if (field == null) {
4681 throw new IllegalArgumentException();
4682 }
4683
4684 switch (field) {
4685 case REQ:
4686 return isSetReq();
4687 }
4688 throw new IllegalStateException();
4689 }
4690
4691 @Override
4692 public boolean equals(Object that) {
4693 if (that == null)
4694 return false;
4695 if (that instanceof GetTypeInfo_args)
4696 return this.equals((GetTypeInfo_args)that);
4697 return false;
4698 }
4699
4700 public boolean equals(GetTypeInfo_args that) {
4701 if (that == null)
4702 return false;
4703
4704 boolean this_present_req = true && this.isSetReq();
4705 boolean that_present_req = true && that.isSetReq();
4706 if (this_present_req || that_present_req) {
4707 if (!(this_present_req && that_present_req))
4708 return false;
4709 if (!this.req.equals(that.req))
4710 return false;
4711 }
4712
4713 return true;
4714 }
4715
4716 @Override
4717 public int hashCode() {
4718 HashCodeBuilder builder = new HashCodeBuilder();
4719
4720 boolean present_req = true && (isSetReq());
4721 builder.append(present_req);
4722 if (present_req)
4723 builder.append(req);
4724
4725 return builder.toHashCode();
4726 }
4727
4728 public int compareTo(GetTypeInfo_args other) {
4729 if (!getClass().equals(other.getClass())) {
4730 return getClass().getName().compareTo(other.getClass().getName());
4731 }
4732
4733 int lastComparison = 0;
4734 GetTypeInfo_args typedOther = (GetTypeInfo_args)other;
4735
4736 lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq());
4737 if (lastComparison != 0) {
4738 return lastComparison;
4739 }
4740 if (isSetReq()) {
4741 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req);
4742 if (lastComparison != 0) {
4743 return lastComparison;
4744 }
4745 }
4746 return 0;
4747 }
4748
4749 public _Fields fieldForId(int fieldId) {
4750 return _Fields.findByThriftId(fieldId);
4751 }
4752
4753 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4754 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4755 }
4756
4757 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4758 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4759 }
4760
4761 @Override
4762 public String toString() {
4763 StringBuilder sb = new StringBuilder("GetTypeInfo_args(");
4764 boolean first = true;
4765
4766 sb.append("req:");
4767 if (this.req == null) {
4768 sb.append("null");
4769 } else {
4770 sb.append(this.req);
4771 }
4772 first = false;
4773 sb.append(")");
4774 return sb.toString();
4775 }
4776
4777 public void validate() throws org.apache.thrift.TException {
4778
4779
4780 if (req != null) {
4781 req.validate();
4782 }
4783 }
4784
4785 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4786 try {
4787 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4788 } catch (org.apache.thrift.TException te) {
4789 throw new java.io.IOException(te);
4790 }
4791 }
4792
4793 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4794 try {
4795 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4796 } catch (org.apache.thrift.TException te) {
4797 throw new java.io.IOException(te);
4798 }
4799 }
4800
4801 private static class GetTypeInfo_argsStandardSchemeFactory implements SchemeFactory {
4802 public GetTypeInfo_argsStandardScheme getScheme() {
4803 return new GetTypeInfo_argsStandardScheme();
4804 }
4805 }
4806
4807 private static class GetTypeInfo_argsStandardScheme extends StandardScheme<GetTypeInfo_args> {
4808
4809 public void read(org.apache.thrift.protocol.TProtocol iprot, GetTypeInfo_args struct) throws org.apache.thrift.TException {
4810 org.apache.thrift.protocol.TField schemeField;
4811 iprot.readStructBegin();
4812 while (true)
4813 {
4814 schemeField = iprot.readFieldBegin();
4815 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
4816 break;
4817 }
4818 switch (schemeField.id) {
4819 case 1:
4820 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
4821 struct.req = new TGetTypeInfoReq();
4822 struct.req.read(iprot);
4823 struct.setReqIsSet(true);
4824 } else {
4825 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4826 }
4827 break;
4828 default:
4829 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4830 }
4831 iprot.readFieldEnd();
4832 }
4833 iprot.readStructEnd();
4834 struct.validate();
4835 }
4836
4837 public void write(org.apache.thrift.protocol.TProtocol oprot, GetTypeInfo_args struct) throws org.apache.thrift.TException {
4838 struct.validate();
4839
4840 oprot.writeStructBegin(STRUCT_DESC);
4841 if (struct.req != null) {
4842 oprot.writeFieldBegin(REQ_FIELD_DESC);
4843 struct.req.write(oprot);
4844 oprot.writeFieldEnd();
4845 }
4846 oprot.writeFieldStop();
4847 oprot.writeStructEnd();
4848 }
4849
4850 }
4851
4852 private static class GetTypeInfo_argsTupleSchemeFactory implements SchemeFactory {
4853 public GetTypeInfo_argsTupleScheme getScheme() {
4854 return new GetTypeInfo_argsTupleScheme();
4855 }
4856 }
4857
4858 private static class GetTypeInfo_argsTupleScheme extends TupleScheme<GetTypeInfo_args> {
4859
4860 @Override
4861 public void write(org.apache.thrift.protocol.TProtocol prot, GetTypeInfo_args struct) throws org.apache.thrift.TException {
4862 TTupleProtocol oprot = (TTupleProtocol) prot;
4863 BitSet optionals = new BitSet();
4864 if (struct.isSetReq()) {
4865 optionals.set(0);
4866 }
4867 oprot.writeBitSet(optionals, 1);
4868 if (struct.isSetReq()) {
4869 struct.req.write(oprot);
4870 }
4871 }
4872
4873 @Override
4874 public void read(org.apache.thrift.protocol.TProtocol prot, GetTypeInfo_args struct) throws org.apache.thrift.TException {
4875 TTupleProtocol iprot = (TTupleProtocol) prot;
4876 BitSet incoming = iprot.readBitSet(1);
4877 if (incoming.get(0)) {
4878 struct.req = new TGetTypeInfoReq();
4879 struct.req.read(iprot);
4880 struct.setReqIsSet(true);
4881 }
4882 }
4883 }
4884
4885 }
4886
4887 public static class GetTypeInfo_result implements org.apache.thrift.TBase<GetTypeInfo_result, GetTypeInfo_result._Fields>, java.io.Serializable, Cloneable {
4888 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTypeInfo_result");
4889
4890 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);
4891
4892 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4893 static {
4894 schemes.put(StandardScheme.class, new GetTypeInfo_resultStandardSchemeFactory());
4895 schemes.put(TupleScheme.class, new GetTypeInfo_resultTupleSchemeFactory());
4896 }
4897
4898 private TGetTypeInfoResp success;
4899
4900
4901 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4902 SUCCESS((short)0, "success");
4903
4904 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4905
4906 static {
4907 for (_Fields field : EnumSet.allOf(_Fields.class)) {
4908 byName.put(field.getFieldName(), field);
4909 }
4910 }
4911
4912
4913
4914
4915 public static _Fields findByThriftId(int fieldId) {
4916 switch(fieldId) {
4917 case 0:
4918 return SUCCESS;
4919 default:
4920 return null;
4921 }
4922 }
4923
4924
4925
4926
4927
4928 public static _Fields findByThriftIdOrThrow(int fieldId) {
4929 _Fields fields = findByThriftId(fieldId);
4930 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4931 return fields;
4932 }
4933
4934
4935
4936
4937 public static _Fields findByName(String name) {
4938 return byName.get(name);
4939 }
4940
4941 private final short _thriftId;
4942 private final String _fieldName;
4943
4944 _Fields(short thriftId, String fieldName) {
4945 _thriftId = thriftId;
4946 _fieldName = fieldName;
4947 }
4948
4949 public short getThriftFieldId() {
4950 return _thriftId;
4951 }
4952
4953 public String getFieldName() {
4954 return _fieldName;
4955 }
4956 }
4957
4958
4959 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4960 static {
4961 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4962 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
4963 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetTypeInfoResp.class)));
4964 metaDataMap = Collections.unmodifiableMap(tmpMap);
4965 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetTypeInfo_result.class, metaDataMap);
4966 }
4967
4968 public GetTypeInfo_result() {
4969 }
4970
4971 public GetTypeInfo_result(
4972 TGetTypeInfoResp success)
4973 {
4974 this();
4975 this.success = success;
4976 }
4977
4978
4979
4980
4981 public GetTypeInfo_result(GetTypeInfo_result other) {
4982 if (other.isSetSuccess()) {
4983 this.success = new TGetTypeInfoResp(other.success);
4984 }
4985 }
4986
4987 public GetTypeInfo_result deepCopy() {
4988 return new GetTypeInfo_result(this);
4989 }
4990
4991 @Override
4992 public void clear() {
4993 this.success = null;
4994 }
4995
4996 public TGetTypeInfoResp getSuccess() {
4997 return this.success;
4998 }
4999
5000 public void setSuccess(TGetTypeInfoResp success) {
5001 this.success = success;
5002 }
5003
5004 public void unsetSuccess() {
5005 this.success = null;
5006 }
5007
5008
5009 public boolean isSetSuccess() {
5010 return this.success != null;
5011 }
5012
5013 public void setSuccessIsSet(boolean value) {
5014 if (!value) {
5015 this.success = null;
5016 }
5017 }
5018
5019 public void setFieldValue(_Fields field, Object value) {
5020 switch (field) {
5021 case SUCCESS:
5022 if (value == null) {
5023 unsetSuccess();
5024 } else {
5025 setSuccess((TGetTypeInfoResp)value);
5026 }
5027 break;
5028
5029 }
5030 }
5031
5032 public Object getFieldValue(_Fields field) {
5033 switch (field) {
5034 case SUCCESS:
5035 return getSuccess();
5036
5037 }
5038 throw new IllegalStateException();
5039 }
5040
5041
5042 public boolean isSet(_Fields field) {
5043 if (field == null) {
5044 throw new IllegalArgumentException();
5045 }
5046
5047 switch (field) {
5048 case SUCCESS:
5049 return isSetSuccess();
5050 }
5051 throw new IllegalStateException();
5052 }
5053
5054 @Override
5055 public boolean equals(Object that) {
5056 if (that == null)
5057 return false;
5058 if (that instanceof GetTypeInfo_result)
5059 return this.equals((GetTypeInfo_result)that);
5060 return false;
5061 }
5062
5063 public boolean equals(GetTypeInfo_result that) {
5064 if (that == null)
5065 return false;
5066
5067 boolean this_present_success = true && this.isSetSuccess();
5068 boolean that_present_success = true && that.isSetSuccess();
5069 if (this_present_success || that_present_success) {
5070 if (!(this_present_success && that_present_success))
5071 return false;
5072 if (!this.success.equals(that.success))
5073 return false;
5074 }
5075
5076 return true;
5077 }
5078
5079 @Override
5080 public int hashCode() {
5081 HashCodeBuilder builder = new HashCodeBuilder();
5082
5083 boolean present_success = true && (isSetSuccess());
5084 builder.append(present_success);
5085 if (present_success)
5086 builder.append(success);
5087
5088 return builder.toHashCode();
5089 }
5090
5091 public int compareTo(GetTypeInfo_result other) {
5092 if (!getClass().equals(other.getClass())) {
5093 return getClass().getName().compareTo(other.getClass().getName());
5094 }
5095
5096 int lastComparison = 0;
5097 GetTypeInfo_result typedOther = (GetTypeInfo_result)other;
5098
5099 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5100 if (lastComparison != 0) {
5101 return lastComparison;
5102 }
5103 if (isSetSuccess()) {
5104 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5105 if (lastComparison != 0) {
5106 return lastComparison;
5107 }
5108 }
5109 return 0;
5110 }
5111
5112 public _Fields fieldForId(int fieldId) {
5113 return _Fields.findByThriftId(fieldId);
5114 }
5115
5116 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5117 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5118 }
5119
5120 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5121 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5122 }
5123
5124 @Override
5125 public String toString() {
5126 StringBuilder sb = new StringBuilder("GetTypeInfo_result(");
5127 boolean first = true;
5128
5129 sb.append("success:");
5130 if (this.success == null) {
5131 sb.append("null");
5132 } else {
5133 sb.append(this.success);
5134 }
5135 first = false;
5136 sb.append(")");
5137 return sb.toString();
5138 }
5139
5140 public void validate() throws org.apache.thrift.TException {
5141
5142
5143 if (success != null) {
5144 success.validate();
5145 }
5146 }
5147
5148 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5149 try {
5150 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5151 } catch (org.apache.thrift.TException te) {
5152 throw new java.io.IOException(te);
5153 }
5154 }
5155
5156 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5157 try {
5158 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5159 } catch (org.apache.thrift.TException te) {
5160 throw new java.io.IOException(te);
5161 }
5162 }
5163
5164 private static class GetTypeInfo_resultStandardSchemeFactory implements SchemeFactory {
5165 public GetTypeInfo_resultStandardScheme getScheme() {
5166 return new GetTypeInfo_resultStandardScheme();
5167 }
5168 }
5169
5170 private static class GetTypeInfo_resultStandardScheme extends StandardScheme<GetTypeInfo_result> {
5171
5172 public void read(org.apache.thrift.protocol.TProtocol iprot, GetTypeInfo_result struct) throws org.apache.thrift.TException {
5173 org.apache.thrift.protocol.TField schemeField;
5174 iprot.readStructBegin();
5175 while (true)
5176 {
5177 schemeField = iprot.readFieldBegin();
5178 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5179 break;
5180 }
5181 switch (schemeField.id) {
5182 case 0:
5183 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
5184 struct.success = new TGetTypeInfoResp();
5185 struct.success.read(iprot);
5186 struct.setSuccessIsSet(true);
5187 } else {
5188 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5189 }
5190 break;
5191 default:
5192 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5193 }
5194 iprot.readFieldEnd();
5195 }
5196 iprot.readStructEnd();
5197 struct.validate();
5198 }
5199
5200 public void write(org.apache.thrift.protocol.TProtocol oprot, GetTypeInfo_result struct) throws org.apache.thrift.TException {
5201 struct.validate();
5202
5203 oprot.writeStructBegin(STRUCT_DESC);
5204 if (struct.success != null) {
5205 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5206 struct.success.write(oprot);
5207 oprot.writeFieldEnd();
5208 }
5209 oprot.writeFieldStop();
5210 oprot.writeStructEnd();
5211 }
5212
5213 }
5214
5215 private static class GetTypeInfo_resultTupleSchemeFactory implements SchemeFactory {
5216 public GetTypeInfo_resultTupleScheme getScheme() {
5217 return new GetTypeInfo_resultTupleScheme();
5218 }
5219 }
5220
5221 private static class GetTypeInfo_resultTupleScheme extends TupleScheme<GetTypeInfo_result> {
5222
5223 @Override
5224 public void write(org.apache.thrift.protocol.TProtocol prot, GetTypeInfo_result struct) throws org.apache.thrift.TException {
5225 TTupleProtocol oprot = (TTupleProtocol) prot;
5226 BitSet optionals = new BitSet();
5227 if (struct.isSetSuccess()) {
5228 optionals.set(0);
5229 }
5230 oprot.writeBitSet(optionals, 1);
5231 if (struct.isSetSuccess()) {
5232 struct.success.write(oprot);
5233 }
5234 }
5235
5236 @Override
5237 public void read(org.apache.thrift.protocol.TProtocol prot, GetTypeInfo_result struct) throws org.apache.thrift.TException {
5238 TTupleProtocol iprot = (TTupleProtocol) prot;
5239 BitSet incoming = iprot.readBitSet(1);
5240 if (incoming.get(0)) {
5241 struct.success = new TGetTypeInfoResp();
5242 struct.success.read(iprot);
5243 struct.setSuccessIsSet(true);
5244 }
5245 }
5246 }
5247
5248 }
5249
5250 public static class GetCatalogs_args implements org.apache.thrift.TBase<GetCatalogs_args, GetCatalogs_args._Fields>, java.io.Serializable, Cloneable {
5251 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetCatalogs_args");
5252
5253 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);
5254
5255 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5256 static {
5257 schemes.put(StandardScheme.class, new GetCatalogs_argsStandardSchemeFactory());
5258 schemes.put(TupleScheme.class, new GetCatalogs_argsTupleSchemeFactory());
5259 }
5260
5261 private TGetCatalogsReq req;
5262
5263
5264 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5265 REQ((short)1, "req");
5266
5267 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5268
5269 static {
5270 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5271 byName.put(field.getFieldName(), field);
5272 }
5273 }
5274
5275
5276
5277
5278 public static _Fields findByThriftId(int fieldId) {
5279 switch(fieldId) {
5280 case 1:
5281 return REQ;
5282 default:
5283 return null;
5284 }
5285 }
5286
5287
5288
5289
5290
5291 public static _Fields findByThriftIdOrThrow(int fieldId) {
5292 _Fields fields = findByThriftId(fieldId);
5293 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5294 return fields;
5295 }
5296
5297
5298
5299
5300 public static _Fields findByName(String name) {
5301 return byName.get(name);
5302 }
5303
5304 private final short _thriftId;
5305 private final String _fieldName;
5306
5307 _Fields(short thriftId, String fieldName) {
5308 _thriftId = thriftId;
5309 _fieldName = fieldName;
5310 }
5311
5312 public short getThriftFieldId() {
5313 return _thriftId;
5314 }
5315
5316 public String getFieldName() {
5317 return _fieldName;
5318 }
5319 }
5320
5321
5322 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5323 static {
5324 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5325 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
5326 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetCatalogsReq.class)));
5327 metaDataMap = Collections.unmodifiableMap(tmpMap);
5328 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetCatalogs_args.class, metaDataMap);
5329 }
5330
5331 public GetCatalogs_args() {
5332 }
5333
5334 public GetCatalogs_args(
5335 TGetCatalogsReq req)
5336 {
5337 this();
5338 this.req = req;
5339 }
5340
5341
5342
5343
5344 public GetCatalogs_args(GetCatalogs_args other) {
5345 if (other.isSetReq()) {
5346 this.req = new TGetCatalogsReq(other.req);
5347 }
5348 }
5349
5350 public GetCatalogs_args deepCopy() {
5351 return new GetCatalogs_args(this);
5352 }
5353
5354 @Override
5355 public void clear() {
5356 this.req = null;
5357 }
5358
5359 public TGetCatalogsReq getReq() {
5360 return this.req;
5361 }
5362
5363 public void setReq(TGetCatalogsReq req) {
5364 this.req = req;
5365 }
5366
5367 public void unsetReq() {
5368 this.req = null;
5369 }
5370
5371
5372 public boolean isSetReq() {
5373 return this.req != null;
5374 }
5375
5376 public void setReqIsSet(boolean value) {
5377 if (!value) {
5378 this.req = null;
5379 }
5380 }
5381
5382 public void setFieldValue(_Fields field, Object value) {
5383 switch (field) {
5384 case REQ:
5385 if (value == null) {
5386 unsetReq();
5387 } else {
5388 setReq((TGetCatalogsReq)value);
5389 }
5390 break;
5391
5392 }
5393 }
5394
5395 public Object getFieldValue(_Fields field) {
5396 switch (field) {
5397 case REQ:
5398 return getReq();
5399
5400 }
5401 throw new IllegalStateException();
5402 }
5403
5404
5405 public boolean isSet(_Fields field) {
5406 if (field == null) {
5407 throw new IllegalArgumentException();
5408 }
5409
5410 switch (field) {
5411 case REQ:
5412 return isSetReq();
5413 }
5414 throw new IllegalStateException();
5415 }
5416
5417 @Override
5418 public boolean equals(Object that) {
5419 if (that == null)
5420 return false;
5421 if (that instanceof GetCatalogs_args)
5422 return this.equals((GetCatalogs_args)that);
5423 return false;
5424 }
5425
5426 public boolean equals(GetCatalogs_args that) {
5427 if (that == null)
5428 return false;
5429
5430 boolean this_present_req = true && this.isSetReq();
5431 boolean that_present_req = true && that.isSetReq();
5432 if (this_present_req || that_present_req) {
5433 if (!(this_present_req && that_present_req))
5434 return false;
5435 if (!this.req.equals(that.req))
5436 return false;
5437 }
5438
5439 return true;
5440 }
5441
5442 @Override
5443 public int hashCode() {
5444 HashCodeBuilder builder = new HashCodeBuilder();
5445
5446 boolean present_req = true && (isSetReq());
5447 builder.append(present_req);
5448 if (present_req)
5449 builder.append(req);
5450
5451 return builder.toHashCode();
5452 }
5453
5454 public int compareTo(GetCatalogs_args other) {
5455 if (!getClass().equals(other.getClass())) {
5456 return getClass().getName().compareTo(other.getClass().getName());
5457 }
5458
5459 int lastComparison = 0;
5460 GetCatalogs_args typedOther = (GetCatalogs_args)other;
5461
5462 lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq());
5463 if (lastComparison != 0) {
5464 return lastComparison;
5465 }
5466 if (isSetReq()) {
5467 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req);
5468 if (lastComparison != 0) {
5469 return lastComparison;
5470 }
5471 }
5472 return 0;
5473 }
5474
5475 public _Fields fieldForId(int fieldId) {
5476 return _Fields.findByThriftId(fieldId);
5477 }
5478
5479 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5480 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5481 }
5482
5483 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5484 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5485 }
5486
5487 @Override
5488 public String toString() {
5489 StringBuilder sb = new StringBuilder("GetCatalogs_args(");
5490 boolean first = true;
5491
5492 sb.append("req:");
5493 if (this.req == null) {
5494 sb.append("null");
5495 } else {
5496 sb.append(this.req);
5497 }
5498 first = false;
5499 sb.append(")");
5500 return sb.toString();
5501 }
5502
5503 public void validate() throws org.apache.thrift.TException {
5504
5505
5506 if (req != null) {
5507 req.validate();
5508 }
5509 }
5510
5511 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5512 try {
5513 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5514 } catch (org.apache.thrift.TException te) {
5515 throw new java.io.IOException(te);
5516 }
5517 }
5518
5519 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5520 try {
5521 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5522 } catch (org.apache.thrift.TException te) {
5523 throw new java.io.IOException(te);
5524 }
5525 }
5526
5527 private static class GetCatalogs_argsStandardSchemeFactory implements SchemeFactory {
5528 public GetCatalogs_argsStandardScheme getScheme() {
5529 return new GetCatalogs_argsStandardScheme();
5530 }
5531 }
5532
5533 private static class GetCatalogs_argsStandardScheme extends StandardScheme<GetCatalogs_args> {
5534
5535 public void read(org.apache.thrift.protocol.TProtocol iprot, GetCatalogs_args struct) throws org.apache.thrift.TException {
5536 org.apache.thrift.protocol.TField schemeField;
5537 iprot.readStructBegin();
5538 while (true)
5539 {
5540 schemeField = iprot.readFieldBegin();
5541 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5542 break;
5543 }
5544 switch (schemeField.id) {
5545 case 1:
5546 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
5547 struct.req = new TGetCatalogsReq();
5548 struct.req.read(iprot);
5549 struct.setReqIsSet(true);
5550 } else {
5551 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5552 }
5553 break;
5554 default:
5555 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5556 }
5557 iprot.readFieldEnd();
5558 }
5559 iprot.readStructEnd();
5560 struct.validate();
5561 }
5562
5563 public void write(org.apache.thrift.protocol.TProtocol oprot, GetCatalogs_args struct) throws org.apache.thrift.TException {
5564 struct.validate();
5565
5566 oprot.writeStructBegin(STRUCT_DESC);
5567 if (struct.req != null) {
5568 oprot.writeFieldBegin(REQ_FIELD_DESC);
5569 struct.req.write(oprot);
5570 oprot.writeFieldEnd();
5571 }
5572 oprot.writeFieldStop();
5573 oprot.writeStructEnd();
5574 }
5575
5576 }
5577
5578 private static class GetCatalogs_argsTupleSchemeFactory implements SchemeFactory {
5579 public GetCatalogs_argsTupleScheme getScheme() {
5580 return new GetCatalogs_argsTupleScheme();
5581 }
5582 }
5583
5584 private static class GetCatalogs_argsTupleScheme extends TupleScheme<GetCatalogs_args> {
5585
5586 @Override
5587 public void write(org.apache.thrift.protocol.TProtocol prot, GetCatalogs_args struct) throws org.apache.thrift.TException {
5588 TTupleProtocol oprot = (TTupleProtocol) prot;
5589 BitSet optionals = new BitSet();
5590 if (struct.isSetReq()) {
5591 optionals.set(0);
5592 }
5593 oprot.writeBitSet(optionals, 1);
5594 if (struct.isSetReq()) {
5595 struct.req.write(oprot);
5596 }
5597 }
5598
5599 @Override
5600 public void read(org.apache.thrift.protocol.TProtocol prot, GetCatalogs_args struct) throws org.apache.thrift.TException {
5601 TTupleProtocol iprot = (TTupleProtocol) prot;
5602 BitSet incoming = iprot.readBitSet(1);
5603 if (incoming.get(0)) {
5604 struct.req = new TGetCatalogsReq();
5605 struct.req.read(iprot);
5606 struct.setReqIsSet(true);
5607 }
5608 }
5609 }
5610
5611 }
5612
5613 public static class GetCatalogs_result implements org.apache.thrift.TBase<GetCatalogs_result, GetCatalogs_result._Fields>, java.io.Serializable, Cloneable {
5614 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetCatalogs_result");
5615
5616 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);
5617
5618 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5619 static {
5620 schemes.put(StandardScheme.class, new GetCatalogs_resultStandardSchemeFactory());
5621 schemes.put(TupleScheme.class, new GetCatalogs_resultTupleSchemeFactory());
5622 }
5623
5624 private TGetCatalogsResp success;
5625
5626
5627 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5628 SUCCESS((short)0, "success");
5629
5630 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5631
5632 static {
5633 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5634 byName.put(field.getFieldName(), field);
5635 }
5636 }
5637
5638
5639
5640
5641 public static _Fields findByThriftId(int fieldId) {
5642 switch(fieldId) {
5643 case 0:
5644 return SUCCESS;
5645 default:
5646 return null;
5647 }
5648 }
5649
5650
5651
5652
5653
5654 public static _Fields findByThriftIdOrThrow(int fieldId) {
5655 _Fields fields = findByThriftId(fieldId);
5656 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5657 return fields;
5658 }
5659
5660
5661
5662
5663 public static _Fields findByName(String name) {
5664 return byName.get(name);
5665 }
5666
5667 private final short _thriftId;
5668 private final String _fieldName;
5669
5670 _Fields(short thriftId, String fieldName) {
5671 _thriftId = thriftId;
5672 _fieldName = fieldName;
5673 }
5674
5675 public short getThriftFieldId() {
5676 return _thriftId;
5677 }
5678
5679 public String getFieldName() {
5680 return _fieldName;
5681 }
5682 }
5683
5684
5685 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5686 static {
5687 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5688 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
5689 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetCatalogsResp.class)));
5690 metaDataMap = Collections.unmodifiableMap(tmpMap);
5691 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetCatalogs_result.class, metaDataMap);
5692 }
5693
5694 public GetCatalogs_result() {
5695 }
5696
5697 public GetCatalogs_result(
5698 TGetCatalogsResp success)
5699 {
5700 this();
5701 this.success = success;
5702 }
5703
5704
5705
5706
5707 public GetCatalogs_result(GetCatalogs_result other) {
5708 if (other.isSetSuccess()) {
5709 this.success = new TGetCatalogsResp(other.success);
5710 }
5711 }
5712
5713 public GetCatalogs_result deepCopy() {
5714 return new GetCatalogs_result(this);
5715 }
5716
5717 @Override
5718 public void clear() {
5719 this.success = null;
5720 }
5721
5722 public TGetCatalogsResp getSuccess() {
5723 return this.success;
5724 }
5725
5726 public void setSuccess(TGetCatalogsResp success) {
5727 this.success = success;
5728 }
5729
5730 public void unsetSuccess() {
5731 this.success = null;
5732 }
5733
5734
5735 public boolean isSetSuccess() {
5736 return this.success != null;
5737 }
5738
5739 public void setSuccessIsSet(boolean value) {
5740 if (!value) {
5741 this.success = null;
5742 }
5743 }
5744
5745 public void setFieldValue(_Fields field, Object value) {
5746 switch (field) {
5747 case SUCCESS:
5748 if (value == null) {
5749 unsetSuccess();
5750 } else {
5751 setSuccess((TGetCatalogsResp)value);
5752 }
5753 break;
5754
5755 }
5756 }
5757
5758 public Object getFieldValue(_Fields field) {
5759 switch (field) {
5760 case SUCCESS:
5761 return getSuccess();
5762
5763 }
5764 throw new IllegalStateException();
5765 }
5766
5767
5768 public boolean isSet(_Fields field) {
5769 if (field == null) {
5770 throw new IllegalArgumentException();
5771 }
5772
5773 switch (field) {
5774 case SUCCESS:
5775 return isSetSuccess();
5776 }
5777 throw new IllegalStateException();
5778 }
5779
5780 @Override
5781 public boolean equals(Object that) {
5782 if (that == null)
5783 return false;
5784 if (that instanceof GetCatalogs_result)
5785 return this.equals((GetCatalogs_result)that);
5786 return false;
5787 }
5788
5789 public boolean equals(GetCatalogs_result that) {
5790 if (that == null)
5791 return false;
5792
5793 boolean this_present_success = true && this.isSetSuccess();
5794 boolean that_present_success = true && that.isSetSuccess();
5795 if (this_present_success || that_present_success) {
5796 if (!(this_present_success && that_present_success))
5797 return false;
5798 if (!this.success.equals(that.success))
5799 return false;
5800 }
5801
5802 return true;
5803 }
5804
5805 @Override
5806 public int hashCode() {
5807 HashCodeBuilder builder = new HashCodeBuilder();
5808
5809 boolean present_success = true && (isSetSuccess());
5810 builder.append(present_success);
5811 if (present_success)
5812 builder.append(success);
5813
5814 return builder.toHashCode();
5815 }
5816
5817 public int compareTo(GetCatalogs_result other) {
5818 if (!getClass().equals(other.getClass())) {
5819 return getClass().getName().compareTo(other.getClass().getName());
5820 }
5821
5822 int lastComparison = 0;
5823 GetCatalogs_result typedOther = (GetCatalogs_result)other;
5824
5825 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5826 if (lastComparison != 0) {
5827 return lastComparison;
5828 }
5829 if (isSetSuccess()) {
5830 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5831 if (lastComparison != 0) {
5832 return lastComparison;
5833 }
5834 }
5835 return 0;
5836 }
5837
5838 public _Fields fieldForId(int fieldId) {
5839 return _Fields.findByThriftId(fieldId);
5840 }
5841
5842 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5843 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5844 }
5845
5846 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5847 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5848 }
5849
5850 @Override
5851 public String toString() {
5852 StringBuilder sb = new StringBuilder("GetCatalogs_result(");
5853 boolean first = true;
5854
5855 sb.append("success:");
5856 if (this.success == null) {
5857 sb.append("null");
5858 } else {
5859 sb.append(this.success);
5860 }
5861 first = false;
5862 sb.append(")");
5863 return sb.toString();
5864 }
5865
5866 public void validate() throws org.apache.thrift.TException {
5867
5868
5869 if (success != null) {
5870 success.validate();
5871 }
5872 }
5873
5874 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5875 try {
5876 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5877 } catch (org.apache.thrift.TException te) {
5878 throw new java.io.IOException(te);
5879 }
5880 }
5881
5882 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5883 try {
5884 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5885 } catch (org.apache.thrift.TException te) {
5886 throw new java.io.IOException(te);
5887 }
5888 }
5889
5890 private static class GetCatalogs_resultStandardSchemeFactory implements SchemeFactory {
5891 public GetCatalogs_resultStandardScheme getScheme() {
5892 return new GetCatalogs_resultStandardScheme();
5893 }
5894 }
5895
5896 private static class GetCatalogs_resultStandardScheme extends StandardScheme<GetCatalogs_result> {
5897
5898 public void read(org.apache.thrift.protocol.TProtocol iprot, GetCatalogs_result struct) throws org.apache.thrift.TException {
5899 org.apache.thrift.protocol.TField schemeField;
5900 iprot.readStructBegin();
5901 while (true)
5902 {
5903 schemeField = iprot.readFieldBegin();
5904 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5905 break;
5906 }
5907 switch (schemeField.id) {
5908 case 0:
5909 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
5910 struct.success = new TGetCatalogsResp();
5911 struct.success.read(iprot);
5912 struct.setSuccessIsSet(true);
5913 } else {
5914 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5915 }
5916 break;
5917 default:
5918 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5919 }
5920 iprot.readFieldEnd();
5921 }
5922 iprot.readStructEnd();
5923 struct.validate();
5924 }
5925
5926 public void write(org.apache.thrift.protocol.TProtocol oprot, GetCatalogs_result struct) throws org.apache.thrift.TException {
5927 struct.validate();
5928
5929 oprot.writeStructBegin(STRUCT_DESC);
5930 if (struct.success != null) {
5931 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5932 struct.success.write(oprot);
5933 oprot.writeFieldEnd();
5934 }
5935 oprot.writeFieldStop();
5936 oprot.writeStructEnd();
5937 }
5938
5939 }
5940
5941 private static class GetCatalogs_resultTupleSchemeFactory implements SchemeFactory {
5942 public GetCatalogs_resultTupleScheme getScheme() {
5943 return new GetCatalogs_resultTupleScheme();
5944 }
5945 }
5946
5947 private static class GetCatalogs_resultTupleScheme extends TupleScheme<GetCatalogs_result> {
5948
5949 @Override
5950 public void write(org.apache.thrift.protocol.TProtocol prot, GetCatalogs_result struct) throws org.apache.thrift.TException {
5951 TTupleProtocol oprot = (TTupleProtocol) prot;
5952 BitSet optionals = new BitSet();
5953 if (struct.isSetSuccess()) {
5954 optionals.set(0);
5955 }
5956 oprot.writeBitSet(optionals, 1);
5957 if (struct.isSetSuccess()) {
5958 struct.success.write(oprot);
5959 }
5960 }
5961
5962 @Override
5963 public void read(org.apache.thrift.protocol.TProtocol prot, GetCatalogs_result struct) throws org.apache.thrift.TException {
5964 TTupleProtocol iprot = (TTupleProtocol) prot;
5965 BitSet incoming = iprot.readBitSet(1);
5966 if (incoming.get(0)) {
5967 struct.success = new TGetCatalogsResp();
5968 struct.success.read(iprot);
5969 struct.setSuccessIsSet(true);
5970 }
5971 }
5972 }
5973
5974 }
5975
5976 public static class GetSchemas_args implements org.apache.thrift.TBase<GetSchemas_args, GetSchemas_args._Fields>, java.io.Serializable, Cloneable {
5977 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetSchemas_args");
5978
5979 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);
5980
5981 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5982 static {
5983 schemes.put(StandardScheme.class, new GetSchemas_argsStandardSchemeFactory());
5984 schemes.put(TupleScheme.class, new GetSchemas_argsTupleSchemeFactory());
5985 }
5986
5987 private TGetSchemasReq req;
5988
5989
5990 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5991 REQ((short)1, "req");
5992
5993 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5994
5995 static {
5996 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5997 byName.put(field.getFieldName(), field);
5998 }
5999 }
6000
6001
6002
6003
6004 public static _Fields findByThriftId(int fieldId) {
6005 switch(fieldId) {
6006 case 1:
6007 return REQ;
6008 default:
6009 return null;
6010 }
6011 }
6012
6013
6014
6015
6016
6017 public static _Fields findByThriftIdOrThrow(int fieldId) {
6018 _Fields fields = findByThriftId(fieldId);
6019 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6020 return fields;
6021 }
6022
6023
6024
6025
6026 public static _Fields findByName(String name) {
6027 return byName.get(name);
6028 }
6029
6030 private final short _thriftId;
6031 private final String _fieldName;
6032
6033 _Fields(short thriftId, String fieldName) {
6034 _thriftId = thriftId;
6035 _fieldName = fieldName;
6036 }
6037
6038 public short getThriftFieldId() {
6039 return _thriftId;
6040 }
6041
6042 public String getFieldName() {
6043 return _fieldName;
6044 }
6045 }
6046
6047
6048 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6049 static {
6050 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6051 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
6052 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetSchemasReq.class)));
6053 metaDataMap = Collections.unmodifiableMap(tmpMap);
6054 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetSchemas_args.class, metaDataMap);
6055 }
6056
6057 public GetSchemas_args() {
6058 }
6059
6060 public GetSchemas_args(
6061 TGetSchemasReq req)
6062 {
6063 this();
6064 this.req = req;
6065 }
6066
6067
6068
6069
6070 public GetSchemas_args(GetSchemas_args other) {
6071 if (other.isSetReq()) {
6072 this.req = new TGetSchemasReq(other.req);
6073 }
6074 }
6075
6076 public GetSchemas_args deepCopy() {
6077 return new GetSchemas_args(this);
6078 }
6079
6080 @Override
6081 public void clear() {
6082 this.req = null;
6083 }
6084
6085 public TGetSchemasReq getReq() {
6086 return this.req;
6087 }
6088
6089 public void setReq(TGetSchemasReq req) {
6090 this.req = req;
6091 }
6092
6093 public void unsetReq() {
6094 this.req = null;
6095 }
6096
6097
6098 public boolean isSetReq() {
6099 return this.req != null;
6100 }
6101
6102 public void setReqIsSet(boolean value) {
6103 if (!value) {
6104 this.req = null;
6105 }
6106 }
6107
6108 public void setFieldValue(_Fields field, Object value) {
6109 switch (field) {
6110 case REQ:
6111 if (value == null) {
6112 unsetReq();
6113 } else {
6114 setReq((TGetSchemasReq)value);
6115 }
6116 break;
6117
6118 }
6119 }
6120
6121 public Object getFieldValue(_Fields field) {
6122 switch (field) {
6123 case REQ:
6124 return getReq();
6125
6126 }
6127 throw new IllegalStateException();
6128 }
6129
6130
6131 public boolean isSet(_Fields field) {
6132 if (field == null) {
6133 throw new IllegalArgumentException();
6134 }
6135
6136 switch (field) {
6137 case REQ:
6138 return isSetReq();
6139 }
6140 throw new IllegalStateException();
6141 }
6142
6143 @Override
6144 public boolean equals(Object that) {
6145 if (that == null)
6146 return false;
6147 if (that instanceof GetSchemas_args)
6148 return this.equals((GetSchemas_args)that);
6149 return false;
6150 }
6151
6152 public boolean equals(GetSchemas_args that) {
6153 if (that == null)
6154 return false;
6155
6156 boolean this_present_req = true && this.isSetReq();
6157 boolean that_present_req = true && that.isSetReq();
6158 if (this_present_req || that_present_req) {
6159 if (!(this_present_req && that_present_req))
6160 return false;
6161 if (!this.req.equals(that.req))
6162 return false;
6163 }
6164
6165 return true;
6166 }
6167
6168 @Override
6169 public int hashCode() {
6170 HashCodeBuilder builder = new HashCodeBuilder();
6171
6172 boolean present_req = true && (isSetReq());
6173 builder.append(present_req);
6174 if (present_req)
6175 builder.append(req);
6176
6177 return builder.toHashCode();
6178 }
6179
6180 public int compareTo(GetSchemas_args other) {
6181 if (!getClass().equals(other.getClass())) {
6182 return getClass().getName().compareTo(other.getClass().getName());
6183 }
6184
6185 int lastComparison = 0;
6186 GetSchemas_args typedOther = (GetSchemas_args)other;
6187
6188 lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq());
6189 if (lastComparison != 0) {
6190 return lastComparison;
6191 }
6192 if (isSetReq()) {
6193 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req);
6194 if (lastComparison != 0) {
6195 return lastComparison;
6196 }
6197 }
6198 return 0;
6199 }
6200
6201 public _Fields fieldForId(int fieldId) {
6202 return _Fields.findByThriftId(fieldId);
6203 }
6204
6205 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6206 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6207 }
6208
6209 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6210 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6211 }
6212
6213 @Override
6214 public String toString() {
6215 StringBuilder sb = new StringBuilder("GetSchemas_args(");
6216 boolean first = true;
6217
6218 sb.append("req:");
6219 if (this.req == null) {
6220 sb.append("null");
6221 } else {
6222 sb.append(this.req);
6223 }
6224 first = false;
6225 sb.append(")");
6226 return sb.toString();
6227 }
6228
6229 public void validate() throws org.apache.thrift.TException {
6230
6231
6232 if (req != null) {
6233 req.validate();
6234 }
6235 }
6236
6237 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6238 try {
6239 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6240 } catch (org.apache.thrift.TException te) {
6241 throw new java.io.IOException(te);
6242 }
6243 }
6244
6245 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6246 try {
6247 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6248 } catch (org.apache.thrift.TException te) {
6249 throw new java.io.IOException(te);
6250 }
6251 }
6252
6253 private static class GetSchemas_argsStandardSchemeFactory implements SchemeFactory {
6254 public GetSchemas_argsStandardScheme getScheme() {
6255 return new GetSchemas_argsStandardScheme();
6256 }
6257 }
6258
6259 private static class GetSchemas_argsStandardScheme extends StandardScheme<GetSchemas_args> {
6260
6261 public void read(org.apache.thrift.protocol.TProtocol iprot, GetSchemas_args struct) throws org.apache.thrift.TException {
6262 org.apache.thrift.protocol.TField schemeField;
6263 iprot.readStructBegin();
6264 while (true)
6265 {
6266 schemeField = iprot.readFieldBegin();
6267 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6268 break;
6269 }
6270 switch (schemeField.id) {
6271 case 1:
6272 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
6273 struct.req = new TGetSchemasReq();
6274 struct.req.read(iprot);
6275 struct.setReqIsSet(true);
6276 } else {
6277 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6278 }
6279 break;
6280 default:
6281 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6282 }
6283 iprot.readFieldEnd();
6284 }
6285 iprot.readStructEnd();
6286 struct.validate();
6287 }
6288
6289 public void write(org.apache.thrift.protocol.TProtocol oprot, GetSchemas_args struct) throws org.apache.thrift.TException {
6290 struct.validate();
6291
6292 oprot.writeStructBegin(STRUCT_DESC);
6293 if (struct.req != null) {
6294 oprot.writeFieldBegin(REQ_FIELD_DESC);
6295 struct.req.write(oprot);
6296 oprot.writeFieldEnd();
6297 }
6298 oprot.writeFieldStop();
6299 oprot.writeStructEnd();
6300 }
6301
6302 }
6303
6304 private static class GetSchemas_argsTupleSchemeFactory implements SchemeFactory {
6305 public GetSchemas_argsTupleScheme getScheme() {
6306 return new GetSchemas_argsTupleScheme();
6307 }
6308 }
6309
6310 private static class GetSchemas_argsTupleScheme extends TupleScheme<GetSchemas_args> {
6311
6312 @Override
6313 public void write(org.apache.thrift.protocol.TProtocol prot, GetSchemas_args struct) throws org.apache.thrift.TException {
6314 TTupleProtocol oprot = (TTupleProtocol) prot;
6315 BitSet optionals = new BitSet();
6316 if (struct.isSetReq()) {
6317 optionals.set(0);
6318 }
6319 oprot.writeBitSet(optionals, 1);
6320 if (struct.isSetReq()) {
6321 struct.req.write(oprot);
6322 }
6323 }
6324
6325 @Override
6326 public void read(org.apache.thrift.protocol.TProtocol prot, GetSchemas_args struct) throws org.apache.thrift.TException {
6327 TTupleProtocol iprot = (TTupleProtocol) prot;
6328 BitSet incoming = iprot.readBitSet(1);
6329 if (incoming.get(0)) {
6330 struct.req = new TGetSchemasReq();
6331 struct.req.read(iprot);
6332 struct.setReqIsSet(true);
6333 }
6334 }
6335 }
6336
6337 }
6338
6339 public static class GetSchemas_result implements org.apache.thrift.TBase<GetSchemas_result, GetSchemas_result._Fields>, java.io.Serializable, Cloneable {
6340 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetSchemas_result");
6341
6342 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);
6343
6344 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6345 static {
6346 schemes.put(StandardScheme.class, new GetSchemas_resultStandardSchemeFactory());
6347 schemes.put(TupleScheme.class, new GetSchemas_resultTupleSchemeFactory());
6348 }
6349
6350 private TGetSchemasResp success;
6351
6352
6353 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6354 SUCCESS((short)0, "success");
6355
6356 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6357
6358 static {
6359 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6360 byName.put(field.getFieldName(), field);
6361 }
6362 }
6363
6364
6365
6366
6367 public static _Fields findByThriftId(int fieldId) {
6368 switch(fieldId) {
6369 case 0:
6370 return SUCCESS;
6371 default:
6372 return null;
6373 }
6374 }
6375
6376
6377
6378
6379
6380 public static _Fields findByThriftIdOrThrow(int fieldId) {
6381 _Fields fields = findByThriftId(fieldId);
6382 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6383 return fields;
6384 }
6385
6386
6387
6388
6389 public static _Fields findByName(String name) {
6390 return byName.get(name);
6391 }
6392
6393 private final short _thriftId;
6394 private final String _fieldName;
6395
6396 _Fields(short thriftId, String fieldName) {
6397 _thriftId = thriftId;
6398 _fieldName = fieldName;
6399 }
6400
6401 public short getThriftFieldId() {
6402 return _thriftId;
6403 }
6404
6405 public String getFieldName() {
6406 return _fieldName;
6407 }
6408 }
6409
6410
6411 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6412 static {
6413 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6414 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
6415 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetSchemasResp.class)));
6416 metaDataMap = Collections.unmodifiableMap(tmpMap);
6417 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetSchemas_result.class, metaDataMap);
6418 }
6419
6420 public GetSchemas_result() {
6421 }
6422
6423 public GetSchemas_result(
6424 TGetSchemasResp success)
6425 {
6426 this();
6427 this.success = success;
6428 }
6429
6430
6431
6432
6433 public GetSchemas_result(GetSchemas_result other) {
6434 if (other.isSetSuccess()) {
6435 this.success = new TGetSchemasResp(other.success);
6436 }
6437 }
6438
6439 public GetSchemas_result deepCopy() {
6440 return new GetSchemas_result(this);
6441 }
6442
6443 @Override
6444 public void clear() {
6445 this.success = null;
6446 }
6447
6448 public TGetSchemasResp getSuccess() {
6449 return this.success;
6450 }
6451
6452 public void setSuccess(TGetSchemasResp success) {
6453 this.success = success;
6454 }
6455
6456 public void unsetSuccess() {
6457 this.success = null;
6458 }
6459
6460
6461 public boolean isSetSuccess() {
6462 return this.success != null;
6463 }
6464
6465 public void setSuccessIsSet(boolean value) {
6466 if (!value) {
6467 this.success = null;
6468 }
6469 }
6470
6471 public void setFieldValue(_Fields field, Object value) {
6472 switch (field) {
6473 case SUCCESS:
6474 if (value == null) {
6475 unsetSuccess();
6476 } else {
6477 setSuccess((TGetSchemasResp)value);
6478 }
6479 break;
6480
6481 }
6482 }
6483
6484 public Object getFieldValue(_Fields field) {
6485 switch (field) {
6486 case SUCCESS:
6487 return getSuccess();
6488
6489 }
6490 throw new IllegalStateException();
6491 }
6492
6493
6494 public boolean isSet(_Fields field) {
6495 if (field == null) {
6496 throw new IllegalArgumentException();
6497 }
6498
6499 switch (field) {
6500 case SUCCESS:
6501 return isSetSuccess();
6502 }
6503 throw new IllegalStateException();
6504 }
6505
6506 @Override
6507 public boolean equals(Object that) {
6508 if (that == null)
6509 return false;
6510 if (that instanceof GetSchemas_result)
6511 return this.equals((GetSchemas_result)that);
6512 return false;
6513 }
6514
6515 public boolean equals(GetSchemas_result that) {
6516 if (that == null)
6517 return false;
6518
6519 boolean this_present_success = true && this.isSetSuccess();
6520 boolean that_present_success = true && that.isSetSuccess();
6521 if (this_present_success || that_present_success) {
6522 if (!(this_present_success && that_present_success))
6523 return false;
6524 if (!this.success.equals(that.success))
6525 return false;
6526 }
6527
6528 return true;
6529 }
6530
6531 @Override
6532 public int hashCode() {
6533 HashCodeBuilder builder = new HashCodeBuilder();
6534
6535 boolean present_success = true && (isSetSuccess());
6536 builder.append(present_success);
6537 if (present_success)
6538 builder.append(success);
6539
6540 return builder.toHashCode();
6541 }
6542
6543 public int compareTo(GetSchemas_result other) {
6544 if (!getClass().equals(other.getClass())) {
6545 return getClass().getName().compareTo(other.getClass().getName());
6546 }
6547
6548 int lastComparison = 0;
6549 GetSchemas_result typedOther = (GetSchemas_result)other;
6550
6551 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
6552 if (lastComparison != 0) {
6553 return lastComparison;
6554 }
6555 if (isSetSuccess()) {
6556 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6557 if (lastComparison != 0) {
6558 return lastComparison;
6559 }
6560 }
6561 return 0;
6562 }
6563
6564 public _Fields fieldForId(int fieldId) {
6565 return _Fields.findByThriftId(fieldId);
6566 }
6567
6568 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6569 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6570 }
6571
6572 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6573 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6574 }
6575
6576 @Override
6577 public String toString() {
6578 StringBuilder sb = new StringBuilder("GetSchemas_result(");
6579 boolean first = true;
6580
6581 sb.append("success:");
6582 if (this.success == null) {
6583 sb.append("null");
6584 } else {
6585 sb.append(this.success);
6586 }
6587 first = false;
6588 sb.append(")");
6589 return sb.toString();
6590 }
6591
6592 public void validate() throws org.apache.thrift.TException {
6593
6594
6595 if (success != null) {
6596 success.validate();
6597 }
6598 }
6599
6600 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6601 try {
6602 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6603 } catch (org.apache.thrift.TException te) {
6604 throw new java.io.IOException(te);
6605 }
6606 }
6607
6608 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6609 try {
6610 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6611 } catch (org.apache.thrift.TException te) {
6612 throw new java.io.IOException(te);
6613 }
6614 }
6615
6616 private static class GetSchemas_resultStandardSchemeFactory implements SchemeFactory {
6617 public GetSchemas_resultStandardScheme getScheme() {
6618 return new GetSchemas_resultStandardScheme();
6619 }
6620 }
6621
6622 private static class GetSchemas_resultStandardScheme extends StandardScheme<GetSchemas_result> {
6623
6624 public void read(org.apache.thrift.protocol.TProtocol iprot, GetSchemas_result struct) throws org.apache.thrift.TException {
6625 org.apache.thrift.protocol.TField schemeField;
6626 iprot.readStructBegin();
6627 while (true)
6628 {
6629 schemeField = iprot.readFieldBegin();
6630 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6631 break;
6632 }
6633 switch (schemeField.id) {
6634 case 0:
6635 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
6636 struct.success = new TGetSchemasResp();
6637 struct.success.read(iprot);
6638 struct.setSuccessIsSet(true);
6639 } else {
6640 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6641 }
6642 break;
6643 default:
6644 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6645 }
6646 iprot.readFieldEnd();
6647 }
6648 iprot.readStructEnd();
6649 struct.validate();
6650 }
6651
6652 public void write(org.apache.thrift.protocol.TProtocol oprot, GetSchemas_result struct) throws org.apache.thrift.TException {
6653 struct.validate();
6654
6655 oprot.writeStructBegin(STRUCT_DESC);
6656 if (struct.success != null) {
6657 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6658 struct.success.write(oprot);
6659 oprot.writeFieldEnd();
6660 }
6661 oprot.writeFieldStop();
6662 oprot.writeStructEnd();
6663 }
6664
6665 }
6666
6667 private static class GetSchemas_resultTupleSchemeFactory implements SchemeFactory {
6668 public GetSchemas_resultTupleScheme getScheme() {
6669 return new GetSchemas_resultTupleScheme();
6670 }
6671 }
6672
6673 private static class GetSchemas_resultTupleScheme extends TupleScheme<GetSchemas_result> {
6674
6675 @Override
6676 public void write(org.apache.thrift.protocol.TProtocol prot, GetSchemas_result struct) throws org.apache.thrift.TException {
6677 TTupleProtocol oprot = (TTupleProtocol) prot;
6678 BitSet optionals = new BitSet();
6679 if (struct.isSetSuccess()) {
6680 optionals.set(0);
6681 }
6682 oprot.writeBitSet(optionals, 1);
6683 if (struct.isSetSuccess()) {
6684 struct.success.write(oprot);
6685 }
6686 }
6687
6688 @Override
6689 public void read(org.apache.thrift.protocol.TProtocol prot, GetSchemas_result struct) throws org.apache.thrift.TException {
6690 TTupleProtocol iprot = (TTupleProtocol) prot;
6691 BitSet incoming = iprot.readBitSet(1);
6692 if (incoming.get(0)) {
6693 struct.success = new TGetSchemasResp();
6694 struct.success.read(iprot);
6695 struct.setSuccessIsSet(true);
6696 }
6697 }
6698 }
6699
6700 }
6701
6702 public static class GetTables_args implements org.apache.thrift.TBase<GetTables_args, GetTables_args._Fields>, java.io.Serializable, Cloneable {
6703 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTables_args");
6704
6705 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);
6706
6707 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6708 static {
6709 schemes.put(StandardScheme.class, new GetTables_argsStandardSchemeFactory());
6710 schemes.put(TupleScheme.class, new GetTables_argsTupleSchemeFactory());
6711 }
6712
6713 private TGetTablesReq req;
6714
6715
6716 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6717 REQ((short)1, "req");
6718
6719 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6720
6721 static {
6722 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6723 byName.put(field.getFieldName(), field);
6724 }
6725 }
6726
6727
6728
6729
6730 public static _Fields findByThriftId(int fieldId) {
6731 switch(fieldId) {
6732 case 1:
6733 return REQ;
6734 default:
6735 return null;
6736 }
6737 }
6738
6739
6740
6741
6742
6743 public static _Fields findByThriftIdOrThrow(int fieldId) {
6744 _Fields fields = findByThriftId(fieldId);
6745 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6746 return fields;
6747 }
6748
6749
6750
6751
6752 public static _Fields findByName(String name) {
6753 return byName.get(name);
6754 }
6755
6756 private final short _thriftId;
6757 private final String _fieldName;
6758
6759 _Fields(short thriftId, String fieldName) {
6760 _thriftId = thriftId;
6761 _fieldName = fieldName;
6762 }
6763
6764 public short getThriftFieldId() {
6765 return _thriftId;
6766 }
6767
6768 public String getFieldName() {
6769 return _fieldName;
6770 }
6771 }
6772
6773
6774 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6775 static {
6776 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6777 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
6778 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetTablesReq.class)));
6779 metaDataMap = Collections.unmodifiableMap(tmpMap);
6780 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetTables_args.class, metaDataMap);
6781 }
6782
6783 public GetTables_args() {
6784 }
6785
6786 public GetTables_args(
6787 TGetTablesReq req)
6788 {
6789 this();
6790 this.req = req;
6791 }
6792
6793
6794
6795
6796 public GetTables_args(GetTables_args other) {
6797 if (other.isSetReq()) {
6798 this.req = new TGetTablesReq(other.req);
6799 }
6800 }
6801
6802 public GetTables_args deepCopy() {
6803 return new GetTables_args(this);
6804 }
6805
6806 @Override
6807 public void clear() {
6808 this.req = null;
6809 }
6810
6811 public TGetTablesReq getReq() {
6812 return this.req;
6813 }
6814
6815 public void setReq(TGetTablesReq req) {
6816 this.req = req;
6817 }
6818
6819 public void unsetReq() {
6820 this.req = null;
6821 }
6822
6823
6824 public boolean isSetReq() {
6825 return this.req != null;
6826 }
6827
6828 public void setReqIsSet(boolean value) {
6829 if (!value) {
6830 this.req = null;
6831 }
6832 }
6833
6834 public void setFieldValue(_Fields field, Object value) {
6835 switch (field) {
6836 case REQ:
6837 if (value == null) {
6838 unsetReq();
6839 } else {
6840 setReq((TGetTablesReq)value);
6841 }
6842 break;
6843
6844 }
6845 }
6846
6847 public Object getFieldValue(_Fields field) {
6848 switch (field) {
6849 case REQ:
6850 return getReq();
6851
6852 }
6853 throw new IllegalStateException();
6854 }
6855
6856
6857 public boolean isSet(_Fields field) {
6858 if (field == null) {
6859 throw new IllegalArgumentException();
6860 }
6861
6862 switch (field) {
6863 case REQ:
6864 return isSetReq();
6865 }
6866 throw new IllegalStateException();
6867 }
6868
6869 @Override
6870 public boolean equals(Object that) {
6871 if (that == null)
6872 return false;
6873 if (that instanceof GetTables_args)
6874 return this.equals((GetTables_args)that);
6875 return false;
6876 }
6877
6878 public boolean equals(GetTables_args that) {
6879 if (that == null)
6880 return false;
6881
6882 boolean this_present_req = true && this.isSetReq();
6883 boolean that_present_req = true && that.isSetReq();
6884 if (this_present_req || that_present_req) {
6885 if (!(this_present_req && that_present_req))
6886 return false;
6887 if (!this.req.equals(that.req))
6888 return false;
6889 }
6890
6891 return true;
6892 }
6893
6894 @Override
6895 public int hashCode() {
6896 HashCodeBuilder builder = new HashCodeBuilder();
6897
6898 boolean present_req = true && (isSetReq());
6899 builder.append(present_req);
6900 if (present_req)
6901 builder.append(req);
6902
6903 return builder.toHashCode();
6904 }
6905
6906 public int compareTo(GetTables_args other) {
6907 if (!getClass().equals(other.getClass())) {
6908 return getClass().getName().compareTo(other.getClass().getName());
6909 }
6910
6911 int lastComparison = 0;
6912 GetTables_args typedOther = (GetTables_args)other;
6913
6914 lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq());
6915 if (lastComparison != 0) {
6916 return lastComparison;
6917 }
6918 if (isSetReq()) {
6919 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req);
6920 if (lastComparison != 0) {
6921 return lastComparison;
6922 }
6923 }
6924 return 0;
6925 }
6926
6927 public _Fields fieldForId(int fieldId) {
6928 return _Fields.findByThriftId(fieldId);
6929 }
6930
6931 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6932 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6933 }
6934
6935 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6936 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6937 }
6938
6939 @Override
6940 public String toString() {
6941 StringBuilder sb = new StringBuilder("GetTables_args(");
6942 boolean first = true;
6943
6944 sb.append("req:");
6945 if (this.req == null) {
6946 sb.append("null");
6947 } else {
6948 sb.append(this.req);
6949 }
6950 first = false;
6951 sb.append(")");
6952 return sb.toString();
6953 }
6954
6955 public void validate() throws org.apache.thrift.TException {
6956
6957
6958 if (req != null) {
6959 req.validate();
6960 }
6961 }
6962
6963 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6964 try {
6965 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6966 } catch (org.apache.thrift.TException te) {
6967 throw new java.io.IOException(te);
6968 }
6969 }
6970
6971 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6972 try {
6973 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6974 } catch (org.apache.thrift.TException te) {
6975 throw new java.io.IOException(te);
6976 }
6977 }
6978
6979 private static class GetTables_argsStandardSchemeFactory implements SchemeFactory {
6980 public GetTables_argsStandardScheme getScheme() {
6981 return new GetTables_argsStandardScheme();
6982 }
6983 }
6984
6985 private static class GetTables_argsStandardScheme extends StandardScheme<GetTables_args> {
6986
6987 public void read(org.apache.thrift.protocol.TProtocol iprot, GetTables_args struct) throws org.apache.thrift.TException {
6988 org.apache.thrift.protocol.TField schemeField;
6989 iprot.readStructBegin();
6990 while (true)
6991 {
6992 schemeField = iprot.readFieldBegin();
6993 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6994 break;
6995 }
6996 switch (schemeField.id) {
6997 case 1:
6998 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
6999 struct.req = new TGetTablesReq();
7000 struct.req.read(iprot);
7001 struct.setReqIsSet(true);
7002 } else {
7003 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7004 }
7005 break;
7006 default:
7007 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7008 }
7009 iprot.readFieldEnd();
7010 }
7011 iprot.readStructEnd();
7012 struct.validate();
7013 }
7014
7015 public void write(org.apache.thrift.protocol.TProtocol oprot, GetTables_args struct) throws org.apache.thrift.TException {
7016 struct.validate();
7017
7018 oprot.writeStructBegin(STRUCT_DESC);
7019 if (struct.req != null) {
7020 oprot.writeFieldBegin(REQ_FIELD_DESC);
7021 struct.req.write(oprot);
7022 oprot.writeFieldEnd();
7023 }
7024 oprot.writeFieldStop();
7025 oprot.writeStructEnd();
7026 }
7027
7028 }
7029
7030 private static class GetTables_argsTupleSchemeFactory implements SchemeFactory {
7031 public GetTables_argsTupleScheme getScheme() {
7032 return new GetTables_argsTupleScheme();
7033 }
7034 }
7035
7036 private static class GetTables_argsTupleScheme extends TupleScheme<GetTables_args> {
7037
7038 @Override
7039 public void write(org.apache.thrift.protocol.TProtocol prot, GetTables_args struct) throws org.apache.thrift.TException {
7040 TTupleProtocol oprot = (TTupleProtocol) prot;
7041 BitSet optionals = new BitSet();
7042 if (struct.isSetReq()) {
7043 optionals.set(0);
7044 }
7045 oprot.writeBitSet(optionals, 1);
7046 if (struct.isSetReq()) {
7047 struct.req.write(oprot);
7048 }
7049 }
7050
7051 @Override
7052 public void read(org.apache.thrift.protocol.TProtocol prot, GetTables_args struct) throws org.apache.thrift.TException {
7053 TTupleProtocol iprot = (TTupleProtocol) prot;
7054 BitSet incoming = iprot.readBitSet(1);
7055 if (incoming.get(0)) {
7056 struct.req = new TGetTablesReq();
7057 struct.req.read(iprot);
7058 struct.setReqIsSet(true);
7059 }
7060 }
7061 }
7062
7063 }
7064
7065 public static class GetTables_result implements org.apache.thrift.TBase<GetTables_result, GetTables_result._Fields>, java.io.Serializable, Cloneable {
7066 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTables_result");
7067
7068 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);
7069
7070 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7071 static {
7072 schemes.put(StandardScheme.class, new GetTables_resultStandardSchemeFactory());
7073 schemes.put(TupleScheme.class, new GetTables_resultTupleSchemeFactory());
7074 }
7075
7076 private TGetTablesResp success;
7077
7078
7079 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7080 SUCCESS((short)0, "success");
7081
7082 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7083
7084 static {
7085 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7086 byName.put(field.getFieldName(), field);
7087 }
7088 }
7089
7090
7091
7092
7093 public static _Fields findByThriftId(int fieldId) {
7094 switch(fieldId) {
7095 case 0:
7096 return SUCCESS;
7097 default:
7098 return null;
7099 }
7100 }
7101
7102
7103
7104
7105
7106 public static _Fields findByThriftIdOrThrow(int fieldId) {
7107 _Fields fields = findByThriftId(fieldId);
7108 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7109 return fields;
7110 }
7111
7112
7113
7114
7115 public static _Fields findByName(String name) {
7116 return byName.get(name);
7117 }
7118
7119 private final short _thriftId;
7120 private final String _fieldName;
7121
7122 _Fields(short thriftId, String fieldName) {
7123 _thriftId = thriftId;
7124 _fieldName = fieldName;
7125 }
7126
7127 public short getThriftFieldId() {
7128 return _thriftId;
7129 }
7130
7131 public String getFieldName() {
7132 return _fieldName;
7133 }
7134 }
7135
7136
7137 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7138 static {
7139 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7140 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
7141 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetTablesResp.class)));
7142 metaDataMap = Collections.unmodifiableMap(tmpMap);
7143 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetTables_result.class, metaDataMap);
7144 }
7145
7146 public GetTables_result() {
7147 }
7148
7149 public GetTables_result(
7150 TGetTablesResp success)
7151 {
7152 this();
7153 this.success = success;
7154 }
7155
7156
7157
7158
7159 public GetTables_result(GetTables_result other) {
7160 if (other.isSetSuccess()) {
7161 this.success = new TGetTablesResp(other.success);
7162 }
7163 }
7164
7165 public GetTables_result deepCopy() {
7166 return new GetTables_result(this);
7167 }
7168
7169 @Override
7170 public void clear() {
7171 this.success = null;
7172 }
7173
7174 public TGetTablesResp getSuccess() {
7175 return this.success;
7176 }
7177
7178 public void setSuccess(TGetTablesResp success) {
7179 this.success = success;
7180 }
7181
7182 public void unsetSuccess() {
7183 this.success = null;
7184 }
7185
7186
7187 public boolean isSetSuccess() {
7188 return this.success != null;
7189 }
7190
7191 public void setSuccessIsSet(boolean value) {
7192 if (!value) {
7193 this.success = null;
7194 }
7195 }
7196
7197 public void setFieldValue(_Fields field, Object value) {
7198 switch (field) {
7199 case SUCCESS:
7200 if (value == null) {
7201 unsetSuccess();
7202 } else {
7203 setSuccess((TGetTablesResp)value);
7204 }
7205 break;
7206
7207 }
7208 }
7209
7210 public Object getFieldValue(_Fields field) {
7211 switch (field) {
7212 case SUCCESS:
7213 return getSuccess();
7214
7215 }
7216 throw new IllegalStateException();
7217 }
7218
7219
7220 public boolean isSet(_Fields field) {
7221 if (field == null) {
7222 throw new IllegalArgumentException();
7223 }
7224
7225 switch (field) {
7226 case SUCCESS:
7227 return isSetSuccess();
7228 }
7229 throw new IllegalStateException();
7230 }
7231
7232 @Override
7233 public boolean equals(Object that) {
7234 if (that == null)
7235 return false;
7236 if (that instanceof GetTables_result)
7237 return this.equals((GetTables_result)that);
7238 return false;
7239 }
7240
7241 public boolean equals(GetTables_result that) {
7242 if (that == null)
7243 return false;
7244
7245 boolean this_present_success = true && this.isSetSuccess();
7246 boolean that_present_success = true && that.isSetSuccess();
7247 if (this_present_success || that_present_success) {
7248 if (!(this_present_success && that_present_success))
7249 return false;
7250 if (!this.success.equals(that.success))
7251 return false;
7252 }
7253
7254 return true;
7255 }
7256
7257 @Override
7258 public int hashCode() {
7259 HashCodeBuilder builder = new HashCodeBuilder();
7260
7261 boolean present_success = true && (isSetSuccess());
7262 builder.append(present_success);
7263 if (present_success)
7264 builder.append(success);
7265
7266 return builder.toHashCode();
7267 }
7268
7269 public int compareTo(GetTables_result other) {
7270 if (!getClass().equals(other.getClass())) {
7271 return getClass().getName().compareTo(other.getClass().getName());
7272 }
7273
7274 int lastComparison = 0;
7275 GetTables_result typedOther = (GetTables_result)other;
7276
7277 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7278 if (lastComparison != 0) {
7279 return lastComparison;
7280 }
7281 if (isSetSuccess()) {
7282 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7283 if (lastComparison != 0) {
7284 return lastComparison;
7285 }
7286 }
7287 return 0;
7288 }
7289
7290 public _Fields fieldForId(int fieldId) {
7291 return _Fields.findByThriftId(fieldId);
7292 }
7293
7294 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7295 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7296 }
7297
7298 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7299 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7300 }
7301
7302 @Override
7303 public String toString() {
7304 StringBuilder sb = new StringBuilder("GetTables_result(");
7305 boolean first = true;
7306
7307 sb.append("success:");
7308 if (this.success == null) {
7309 sb.append("null");
7310 } else {
7311 sb.append(this.success);
7312 }
7313 first = false;
7314 sb.append(")");
7315 return sb.toString();
7316 }
7317
7318 public void validate() throws org.apache.thrift.TException {
7319
7320
7321 if (success != null) {
7322 success.validate();
7323 }
7324 }
7325
7326 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7327 try {
7328 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7329 } catch (org.apache.thrift.TException te) {
7330 throw new java.io.IOException(te);
7331 }
7332 }
7333
7334 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7335 try {
7336 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7337 } catch (org.apache.thrift.TException te) {
7338 throw new java.io.IOException(te);
7339 }
7340 }
7341
7342 private static class GetTables_resultStandardSchemeFactory implements SchemeFactory {
7343 public GetTables_resultStandardScheme getScheme() {
7344 return new GetTables_resultStandardScheme();
7345 }
7346 }
7347
7348 private static class GetTables_resultStandardScheme extends StandardScheme<GetTables_result> {
7349
7350 public void read(org.apache.thrift.protocol.TProtocol iprot, GetTables_result struct) throws org.apache.thrift.TException {
7351 org.apache.thrift.protocol.TField schemeField;
7352 iprot.readStructBegin();
7353 while (true)
7354 {
7355 schemeField = iprot.readFieldBegin();
7356 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7357 break;
7358 }
7359 switch (schemeField.id) {
7360 case 0:
7361 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
7362 struct.success = new TGetTablesResp();
7363 struct.success.read(iprot);
7364 struct.setSuccessIsSet(true);
7365 } else {
7366 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7367 }
7368 break;
7369 default:
7370 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7371 }
7372 iprot.readFieldEnd();
7373 }
7374 iprot.readStructEnd();
7375 struct.validate();
7376 }
7377
7378 public void write(org.apache.thrift.protocol.TProtocol oprot, GetTables_result struct) throws org.apache.thrift.TException {
7379 struct.validate();
7380
7381 oprot.writeStructBegin(STRUCT_DESC);
7382 if (struct.success != null) {
7383 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7384 struct.success.write(oprot);
7385 oprot.writeFieldEnd();
7386 }
7387 oprot.writeFieldStop();
7388 oprot.writeStructEnd();
7389 }
7390
7391 }
7392
7393 private static class GetTables_resultTupleSchemeFactory implements SchemeFactory {
7394 public GetTables_resultTupleScheme getScheme() {
7395 return new GetTables_resultTupleScheme();
7396 }
7397 }
7398
7399 private static class GetTables_resultTupleScheme extends TupleScheme<GetTables_result> {
7400
7401 @Override
7402 public void write(org.apache.thrift.protocol.TProtocol prot, GetTables_result struct) throws org.apache.thrift.TException {
7403 TTupleProtocol oprot = (TTupleProtocol) prot;
7404 BitSet optionals = new BitSet();
7405 if (struct.isSetSuccess()) {
7406 optionals.set(0);
7407 }
7408 oprot.writeBitSet(optionals, 1);
7409 if (struct.isSetSuccess()) {
7410 struct.success.write(oprot);
7411 }
7412 }
7413
7414 @Override
7415 public void read(org.apache.thrift.protocol.TProtocol prot, GetTables_result struct) throws org.apache.thrift.TException {
7416 TTupleProtocol iprot = (TTupleProtocol) prot;
7417 BitSet incoming = iprot.readBitSet(1);
7418 if (incoming.get(0)) {
7419 struct.success = new TGetTablesResp();
7420 struct.success.read(iprot);
7421 struct.setSuccessIsSet(true);
7422 }
7423 }
7424 }
7425
7426 }
7427
7428 public static class GetTableTypes_args implements org.apache.thrift.TBase<GetTableTypes_args, GetTableTypes_args._Fields>, java.io.Serializable, Cloneable {
7429 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTableTypes_args");
7430
7431 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);
7432
7433 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7434 static {
7435 schemes.put(StandardScheme.class, new GetTableTypes_argsStandardSchemeFactory());
7436 schemes.put(TupleScheme.class, new GetTableTypes_argsTupleSchemeFactory());
7437 }
7438
7439 private TGetTableTypesReq req;
7440
7441
7442 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7443 REQ((short)1, "req");
7444
7445 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7446
7447 static {
7448 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7449 byName.put(field.getFieldName(), field);
7450 }
7451 }
7452
7453
7454
7455
7456 public static _Fields findByThriftId(int fieldId) {
7457 switch(fieldId) {
7458 case 1:
7459 return REQ;
7460 default:
7461 return null;
7462 }
7463 }
7464
7465
7466
7467
7468
7469 public static _Fields findByThriftIdOrThrow(int fieldId) {
7470 _Fields fields = findByThriftId(fieldId);
7471 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7472 return fields;
7473 }
7474
7475
7476
7477
7478 public static _Fields findByName(String name) {
7479 return byName.get(name);
7480 }
7481
7482 private final short _thriftId;
7483 private final String _fieldName;
7484
7485 _Fields(short thriftId, String fieldName) {
7486 _thriftId = thriftId;
7487 _fieldName = fieldName;
7488 }
7489
7490 public short getThriftFieldId() {
7491 return _thriftId;
7492 }
7493
7494 public String getFieldName() {
7495 return _fieldName;
7496 }
7497 }
7498
7499
7500 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7501 static {
7502 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7503 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
7504 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetTableTypesReq.class)));
7505 metaDataMap = Collections.unmodifiableMap(tmpMap);
7506 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetTableTypes_args.class, metaDataMap);
7507 }
7508
7509 public GetTableTypes_args() {
7510 }
7511
7512 public GetTableTypes_args(
7513 TGetTableTypesReq req)
7514 {
7515 this();
7516 this.req = req;
7517 }
7518
7519
7520
7521
7522 public GetTableTypes_args(GetTableTypes_args other) {
7523 if (other.isSetReq()) {
7524 this.req = new TGetTableTypesReq(other.req);
7525 }
7526 }
7527
7528 public GetTableTypes_args deepCopy() {
7529 return new GetTableTypes_args(this);
7530 }
7531
7532 @Override
7533 public void clear() {
7534 this.req = null;
7535 }
7536
7537 public TGetTableTypesReq getReq() {
7538 return this.req;
7539 }
7540
7541 public void setReq(TGetTableTypesReq req) {
7542 this.req = req;
7543 }
7544
7545 public void unsetReq() {
7546 this.req = null;
7547 }
7548
7549
7550 public boolean isSetReq() {
7551 return this.req != null;
7552 }
7553
7554 public void setReqIsSet(boolean value) {
7555 if (!value) {
7556 this.req = null;
7557 }
7558 }
7559
7560 public void setFieldValue(_Fields field, Object value) {
7561 switch (field) {
7562 case REQ:
7563 if (value == null) {
7564 unsetReq();
7565 } else {
7566 setReq((TGetTableTypesReq)value);
7567 }
7568 break;
7569
7570 }
7571 }
7572
7573 public Object getFieldValue(_Fields field) {
7574 switch (field) {
7575 case REQ:
7576 return getReq();
7577
7578 }
7579 throw new IllegalStateException();
7580 }
7581
7582
7583 public boolean isSet(_Fields field) {
7584 if (field == null) {
7585 throw new IllegalArgumentException();
7586 }
7587
7588 switch (field) {
7589 case REQ:
7590 return isSetReq();
7591 }
7592 throw new IllegalStateException();
7593 }
7594
7595 @Override
7596 public boolean equals(Object that) {
7597 if (that == null)
7598 return false;
7599 if (that instanceof GetTableTypes_args)
7600 return this.equals((GetTableTypes_args)that);
7601 return false;
7602 }
7603
7604 public boolean equals(GetTableTypes_args that) {
7605 if (that == null)
7606 return false;
7607
7608 boolean this_present_req = true && this.isSetReq();
7609 boolean that_present_req = true && that.isSetReq();
7610 if (this_present_req || that_present_req) {
7611 if (!(this_present_req && that_present_req))
7612 return false;
7613 if (!this.req.equals(that.req))
7614 return false;
7615 }
7616
7617 return true;
7618 }
7619
7620 @Override
7621 public int hashCode() {
7622 HashCodeBuilder builder = new HashCodeBuilder();
7623
7624 boolean present_req = true && (isSetReq());
7625 builder.append(present_req);
7626 if (present_req)
7627 builder.append(req);
7628
7629 return builder.toHashCode();
7630 }
7631
7632 public int compareTo(GetTableTypes_args other) {
7633 if (!getClass().equals(other.getClass())) {
7634 return getClass().getName().compareTo(other.getClass().getName());
7635 }
7636
7637 int lastComparison = 0;
7638 GetTableTypes_args typedOther = (GetTableTypes_args)other;
7639
7640 lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq());
7641 if (lastComparison != 0) {
7642 return lastComparison;
7643 }
7644 if (isSetReq()) {
7645 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req);
7646 if (lastComparison != 0) {
7647 return lastComparison;
7648 }
7649 }
7650 return 0;
7651 }
7652
7653 public _Fields fieldForId(int fieldId) {
7654 return _Fields.findByThriftId(fieldId);
7655 }
7656
7657 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7658 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7659 }
7660
7661 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7662 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7663 }
7664
7665 @Override
7666 public String toString() {
7667 StringBuilder sb = new StringBuilder("GetTableTypes_args(");
7668 boolean first = true;
7669
7670 sb.append("req:");
7671 if (this.req == null) {
7672 sb.append("null");
7673 } else {
7674 sb.append(this.req);
7675 }
7676 first = false;
7677 sb.append(")");
7678 return sb.toString();
7679 }
7680
7681 public void validate() throws org.apache.thrift.TException {
7682
7683
7684 if (req != null) {
7685 req.validate();
7686 }
7687 }
7688
7689 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7690 try {
7691 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7692 } catch (org.apache.thrift.TException te) {
7693 throw new java.io.IOException(te);
7694 }
7695 }
7696
7697 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7698 try {
7699 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7700 } catch (org.apache.thrift.TException te) {
7701 throw new java.io.IOException(te);
7702 }
7703 }
7704
7705 private static class GetTableTypes_argsStandardSchemeFactory implements SchemeFactory {
7706 public GetTableTypes_argsStandardScheme getScheme() {
7707 return new GetTableTypes_argsStandardScheme();
7708 }
7709 }
7710
7711 private static class GetTableTypes_argsStandardScheme extends StandardScheme<GetTableTypes_args> {
7712
7713 public void read(org.apache.thrift.protocol.TProtocol iprot, GetTableTypes_args struct) throws org.apache.thrift.TException {
7714 org.apache.thrift.protocol.TField schemeField;
7715 iprot.readStructBegin();
7716 while (true)
7717 {
7718 schemeField = iprot.readFieldBegin();
7719 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7720 break;
7721 }
7722 switch (schemeField.id) {
7723 case 1:
7724 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
7725 struct.req = new TGetTableTypesReq();
7726 struct.req.read(iprot);
7727 struct.setReqIsSet(true);
7728 } else {
7729 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7730 }
7731 break;
7732 default:
7733 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7734 }
7735 iprot.readFieldEnd();
7736 }
7737 iprot.readStructEnd();
7738 struct.validate();
7739 }
7740
7741 public void write(org.apache.thrift.protocol.TProtocol oprot, GetTableTypes_args struct) throws org.apache.thrift.TException {
7742 struct.validate();
7743
7744 oprot.writeStructBegin(STRUCT_DESC);
7745 if (struct.req != null) {
7746 oprot.writeFieldBegin(REQ_FIELD_DESC);
7747 struct.req.write(oprot);
7748 oprot.writeFieldEnd();
7749 }
7750 oprot.writeFieldStop();
7751 oprot.writeStructEnd();
7752 }
7753
7754 }
7755
7756 private static class GetTableTypes_argsTupleSchemeFactory implements SchemeFactory {
7757 public GetTableTypes_argsTupleScheme getScheme() {
7758 return new GetTableTypes_argsTupleScheme();
7759 }
7760 }
7761
7762 private static class GetTableTypes_argsTupleScheme extends TupleScheme<GetTableTypes_args> {
7763
7764 @Override
7765 public void write(org.apache.thrift.protocol.TProtocol prot, GetTableTypes_args struct) throws org.apache.thrift.TException {
7766 TTupleProtocol oprot = (TTupleProtocol) prot;
7767 BitSet optionals = new BitSet();
7768 if (struct.isSetReq()) {
7769 optionals.set(0);
7770 }
7771 oprot.writeBitSet(optionals, 1);
7772 if (struct.isSetReq()) {
7773 struct.req.write(oprot);
7774 }
7775 }
7776
7777 @Override
7778 public void read(org.apache.thrift.protocol.TProtocol prot, GetTableTypes_args struct) throws org.apache.thrift.TException {
7779 TTupleProtocol iprot = (TTupleProtocol) prot;
7780 BitSet incoming = iprot.readBitSet(1);
7781 if (incoming.get(0)) {
7782 struct.req = new TGetTableTypesReq();
7783 struct.req.read(iprot);
7784 struct.setReqIsSet(true);
7785 }
7786 }
7787 }
7788
7789 }
7790
7791 public static class GetTableTypes_result implements org.apache.thrift.TBase<GetTableTypes_result, GetTableTypes_result._Fields>, java.io.Serializable, Cloneable {
7792 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTableTypes_result");
7793
7794 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);
7795
7796 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7797 static {
7798 schemes.put(StandardScheme.class, new GetTableTypes_resultStandardSchemeFactory());
7799 schemes.put(TupleScheme.class, new GetTableTypes_resultTupleSchemeFactory());
7800 }
7801
7802 private TGetTableTypesResp success;
7803
7804
7805 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7806 SUCCESS((short)0, "success");
7807
7808 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7809
7810 static {
7811 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7812 byName.put(field.getFieldName(), field);
7813 }
7814 }
7815
7816
7817
7818
7819 public static _Fields findByThriftId(int fieldId) {
7820 switch(fieldId) {
7821 case 0:
7822 return SUCCESS;
7823 default:
7824 return null;
7825 }
7826 }
7827
7828
7829
7830
7831
7832 public static _Fields findByThriftIdOrThrow(int fieldId) {
7833 _Fields fields = findByThriftId(fieldId);
7834 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7835 return fields;
7836 }
7837
7838
7839
7840
7841 public static _Fields findByName(String name) {
7842 return byName.get(name);
7843 }
7844
7845 private final short _thriftId;
7846 private final String _fieldName;
7847
7848 _Fields(short thriftId, String fieldName) {
7849 _thriftId = thriftId;
7850 _fieldName = fieldName;
7851 }
7852
7853 public short getThriftFieldId() {
7854 return _thriftId;
7855 }
7856
7857 public String getFieldName() {
7858 return _fieldName;
7859 }
7860 }
7861
7862
7863 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7864 static {
7865 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7866 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
7867 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetTableTypesResp.class)));
7868 metaDataMap = Collections.unmodifiableMap(tmpMap);
7869 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetTableTypes_result.class, metaDataMap);
7870 }
7871
7872 public GetTableTypes_result() {
7873 }
7874
7875 public GetTableTypes_result(
7876 TGetTableTypesResp success)
7877 {
7878 this();
7879 this.success = success;
7880 }
7881
7882
7883
7884
7885 public GetTableTypes_result(GetTableTypes_result other) {
7886 if (other.isSetSuccess()) {
7887 this.success = new TGetTableTypesResp(other.success);
7888 }
7889 }
7890
7891 public GetTableTypes_result deepCopy() {
7892 return new GetTableTypes_result(this);
7893 }
7894
7895 @Override
7896 public void clear() {
7897 this.success = null;
7898 }
7899
7900 public TGetTableTypesResp getSuccess() {
7901 return this.success;
7902 }
7903
7904 public void setSuccess(TGetTableTypesResp success) {
7905 this.success = success;
7906 }
7907
7908 public void unsetSuccess() {
7909 this.success = null;
7910 }
7911
7912
7913 public boolean isSetSuccess() {
7914 return this.success != null;
7915 }
7916
7917 public void setSuccessIsSet(boolean value) {
7918 if (!value) {
7919 this.success = null;
7920 }
7921 }
7922
7923 public void setFieldValue(_Fields field, Object value) {
7924 switch (field) {
7925 case SUCCESS:
7926 if (value == null) {
7927 unsetSuccess();
7928 } else {
7929 setSuccess((TGetTableTypesResp)value);
7930 }
7931 break;
7932
7933 }
7934 }
7935
7936 public Object getFieldValue(_Fields field) {
7937 switch (field) {
7938 case SUCCESS:
7939 return getSuccess();
7940
7941 }
7942 throw new IllegalStateException();
7943 }
7944
7945
7946 public boolean isSet(_Fields field) {
7947 if (field == null) {
7948 throw new IllegalArgumentException();
7949 }
7950
7951 switch (field) {
7952 case SUCCESS:
7953 return isSetSuccess();
7954 }
7955 throw new IllegalStateException();
7956 }
7957
7958 @Override
7959 public boolean equals(Object that) {
7960 if (that == null)
7961 return false;
7962 if (that instanceof GetTableTypes_result)
7963 return this.equals((GetTableTypes_result)that);
7964 return false;
7965 }
7966
7967 public boolean equals(GetTableTypes_result that) {
7968 if (that == null)
7969 return false;
7970
7971 boolean this_present_success = true && this.isSetSuccess();
7972 boolean that_present_success = true && that.isSetSuccess();
7973 if (this_present_success || that_present_success) {
7974 if (!(this_present_success && that_present_success))
7975 return false;
7976 if (!this.success.equals(that.success))
7977 return false;
7978 }
7979
7980 return true;
7981 }
7982
7983 @Override
7984 public int hashCode() {
7985 HashCodeBuilder builder = new HashCodeBuilder();
7986
7987 boolean present_success = true && (isSetSuccess());
7988 builder.append(present_success);
7989 if (present_success)
7990 builder.append(success);
7991
7992 return builder.toHashCode();
7993 }
7994
7995 public int compareTo(GetTableTypes_result other) {
7996 if (!getClass().equals(other.getClass())) {
7997 return getClass().getName().compareTo(other.getClass().getName());
7998 }
7999
8000 int lastComparison = 0;
8001 GetTableTypes_result typedOther = (GetTableTypes_result)other;
8002
8003 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8004 if (lastComparison != 0) {
8005 return lastComparison;
8006 }
8007 if (isSetSuccess()) {
8008 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8009 if (lastComparison != 0) {
8010 return lastComparison;
8011 }
8012 }
8013 return 0;
8014 }
8015
8016 public _Fields fieldForId(int fieldId) {
8017 return _Fields.findByThriftId(fieldId);
8018 }
8019
8020 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8021 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8022 }
8023
8024 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8025 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8026 }
8027
8028 @Override
8029 public String toString() {
8030 StringBuilder sb = new StringBuilder("GetTableTypes_result(");
8031 boolean first = true;
8032
8033 sb.append("success:");
8034 if (this.success == null) {
8035 sb.append("null");
8036 } else {
8037 sb.append(this.success);
8038 }
8039 first = false;
8040 sb.append(")");
8041 return sb.toString();
8042 }
8043
8044 public void validate() throws org.apache.thrift.TException {
8045
8046
8047 if (success != null) {
8048 success.validate();
8049 }
8050 }
8051
8052 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8053 try {
8054 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8055 } catch (org.apache.thrift.TException te) {
8056 throw new java.io.IOException(te);
8057 }
8058 }
8059
8060 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8061 try {
8062 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8063 } catch (org.apache.thrift.TException te) {
8064 throw new java.io.IOException(te);
8065 }
8066 }
8067
8068 private static class GetTableTypes_resultStandardSchemeFactory implements SchemeFactory {
8069 public GetTableTypes_resultStandardScheme getScheme() {
8070 return new GetTableTypes_resultStandardScheme();
8071 }
8072 }
8073
8074 private static class GetTableTypes_resultStandardScheme extends StandardScheme<GetTableTypes_result> {
8075
8076 public void read(org.apache.thrift.protocol.TProtocol iprot, GetTableTypes_result struct) throws org.apache.thrift.TException {
8077 org.apache.thrift.protocol.TField schemeField;
8078 iprot.readStructBegin();
8079 while (true)
8080 {
8081 schemeField = iprot.readFieldBegin();
8082 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8083 break;
8084 }
8085 switch (schemeField.id) {
8086 case 0:
8087 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
8088 struct.success = new TGetTableTypesResp();
8089 struct.success.read(iprot);
8090 struct.setSuccessIsSet(true);
8091 } else {
8092 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8093 }
8094 break;
8095 default:
8096 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8097 }
8098 iprot.readFieldEnd();
8099 }
8100 iprot.readStructEnd();
8101 struct.validate();
8102 }
8103
8104 public void write(org.apache.thrift.protocol.TProtocol oprot, GetTableTypes_result struct) throws org.apache.thrift.TException {
8105 struct.validate();
8106
8107 oprot.writeStructBegin(STRUCT_DESC);
8108 if (struct.success != null) {
8109 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8110 struct.success.write(oprot);
8111 oprot.writeFieldEnd();
8112 }
8113 oprot.writeFieldStop();
8114 oprot.writeStructEnd();
8115 }
8116
8117 }
8118
8119 private static class GetTableTypes_resultTupleSchemeFactory implements SchemeFactory {
8120 public GetTableTypes_resultTupleScheme getScheme() {
8121 return new GetTableTypes_resultTupleScheme();
8122 }
8123 }
8124
8125 private static class GetTableTypes_resultTupleScheme extends TupleScheme<GetTableTypes_result> {
8126
8127 @Override
8128 public void write(org.apache.thrift.protocol.TProtocol prot, GetTableTypes_result struct) throws org.apache.thrift.TException {
8129 TTupleProtocol oprot = (TTupleProtocol) prot;
8130 BitSet optionals = new BitSet();
8131 if (struct.isSetSuccess()) {
8132 optionals.set(0);
8133 }
8134 oprot.writeBitSet(optionals, 1);
8135 if (struct.isSetSuccess()) {
8136 struct.success.write(oprot);
8137 }
8138 }
8139
8140 @Override
8141 public void read(org.apache.thrift.protocol.TProtocol prot, GetTableTypes_result struct) throws org.apache.thrift.TException {
8142 TTupleProtocol iprot = (TTupleProtocol) prot;
8143 BitSet incoming = iprot.readBitSet(1);
8144 if (incoming.get(0)) {
8145 struct.success = new TGetTableTypesResp();
8146 struct.success.read(iprot);
8147 struct.setSuccessIsSet(true);
8148 }
8149 }
8150 }
8151
8152 }
8153
8154 public static class GetColumns_args implements org.apache.thrift.TBase<GetColumns_args, GetColumns_args._Fields>, java.io.Serializable, Cloneable {
8155 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetColumns_args");
8156
8157 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);
8158
8159 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8160 static {
8161 schemes.put(StandardScheme.class, new GetColumns_argsStandardSchemeFactory());
8162 schemes.put(TupleScheme.class, new GetColumns_argsTupleSchemeFactory());
8163 }
8164
8165 private TGetColumnsReq req;
8166
8167
8168 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8169 REQ((short)1, "req");
8170
8171 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8172
8173 static {
8174 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8175 byName.put(field.getFieldName(), field);
8176 }
8177 }
8178
8179
8180
8181
8182 public static _Fields findByThriftId(int fieldId) {
8183 switch(fieldId) {
8184 case 1:
8185 return REQ;
8186 default:
8187 return null;
8188 }
8189 }
8190
8191
8192
8193
8194
8195 public static _Fields findByThriftIdOrThrow(int fieldId) {
8196 _Fields fields = findByThriftId(fieldId);
8197 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8198 return fields;
8199 }
8200
8201
8202
8203
8204 public static _Fields findByName(String name) {
8205 return byName.get(name);
8206 }
8207
8208 private final short _thriftId;
8209 private final String _fieldName;
8210
8211 _Fields(short thriftId, String fieldName) {
8212 _thriftId = thriftId;
8213 _fieldName = fieldName;
8214 }
8215
8216 public short getThriftFieldId() {
8217 return _thriftId;
8218 }
8219
8220 public String getFieldName() {
8221 return _fieldName;
8222 }
8223 }
8224
8225
8226 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8227 static {
8228 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8229 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
8230 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetColumnsReq.class)));
8231 metaDataMap = Collections.unmodifiableMap(tmpMap);
8232 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetColumns_args.class, metaDataMap);
8233 }
8234
8235 public GetColumns_args() {
8236 }
8237
8238 public GetColumns_args(
8239 TGetColumnsReq req)
8240 {
8241 this();
8242 this.req = req;
8243 }
8244
8245
8246
8247
8248 public GetColumns_args(GetColumns_args other) {
8249 if (other.isSetReq()) {
8250 this.req = new TGetColumnsReq(other.req);
8251 }
8252 }
8253
8254 public GetColumns_args deepCopy() {
8255 return new GetColumns_args(this);
8256 }
8257
8258 @Override
8259 public void clear() {
8260 this.req = null;
8261 }
8262
8263 public TGetColumnsReq getReq() {
8264 return this.req;
8265 }
8266
8267 public void setReq(TGetColumnsReq req) {
8268 this.req = req;
8269 }
8270
8271 public void unsetReq() {
8272 this.req = null;
8273 }
8274
8275
8276 public boolean isSetReq() {
8277 return this.req != null;
8278 }
8279
8280 public void setReqIsSet(boolean value) {
8281 if (!value) {
8282 this.req = null;
8283 }
8284 }
8285
8286 public void setFieldValue(_Fields field, Object value) {
8287 switch (field) {
8288 case REQ:
8289 if (value == null) {
8290 unsetReq();
8291 } else {
8292 setReq((TGetColumnsReq)value);
8293 }
8294 break;
8295
8296 }
8297 }
8298
8299 public Object getFieldValue(_Fields field) {
8300 switch (field) {
8301 case REQ:
8302 return getReq();
8303
8304 }
8305 throw new IllegalStateException();
8306 }
8307
8308
8309 public boolean isSet(_Fields field) {
8310 if (field == null) {
8311 throw new IllegalArgumentException();
8312 }
8313
8314 switch (field) {
8315 case REQ:
8316 return isSetReq();
8317 }
8318 throw new IllegalStateException();
8319 }
8320
8321 @Override
8322 public boolean equals(Object that) {
8323 if (that == null)
8324 return false;
8325 if (that instanceof GetColumns_args)
8326 return this.equals((GetColumns_args)that);
8327 return false;
8328 }
8329
8330 public boolean equals(GetColumns_args that) {
8331 if (that == null)
8332 return false;
8333
8334 boolean this_present_req = true && this.isSetReq();
8335 boolean that_present_req = true && that.isSetReq();
8336 if (this_present_req || that_present_req) {
8337 if (!(this_present_req && that_present_req))
8338 return false;
8339 if (!this.req.equals(that.req))
8340 return false;
8341 }
8342
8343 return true;
8344 }
8345
8346 @Override
8347 public int hashCode() {
8348 HashCodeBuilder builder = new HashCodeBuilder();
8349
8350 boolean present_req = true && (isSetReq());
8351 builder.append(present_req);
8352 if (present_req)
8353 builder.append(req);
8354
8355 return builder.toHashCode();
8356 }
8357
8358 public int compareTo(GetColumns_args other) {
8359 if (!getClass().equals(other.getClass())) {
8360 return getClass().getName().compareTo(other.getClass().getName());
8361 }
8362
8363 int lastComparison = 0;
8364 GetColumns_args typedOther = (GetColumns_args)other;
8365
8366 lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq());
8367 if (lastComparison != 0) {
8368 return lastComparison;
8369 }
8370 if (isSetReq()) {
8371 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req);
8372 if (lastComparison != 0) {
8373 return lastComparison;
8374 }
8375 }
8376 return 0;
8377 }
8378
8379 public _Fields fieldForId(int fieldId) {
8380 return _Fields.findByThriftId(fieldId);
8381 }
8382
8383 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8384 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8385 }
8386
8387 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8388 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8389 }
8390
8391 @Override
8392 public String toString() {
8393 StringBuilder sb = new StringBuilder("GetColumns_args(");
8394 boolean first = true;
8395
8396 sb.append("req:");
8397 if (this.req == null) {
8398 sb.append("null");
8399 } else {
8400 sb.append(this.req);
8401 }
8402 first = false;
8403 sb.append(")");
8404 return sb.toString();
8405 }
8406
8407 public void validate() throws org.apache.thrift.TException {
8408
8409
8410 if (req != null) {
8411 req.validate();
8412 }
8413 }
8414
8415 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8416 try {
8417 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8418 } catch (org.apache.thrift.TException te) {
8419 throw new java.io.IOException(te);
8420 }
8421 }
8422
8423 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8424 try {
8425 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8426 } catch (org.apache.thrift.TException te) {
8427 throw new java.io.IOException(te);
8428 }
8429 }
8430
8431 private static class GetColumns_argsStandardSchemeFactory implements SchemeFactory {
8432 public GetColumns_argsStandardScheme getScheme() {
8433 return new GetColumns_argsStandardScheme();
8434 }
8435 }
8436
8437 private static class GetColumns_argsStandardScheme extends StandardScheme<GetColumns_args> {
8438
8439 public void read(org.apache.thrift.protocol.TProtocol iprot, GetColumns_args struct) throws org.apache.thrift.TException {
8440 org.apache.thrift.protocol.TField schemeField;
8441 iprot.readStructBegin();
8442 while (true)
8443 {
8444 schemeField = iprot.readFieldBegin();
8445 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8446 break;
8447 }
8448 switch (schemeField.id) {
8449 case 1:
8450 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
8451 struct.req = new TGetColumnsReq();
8452 struct.req.read(iprot);
8453 struct.setReqIsSet(true);
8454 } else {
8455 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8456 }
8457 break;
8458 default:
8459 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8460 }
8461 iprot.readFieldEnd();
8462 }
8463 iprot.readStructEnd();
8464 struct.validate();
8465 }
8466
8467 public void write(org.apache.thrift.protocol.TProtocol oprot, GetColumns_args struct) throws org.apache.thrift.TException {
8468 struct.validate();
8469
8470 oprot.writeStructBegin(STRUCT_DESC);
8471 if (struct.req != null) {
8472 oprot.writeFieldBegin(REQ_FIELD_DESC);
8473 struct.req.write(oprot);
8474 oprot.writeFieldEnd();
8475 }
8476 oprot.writeFieldStop();
8477 oprot.writeStructEnd();
8478 }
8479
8480 }
8481
8482 private static class GetColumns_argsTupleSchemeFactory implements SchemeFactory {
8483 public GetColumns_argsTupleScheme getScheme() {
8484 return new GetColumns_argsTupleScheme();
8485 }
8486 }
8487
8488 private static class GetColumns_argsTupleScheme extends TupleScheme<GetColumns_args> {
8489
8490 @Override
8491 public void write(org.apache.thrift.protocol.TProtocol prot, GetColumns_args struct) throws org.apache.thrift.TException {
8492 TTupleProtocol oprot = (TTupleProtocol) prot;
8493 BitSet optionals = new BitSet();
8494 if (struct.isSetReq()) {
8495 optionals.set(0);
8496 }
8497 oprot.writeBitSet(optionals, 1);
8498 if (struct.isSetReq()) {
8499 struct.req.write(oprot);
8500 }
8501 }
8502
8503 @Override
8504 public void read(org.apache.thrift.protocol.TProtocol prot, GetColumns_args struct) throws org.apache.thrift.TException {
8505 TTupleProtocol iprot = (TTupleProtocol) prot;
8506 BitSet incoming = iprot.readBitSet(1);
8507 if (incoming.get(0)) {
8508 struct.req = new TGetColumnsReq();
8509 struct.req.read(iprot);
8510 struct.setReqIsSet(true);
8511 }
8512 }
8513 }
8514
8515 }
8516
8517 public static class GetColumns_result implements org.apache.thrift.TBase<GetColumns_result, GetColumns_result._Fields>, java.io.Serializable, Cloneable {
8518 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetColumns_result");
8519
8520 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);
8521
8522 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8523 static {
8524 schemes.put(StandardScheme.class, new GetColumns_resultStandardSchemeFactory());
8525 schemes.put(TupleScheme.class, new GetColumns_resultTupleSchemeFactory());
8526 }
8527
8528 private TGetColumnsResp success;
8529
8530
8531 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8532 SUCCESS((short)0, "success");
8533
8534 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8535
8536 static {
8537 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8538 byName.put(field.getFieldName(), field);
8539 }
8540 }
8541
8542
8543
8544
8545 public static _Fields findByThriftId(int fieldId) {
8546 switch(fieldId) {
8547 case 0:
8548 return SUCCESS;
8549 default:
8550 return null;
8551 }
8552 }
8553
8554
8555
8556
8557
8558 public static _Fields findByThriftIdOrThrow(int fieldId) {
8559 _Fields fields = findByThriftId(fieldId);
8560 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8561 return fields;
8562 }
8563
8564
8565
8566
8567 public static _Fields findByName(String name) {
8568 return byName.get(name);
8569 }
8570
8571 private final short _thriftId;
8572 private final String _fieldName;
8573
8574 _Fields(short thriftId, String fieldName) {
8575 _thriftId = thriftId;
8576 _fieldName = fieldName;
8577 }
8578
8579 public short getThriftFieldId() {
8580 return _thriftId;
8581 }
8582
8583 public String getFieldName() {
8584 return _fieldName;
8585 }
8586 }
8587
8588
8589 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8590 static {
8591 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8592 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
8593 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetColumnsResp.class)));
8594 metaDataMap = Collections.unmodifiableMap(tmpMap);
8595 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetColumns_result.class, metaDataMap);
8596 }
8597
8598 public GetColumns_result() {
8599 }
8600
8601 public GetColumns_result(
8602 TGetColumnsResp success)
8603 {
8604 this();
8605 this.success = success;
8606 }
8607
8608
8609
8610
8611 public GetColumns_result(GetColumns_result other) {
8612 if (other.isSetSuccess()) {
8613 this.success = new TGetColumnsResp(other.success);
8614 }
8615 }
8616
8617 public GetColumns_result deepCopy() {
8618 return new GetColumns_result(this);
8619 }
8620
8621 @Override
8622 public void clear() {
8623 this.success = null;
8624 }
8625
8626 public TGetColumnsResp getSuccess() {
8627 return this.success;
8628 }
8629
8630 public void setSuccess(TGetColumnsResp success) {
8631 this.success = success;
8632 }
8633
8634 public void unsetSuccess() {
8635 this.success = null;
8636 }
8637
8638
8639 public boolean isSetSuccess() {
8640 return this.success != null;
8641 }
8642
8643 public void setSuccessIsSet(boolean value) {
8644 if (!value) {
8645 this.success = null;
8646 }
8647 }
8648
8649 public void setFieldValue(_Fields field, Object value) {
8650 switch (field) {
8651 case SUCCESS:
8652 if (value == null) {
8653 unsetSuccess();
8654 } else {
8655 setSuccess((TGetColumnsResp)value);
8656 }
8657 break;
8658
8659 }
8660 }
8661
8662 public Object getFieldValue(_Fields field) {
8663 switch (field) {
8664 case SUCCESS:
8665 return getSuccess();
8666
8667 }
8668 throw new IllegalStateException();
8669 }
8670
8671
8672 public boolean isSet(_Fields field) {
8673 if (field == null) {
8674 throw new IllegalArgumentException();
8675 }
8676
8677 switch (field) {
8678 case SUCCESS:
8679 return isSetSuccess();
8680 }
8681 throw new IllegalStateException();
8682 }
8683
8684 @Override
8685 public boolean equals(Object that) {
8686 if (that == null)
8687 return false;
8688 if (that instanceof GetColumns_result)
8689 return this.equals((GetColumns_result)that);
8690 return false;
8691 }
8692
8693 public boolean equals(GetColumns_result that) {
8694 if (that == null)
8695 return false;
8696
8697 boolean this_present_success = true && this.isSetSuccess();
8698 boolean that_present_success = true && that.isSetSuccess();
8699 if (this_present_success || that_present_success) {
8700 if (!(this_present_success && that_present_success))
8701 return false;
8702 if (!this.success.equals(that.success))
8703 return false;
8704 }
8705
8706 return true;
8707 }
8708
8709 @Override
8710 public int hashCode() {
8711 HashCodeBuilder builder = new HashCodeBuilder();
8712
8713 boolean present_success = true && (isSetSuccess());
8714 builder.append(present_success);
8715 if (present_success)
8716 builder.append(success);
8717
8718 return builder.toHashCode();
8719 }
8720
8721 public int compareTo(GetColumns_result other) {
8722 if (!getClass().equals(other.getClass())) {
8723 return getClass().getName().compareTo(other.getClass().getName());
8724 }
8725
8726 int lastComparison = 0;
8727 GetColumns_result typedOther = (GetColumns_result)other;
8728
8729 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8730 if (lastComparison != 0) {
8731 return lastComparison;
8732 }
8733 if (isSetSuccess()) {
8734 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8735 if (lastComparison != 0) {
8736 return lastComparison;
8737 }
8738 }
8739 return 0;
8740 }
8741
8742 public _Fields fieldForId(int fieldId) {
8743 return _Fields.findByThriftId(fieldId);
8744 }
8745
8746 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8747 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8748 }
8749
8750 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8751 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8752 }
8753
8754 @Override
8755 public String toString() {
8756 StringBuilder sb = new StringBuilder("GetColumns_result(");
8757 boolean first = true;
8758
8759 sb.append("success:");
8760 if (this.success == null) {
8761 sb.append("null");
8762 } else {
8763 sb.append(this.success);
8764 }
8765 first = false;
8766 sb.append(")");
8767 return sb.toString();
8768 }
8769
8770 public void validate() throws org.apache.thrift.TException {
8771
8772
8773 if (success != null) {
8774 success.validate();
8775 }
8776 }
8777
8778 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8779 try {
8780 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8781 } catch (org.apache.thrift.TException te) {
8782 throw new java.io.IOException(te);
8783 }
8784 }
8785
8786 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8787 try {
8788 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8789 } catch (org.apache.thrift.TException te) {
8790 throw new java.io.IOException(te);
8791 }
8792 }
8793
8794 private static class GetColumns_resultStandardSchemeFactory implements SchemeFactory {
8795 public GetColumns_resultStandardScheme getScheme() {
8796 return new GetColumns_resultStandardScheme();
8797 }
8798 }
8799
8800 private static class GetColumns_resultStandardScheme extends StandardScheme<GetColumns_result> {
8801
8802 public void read(org.apache.thrift.protocol.TProtocol iprot, GetColumns_result struct) throws org.apache.thrift.TException {
8803 org.apache.thrift.protocol.TField schemeField;
8804 iprot.readStructBegin();
8805 while (true)
8806 {
8807 schemeField = iprot.readFieldBegin();
8808 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8809 break;
8810 }
8811 switch (schemeField.id) {
8812 case 0:
8813 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
8814 struct.success = new TGetColumnsResp();
8815 struct.success.read(iprot);
8816 struct.setSuccessIsSet(true);
8817 } else {
8818 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8819 }
8820 break;
8821 default:
8822 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8823 }
8824 iprot.readFieldEnd();
8825 }
8826 iprot.readStructEnd();
8827 struct.validate();
8828 }
8829
8830 public void write(org.apache.thrift.protocol.TProtocol oprot, GetColumns_result struct) throws org.apache.thrift.TException {
8831 struct.validate();
8832
8833 oprot.writeStructBegin(STRUCT_DESC);
8834 if (struct.success != null) {
8835 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8836 struct.success.write(oprot);
8837 oprot.writeFieldEnd();
8838 }
8839 oprot.writeFieldStop();
8840 oprot.writeStructEnd();
8841 }
8842
8843 }
8844
8845 private static class GetColumns_resultTupleSchemeFactory implements SchemeFactory {
8846 public GetColumns_resultTupleScheme getScheme() {
8847 return new GetColumns_resultTupleScheme();
8848 }
8849 }
8850
8851 private static class GetColumns_resultTupleScheme extends TupleScheme<GetColumns_result> {
8852
8853 @Override
8854 public void write(org.apache.thrift.protocol.TProtocol prot, GetColumns_result struct) throws org.apache.thrift.TException {
8855 TTupleProtocol oprot = (TTupleProtocol) prot;
8856 BitSet optionals = new BitSet();
8857 if (struct.isSetSuccess()) {
8858 optionals.set(0);
8859 }
8860 oprot.writeBitSet(optionals, 1);
8861 if (struct.isSetSuccess()) {
8862 struct.success.write(oprot);
8863 }
8864 }
8865
8866 @Override
8867 public void read(org.apache.thrift.protocol.TProtocol prot, GetColumns_result struct) throws org.apache.thrift.TException {
8868 TTupleProtocol iprot = (TTupleProtocol) prot;
8869 BitSet incoming = iprot.readBitSet(1);
8870 if (incoming.get(0)) {
8871 struct.success = new TGetColumnsResp();
8872 struct.success.read(iprot);
8873 struct.setSuccessIsSet(true);
8874 }
8875 }
8876 }
8877
8878 }
8879
8880 public static class GetFunctions_args implements org.apache.thrift.TBase<GetFunctions_args, GetFunctions_args._Fields>, java.io.Serializable, Cloneable {
8881 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetFunctions_args");
8882
8883 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);
8884
8885 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8886 static {
8887 schemes.put(StandardScheme.class, new GetFunctions_argsStandardSchemeFactory());
8888 schemes.put(TupleScheme.class, new GetFunctions_argsTupleSchemeFactory());
8889 }
8890
8891 private TGetFunctionsReq req;
8892
8893
8894 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8895 REQ((short)1, "req");
8896
8897 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8898
8899 static {
8900 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8901 byName.put(field.getFieldName(), field);
8902 }
8903 }
8904
8905
8906
8907
8908 public static _Fields findByThriftId(int fieldId) {
8909 switch(fieldId) {
8910 case 1:
8911 return REQ;
8912 default:
8913 return null;
8914 }
8915 }
8916
8917
8918
8919
8920
8921 public static _Fields findByThriftIdOrThrow(int fieldId) {
8922 _Fields fields = findByThriftId(fieldId);
8923 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8924 return fields;
8925 }
8926
8927
8928
8929
8930 public static _Fields findByName(String name) {
8931 return byName.get(name);
8932 }
8933
8934 private final short _thriftId;
8935 private final String _fieldName;
8936
8937 _Fields(short thriftId, String fieldName) {
8938 _thriftId = thriftId;
8939 _fieldName = fieldName;
8940 }
8941
8942 public short getThriftFieldId() {
8943 return _thriftId;
8944 }
8945
8946 public String getFieldName() {
8947 return _fieldName;
8948 }
8949 }
8950
8951
8952 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8953 static {
8954 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8955 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
8956 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetFunctionsReq.class)));
8957 metaDataMap = Collections.unmodifiableMap(tmpMap);
8958 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetFunctions_args.class, metaDataMap);
8959 }
8960
8961 public GetFunctions_args() {
8962 }
8963
8964 public GetFunctions_args(
8965 TGetFunctionsReq req)
8966 {
8967 this();
8968 this.req = req;
8969 }
8970
8971
8972
8973
8974 public GetFunctions_args(GetFunctions_args other) {
8975 if (other.isSetReq()) {
8976 this.req = new TGetFunctionsReq(other.req);
8977 }
8978 }
8979
8980 public GetFunctions_args deepCopy() {
8981 return new GetFunctions_args(this);
8982 }
8983
8984 @Override
8985 public void clear() {
8986 this.req = null;
8987 }
8988
8989 public TGetFunctionsReq getReq() {
8990 return this.req;
8991 }
8992
8993 public void setReq(TGetFunctionsReq req) {
8994 this.req = req;
8995 }
8996
8997 public void unsetReq() {
8998 this.req = null;
8999 }
9000
9001
9002 public boolean isSetReq() {
9003 return this.req != null;
9004 }
9005
9006 public void setReqIsSet(boolean value) {
9007 if (!value) {
9008 this.req = null;
9009 }
9010 }
9011
9012 public void setFieldValue(_Fields field, Object value) {
9013 switch (field) {
9014 case REQ:
9015 if (value == null) {
9016 unsetReq();
9017 } else {
9018 setReq((TGetFunctionsReq)value);
9019 }
9020 break;
9021
9022 }
9023 }
9024
9025 public Object getFieldValue(_Fields field) {
9026 switch (field) {
9027 case REQ:
9028 return getReq();
9029
9030 }
9031 throw new IllegalStateException();
9032 }
9033
9034
9035 public boolean isSet(_Fields field) {
9036 if (field == null) {
9037 throw new IllegalArgumentException();
9038 }
9039
9040 switch (field) {
9041 case REQ:
9042 return isSetReq();
9043 }
9044 throw new IllegalStateException();
9045 }
9046
9047 @Override
9048 public boolean equals(Object that) {
9049 if (that == null)
9050 return false;
9051 if (that instanceof GetFunctions_args)
9052 return this.equals((GetFunctions_args)that);
9053 return false;
9054 }
9055
9056 public boolean equals(GetFunctions_args that) {
9057 if (that == null)
9058 return false;
9059
9060 boolean this_present_req = true && this.isSetReq();
9061 boolean that_present_req = true && that.isSetReq();
9062 if (this_present_req || that_present_req) {
9063 if (!(this_present_req && that_present_req))
9064 return false;
9065 if (!this.req.equals(that.req))
9066 return false;
9067 }
9068
9069 return true;
9070 }
9071
9072 @Override
9073 public int hashCode() {
9074 HashCodeBuilder builder = new HashCodeBuilder();
9075
9076 boolean present_req = true && (isSetReq());
9077 builder.append(present_req);
9078 if (present_req)
9079 builder.append(req);
9080
9081 return builder.toHashCode();
9082 }
9083
9084 public int compareTo(GetFunctions_args other) {
9085 if (!getClass().equals(other.getClass())) {
9086 return getClass().getName().compareTo(other.getClass().getName());
9087 }
9088
9089 int lastComparison = 0;
9090 GetFunctions_args typedOther = (GetFunctions_args)other;
9091
9092 lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq());
9093 if (lastComparison != 0) {
9094 return lastComparison;
9095 }
9096 if (isSetReq()) {
9097 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req);
9098 if (lastComparison != 0) {
9099 return lastComparison;
9100 }
9101 }
9102 return 0;
9103 }
9104
9105 public _Fields fieldForId(int fieldId) {
9106 return _Fields.findByThriftId(fieldId);
9107 }
9108
9109 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9110 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9111 }
9112
9113 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9114 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9115 }
9116
9117 @Override
9118 public String toString() {
9119 StringBuilder sb = new StringBuilder("GetFunctions_args(");
9120 boolean first = true;
9121
9122 sb.append("req:");
9123 if (this.req == null) {
9124 sb.append("null");
9125 } else {
9126 sb.append(this.req);
9127 }
9128 first = false;
9129 sb.append(")");
9130 return sb.toString();
9131 }
9132
9133 public void validate() throws org.apache.thrift.TException {
9134
9135
9136 if (req != null) {
9137 req.validate();
9138 }
9139 }
9140
9141 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9142 try {
9143 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9144 } catch (org.apache.thrift.TException te) {
9145 throw new java.io.IOException(te);
9146 }
9147 }
9148
9149 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9150 try {
9151 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9152 } catch (org.apache.thrift.TException te) {
9153 throw new java.io.IOException(te);
9154 }
9155 }
9156
9157 private static class GetFunctions_argsStandardSchemeFactory implements SchemeFactory {
9158 public GetFunctions_argsStandardScheme getScheme() {
9159 return new GetFunctions_argsStandardScheme();
9160 }
9161 }
9162
9163 private static class GetFunctions_argsStandardScheme extends StandardScheme<GetFunctions_args> {
9164
9165 public void read(org.apache.thrift.protocol.TProtocol iprot, GetFunctions_args struct) throws org.apache.thrift.TException {
9166 org.apache.thrift.protocol.TField schemeField;
9167 iprot.readStructBegin();
9168 while (true)
9169 {
9170 schemeField = iprot.readFieldBegin();
9171 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9172 break;
9173 }
9174 switch (schemeField.id) {
9175 case 1:
9176 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
9177 struct.req = new TGetFunctionsReq();
9178 struct.req.read(iprot);
9179 struct.setReqIsSet(true);
9180 } else {
9181 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9182 }
9183 break;
9184 default:
9185 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9186 }
9187 iprot.readFieldEnd();
9188 }
9189 iprot.readStructEnd();
9190 struct.validate();
9191 }
9192
9193 public void write(org.apache.thrift.protocol.TProtocol oprot, GetFunctions_args struct) throws org.apache.thrift.TException {
9194 struct.validate();
9195
9196 oprot.writeStructBegin(STRUCT_DESC);
9197 if (struct.req != null) {
9198 oprot.writeFieldBegin(REQ_FIELD_DESC);
9199 struct.req.write(oprot);
9200 oprot.writeFieldEnd();
9201 }
9202 oprot.writeFieldStop();
9203 oprot.writeStructEnd();
9204 }
9205
9206 }
9207
9208 private static class GetFunctions_argsTupleSchemeFactory implements SchemeFactory {
9209 public GetFunctions_argsTupleScheme getScheme() {
9210 return new GetFunctions_argsTupleScheme();
9211 }
9212 }
9213
9214 private static class GetFunctions_argsTupleScheme extends TupleScheme<GetFunctions_args> {
9215
9216 @Override
9217 public void write(org.apache.thrift.protocol.TProtocol prot, GetFunctions_args struct) throws org.apache.thrift.TException {
9218 TTupleProtocol oprot = (TTupleProtocol) prot;
9219 BitSet optionals = new BitSet();
9220 if (struct.isSetReq()) {
9221 optionals.set(0);
9222 }
9223 oprot.writeBitSet(optionals, 1);
9224 if (struct.isSetReq()) {
9225 struct.req.write(oprot);
9226 }
9227 }
9228
9229 @Override
9230 public void read(org.apache.thrift.protocol.TProtocol prot, GetFunctions_args struct) throws org.apache.thrift.TException {
9231 TTupleProtocol iprot = (TTupleProtocol) prot;
9232 BitSet incoming = iprot.readBitSet(1);
9233 if (incoming.get(0)) {
9234 struct.req = new TGetFunctionsReq();
9235 struct.req.read(iprot);
9236 struct.setReqIsSet(true);
9237 }
9238 }
9239 }
9240
9241 }
9242
9243 public static class GetFunctions_result implements org.apache.thrift.TBase<GetFunctions_result, GetFunctions_result._Fields>, java.io.Serializable, Cloneable {
9244 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetFunctions_result");
9245
9246 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);
9247
9248 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9249 static {
9250 schemes.put(StandardScheme.class, new GetFunctions_resultStandardSchemeFactory());
9251 schemes.put(TupleScheme.class, new GetFunctions_resultTupleSchemeFactory());
9252 }
9253
9254 private TGetFunctionsResp success;
9255
9256
9257 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9258 SUCCESS((short)0, "success");
9259
9260 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9261
9262 static {
9263 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9264 byName.put(field.getFieldName(), field);
9265 }
9266 }
9267
9268
9269
9270
9271 public static _Fields findByThriftId(int fieldId) {
9272 switch(fieldId) {
9273 case 0:
9274 return SUCCESS;
9275 default:
9276 return null;
9277 }
9278 }
9279
9280
9281
9282
9283
9284 public static _Fields findByThriftIdOrThrow(int fieldId) {
9285 _Fields fields = findByThriftId(fieldId);
9286 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9287 return fields;
9288 }
9289
9290
9291
9292
9293 public static _Fields findByName(String name) {
9294 return byName.get(name);
9295 }
9296
9297 private final short _thriftId;
9298 private final String _fieldName;
9299
9300 _Fields(short thriftId, String fieldName) {
9301 _thriftId = thriftId;
9302 _fieldName = fieldName;
9303 }
9304
9305 public short getThriftFieldId() {
9306 return _thriftId;
9307 }
9308
9309 public String getFieldName() {
9310 return _fieldName;
9311 }
9312 }
9313
9314
9315 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9316 static {
9317 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9318 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
9319 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetFunctionsResp.class)));
9320 metaDataMap = Collections.unmodifiableMap(tmpMap);
9321 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetFunctions_result.class, metaDataMap);
9322 }
9323
9324 public GetFunctions_result() {
9325 }
9326
9327 public GetFunctions_result(
9328 TGetFunctionsResp success)
9329 {
9330 this();
9331 this.success = success;
9332 }
9333
9334
9335
9336
9337 public GetFunctions_result(GetFunctions_result other) {
9338 if (other.isSetSuccess()) {
9339 this.success = new TGetFunctionsResp(other.success);
9340 }
9341 }
9342
9343 public GetFunctions_result deepCopy() {
9344 return new GetFunctions_result(this);
9345 }
9346
9347 @Override
9348 public void clear() {
9349 this.success = null;
9350 }
9351
9352 public TGetFunctionsResp getSuccess() {
9353 return this.success;
9354 }
9355
9356 public void setSuccess(TGetFunctionsResp success) {
9357 this.success = success;
9358 }
9359
9360 public void unsetSuccess() {
9361 this.success = null;
9362 }
9363
9364
9365 public boolean isSetSuccess() {
9366 return this.success != null;
9367 }
9368
9369 public void setSuccessIsSet(boolean value) {
9370 if (!value) {
9371 this.success = null;
9372 }
9373 }
9374
9375 public void setFieldValue(_Fields field, Object value) {
9376 switch (field) {
9377 case SUCCESS:
9378 if (value == null) {
9379 unsetSuccess();
9380 } else {
9381 setSuccess((TGetFunctionsResp)value);
9382 }
9383 break;
9384
9385 }
9386 }
9387
9388 public Object getFieldValue(_Fields field) {
9389 switch (field) {
9390 case SUCCESS:
9391 return getSuccess();
9392
9393 }
9394 throw new IllegalStateException();
9395 }
9396
9397
9398 public boolean isSet(_Fields field) {
9399 if (field == null) {
9400 throw new IllegalArgumentException();
9401 }
9402
9403 switch (field) {
9404 case SUCCESS:
9405 return isSetSuccess();
9406 }
9407 throw new IllegalStateException();
9408 }
9409
9410 @Override
9411 public boolean equals(Object that) {
9412 if (that == null)
9413 return false;
9414 if (that instanceof GetFunctions_result)
9415 return this.equals((GetFunctions_result)that);
9416 return false;
9417 }
9418
9419 public boolean equals(GetFunctions_result that) {
9420 if (that == null)
9421 return false;
9422
9423 boolean this_present_success = true && this.isSetSuccess();
9424 boolean that_present_success = true && that.isSetSuccess();
9425 if (this_present_success || that_present_success) {
9426 if (!(this_present_success && that_present_success))
9427 return false;
9428 if (!this.success.equals(that.success))
9429 return false;
9430 }
9431
9432 return true;
9433 }
9434
9435 @Override
9436 public int hashCode() {
9437 HashCodeBuilder builder = new HashCodeBuilder();
9438
9439 boolean present_success = true && (isSetSuccess());
9440 builder.append(present_success);
9441 if (present_success)
9442 builder.append(success);
9443
9444 return builder.toHashCode();
9445 }
9446
9447 public int compareTo(GetFunctions_result other) {
9448 if (!getClass().equals(other.getClass())) {
9449 return getClass().getName().compareTo(other.getClass().getName());
9450 }
9451
9452 int lastComparison = 0;
9453 GetFunctions_result typedOther = (GetFunctions_result)other;
9454
9455 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9456 if (lastComparison != 0) {
9457 return lastComparison;
9458 }
9459 if (isSetSuccess()) {
9460 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9461 if (lastComparison != 0) {
9462 return lastComparison;
9463 }
9464 }
9465 return 0;
9466 }
9467
9468 public _Fields fieldForId(int fieldId) {
9469 return _Fields.findByThriftId(fieldId);
9470 }
9471
9472 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9473 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9474 }
9475
9476 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9477 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9478 }
9479
9480 @Override
9481 public String toString() {
9482 StringBuilder sb = new StringBuilder("GetFunctions_result(");
9483 boolean first = true;
9484
9485 sb.append("success:");
9486 if (this.success == null) {
9487 sb.append("null");
9488 } else {
9489 sb.append(this.success);
9490 }
9491 first = false;
9492 sb.append(")");
9493 return sb.toString();
9494 }
9495
9496 public void validate() throws org.apache.thrift.TException {
9497
9498
9499 if (success != null) {
9500 success.validate();
9501 }
9502 }
9503
9504 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9505 try {
9506 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9507 } catch (org.apache.thrift.TException te) {
9508 throw new java.io.IOException(te);
9509 }
9510 }
9511
9512 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9513 try {
9514 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9515 } catch (org.apache.thrift.TException te) {
9516 throw new java.io.IOException(te);
9517 }
9518 }
9519
9520 private static class GetFunctions_resultStandardSchemeFactory implements SchemeFactory {
9521 public GetFunctions_resultStandardScheme getScheme() {
9522 return new GetFunctions_resultStandardScheme();
9523 }
9524 }
9525
9526 private static class GetFunctions_resultStandardScheme extends StandardScheme<GetFunctions_result> {
9527
9528 public void read(org.apache.thrift.protocol.TProtocol iprot, GetFunctions_result struct) throws org.apache.thrift.TException {
9529 org.apache.thrift.protocol.TField schemeField;
9530 iprot.readStructBegin();
9531 while (true)
9532 {
9533 schemeField = iprot.readFieldBegin();
9534 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9535 break;
9536 }
9537 switch (schemeField.id) {
9538 case 0:
9539 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
9540 struct.success = new TGetFunctionsResp();
9541 struct.success.read(iprot);
9542 struct.setSuccessIsSet(true);
9543 } else {
9544 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9545 }
9546 break;
9547 default:
9548 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9549 }
9550 iprot.readFieldEnd();
9551 }
9552 iprot.readStructEnd();
9553 struct.validate();
9554 }
9555
9556 public void write(org.apache.thrift.protocol.TProtocol oprot, GetFunctions_result struct) throws org.apache.thrift.TException {
9557 struct.validate();
9558
9559 oprot.writeStructBegin(STRUCT_DESC);
9560 if (struct.success != null) {
9561 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9562 struct.success.write(oprot);
9563 oprot.writeFieldEnd();
9564 }
9565 oprot.writeFieldStop();
9566 oprot.writeStructEnd();
9567 }
9568
9569 }
9570
9571 private static class GetFunctions_resultTupleSchemeFactory implements SchemeFactory {
9572 public GetFunctions_resultTupleScheme getScheme() {
9573 return new GetFunctions_resultTupleScheme();
9574 }
9575 }
9576
9577 private static class GetFunctions_resultTupleScheme extends TupleScheme<GetFunctions_result> {
9578
9579 @Override
9580 public void write(org.apache.thrift.protocol.TProtocol prot, GetFunctions_result struct) throws org.apache.thrift.TException {
9581 TTupleProtocol oprot = (TTupleProtocol) prot;
9582 BitSet optionals = new BitSet();
9583 if (struct.isSetSuccess()) {
9584 optionals.set(0);
9585 }
9586 oprot.writeBitSet(optionals, 1);
9587 if (struct.isSetSuccess()) {
9588 struct.success.write(oprot);
9589 }
9590 }
9591
9592 @Override
9593 public void read(org.apache.thrift.protocol.TProtocol prot, GetFunctions_result struct) throws org.apache.thrift.TException {
9594 TTupleProtocol iprot = (TTupleProtocol) prot;
9595 BitSet incoming = iprot.readBitSet(1);
9596 if (incoming.get(0)) {
9597 struct.success = new TGetFunctionsResp();
9598 struct.success.read(iprot);
9599 struct.setSuccessIsSet(true);
9600 }
9601 }
9602 }
9603
9604 }
9605
9606 public static class GetOperationStatus_args implements org.apache.thrift.TBase<GetOperationStatus_args, GetOperationStatus_args._Fields>, java.io.Serializable, Cloneable {
9607 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetOperationStatus_args");
9608
9609 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);
9610
9611 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9612 static {
9613 schemes.put(StandardScheme.class, new GetOperationStatus_argsStandardSchemeFactory());
9614 schemes.put(TupleScheme.class, new GetOperationStatus_argsTupleSchemeFactory());
9615 }
9616
9617 private TGetOperationStatusReq req;
9618
9619
9620 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9621 REQ((short)1, "req");
9622
9623 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9624
9625 static {
9626 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9627 byName.put(field.getFieldName(), field);
9628 }
9629 }
9630
9631
9632
9633
9634 public static _Fields findByThriftId(int fieldId) {
9635 switch(fieldId) {
9636 case 1:
9637 return REQ;
9638 default:
9639 return null;
9640 }
9641 }
9642
9643
9644
9645
9646
9647 public static _Fields findByThriftIdOrThrow(int fieldId) {
9648 _Fields fields = findByThriftId(fieldId);
9649 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9650 return fields;
9651 }
9652
9653
9654
9655
9656 public static _Fields findByName(String name) {
9657 return byName.get(name);
9658 }
9659
9660 private final short _thriftId;
9661 private final String _fieldName;
9662
9663 _Fields(short thriftId, String fieldName) {
9664 _thriftId = thriftId;
9665 _fieldName = fieldName;
9666 }
9667
9668 public short getThriftFieldId() {
9669 return _thriftId;
9670 }
9671
9672 public String getFieldName() {
9673 return _fieldName;
9674 }
9675 }
9676
9677
9678 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9679 static {
9680 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9681 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
9682 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetOperationStatusReq.class)));
9683 metaDataMap = Collections.unmodifiableMap(tmpMap);
9684 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetOperationStatus_args.class, metaDataMap);
9685 }
9686
9687 public GetOperationStatus_args() {
9688 }
9689
9690 public GetOperationStatus_args(
9691 TGetOperationStatusReq req)
9692 {
9693 this();
9694 this.req = req;
9695 }
9696
9697
9698
9699
9700 public GetOperationStatus_args(GetOperationStatus_args other) {
9701 if (other.isSetReq()) {
9702 this.req = new TGetOperationStatusReq(other.req);
9703 }
9704 }
9705
9706 public GetOperationStatus_args deepCopy() {
9707 return new GetOperationStatus_args(this);
9708 }
9709
9710 @Override
9711 public void clear() {
9712 this.req = null;
9713 }
9714
9715 public TGetOperationStatusReq getReq() {
9716 return this.req;
9717 }
9718
9719 public void setReq(TGetOperationStatusReq req) {
9720 this.req = req;
9721 }
9722
9723 public void unsetReq() {
9724 this.req = null;
9725 }
9726
9727
9728 public boolean isSetReq() {
9729 return this.req != null;
9730 }
9731
9732 public void setReqIsSet(boolean value) {
9733 if (!value) {
9734 this.req = null;
9735 }
9736 }
9737
9738 public void setFieldValue(_Fields field, Object value) {
9739 switch (field) {
9740 case REQ:
9741 if (value == null) {
9742 unsetReq();
9743 } else {
9744 setReq((TGetOperationStatusReq)value);
9745 }
9746 break;
9747
9748 }
9749 }
9750
9751 public Object getFieldValue(_Fields field) {
9752 switch (field) {
9753 case REQ:
9754 return getReq();
9755
9756 }
9757 throw new IllegalStateException();
9758 }
9759
9760
9761 public boolean isSet(_Fields field) {
9762 if (field == null) {
9763 throw new IllegalArgumentException();
9764 }
9765
9766 switch (field) {
9767 case REQ:
9768 return isSetReq();
9769 }
9770 throw new IllegalStateException();
9771 }
9772
9773 @Override
9774 public boolean equals(Object that) {
9775 if (that == null)
9776 return false;
9777 if (that instanceof GetOperationStatus_args)
9778 return this.equals((GetOperationStatus_args)that);
9779 return false;
9780 }
9781
9782 public boolean equals(GetOperationStatus_args that) {
9783 if (that == null)
9784 return false;
9785
9786 boolean this_present_req = true && this.isSetReq();
9787 boolean that_present_req = true && that.isSetReq();
9788 if (this_present_req || that_present_req) {
9789 if (!(this_present_req && that_present_req))
9790 return false;
9791 if (!this.req.equals(that.req))
9792 return false;
9793 }
9794
9795 return true;
9796 }
9797
9798 @Override
9799 public int hashCode() {
9800 HashCodeBuilder builder = new HashCodeBuilder();
9801
9802 boolean present_req = true && (isSetReq());
9803 builder.append(present_req);
9804 if (present_req)
9805 builder.append(req);
9806
9807 return builder.toHashCode();
9808 }
9809
9810 public int compareTo(GetOperationStatus_args other) {
9811 if (!getClass().equals(other.getClass())) {
9812 return getClass().getName().compareTo(other.getClass().getName());
9813 }
9814
9815 int lastComparison = 0;
9816 GetOperationStatus_args typedOther = (GetOperationStatus_args)other;
9817
9818 lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq());
9819 if (lastComparison != 0) {
9820 return lastComparison;
9821 }
9822 if (isSetReq()) {
9823 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req);
9824 if (lastComparison != 0) {
9825 return lastComparison;
9826 }
9827 }
9828 return 0;
9829 }
9830
9831 public _Fields fieldForId(int fieldId) {
9832 return _Fields.findByThriftId(fieldId);
9833 }
9834
9835 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9836 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9837 }
9838
9839 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9840 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9841 }
9842
9843 @Override
9844 public String toString() {
9845 StringBuilder sb = new StringBuilder("GetOperationStatus_args(");
9846 boolean first = true;
9847
9848 sb.append("req:");
9849 if (this.req == null) {
9850 sb.append("null");
9851 } else {
9852 sb.append(this.req);
9853 }
9854 first = false;
9855 sb.append(")");
9856 return sb.toString();
9857 }
9858
9859 public void validate() throws org.apache.thrift.TException {
9860
9861
9862 if (req != null) {
9863 req.validate();
9864 }
9865 }
9866
9867 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9868 try {
9869 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9870 } catch (org.apache.thrift.TException te) {
9871 throw new java.io.IOException(te);
9872 }
9873 }
9874
9875 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9876 try {
9877 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9878 } catch (org.apache.thrift.TException te) {
9879 throw new java.io.IOException(te);
9880 }
9881 }
9882
9883 private static class GetOperationStatus_argsStandardSchemeFactory implements SchemeFactory {
9884 public GetOperationStatus_argsStandardScheme getScheme() {
9885 return new GetOperationStatus_argsStandardScheme();
9886 }
9887 }
9888
9889 private static class GetOperationStatus_argsStandardScheme extends StandardScheme<GetOperationStatus_args> {
9890
9891 public void read(org.apache.thrift.protocol.TProtocol iprot, GetOperationStatus_args struct) throws org.apache.thrift.TException {
9892 org.apache.thrift.protocol.TField schemeField;
9893 iprot.readStructBegin();
9894 while (true)
9895 {
9896 schemeField = iprot.readFieldBegin();
9897 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9898 break;
9899 }
9900 switch (schemeField.id) {
9901 case 1:
9902 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
9903 struct.req = new TGetOperationStatusReq();
9904 struct.req.read(iprot);
9905 struct.setReqIsSet(true);
9906 } else {
9907 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9908 }
9909 break;
9910 default:
9911 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9912 }
9913 iprot.readFieldEnd();
9914 }
9915 iprot.readStructEnd();
9916 struct.validate();
9917 }
9918
9919 public void write(org.apache.thrift.protocol.TProtocol oprot, GetOperationStatus_args struct) throws org.apache.thrift.TException {
9920 struct.validate();
9921
9922 oprot.writeStructBegin(STRUCT_DESC);
9923 if (struct.req != null) {
9924 oprot.writeFieldBegin(REQ_FIELD_DESC);
9925 struct.req.write(oprot);
9926 oprot.writeFieldEnd();
9927 }
9928 oprot.writeFieldStop();
9929 oprot.writeStructEnd();
9930 }
9931
9932 }
9933
9934 private static class GetOperationStatus_argsTupleSchemeFactory implements SchemeFactory {
9935 public GetOperationStatus_argsTupleScheme getScheme() {
9936 return new GetOperationStatus_argsTupleScheme();
9937 }
9938 }
9939
9940 private static class GetOperationStatus_argsTupleScheme extends TupleScheme<GetOperationStatus_args> {
9941
9942 @Override
9943 public void write(org.apache.thrift.protocol.TProtocol prot, GetOperationStatus_args struct) throws org.apache.thrift.TException {
9944 TTupleProtocol oprot = (TTupleProtocol) prot;
9945 BitSet optionals = new BitSet();
9946 if (struct.isSetReq()) {
9947 optionals.set(0);
9948 }
9949 oprot.writeBitSet(optionals, 1);
9950 if (struct.isSetReq()) {
9951 struct.req.write(oprot);
9952 }
9953 }
9954
9955 @Override
9956 public void read(org.apache.thrift.protocol.TProtocol prot, GetOperationStatus_args struct) throws org.apache.thrift.TException {
9957 TTupleProtocol iprot = (TTupleProtocol) prot;
9958 BitSet incoming = iprot.readBitSet(1);
9959 if (incoming.get(0)) {
9960 struct.req = new TGetOperationStatusReq();
9961 struct.req.read(iprot);
9962 struct.setReqIsSet(true);
9963 }
9964 }
9965 }
9966
9967 }
9968
9969 public static class GetOperationStatus_result implements org.apache.thrift.TBase<GetOperationStatus_result, GetOperationStatus_result._Fields>, java.io.Serializable, Cloneable {
9970 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetOperationStatus_result");
9971
9972 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);
9973
9974 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9975 static {
9976 schemes.put(StandardScheme.class, new GetOperationStatus_resultStandardSchemeFactory());
9977 schemes.put(TupleScheme.class, new GetOperationStatus_resultTupleSchemeFactory());
9978 }
9979
9980 private TGetOperationStatusResp success;
9981
9982
9983 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9984 SUCCESS((short)0, "success");
9985
9986 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9987
9988 static {
9989 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9990 byName.put(field.getFieldName(), field);
9991 }
9992 }
9993
9994
9995
9996
9997 public static _Fields findByThriftId(int fieldId) {
9998 switch(fieldId) {
9999 case 0:
10000 return SUCCESS;
10001 default:
10002 return null;
10003 }
10004 }
10005
10006
10007
10008
10009
10010 public static _Fields findByThriftIdOrThrow(int fieldId) {
10011 _Fields fields = findByThriftId(fieldId);
10012 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10013 return fields;
10014 }
10015
10016
10017
10018
10019 public static _Fields findByName(String name) {
10020 return byName.get(name);
10021 }
10022
10023 private final short _thriftId;
10024 private final String _fieldName;
10025
10026 _Fields(short thriftId, String fieldName) {
10027 _thriftId = thriftId;
10028 _fieldName = fieldName;
10029 }
10030
10031 public short getThriftFieldId() {
10032 return _thriftId;
10033 }
10034
10035 public String getFieldName() {
10036 return _fieldName;
10037 }
10038 }
10039
10040
10041 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10042 static {
10043 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10044 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
10045 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetOperationStatusResp.class)));
10046 metaDataMap = Collections.unmodifiableMap(tmpMap);
10047 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetOperationStatus_result.class, metaDataMap);
10048 }
10049
10050 public GetOperationStatus_result() {
10051 }
10052
10053 public GetOperationStatus_result(
10054 TGetOperationStatusResp success)
10055 {
10056 this();
10057 this.success = success;
10058 }
10059
10060
10061
10062
10063 public GetOperationStatus_result(GetOperationStatus_result other) {
10064 if (other.isSetSuccess()) {
10065 this.success = new TGetOperationStatusResp(other.success);
10066 }
10067 }
10068
10069 public GetOperationStatus_result deepCopy() {
10070 return new GetOperationStatus_result(this);
10071 }
10072
10073 @Override
10074 public void clear() {
10075 this.success = null;
10076 }
10077
10078 public TGetOperationStatusResp getSuccess() {
10079 return this.success;
10080 }
10081
10082 public void setSuccess(TGetOperationStatusResp success) {
10083 this.success = success;
10084 }
10085
10086 public void unsetSuccess() {
10087 this.success = null;
10088 }
10089
10090
10091 public boolean isSetSuccess() {
10092 return this.success != null;
10093 }
10094
10095 public void setSuccessIsSet(boolean value) {
10096 if (!value) {
10097 this.success = null;
10098 }
10099 }
10100
10101 public void setFieldValue(_Fields field, Object value) {
10102 switch (field) {
10103 case SUCCESS:
10104 if (value == null) {
10105 unsetSuccess();
10106 } else {
10107 setSuccess((TGetOperationStatusResp)value);
10108 }
10109 break;
10110
10111 }
10112 }
10113
10114 public Object getFieldValue(_Fields field) {
10115 switch (field) {
10116 case SUCCESS:
10117 return getSuccess();
10118
10119 }
10120 throw new IllegalStateException();
10121 }
10122
10123
10124 public boolean isSet(_Fields field) {
10125 if (field == null) {
10126 throw new IllegalArgumentException();
10127 }
10128
10129 switch (field) {
10130 case SUCCESS:
10131 return isSetSuccess();
10132 }
10133 throw new IllegalStateException();
10134 }
10135
10136 @Override
10137 public boolean equals(Object that) {
10138 if (that == null)
10139 return false;
10140 if (that instanceof GetOperationStatus_result)
10141 return this.equals((GetOperationStatus_result)that);
10142 return false;
10143 }
10144
10145 public boolean equals(GetOperationStatus_result that) {
10146 if (that == null)
10147 return false;
10148
10149 boolean this_present_success = true && this.isSetSuccess();
10150 boolean that_present_success = true && that.isSetSuccess();
10151 if (this_present_success || that_present_success) {
10152 if (!(this_present_success && that_present_success))
10153 return false;
10154 if (!this.success.equals(that.success))
10155 return false;
10156 }
10157
10158 return true;
10159 }
10160
10161 @Override
10162 public int hashCode() {
10163 HashCodeBuilder builder = new HashCodeBuilder();
10164
10165 boolean present_success = true && (isSetSuccess());
10166 builder.append(present_success);
10167 if (present_success)
10168 builder.append(success);
10169
10170 return builder.toHashCode();
10171 }
10172
10173 public int compareTo(GetOperationStatus_result other) {
10174 if (!getClass().equals(other.getClass())) {
10175 return getClass().getName().compareTo(other.getClass().getName());
10176 }
10177
10178 int lastComparison = 0;
10179 GetOperationStatus_result typedOther = (GetOperationStatus_result)other;
10180
10181 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10182 if (lastComparison != 0) {
10183 return lastComparison;
10184 }
10185 if (isSetSuccess()) {
10186 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10187 if (lastComparison != 0) {
10188 return lastComparison;
10189 }
10190 }
10191 return 0;
10192 }
10193
10194 public _Fields fieldForId(int fieldId) {
10195 return _Fields.findByThriftId(fieldId);
10196 }
10197
10198 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10199 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10200 }
10201
10202 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10203 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10204 }
10205
10206 @Override
10207 public String toString() {
10208 StringBuilder sb = new StringBuilder("GetOperationStatus_result(");
10209 boolean first = true;
10210
10211 sb.append("success:");
10212 if (this.success == null) {
10213 sb.append("null");
10214 } else {
10215 sb.append(this.success);
10216 }
10217 first = false;
10218 sb.append(")");
10219 return sb.toString();
10220 }
10221
10222 public void validate() throws org.apache.thrift.TException {
10223
10224
10225 if (success != null) {
10226 success.validate();
10227 }
10228 }
10229
10230 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10231 try {
10232 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10233 } catch (org.apache.thrift.TException te) {
10234 throw new java.io.IOException(te);
10235 }
10236 }
10237
10238 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10239 try {
10240 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10241 } catch (org.apache.thrift.TException te) {
10242 throw new java.io.IOException(te);
10243 }
10244 }
10245
10246 private static class GetOperationStatus_resultStandardSchemeFactory implements SchemeFactory {
10247 public GetOperationStatus_resultStandardScheme getScheme() {
10248 return new GetOperationStatus_resultStandardScheme();
10249 }
10250 }
10251
10252 private static class GetOperationStatus_resultStandardScheme extends StandardScheme<GetOperationStatus_result> {
10253
10254 public void read(org.apache.thrift.protocol.TProtocol iprot, GetOperationStatus_result struct) throws org.apache.thrift.TException {
10255 org.apache.thrift.protocol.TField schemeField;
10256 iprot.readStructBegin();
10257 while (true)
10258 {
10259 schemeField = iprot.readFieldBegin();
10260 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10261 break;
10262 }
10263 switch (schemeField.id) {
10264 case 0:
10265 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
10266 struct.success = new TGetOperationStatusResp();
10267 struct.success.read(iprot);
10268 struct.setSuccessIsSet(true);
10269 } else {
10270 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10271 }
10272 break;
10273 default:
10274 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10275 }
10276 iprot.readFieldEnd();
10277 }
10278 iprot.readStructEnd();
10279 struct.validate();
10280 }
10281
10282 public void write(org.apache.thrift.protocol.TProtocol oprot, GetOperationStatus_result struct) throws org.apache.thrift.TException {
10283 struct.validate();
10284
10285 oprot.writeStructBegin(STRUCT_DESC);
10286 if (struct.success != null) {
10287 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10288 struct.success.write(oprot);
10289 oprot.writeFieldEnd();
10290 }
10291 oprot.writeFieldStop();
10292 oprot.writeStructEnd();
10293 }
10294
10295 }
10296
10297 private static class GetOperationStatus_resultTupleSchemeFactory implements SchemeFactory {
10298 public GetOperationStatus_resultTupleScheme getScheme() {
10299 return new GetOperationStatus_resultTupleScheme();
10300 }
10301 }
10302
10303 private static class GetOperationStatus_resultTupleScheme extends TupleScheme<GetOperationStatus_result> {
10304
10305 @Override
10306 public void write(org.apache.thrift.protocol.TProtocol prot, GetOperationStatus_result struct) throws org.apache.thrift.TException {
10307 TTupleProtocol oprot = (TTupleProtocol) prot;
10308 BitSet optionals = new BitSet();
10309 if (struct.isSetSuccess()) {
10310 optionals.set(0);
10311 }
10312 oprot.writeBitSet(optionals, 1);
10313 if (struct.isSetSuccess()) {
10314 struct.success.write(oprot);
10315 }
10316 }
10317
10318 @Override
10319 public void read(org.apache.thrift.protocol.TProtocol prot, GetOperationStatus_result struct) throws org.apache.thrift.TException {
10320 TTupleProtocol iprot = (TTupleProtocol) prot;
10321 BitSet incoming = iprot.readBitSet(1);
10322 if (incoming.get(0)) {
10323 struct.success = new TGetOperationStatusResp();
10324 struct.success.read(iprot);
10325 struct.setSuccessIsSet(true);
10326 }
10327 }
10328 }
10329
10330 }
10331
10332 public static class CancelOperation_args implements org.apache.thrift.TBase<CancelOperation_args, CancelOperation_args._Fields>, java.io.Serializable, Cloneable {
10333 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CancelOperation_args");
10334
10335 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);
10336
10337 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10338 static {
10339 schemes.put(StandardScheme.class, new CancelOperation_argsStandardSchemeFactory());
10340 schemes.put(TupleScheme.class, new CancelOperation_argsTupleSchemeFactory());
10341 }
10342
10343 private TCancelOperationReq req;
10344
10345
10346 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10347 REQ((short)1, "req");
10348
10349 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10350
10351 static {
10352 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10353 byName.put(field.getFieldName(), field);
10354 }
10355 }
10356
10357
10358
10359
10360 public static _Fields findByThriftId(int fieldId) {
10361 switch(fieldId) {
10362 case 1:
10363 return REQ;
10364 default:
10365 return null;
10366 }
10367 }
10368
10369
10370
10371
10372
10373 public static _Fields findByThriftIdOrThrow(int fieldId) {
10374 _Fields fields = findByThriftId(fieldId);
10375 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10376 return fields;
10377 }
10378
10379
10380
10381
10382 public static _Fields findByName(String name) {
10383 return byName.get(name);
10384 }
10385
10386 private final short _thriftId;
10387 private final String _fieldName;
10388
10389 _Fields(short thriftId, String fieldName) {
10390 _thriftId = thriftId;
10391 _fieldName = fieldName;
10392 }
10393
10394 public short getThriftFieldId() {
10395 return _thriftId;
10396 }
10397
10398 public String getFieldName() {
10399 return _fieldName;
10400 }
10401 }
10402
10403
10404 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10405 static {
10406 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10407 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
10408 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCancelOperationReq.class)));
10409 metaDataMap = Collections.unmodifiableMap(tmpMap);
10410 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CancelOperation_args.class, metaDataMap);
10411 }
10412
10413 public CancelOperation_args() {
10414 }
10415
10416 public CancelOperation_args(
10417 TCancelOperationReq req)
10418 {
10419 this();
10420 this.req = req;
10421 }
10422
10423
10424
10425
10426 public CancelOperation_args(CancelOperation_args other) {
10427 if (other.isSetReq()) {
10428 this.req = new TCancelOperationReq(other.req);
10429 }
10430 }
10431
10432 public CancelOperation_args deepCopy() {
10433 return new CancelOperation_args(this);
10434 }
10435
10436 @Override
10437 public void clear() {
10438 this.req = null;
10439 }
10440
10441 public TCancelOperationReq getReq() {
10442 return this.req;
10443 }
10444
10445 public void setReq(TCancelOperationReq req) {
10446 this.req = req;
10447 }
10448
10449 public void unsetReq() {
10450 this.req = null;
10451 }
10452
10453
10454 public boolean isSetReq() {
10455 return this.req != null;
10456 }
10457
10458 public void setReqIsSet(boolean value) {
10459 if (!value) {
10460 this.req = null;
10461 }
10462 }
10463
10464 public void setFieldValue(_Fields field, Object value) {
10465 switch (field) {
10466 case REQ:
10467 if (value == null) {
10468 unsetReq();
10469 } else {
10470 setReq((TCancelOperationReq)value);
10471 }
10472 break;
10473
10474 }
10475 }
10476
10477 public Object getFieldValue(_Fields field) {
10478 switch (field) {
10479 case REQ:
10480 return getReq();
10481
10482 }
10483 throw new IllegalStateException();
10484 }
10485
10486
10487 public boolean isSet(_Fields field) {
10488 if (field == null) {
10489 throw new IllegalArgumentException();
10490 }
10491
10492 switch (field) {
10493 case REQ:
10494 return isSetReq();
10495 }
10496 throw new IllegalStateException();
10497 }
10498
10499 @Override
10500 public boolean equals(Object that) {
10501 if (that == null)
10502 return false;
10503 if (that instanceof CancelOperation_args)
10504 return this.equals((CancelOperation_args)that);
10505 return false;
10506 }
10507
10508 public boolean equals(CancelOperation_args that) {
10509 if (that == null)
10510 return false;
10511
10512 boolean this_present_req = true && this.isSetReq();
10513 boolean that_present_req = true && that.isSetReq();
10514 if (this_present_req || that_present_req) {
10515 if (!(this_present_req && that_present_req))
10516 return false;
10517 if (!this.req.equals(that.req))
10518 return false;
10519 }
10520
10521 return true;
10522 }
10523
10524 @Override
10525 public int hashCode() {
10526 HashCodeBuilder builder = new HashCodeBuilder();
10527
10528 boolean present_req = true && (isSetReq());
10529 builder.append(present_req);
10530 if (present_req)
10531 builder.append(req);
10532
10533 return builder.toHashCode();
10534 }
10535
10536 public int compareTo(CancelOperation_args other) {
10537 if (!getClass().equals(other.getClass())) {
10538 return getClass().getName().compareTo(other.getClass().getName());
10539 }
10540
10541 int lastComparison = 0;
10542 CancelOperation_args typedOther = (CancelOperation_args)other;
10543
10544 lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq());
10545 if (lastComparison != 0) {
10546 return lastComparison;
10547 }
10548 if (isSetReq()) {
10549 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req);
10550 if (lastComparison != 0) {
10551 return lastComparison;
10552 }
10553 }
10554 return 0;
10555 }
10556
10557 public _Fields fieldForId(int fieldId) {
10558 return _Fields.findByThriftId(fieldId);
10559 }
10560
10561 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10562 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10563 }
10564
10565 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10566 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10567 }
10568
10569 @Override
10570 public String toString() {
10571 StringBuilder sb = new StringBuilder("CancelOperation_args(");
10572 boolean first = true;
10573
10574 sb.append("req:");
10575 if (this.req == null) {
10576 sb.append("null");
10577 } else {
10578 sb.append(this.req);
10579 }
10580 first = false;
10581 sb.append(")");
10582 return sb.toString();
10583 }
10584
10585 public void validate() throws org.apache.thrift.TException {
10586
10587
10588 if (req != null) {
10589 req.validate();
10590 }
10591 }
10592
10593 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10594 try {
10595 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10596 } catch (org.apache.thrift.TException te) {
10597 throw new java.io.IOException(te);
10598 }
10599 }
10600
10601 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10602 try {
10603 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10604 } catch (org.apache.thrift.TException te) {
10605 throw new java.io.IOException(te);
10606 }
10607 }
10608
10609 private static class CancelOperation_argsStandardSchemeFactory implements SchemeFactory {
10610 public CancelOperation_argsStandardScheme getScheme() {
10611 return new CancelOperation_argsStandardScheme();
10612 }
10613 }
10614
10615 private static class CancelOperation_argsStandardScheme extends StandardScheme<CancelOperation_args> {
10616
10617 public void read(org.apache.thrift.protocol.TProtocol iprot, CancelOperation_args struct) throws org.apache.thrift.TException {
10618 org.apache.thrift.protocol.TField schemeField;
10619 iprot.readStructBegin();
10620 while (true)
10621 {
10622 schemeField = iprot.readFieldBegin();
10623 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10624 break;
10625 }
10626 switch (schemeField.id) {
10627 case 1:
10628 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
10629 struct.req = new TCancelOperationReq();
10630 struct.req.read(iprot);
10631 struct.setReqIsSet(true);
10632 } else {
10633 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10634 }
10635 break;
10636 default:
10637 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10638 }
10639 iprot.readFieldEnd();
10640 }
10641 iprot.readStructEnd();
10642 struct.validate();
10643 }
10644
10645 public void write(org.apache.thrift.protocol.TProtocol oprot, CancelOperation_args struct) throws org.apache.thrift.TException {
10646 struct.validate();
10647
10648 oprot.writeStructBegin(STRUCT_DESC);
10649 if (struct.req != null) {
10650 oprot.writeFieldBegin(REQ_FIELD_DESC);
10651 struct.req.write(oprot);
10652 oprot.writeFieldEnd();
10653 }
10654 oprot.writeFieldStop();
10655 oprot.writeStructEnd();
10656 }
10657
10658 }
10659
10660 private static class CancelOperation_argsTupleSchemeFactory implements SchemeFactory {
10661 public CancelOperation_argsTupleScheme getScheme() {
10662 return new CancelOperation_argsTupleScheme();
10663 }
10664 }
10665
10666 private static class CancelOperation_argsTupleScheme extends TupleScheme<CancelOperation_args> {
10667
10668 @Override
10669 public void write(org.apache.thrift.protocol.TProtocol prot, CancelOperation_args struct) throws org.apache.thrift.TException {
10670 TTupleProtocol oprot = (TTupleProtocol) prot;
10671 BitSet optionals = new BitSet();
10672 if (struct.isSetReq()) {
10673 optionals.set(0);
10674 }
10675 oprot.writeBitSet(optionals, 1);
10676 if (struct.isSetReq()) {
10677 struct.req.write(oprot);
10678 }
10679 }
10680
10681 @Override
10682 public void read(org.apache.thrift.protocol.TProtocol prot, CancelOperation_args struct) throws org.apache.thrift.TException {
10683 TTupleProtocol iprot = (TTupleProtocol) prot;
10684 BitSet incoming = iprot.readBitSet(1);
10685 if (incoming.get(0)) {
10686 struct.req = new TCancelOperationReq();
10687 struct.req.read(iprot);
10688 struct.setReqIsSet(true);
10689 }
10690 }
10691 }
10692
10693 }
10694
10695 public static class CancelOperation_result implements org.apache.thrift.TBase<CancelOperation_result, CancelOperation_result._Fields>, java.io.Serializable, Cloneable {
10696 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CancelOperation_result");
10697
10698 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);
10699
10700 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10701 static {
10702 schemes.put(StandardScheme.class, new CancelOperation_resultStandardSchemeFactory());
10703 schemes.put(TupleScheme.class, new CancelOperation_resultTupleSchemeFactory());
10704 }
10705
10706 private TCancelOperationResp success;
10707
10708
10709 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10710 SUCCESS((short)0, "success");
10711
10712 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10713
10714 static {
10715 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10716 byName.put(field.getFieldName(), field);
10717 }
10718 }
10719
10720
10721
10722
10723 public static _Fields findByThriftId(int fieldId) {
10724 switch(fieldId) {
10725 case 0:
10726 return SUCCESS;
10727 default:
10728 return null;
10729 }
10730 }
10731
10732
10733
10734
10735
10736 public static _Fields findByThriftIdOrThrow(int fieldId) {
10737 _Fields fields = findByThriftId(fieldId);
10738 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10739 return fields;
10740 }
10741
10742
10743
10744
10745 public static _Fields findByName(String name) {
10746 return byName.get(name);
10747 }
10748
10749 private final short _thriftId;
10750 private final String _fieldName;
10751
10752 _Fields(short thriftId, String fieldName) {
10753 _thriftId = thriftId;
10754 _fieldName = fieldName;
10755 }
10756
10757 public short getThriftFieldId() {
10758 return _thriftId;
10759 }
10760
10761 public String getFieldName() {
10762 return _fieldName;
10763 }
10764 }
10765
10766
10767 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10768 static {
10769 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10770 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
10771 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCancelOperationResp.class)));
10772 metaDataMap = Collections.unmodifiableMap(tmpMap);
10773 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CancelOperation_result.class, metaDataMap);
10774 }
10775
10776 public CancelOperation_result() {
10777 }
10778
10779 public CancelOperation_result(
10780 TCancelOperationResp success)
10781 {
10782 this();
10783 this.success = success;
10784 }
10785
10786
10787
10788
10789 public CancelOperation_result(CancelOperation_result other) {
10790 if (other.isSetSuccess()) {
10791 this.success = new TCancelOperationResp(other.success);
10792 }
10793 }
10794
10795 public CancelOperation_result deepCopy() {
10796 return new CancelOperation_result(this);
10797 }
10798
10799 @Override
10800 public void clear() {
10801 this.success = null;
10802 }
10803
10804 public TCancelOperationResp getSuccess() {
10805 return this.success;
10806 }
10807
10808 public void setSuccess(TCancelOperationResp success) {
10809 this.success = success;
10810 }
10811
10812 public void unsetSuccess() {
10813 this.success = null;
10814 }
10815
10816
10817 public boolean isSetSuccess() {
10818 return this.success != null;
10819 }
10820
10821 public void setSuccessIsSet(boolean value) {
10822 if (!value) {
10823 this.success = null;
10824 }
10825 }
10826
10827 public void setFieldValue(_Fields field, Object value) {
10828 switch (field) {
10829 case SUCCESS:
10830 if (value == null) {
10831 unsetSuccess();
10832 } else {
10833 setSuccess((TCancelOperationResp)value);
10834 }
10835 break;
10836
10837 }
10838 }
10839
10840 public Object getFieldValue(_Fields field) {
10841 switch (field) {
10842 case SUCCESS:
10843 return getSuccess();
10844
10845 }
10846 throw new IllegalStateException();
10847 }
10848
10849
10850 public boolean isSet(_Fields field) {
10851 if (field == null) {
10852 throw new IllegalArgumentException();
10853 }
10854
10855 switch (field) {
10856 case SUCCESS:
10857 return isSetSuccess();
10858 }
10859 throw new IllegalStateException();
10860 }
10861
10862 @Override
10863 public boolean equals(Object that) {
10864 if (that == null)
10865 return false;
10866 if (that instanceof CancelOperation_result)
10867 return this.equals((CancelOperation_result)that);
10868 return false;
10869 }
10870
10871 public boolean equals(CancelOperation_result that) {
10872 if (that == null)
10873 return false;
10874
10875 boolean this_present_success = true && this.isSetSuccess();
10876 boolean that_present_success = true && that.isSetSuccess();
10877 if (this_present_success || that_present_success) {
10878 if (!(this_present_success && that_present_success))
10879 return false;
10880 if (!this.success.equals(that.success))
10881 return false;
10882 }
10883
10884 return true;
10885 }
10886
10887 @Override
10888 public int hashCode() {
10889 HashCodeBuilder builder = new HashCodeBuilder();
10890
10891 boolean present_success = true && (isSetSuccess());
10892 builder.append(present_success);
10893 if (present_success)
10894 builder.append(success);
10895
10896 return builder.toHashCode();
10897 }
10898
10899 public int compareTo(CancelOperation_result other) {
10900 if (!getClass().equals(other.getClass())) {
10901 return getClass().getName().compareTo(other.getClass().getName());
10902 }
10903
10904 int lastComparison = 0;
10905 CancelOperation_result typedOther = (CancelOperation_result)other;
10906
10907 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10908 if (lastComparison != 0) {
10909 return lastComparison;
10910 }
10911 if (isSetSuccess()) {
10912 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10913 if (lastComparison != 0) {
10914 return lastComparison;
10915 }
10916 }
10917 return 0;
10918 }
10919
10920 public _Fields fieldForId(int fieldId) {
10921 return _Fields.findByThriftId(fieldId);
10922 }
10923
10924 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10925 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10926 }
10927
10928 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10929 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10930 }
10931
10932 @Override
10933 public String toString() {
10934 StringBuilder sb = new StringBuilder("CancelOperation_result(");
10935 boolean first = true;
10936
10937 sb.append("success:");
10938 if (this.success == null) {
10939 sb.append("null");
10940 } else {
10941 sb.append(this.success);
10942 }
10943 first = false;
10944 sb.append(")");
10945 return sb.toString();
10946 }
10947
10948 public void validate() throws org.apache.thrift.TException {
10949
10950
10951 if (success != null) {
10952 success.validate();
10953 }
10954 }
10955
10956 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10957 try {
10958 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10959 } catch (org.apache.thrift.TException te) {
10960 throw new java.io.IOException(te);
10961 }
10962 }
10963
10964 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10965 try {
10966 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10967 } catch (org.apache.thrift.TException te) {
10968 throw new java.io.IOException(te);
10969 }
10970 }
10971
10972 private static class CancelOperation_resultStandardSchemeFactory implements SchemeFactory {
10973 public CancelOperation_resultStandardScheme getScheme() {
10974 return new CancelOperation_resultStandardScheme();
10975 }
10976 }
10977
10978 private static class CancelOperation_resultStandardScheme extends StandardScheme<CancelOperation_result> {
10979
10980 public void read(org.apache.thrift.protocol.TProtocol iprot, CancelOperation_result struct) throws org.apache.thrift.TException {
10981 org.apache.thrift.protocol.TField schemeField;
10982 iprot.readStructBegin();
10983 while (true)
10984 {
10985 schemeField = iprot.readFieldBegin();
10986 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10987 break;
10988 }
10989 switch (schemeField.id) {
10990 case 0:
10991 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
10992 struct.success = new TCancelOperationResp();
10993 struct.success.read(iprot);
10994 struct.setSuccessIsSet(true);
10995 } else {
10996 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10997 }
10998 break;
10999 default:
11000 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11001 }
11002 iprot.readFieldEnd();
11003 }
11004 iprot.readStructEnd();
11005 struct.validate();
11006 }
11007
11008 public void write(org.apache.thrift.protocol.TProtocol oprot, CancelOperation_result struct) throws org.apache.thrift.TException {
11009 struct.validate();
11010
11011 oprot.writeStructBegin(STRUCT_DESC);
11012 if (struct.success != null) {
11013 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11014 struct.success.write(oprot);
11015 oprot.writeFieldEnd();
11016 }
11017 oprot.writeFieldStop();
11018 oprot.writeStructEnd();
11019 }
11020
11021 }
11022
11023 private static class CancelOperation_resultTupleSchemeFactory implements SchemeFactory {
11024 public CancelOperation_resultTupleScheme getScheme() {
11025 return new CancelOperation_resultTupleScheme();
11026 }
11027 }
11028
11029 private static class CancelOperation_resultTupleScheme extends TupleScheme<CancelOperation_result> {
11030
11031 @Override
11032 public void write(org.apache.thrift.protocol.TProtocol prot, CancelOperation_result struct) throws org.apache.thrift.TException {
11033 TTupleProtocol oprot = (TTupleProtocol) prot;
11034 BitSet optionals = new BitSet();
11035 if (struct.isSetSuccess()) {
11036 optionals.set(0);
11037 }
11038 oprot.writeBitSet(optionals, 1);
11039 if (struct.isSetSuccess()) {
11040 struct.success.write(oprot);
11041 }
11042 }
11043
11044 @Override
11045 public void read(org.apache.thrift.protocol.TProtocol prot, CancelOperation_result struct) throws org.apache.thrift.TException {
11046 TTupleProtocol iprot = (TTupleProtocol) prot;
11047 BitSet incoming = iprot.readBitSet(1);
11048 if (incoming.get(0)) {
11049 struct.success = new TCancelOperationResp();
11050 struct.success.read(iprot);
11051 struct.setSuccessIsSet(true);
11052 }
11053 }
11054 }
11055
11056 }
11057
11058 public static class CloseOperation_args implements org.apache.thrift.TBase<CloseOperation_args, CloseOperation_args._Fields>, java.io.Serializable, Cloneable {
11059 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CloseOperation_args");
11060
11061 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);
11062
11063 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11064 static {
11065 schemes.put(StandardScheme.class, new CloseOperation_argsStandardSchemeFactory());
11066 schemes.put(TupleScheme.class, new CloseOperation_argsTupleSchemeFactory());
11067 }
11068
11069 private TCloseOperationReq req;
11070
11071
11072 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11073 REQ((short)1, "req");
11074
11075 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11076
11077 static {
11078 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11079 byName.put(field.getFieldName(), field);
11080 }
11081 }
11082
11083
11084
11085
11086 public static _Fields findByThriftId(int fieldId) {
11087 switch(fieldId) {
11088 case 1:
11089 return REQ;
11090 default:
11091 return null;
11092 }
11093 }
11094
11095
11096
11097
11098
11099 public static _Fields findByThriftIdOrThrow(int fieldId) {
11100 _Fields fields = findByThriftId(fieldId);
11101 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11102 return fields;
11103 }
11104
11105
11106
11107
11108 public static _Fields findByName(String name) {
11109 return byName.get(name);
11110 }
11111
11112 private final short _thriftId;
11113 private final String _fieldName;
11114
11115 _Fields(short thriftId, String fieldName) {
11116 _thriftId = thriftId;
11117 _fieldName = fieldName;
11118 }
11119
11120 public short getThriftFieldId() {
11121 return _thriftId;
11122 }
11123
11124 public String getFieldName() {
11125 return _fieldName;
11126 }
11127 }
11128
11129
11130 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11131 static {
11132 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11133 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
11134 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCloseOperationReq.class)));
11135 metaDataMap = Collections.unmodifiableMap(tmpMap);
11136 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CloseOperation_args.class, metaDataMap);
11137 }
11138
11139 public CloseOperation_args() {
11140 }
11141
11142 public CloseOperation_args(
11143 TCloseOperationReq req)
11144 {
11145 this();
11146 this.req = req;
11147 }
11148
11149
11150
11151
11152 public CloseOperation_args(CloseOperation_args other) {
11153 if (other.isSetReq()) {
11154 this.req = new TCloseOperationReq(other.req);
11155 }
11156 }
11157
11158 public CloseOperation_args deepCopy() {
11159 return new CloseOperation_args(this);
11160 }
11161
11162 @Override
11163 public void clear() {
11164 this.req = null;
11165 }
11166
11167 public TCloseOperationReq getReq() {
11168 return this.req;
11169 }
11170
11171 public void setReq(TCloseOperationReq req) {
11172 this.req = req;
11173 }
11174
11175 public void unsetReq() {
11176 this.req = null;
11177 }
11178
11179
11180 public boolean isSetReq() {
11181 return this.req != null;
11182 }
11183
11184 public void setReqIsSet(boolean value) {
11185 if (!value) {
11186 this.req = null;
11187 }
11188 }
11189
11190 public void setFieldValue(_Fields field, Object value) {
11191 switch (field) {
11192 case REQ:
11193 if (value == null) {
11194 unsetReq();
11195 } else {
11196 setReq((TCloseOperationReq)value);
11197 }
11198 break;
11199
11200 }
11201 }
11202
11203 public Object getFieldValue(_Fields field) {
11204 switch (field) {
11205 case REQ:
11206 return getReq();
11207
11208 }
11209 throw new IllegalStateException();
11210 }
11211
11212
11213 public boolean isSet(_Fields field) {
11214 if (field == null) {
11215 throw new IllegalArgumentException();
11216 }
11217
11218 switch (field) {
11219 case REQ:
11220 return isSetReq();
11221 }
11222 throw new IllegalStateException();
11223 }
11224
11225 @Override
11226 public boolean equals(Object that) {
11227 if (that == null)
11228 return false;
11229 if (that instanceof CloseOperation_args)
11230 return this.equals((CloseOperation_args)that);
11231 return false;
11232 }
11233
11234 public boolean equals(CloseOperation_args that) {
11235 if (that == null)
11236 return false;
11237
11238 boolean this_present_req = true && this.isSetReq();
11239 boolean that_present_req = true && that.isSetReq();
11240 if (this_present_req || that_present_req) {
11241 if (!(this_present_req && that_present_req))
11242 return false;
11243 if (!this.req.equals(that.req))
11244 return false;
11245 }
11246
11247 return true;
11248 }
11249
11250 @Override
11251 public int hashCode() {
11252 HashCodeBuilder builder = new HashCodeBuilder();
11253
11254 boolean present_req = true && (isSetReq());
11255 builder.append(present_req);
11256 if (present_req)
11257 builder.append(req);
11258
11259 return builder.toHashCode();
11260 }
11261
11262 public int compareTo(CloseOperation_args other) {
11263 if (!getClass().equals(other.getClass())) {
11264 return getClass().getName().compareTo(other.getClass().getName());
11265 }
11266
11267 int lastComparison = 0;
11268 CloseOperation_args typedOther = (CloseOperation_args)other;
11269
11270 lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq());
11271 if (lastComparison != 0) {
11272 return lastComparison;
11273 }
11274 if (isSetReq()) {
11275 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req);
11276 if (lastComparison != 0) {
11277 return lastComparison;
11278 }
11279 }
11280 return 0;
11281 }
11282
11283 public _Fields fieldForId(int fieldId) {
11284 return _Fields.findByThriftId(fieldId);
11285 }
11286
11287 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11288 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11289 }
11290
11291 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11292 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11293 }
11294
11295 @Override
11296 public String toString() {
11297 StringBuilder sb = new StringBuilder("CloseOperation_args(");
11298 boolean first = true;
11299
11300 sb.append("req:");
11301 if (this.req == null) {
11302 sb.append("null");
11303 } else {
11304 sb.append(this.req);
11305 }
11306 first = false;
11307 sb.append(")");
11308 return sb.toString();
11309 }
11310
11311 public void validate() throws org.apache.thrift.TException {
11312
11313
11314 if (req != null) {
11315 req.validate();
11316 }
11317 }
11318
11319 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11320 try {
11321 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11322 } catch (org.apache.thrift.TException te) {
11323 throw new java.io.IOException(te);
11324 }
11325 }
11326
11327 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11328 try {
11329 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11330 } catch (org.apache.thrift.TException te) {
11331 throw new java.io.IOException(te);
11332 }
11333 }
11334
11335 private static class CloseOperation_argsStandardSchemeFactory implements SchemeFactory {
11336 public CloseOperation_argsStandardScheme getScheme() {
11337 return new CloseOperation_argsStandardScheme();
11338 }
11339 }
11340
11341 private static class CloseOperation_argsStandardScheme extends StandardScheme<CloseOperation_args> {
11342
11343 public void read(org.apache.thrift.protocol.TProtocol iprot, CloseOperation_args struct) throws org.apache.thrift.TException {
11344 org.apache.thrift.protocol.TField schemeField;
11345 iprot.readStructBegin();
11346 while (true)
11347 {
11348 schemeField = iprot.readFieldBegin();
11349 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11350 break;
11351 }
11352 switch (schemeField.id) {
11353 case 1:
11354 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
11355 struct.req = new TCloseOperationReq();
11356 struct.req.read(iprot);
11357 struct.setReqIsSet(true);
11358 } else {
11359 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11360 }
11361 break;
11362 default:
11363 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11364 }
11365 iprot.readFieldEnd();
11366 }
11367 iprot.readStructEnd();
11368 struct.validate();
11369 }
11370
11371 public void write(org.apache.thrift.protocol.TProtocol oprot, CloseOperation_args struct) throws org.apache.thrift.TException {
11372 struct.validate();
11373
11374 oprot.writeStructBegin(STRUCT_DESC);
11375 if (struct.req != null) {
11376 oprot.writeFieldBegin(REQ_FIELD_DESC);
11377 struct.req.write(oprot);
11378 oprot.writeFieldEnd();
11379 }
11380 oprot.writeFieldStop();
11381 oprot.writeStructEnd();
11382 }
11383
11384 }
11385
11386 private static class CloseOperation_argsTupleSchemeFactory implements SchemeFactory {
11387 public CloseOperation_argsTupleScheme getScheme() {
11388 return new CloseOperation_argsTupleScheme();
11389 }
11390 }
11391
11392 private static class CloseOperation_argsTupleScheme extends TupleScheme<CloseOperation_args> {
11393
11394 @Override
11395 public void write(org.apache.thrift.protocol.TProtocol prot, CloseOperation_args struct) throws org.apache.thrift.TException {
11396 TTupleProtocol oprot = (TTupleProtocol) prot;
11397 BitSet optionals = new BitSet();
11398 if (struct.isSetReq()) {
11399 optionals.set(0);
11400 }
11401 oprot.writeBitSet(optionals, 1);
11402 if (struct.isSetReq()) {
11403 struct.req.write(oprot);
11404 }
11405 }
11406
11407 @Override
11408 public void read(org.apache.thrift.protocol.TProtocol prot, CloseOperation_args struct) throws org.apache.thrift.TException {
11409 TTupleProtocol iprot = (TTupleProtocol) prot;
11410 BitSet incoming = iprot.readBitSet(1);
11411 if (incoming.get(0)) {
11412 struct.req = new TCloseOperationReq();
11413 struct.req.read(iprot);
11414 struct.setReqIsSet(true);
11415 }
11416 }
11417 }
11418
11419 }
11420
11421 public static class CloseOperation_result implements org.apache.thrift.TBase<CloseOperation_result, CloseOperation_result._Fields>, java.io.Serializable, Cloneable {
11422 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CloseOperation_result");
11423
11424 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);
11425
11426 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11427 static {
11428 schemes.put(StandardScheme.class, new CloseOperation_resultStandardSchemeFactory());
11429 schemes.put(TupleScheme.class, new CloseOperation_resultTupleSchemeFactory());
11430 }
11431
11432 private TCloseOperationResp success;
11433
11434
11435 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11436 SUCCESS((short)0, "success");
11437
11438 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11439
11440 static {
11441 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11442 byName.put(field.getFieldName(), field);
11443 }
11444 }
11445
11446
11447
11448
11449 public static _Fields findByThriftId(int fieldId) {
11450 switch(fieldId) {
11451 case 0:
11452 return SUCCESS;
11453 default:
11454 return null;
11455 }
11456 }
11457
11458
11459
11460
11461
11462 public static _Fields findByThriftIdOrThrow(int fieldId) {
11463 _Fields fields = findByThriftId(fieldId);
11464 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11465 return fields;
11466 }
11467
11468
11469
11470
11471 public static _Fields findByName(String name) {
11472 return byName.get(name);
11473 }
11474
11475 private final short _thriftId;
11476 private final String _fieldName;
11477
11478 _Fields(short thriftId, String fieldName) {
11479 _thriftId = thriftId;
11480 _fieldName = fieldName;
11481 }
11482
11483 public short getThriftFieldId() {
11484 return _thriftId;
11485 }
11486
11487 public String getFieldName() {
11488 return _fieldName;
11489 }
11490 }
11491
11492
11493 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11494 static {
11495 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11496 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
11497 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCloseOperationResp.class)));
11498 metaDataMap = Collections.unmodifiableMap(tmpMap);
11499 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CloseOperation_result.class, metaDataMap);
11500 }
11501
11502 public CloseOperation_result() {
11503 }
11504
11505 public CloseOperation_result(
11506 TCloseOperationResp success)
11507 {
11508 this();
11509 this.success = success;
11510 }
11511
11512
11513
11514
11515 public CloseOperation_result(CloseOperation_result other) {
11516 if (other.isSetSuccess()) {
11517 this.success = new TCloseOperationResp(other.success);
11518 }
11519 }
11520
11521 public CloseOperation_result deepCopy() {
11522 return new CloseOperation_result(this);
11523 }
11524
11525 @Override
11526 public void clear() {
11527 this.success = null;
11528 }
11529
11530 public TCloseOperationResp getSuccess() {
11531 return this.success;
11532 }
11533
11534 public void setSuccess(TCloseOperationResp success) {
11535 this.success = success;
11536 }
11537
11538 public void unsetSuccess() {
11539 this.success = null;
11540 }
11541
11542
11543 public boolean isSetSuccess() {
11544 return this.success != null;
11545 }
11546
11547 public void setSuccessIsSet(boolean value) {
11548 if (!value) {
11549 this.success = null;
11550 }
11551 }
11552
11553 public void setFieldValue(_Fields field, Object value) {
11554 switch (field) {
11555 case SUCCESS:
11556 if (value == null) {
11557 unsetSuccess();
11558 } else {
11559 setSuccess((TCloseOperationResp)value);
11560 }
11561 break;
11562
11563 }
11564 }
11565
11566 public Object getFieldValue(_Fields field) {
11567 switch (field) {
11568 case SUCCESS:
11569 return getSuccess();
11570
11571 }
11572 throw new IllegalStateException();
11573 }
11574
11575
11576 public boolean isSet(_Fields field) {
11577 if (field == null) {
11578 throw new IllegalArgumentException();
11579 }
11580
11581 switch (field) {
11582 case SUCCESS:
11583 return isSetSuccess();
11584 }
11585 throw new IllegalStateException();
11586 }
11587
11588 @Override
11589 public boolean equals(Object that) {
11590 if (that == null)
11591 return false;
11592 if (that instanceof CloseOperation_result)
11593 return this.equals((CloseOperation_result)that);
11594 return false;
11595 }
11596
11597 public boolean equals(CloseOperation_result that) {
11598 if (that == null)
11599 return false;
11600
11601 boolean this_present_success = true && this.isSetSuccess();
11602 boolean that_present_success = true && that.isSetSuccess();
11603 if (this_present_success || that_present_success) {
11604 if (!(this_present_success && that_present_success))
11605 return false;
11606 if (!this.success.equals(that.success))
11607 return false;
11608 }
11609
11610 return true;
11611 }
11612
11613 @Override
11614 public int hashCode() {
11615 HashCodeBuilder builder = new HashCodeBuilder();
11616
11617 boolean present_success = true && (isSetSuccess());
11618 builder.append(present_success);
11619 if (present_success)
11620 builder.append(success);
11621
11622 return builder.toHashCode();
11623 }
11624
11625 public int compareTo(CloseOperation_result other) {
11626 if (!getClass().equals(other.getClass())) {
11627 return getClass().getName().compareTo(other.getClass().getName());
11628 }
11629
11630 int lastComparison = 0;
11631 CloseOperation_result typedOther = (CloseOperation_result)other;
11632
11633 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11634 if (lastComparison != 0) {
11635 return lastComparison;
11636 }
11637 if (isSetSuccess()) {
11638 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11639 if (lastComparison != 0) {
11640 return lastComparison;
11641 }
11642 }
11643 return 0;
11644 }
11645
11646 public _Fields fieldForId(int fieldId) {
11647 return _Fields.findByThriftId(fieldId);
11648 }
11649
11650 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11651 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11652 }
11653
11654 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11655 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11656 }
11657
11658 @Override
11659 public String toString() {
11660 StringBuilder sb = new StringBuilder("CloseOperation_result(");
11661 boolean first = true;
11662
11663 sb.append("success:");
11664 if (this.success == null) {
11665 sb.append("null");
11666 } else {
11667 sb.append(this.success);
11668 }
11669 first = false;
11670 sb.append(")");
11671 return sb.toString();
11672 }
11673
11674 public void validate() throws org.apache.thrift.TException {
11675
11676
11677 if (success != null) {
11678 success.validate();
11679 }
11680 }
11681
11682 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11683 try {
11684 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11685 } catch (org.apache.thrift.TException te) {
11686 throw new java.io.IOException(te);
11687 }
11688 }
11689
11690 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11691 try {
11692 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11693 } catch (org.apache.thrift.TException te) {
11694 throw new java.io.IOException(te);
11695 }
11696 }
11697
11698 private static class CloseOperation_resultStandardSchemeFactory implements SchemeFactory {
11699 public CloseOperation_resultStandardScheme getScheme() {
11700 return new CloseOperation_resultStandardScheme();
11701 }
11702 }
11703
11704 private static class CloseOperation_resultStandardScheme extends StandardScheme<CloseOperation_result> {
11705
11706 public void read(org.apache.thrift.protocol.TProtocol iprot, CloseOperation_result struct) throws org.apache.thrift.TException {
11707 org.apache.thrift.protocol.TField schemeField;
11708 iprot.readStructBegin();
11709 while (true)
11710 {
11711 schemeField = iprot.readFieldBegin();
11712 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11713 break;
11714 }
11715 switch (schemeField.id) {
11716 case 0:
11717 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
11718 struct.success = new TCloseOperationResp();
11719 struct.success.read(iprot);
11720 struct.setSuccessIsSet(true);
11721 } else {
11722 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11723 }
11724 break;
11725 default:
11726 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11727 }
11728 iprot.readFieldEnd();
11729 }
11730 iprot.readStructEnd();
11731 struct.validate();
11732 }
11733
11734 public void write(org.apache.thrift.protocol.TProtocol oprot, CloseOperation_result struct) throws org.apache.thrift.TException {
11735 struct.validate();
11736
11737 oprot.writeStructBegin(STRUCT_DESC);
11738 if (struct.success != null) {
11739 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11740 struct.success.write(oprot);
11741 oprot.writeFieldEnd();
11742 }
11743 oprot.writeFieldStop();
11744 oprot.writeStructEnd();
11745 }
11746
11747 }
11748
11749 private static class CloseOperation_resultTupleSchemeFactory implements SchemeFactory {
11750 public CloseOperation_resultTupleScheme getScheme() {
11751 return new CloseOperation_resultTupleScheme();
11752 }
11753 }
11754
11755 private static class CloseOperation_resultTupleScheme extends TupleScheme<CloseOperation_result> {
11756
11757 @Override
11758 public void write(org.apache.thrift.protocol.TProtocol prot, CloseOperation_result struct) throws org.apache.thrift.TException {
11759 TTupleProtocol oprot = (TTupleProtocol) prot;
11760 BitSet optionals = new BitSet();
11761 if (struct.isSetSuccess()) {
11762 optionals.set(0);
11763 }
11764 oprot.writeBitSet(optionals, 1);
11765 if (struct.isSetSuccess()) {
11766 struct.success.write(oprot);
11767 }
11768 }
11769
11770 @Override
11771 public void read(org.apache.thrift.protocol.TProtocol prot, CloseOperation_result struct) throws org.apache.thrift.TException {
11772 TTupleProtocol iprot = (TTupleProtocol) prot;
11773 BitSet incoming = iprot.readBitSet(1);
11774 if (incoming.get(0)) {
11775 struct.success = new TCloseOperationResp();
11776 struct.success.read(iprot);
11777 struct.setSuccessIsSet(true);
11778 }
11779 }
11780 }
11781
11782 }
11783
11784 public static class GetResultSetMetadata_args implements org.apache.thrift.TBase<GetResultSetMetadata_args, GetResultSetMetadata_args._Fields>, java.io.Serializable, Cloneable {
11785 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetResultSetMetadata_args");
11786
11787 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);
11788
11789 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11790 static {
11791 schemes.put(StandardScheme.class, new GetResultSetMetadata_argsStandardSchemeFactory());
11792 schemes.put(TupleScheme.class, new GetResultSetMetadata_argsTupleSchemeFactory());
11793 }
11794
11795 private TGetResultSetMetadataReq req;
11796
11797
11798 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11799 REQ((short)1, "req");
11800
11801 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11802
11803 static {
11804 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11805 byName.put(field.getFieldName(), field);
11806 }
11807 }
11808
11809
11810
11811
11812 public static _Fields findByThriftId(int fieldId) {
11813 switch(fieldId) {
11814 case 1:
11815 return REQ;
11816 default:
11817 return null;
11818 }
11819 }
11820
11821
11822
11823
11824
11825 public static _Fields findByThriftIdOrThrow(int fieldId) {
11826 _Fields fields = findByThriftId(fieldId);
11827 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11828 return fields;
11829 }
11830
11831
11832
11833
11834 public static _Fields findByName(String name) {
11835 return byName.get(name);
11836 }
11837
11838 private final short _thriftId;
11839 private final String _fieldName;
11840
11841 _Fields(short thriftId, String fieldName) {
11842 _thriftId = thriftId;
11843 _fieldName = fieldName;
11844 }
11845
11846 public short getThriftFieldId() {
11847 return _thriftId;
11848 }
11849
11850 public String getFieldName() {
11851 return _fieldName;
11852 }
11853 }
11854
11855
11856 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11857 static {
11858 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11859 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
11860 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetResultSetMetadataReq.class)));
11861 metaDataMap = Collections.unmodifiableMap(tmpMap);
11862 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetResultSetMetadata_args.class, metaDataMap);
11863 }
11864
11865 public GetResultSetMetadata_args() {
11866 }
11867
11868 public GetResultSetMetadata_args(
11869 TGetResultSetMetadataReq req)
11870 {
11871 this();
11872 this.req = req;
11873 }
11874
11875
11876
11877
11878 public GetResultSetMetadata_args(GetResultSetMetadata_args other) {
11879 if (other.isSetReq()) {
11880 this.req = new TGetResultSetMetadataReq(other.req);
11881 }
11882 }
11883
11884 public GetResultSetMetadata_args deepCopy() {
11885 return new GetResultSetMetadata_args(this);
11886 }
11887
11888 @Override
11889 public void clear() {
11890 this.req = null;
11891 }
11892
11893 public TGetResultSetMetadataReq getReq() {
11894 return this.req;
11895 }
11896
11897 public void setReq(TGetResultSetMetadataReq req) {
11898 this.req = req;
11899 }
11900
11901 public void unsetReq() {
11902 this.req = null;
11903 }
11904
11905
11906 public boolean isSetReq() {
11907 return this.req != null;
11908 }
11909
11910 public void setReqIsSet(boolean value) {
11911 if (!value) {
11912 this.req = null;
11913 }
11914 }
11915
11916 public void setFieldValue(_Fields field, Object value) {
11917 switch (field) {
11918 case REQ:
11919 if (value == null) {
11920 unsetReq();
11921 } else {
11922 setReq((TGetResultSetMetadataReq)value);
11923 }
11924 break;
11925
11926 }
11927 }
11928
11929 public Object getFieldValue(_Fields field) {
11930 switch (field) {
11931 case REQ:
11932 return getReq();
11933
11934 }
11935 throw new IllegalStateException();
11936 }
11937
11938
11939 public boolean isSet(_Fields field) {
11940 if (field == null) {
11941 throw new IllegalArgumentException();
11942 }
11943
11944 switch (field) {
11945 case REQ:
11946 return isSetReq();
11947 }
11948 throw new IllegalStateException();
11949 }
11950
11951 @Override
11952 public boolean equals(Object that) {
11953 if (that == null)
11954 return false;
11955 if (that instanceof GetResultSetMetadata_args)
11956 return this.equals((GetResultSetMetadata_args)that);
11957 return false;
11958 }
11959
11960 public boolean equals(GetResultSetMetadata_args that) {
11961 if (that == null)
11962 return false;
11963
11964 boolean this_present_req = true && this.isSetReq();
11965 boolean that_present_req = true && that.isSetReq();
11966 if (this_present_req || that_present_req) {
11967 if (!(this_present_req && that_present_req))
11968 return false;
11969 if (!this.req.equals(that.req))
11970 return false;
11971 }
11972
11973 return true;
11974 }
11975
11976 @Override
11977 public int hashCode() {
11978 HashCodeBuilder builder = new HashCodeBuilder();
11979
11980 boolean present_req = true && (isSetReq());
11981 builder.append(present_req);
11982 if (present_req)
11983 builder.append(req);
11984
11985 return builder.toHashCode();
11986 }
11987
11988 public int compareTo(GetResultSetMetadata_args other) {
11989 if (!getClass().equals(other.getClass())) {
11990 return getClass().getName().compareTo(other.getClass().getName());
11991 }
11992
11993 int lastComparison = 0;
11994 GetResultSetMetadata_args typedOther = (GetResultSetMetadata_args)other;
11995
11996 lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq());
11997 if (lastComparison != 0) {
11998 return lastComparison;
11999 }
12000 if (isSetReq()) {
12001 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req);
12002 if (lastComparison != 0) {
12003 return lastComparison;
12004 }
12005 }
12006 return 0;
12007 }
12008
12009 public _Fields fieldForId(int fieldId) {
12010 return _Fields.findByThriftId(fieldId);
12011 }
12012
12013 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12014 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12015 }
12016
12017 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12018 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12019 }
12020
12021 @Override
12022 public String toString() {
12023 StringBuilder sb = new StringBuilder("GetResultSetMetadata_args(");
12024 boolean first = true;
12025
12026 sb.append("req:");
12027 if (this.req == null) {
12028 sb.append("null");
12029 } else {
12030 sb.append(this.req);
12031 }
12032 first = false;
12033 sb.append(")");
12034 return sb.toString();
12035 }
12036
12037 public void validate() throws org.apache.thrift.TException {
12038
12039
12040 if (req != null) {
12041 req.validate();
12042 }
12043 }
12044
12045 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12046 try {
12047 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12048 } catch (org.apache.thrift.TException te) {
12049 throw new java.io.IOException(te);
12050 }
12051 }
12052
12053 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12054 try {
12055 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12056 } catch (org.apache.thrift.TException te) {
12057 throw new java.io.IOException(te);
12058 }
12059 }
12060
12061 private static class GetResultSetMetadata_argsStandardSchemeFactory implements SchemeFactory {
12062 public GetResultSetMetadata_argsStandardScheme getScheme() {
12063 return new GetResultSetMetadata_argsStandardScheme();
12064 }
12065 }
12066
12067 private static class GetResultSetMetadata_argsStandardScheme extends StandardScheme<GetResultSetMetadata_args> {
12068
12069 public void read(org.apache.thrift.protocol.TProtocol iprot, GetResultSetMetadata_args struct) throws org.apache.thrift.TException {
12070 org.apache.thrift.protocol.TField schemeField;
12071 iprot.readStructBegin();
12072 while (true)
12073 {
12074 schemeField = iprot.readFieldBegin();
12075 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12076 break;
12077 }
12078 switch (schemeField.id) {
12079 case 1:
12080 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
12081 struct.req = new TGetResultSetMetadataReq();
12082 struct.req.read(iprot);
12083 struct.setReqIsSet(true);
12084 } else {
12085 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12086 }
12087 break;
12088 default:
12089 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12090 }
12091 iprot.readFieldEnd();
12092 }
12093 iprot.readStructEnd();
12094 struct.validate();
12095 }
12096
12097 public void write(org.apache.thrift.protocol.TProtocol oprot, GetResultSetMetadata_args struct) throws org.apache.thrift.TException {
12098 struct.validate();
12099
12100 oprot.writeStructBegin(STRUCT_DESC);
12101 if (struct.req != null) {
12102 oprot.writeFieldBegin(REQ_FIELD_DESC);
12103 struct.req.write(oprot);
12104 oprot.writeFieldEnd();
12105 }
12106 oprot.writeFieldStop();
12107 oprot.writeStructEnd();
12108 }
12109
12110 }
12111
12112 private static class GetResultSetMetadata_argsTupleSchemeFactory implements SchemeFactory {
12113 public GetResultSetMetadata_argsTupleScheme getScheme() {
12114 return new GetResultSetMetadata_argsTupleScheme();
12115 }
12116 }
12117
12118 private static class GetResultSetMetadata_argsTupleScheme extends TupleScheme<GetResultSetMetadata_args> {
12119
12120 @Override
12121 public void write(org.apache.thrift.protocol.TProtocol prot, GetResultSetMetadata_args struct) throws org.apache.thrift.TException {
12122 TTupleProtocol oprot = (TTupleProtocol) prot;
12123 BitSet optionals = new BitSet();
12124 if (struct.isSetReq()) {
12125 optionals.set(0);
12126 }
12127 oprot.writeBitSet(optionals, 1);
12128 if (struct.isSetReq()) {
12129 struct.req.write(oprot);
12130 }
12131 }
12132
12133 @Override
12134 public void read(org.apache.thrift.protocol.TProtocol prot, GetResultSetMetadata_args struct) throws org.apache.thrift.TException {
12135 TTupleProtocol iprot = (TTupleProtocol) prot;
12136 BitSet incoming = iprot.readBitSet(1);
12137 if (incoming.get(0)) {
12138 struct.req = new TGetResultSetMetadataReq();
12139 struct.req.read(iprot);
12140 struct.setReqIsSet(true);
12141 }
12142 }
12143 }
12144
12145 }
12146
12147 public static class GetResultSetMetadata_result implements org.apache.thrift.TBase<GetResultSetMetadata_result, GetResultSetMetadata_result._Fields>, java.io.Serializable, Cloneable {
12148 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetResultSetMetadata_result");
12149
12150 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);
12151
12152 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12153 static {
12154 schemes.put(StandardScheme.class, new GetResultSetMetadata_resultStandardSchemeFactory());
12155 schemes.put(TupleScheme.class, new GetResultSetMetadata_resultTupleSchemeFactory());
12156 }
12157
12158 private TGetResultSetMetadataResp success;
12159
12160
12161 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12162 SUCCESS((short)0, "success");
12163
12164 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12165
12166 static {
12167 for (_Fields field : EnumSet.allOf(_Fields.class)) {
12168 byName.put(field.getFieldName(), field);
12169 }
12170 }
12171
12172
12173
12174
12175 public static _Fields findByThriftId(int fieldId) {
12176 switch(fieldId) {
12177 case 0:
12178 return SUCCESS;
12179 default:
12180 return null;
12181 }
12182 }
12183
12184
12185
12186
12187
12188 public static _Fields findByThriftIdOrThrow(int fieldId) {
12189 _Fields fields = findByThriftId(fieldId);
12190 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12191 return fields;
12192 }
12193
12194
12195
12196
12197 public static _Fields findByName(String name) {
12198 return byName.get(name);
12199 }
12200
12201 private final short _thriftId;
12202 private final String _fieldName;
12203
12204 _Fields(short thriftId, String fieldName) {
12205 _thriftId = thriftId;
12206 _fieldName = fieldName;
12207 }
12208
12209 public short getThriftFieldId() {
12210 return _thriftId;
12211 }
12212
12213 public String getFieldName() {
12214 return _fieldName;
12215 }
12216 }
12217
12218
12219 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12220 static {
12221 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12222 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
12223 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetResultSetMetadataResp.class)));
12224 metaDataMap = Collections.unmodifiableMap(tmpMap);
12225 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetResultSetMetadata_result.class, metaDataMap);
12226 }
12227
12228 public GetResultSetMetadata_result() {
12229 }
12230
12231 public GetResultSetMetadata_result(
12232 TGetResultSetMetadataResp success)
12233 {
12234 this();
12235 this.success = success;
12236 }
12237
12238
12239
12240
12241 public GetResultSetMetadata_result(GetResultSetMetadata_result other) {
12242 if (other.isSetSuccess()) {
12243 this.success = new TGetResultSetMetadataResp(other.success);
12244 }
12245 }
12246
12247 public GetResultSetMetadata_result deepCopy() {
12248 return new GetResultSetMetadata_result(this);
12249 }
12250
12251 @Override
12252 public void clear() {
12253 this.success = null;
12254 }
12255
12256 public TGetResultSetMetadataResp getSuccess() {
12257 return this.success;
12258 }
12259
12260 public void setSuccess(TGetResultSetMetadataResp success) {
12261 this.success = success;
12262 }
12263
12264 public void unsetSuccess() {
12265 this.success = null;
12266 }
12267
12268
12269 public boolean isSetSuccess() {
12270 return this.success != null;
12271 }
12272
12273 public void setSuccessIsSet(boolean value) {
12274 if (!value) {
12275 this.success = null;
12276 }
12277 }
12278
12279 public void setFieldValue(_Fields field, Object value) {
12280 switch (field) {
12281 case SUCCESS:
12282 if (value == null) {
12283 unsetSuccess();
12284 } else {
12285 setSuccess((TGetResultSetMetadataResp)value);
12286 }
12287 break;
12288
12289 }
12290 }
12291
12292 public Object getFieldValue(_Fields field) {
12293 switch (field) {
12294 case SUCCESS:
12295 return getSuccess();
12296
12297 }
12298 throw new IllegalStateException();
12299 }
12300
12301
12302 public boolean isSet(_Fields field) {
12303 if (field == null) {
12304 throw new IllegalArgumentException();
12305 }
12306
12307 switch (field) {
12308 case SUCCESS:
12309 return isSetSuccess();
12310 }
12311 throw new IllegalStateException();
12312 }
12313
12314 @Override
12315 public boolean equals(Object that) {
12316 if (that == null)
12317 return false;
12318 if (that instanceof GetResultSetMetadata_result)
12319 return this.equals((GetResultSetMetadata_result)that);
12320 return false;
12321 }
12322
12323 public boolean equals(GetResultSetMetadata_result that) {
12324 if (that == null)
12325 return false;
12326
12327 boolean this_present_success = true && this.isSetSuccess();
12328 boolean that_present_success = true && that.isSetSuccess();
12329 if (this_present_success || that_present_success) {
12330 if (!(this_present_success && that_present_success))
12331 return false;
12332 if (!this.success.equals(that.success))
12333 return false;
12334 }
12335
12336 return true;
12337 }
12338
12339 @Override
12340 public int hashCode() {
12341 HashCodeBuilder builder = new HashCodeBuilder();
12342
12343 boolean present_success = true && (isSetSuccess());
12344 builder.append(present_success);
12345 if (present_success)
12346 builder.append(success);
12347
12348 return builder.toHashCode();
12349 }
12350
12351 public int compareTo(GetResultSetMetadata_result other) {
12352 if (!getClass().equals(other.getClass())) {
12353 return getClass().getName().compareTo(other.getClass().getName());
12354 }
12355
12356 int lastComparison = 0;
12357 GetResultSetMetadata_result typedOther = (GetResultSetMetadata_result)other;
12358
12359 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12360 if (lastComparison != 0) {
12361 return lastComparison;
12362 }
12363 if (isSetSuccess()) {
12364 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12365 if (lastComparison != 0) {
12366 return lastComparison;
12367 }
12368 }
12369 return 0;
12370 }
12371
12372 public _Fields fieldForId(int fieldId) {
12373 return _Fields.findByThriftId(fieldId);
12374 }
12375
12376 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12377 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12378 }
12379
12380 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12381 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12382 }
12383
12384 @Override
12385 public String toString() {
12386 StringBuilder sb = new StringBuilder("GetResultSetMetadata_result(");
12387 boolean first = true;
12388
12389 sb.append("success:");
12390 if (this.success == null) {
12391 sb.append("null");
12392 } else {
12393 sb.append(this.success);
12394 }
12395 first = false;
12396 sb.append(")");
12397 return sb.toString();
12398 }
12399
12400 public void validate() throws org.apache.thrift.TException {
12401
12402
12403 if (success != null) {
12404 success.validate();
12405 }
12406 }
12407
12408 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12409 try {
12410 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12411 } catch (org.apache.thrift.TException te) {
12412 throw new java.io.IOException(te);
12413 }
12414 }
12415
12416 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12417 try {
12418 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12419 } catch (org.apache.thrift.TException te) {
12420 throw new java.io.IOException(te);
12421 }
12422 }
12423
12424 private static class GetResultSetMetadata_resultStandardSchemeFactory implements SchemeFactory {
12425 public GetResultSetMetadata_resultStandardScheme getScheme() {
12426 return new GetResultSetMetadata_resultStandardScheme();
12427 }
12428 }
12429
12430 private static class GetResultSetMetadata_resultStandardScheme extends StandardScheme<GetResultSetMetadata_result> {
12431
12432 public void read(org.apache.thrift.protocol.TProtocol iprot, GetResultSetMetadata_result struct) throws org.apache.thrift.TException {
12433 org.apache.thrift.protocol.TField schemeField;
12434 iprot.readStructBegin();
12435 while (true)
12436 {
12437 schemeField = iprot.readFieldBegin();
12438 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12439 break;
12440 }
12441 switch (schemeField.id) {
12442 case 0:
12443 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
12444 struct.success = new TGetResultSetMetadataResp();
12445 struct.success.read(iprot);
12446 struct.setSuccessIsSet(true);
12447 } else {
12448 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12449 }
12450 break;
12451 default:
12452 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12453 }
12454 iprot.readFieldEnd();
12455 }
12456 iprot.readStructEnd();
12457 struct.validate();
12458 }
12459
12460 public void write(org.apache.thrift.protocol.TProtocol oprot, GetResultSetMetadata_result struct) throws org.apache.thrift.TException {
12461 struct.validate();
12462
12463 oprot.writeStructBegin(STRUCT_DESC);
12464 if (struct.success != null) {
12465 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12466 struct.success.write(oprot);
12467 oprot.writeFieldEnd();
12468 }
12469 oprot.writeFieldStop();
12470 oprot.writeStructEnd();
12471 }
12472
12473 }
12474
12475 private static class GetResultSetMetadata_resultTupleSchemeFactory implements SchemeFactory {
12476 public GetResultSetMetadata_resultTupleScheme getScheme() {
12477 return new GetResultSetMetadata_resultTupleScheme();
12478 }
12479 }
12480
12481 private static class GetResultSetMetadata_resultTupleScheme extends TupleScheme<GetResultSetMetadata_result> {
12482
12483 @Override
12484 public void write(org.apache.thrift.protocol.TProtocol prot, GetResultSetMetadata_result struct) throws org.apache.thrift.TException {
12485 TTupleProtocol oprot = (TTupleProtocol) prot;
12486 BitSet optionals = new BitSet();
12487 if (struct.isSetSuccess()) {
12488 optionals.set(0);
12489 }
12490 oprot.writeBitSet(optionals, 1);
12491 if (struct.isSetSuccess()) {
12492 struct.success.write(oprot);
12493 }
12494 }
12495
12496 @Override
12497 public void read(org.apache.thrift.protocol.TProtocol prot, GetResultSetMetadata_result struct) throws org.apache.thrift.TException {
12498 TTupleProtocol iprot = (TTupleProtocol) prot;
12499 BitSet incoming = iprot.readBitSet(1);
12500 if (incoming.get(0)) {
12501 struct.success = new TGetResultSetMetadataResp();
12502 struct.success.read(iprot);
12503 struct.setSuccessIsSet(true);
12504 }
12505 }
12506 }
12507
12508 }
12509
12510 public static class FetchResults_args implements org.apache.thrift.TBase<FetchResults_args, FetchResults_args._Fields>, java.io.Serializable, Cloneable {
12511 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FetchResults_args");
12512
12513 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);
12514
12515 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12516 static {
12517 schemes.put(StandardScheme.class, new FetchResults_argsStandardSchemeFactory());
12518 schemes.put(TupleScheme.class, new FetchResults_argsTupleSchemeFactory());
12519 }
12520
12521 private TFetchResultsReq req;
12522
12523
12524 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12525 REQ((short)1, "req");
12526
12527 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12528
12529 static {
12530 for (_Fields field : EnumSet.allOf(_Fields.class)) {
12531 byName.put(field.getFieldName(), field);
12532 }
12533 }
12534
12535
12536
12537
12538 public static _Fields findByThriftId(int fieldId) {
12539 switch(fieldId) {
12540 case 1:
12541 return REQ;
12542 default:
12543 return null;
12544 }
12545 }
12546
12547
12548
12549
12550
12551 public static _Fields findByThriftIdOrThrow(int fieldId) {
12552 _Fields fields = findByThriftId(fieldId);
12553 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12554 return fields;
12555 }
12556
12557
12558
12559
12560 public static _Fields findByName(String name) {
12561 return byName.get(name);
12562 }
12563
12564 private final short _thriftId;
12565 private final String _fieldName;
12566
12567 _Fields(short thriftId, String fieldName) {
12568 _thriftId = thriftId;
12569 _fieldName = fieldName;
12570 }
12571
12572 public short getThriftFieldId() {
12573 return _thriftId;
12574 }
12575
12576 public String getFieldName() {
12577 return _fieldName;
12578 }
12579 }
12580
12581
12582 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12583 static {
12584 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12585 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
12586 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TFetchResultsReq.class)));
12587 metaDataMap = Collections.unmodifiableMap(tmpMap);
12588 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(FetchResults_args.class, metaDataMap);
12589 }
12590
12591 public FetchResults_args() {
12592 }
12593
12594 public FetchResults_args(
12595 TFetchResultsReq req)
12596 {
12597 this();
12598 this.req = req;
12599 }
12600
12601
12602
12603
12604 public FetchResults_args(FetchResults_args other) {
12605 if (other.isSetReq()) {
12606 this.req = new TFetchResultsReq(other.req);
12607 }
12608 }
12609
12610 public FetchResults_args deepCopy() {
12611 return new FetchResults_args(this);
12612 }
12613
12614 @Override
12615 public void clear() {
12616 this.req = null;
12617 }
12618
12619 public TFetchResultsReq getReq() {
12620 return this.req;
12621 }
12622
12623 public void setReq(TFetchResultsReq req) {
12624 this.req = req;
12625 }
12626
12627 public void unsetReq() {
12628 this.req = null;
12629 }
12630
12631
12632 public boolean isSetReq() {
12633 return this.req != null;
12634 }
12635
12636 public void setReqIsSet(boolean value) {
12637 if (!value) {
12638 this.req = null;
12639 }
12640 }
12641
12642 public void setFieldValue(_Fields field, Object value) {
12643 switch (field) {
12644 case REQ:
12645 if (value == null) {
12646 unsetReq();
12647 } else {
12648 setReq((TFetchResultsReq)value);
12649 }
12650 break;
12651
12652 }
12653 }
12654
12655 public Object getFieldValue(_Fields field) {
12656 switch (field) {
12657 case REQ:
12658 return getReq();
12659
12660 }
12661 throw new IllegalStateException();
12662 }
12663
12664
12665 public boolean isSet(_Fields field) {
12666 if (field == null) {
12667 throw new IllegalArgumentException();
12668 }
12669
12670 switch (field) {
12671 case REQ:
12672 return isSetReq();
12673 }
12674 throw new IllegalStateException();
12675 }
12676
12677 @Override
12678 public boolean equals(Object that) {
12679 if (that == null)
12680 return false;
12681 if (that instanceof FetchResults_args)
12682 return this.equals((FetchResults_args)that);
12683 return false;
12684 }
12685
12686 public boolean equals(FetchResults_args that) {
12687 if (that == null)
12688 return false;
12689
12690 boolean this_present_req = true && this.isSetReq();
12691 boolean that_present_req = true && that.isSetReq();
12692 if (this_present_req || that_present_req) {
12693 if (!(this_present_req && that_present_req))
12694 return false;
12695 if (!this.req.equals(that.req))
12696 return false;
12697 }
12698
12699 return true;
12700 }
12701
12702 @Override
12703 public int hashCode() {
12704 HashCodeBuilder builder = new HashCodeBuilder();
12705
12706 boolean present_req = true && (isSetReq());
12707 builder.append(present_req);
12708 if (present_req)
12709 builder.append(req);
12710
12711 return builder.toHashCode();
12712 }
12713
12714 public int compareTo(FetchResults_args other) {
12715 if (!getClass().equals(other.getClass())) {
12716 return getClass().getName().compareTo(other.getClass().getName());
12717 }
12718
12719 int lastComparison = 0;
12720 FetchResults_args typedOther = (FetchResults_args)other;
12721
12722 lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq());
12723 if (lastComparison != 0) {
12724 return lastComparison;
12725 }
12726 if (isSetReq()) {
12727 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req);
12728 if (lastComparison != 0) {
12729 return lastComparison;
12730 }
12731 }
12732 return 0;
12733 }
12734
12735 public _Fields fieldForId(int fieldId) {
12736 return _Fields.findByThriftId(fieldId);
12737 }
12738
12739 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12740 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12741 }
12742
12743 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12744 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12745 }
12746
12747 @Override
12748 public String toString() {
12749 StringBuilder sb = new StringBuilder("FetchResults_args(");
12750 boolean first = true;
12751
12752 sb.append("req:");
12753 if (this.req == null) {
12754 sb.append("null");
12755 } else {
12756 sb.append(this.req);
12757 }
12758 first = false;
12759 sb.append(")");
12760 return sb.toString();
12761 }
12762
12763 public void validate() throws org.apache.thrift.TException {
12764
12765
12766 if (req != null) {
12767 req.validate();
12768 }
12769 }
12770
12771 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12772 try {
12773 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12774 } catch (org.apache.thrift.TException te) {
12775 throw new java.io.IOException(te);
12776 }
12777 }
12778
12779 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12780 try {
12781 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12782 } catch (org.apache.thrift.TException te) {
12783 throw new java.io.IOException(te);
12784 }
12785 }
12786
12787 private static class FetchResults_argsStandardSchemeFactory implements SchemeFactory {
12788 public FetchResults_argsStandardScheme getScheme() {
12789 return new FetchResults_argsStandardScheme();
12790 }
12791 }
12792
12793 private static class FetchResults_argsStandardScheme extends StandardScheme<FetchResults_args> {
12794
12795 public void read(org.apache.thrift.protocol.TProtocol iprot, FetchResults_args struct) throws org.apache.thrift.TException {
12796 org.apache.thrift.protocol.TField schemeField;
12797 iprot.readStructBegin();
12798 while (true)
12799 {
12800 schemeField = iprot.readFieldBegin();
12801 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12802 break;
12803 }
12804 switch (schemeField.id) {
12805 case 1:
12806 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
12807 struct.req = new TFetchResultsReq();
12808 struct.req.read(iprot);
12809 struct.setReqIsSet(true);
12810 } else {
12811 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12812 }
12813 break;
12814 default:
12815 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12816 }
12817 iprot.readFieldEnd();
12818 }
12819 iprot.readStructEnd();
12820 struct.validate();
12821 }
12822
12823 public void write(org.apache.thrift.protocol.TProtocol oprot, FetchResults_args struct) throws org.apache.thrift.TException {
12824 struct.validate();
12825
12826 oprot.writeStructBegin(STRUCT_DESC);
12827 if (struct.req != null) {
12828 oprot.writeFieldBegin(REQ_FIELD_DESC);
12829 struct.req.write(oprot);
12830 oprot.writeFieldEnd();
12831 }
12832 oprot.writeFieldStop();
12833 oprot.writeStructEnd();
12834 }
12835
12836 }
12837
12838 private static class FetchResults_argsTupleSchemeFactory implements SchemeFactory {
12839 public FetchResults_argsTupleScheme getScheme() {
12840 return new FetchResults_argsTupleScheme();
12841 }
12842 }
12843
12844 private static class FetchResults_argsTupleScheme extends TupleScheme<FetchResults_args> {
12845
12846 @Override
12847 public void write(org.apache.thrift.protocol.TProtocol prot, FetchResults_args struct) throws org.apache.thrift.TException {
12848 TTupleProtocol oprot = (TTupleProtocol) prot;
12849 BitSet optionals = new BitSet();
12850 if (struct.isSetReq()) {
12851 optionals.set(0);
12852 }
12853 oprot.writeBitSet(optionals, 1);
12854 if (struct.isSetReq()) {
12855 struct.req.write(oprot);
12856 }
12857 }
12858
12859 @Override
12860 public void read(org.apache.thrift.protocol.TProtocol prot, FetchResults_args struct) throws org.apache.thrift.TException {
12861 TTupleProtocol iprot = (TTupleProtocol) prot;
12862 BitSet incoming = iprot.readBitSet(1);
12863 if (incoming.get(0)) {
12864 struct.req = new TFetchResultsReq();
12865 struct.req.read(iprot);
12866 struct.setReqIsSet(true);
12867 }
12868 }
12869 }
12870
12871 }
12872
12873 public static class FetchResults_result implements org.apache.thrift.TBase<FetchResults_result, FetchResults_result._Fields>, java.io.Serializable, Cloneable {
12874 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FetchResults_result");
12875
12876 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);
12877
12878 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12879 static {
12880 schemes.put(StandardScheme.class, new FetchResults_resultStandardSchemeFactory());
12881 schemes.put(TupleScheme.class, new FetchResults_resultTupleSchemeFactory());
12882 }
12883
12884 private TFetchResultsResp success;
12885
12886
12887 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12888 SUCCESS((short)0, "success");
12889
12890 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12891
12892 static {
12893 for (_Fields field : EnumSet.allOf(_Fields.class)) {
12894 byName.put(field.getFieldName(), field);
12895 }
12896 }
12897
12898
12899
12900
12901 public static _Fields findByThriftId(int fieldId) {
12902 switch(fieldId) {
12903 case 0:
12904 return SUCCESS;
12905 default:
12906 return null;
12907 }
12908 }
12909
12910
12911
12912
12913
12914 public static _Fields findByThriftIdOrThrow(int fieldId) {
12915 _Fields fields = findByThriftId(fieldId);
12916 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12917 return fields;
12918 }
12919
12920
12921
12922
12923 public static _Fields findByName(String name) {
12924 return byName.get(name);
12925 }
12926
12927 private final short _thriftId;
12928 private final String _fieldName;
12929
12930 _Fields(short thriftId, String fieldName) {
12931 _thriftId = thriftId;
12932 _fieldName = fieldName;
12933 }
12934
12935 public short getThriftFieldId() {
12936 return _thriftId;
12937 }
12938
12939 public String getFieldName() {
12940 return _fieldName;
12941 }
12942 }
12943
12944
12945 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12946 static {
12947 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12948 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
12949 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TFetchResultsResp.class)));
12950 metaDataMap = Collections.unmodifiableMap(tmpMap);
12951 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(FetchResults_result.class, metaDataMap);
12952 }
12953
12954 public FetchResults_result() {
12955 }
12956
12957 public FetchResults_result(
12958 TFetchResultsResp success)
12959 {
12960 this();
12961 this.success = success;
12962 }
12963
12964
12965
12966
12967 public FetchResults_result(FetchResults_result other) {
12968 if (other.isSetSuccess()) {
12969 this.success = new TFetchResultsResp(other.success);
12970 }
12971 }
12972
12973 public FetchResults_result deepCopy() {
12974 return new FetchResults_result(this);
12975 }
12976
12977 @Override
12978 public void clear() {
12979 this.success = null;
12980 }
12981
12982 public TFetchResultsResp getSuccess() {
12983 return this.success;
12984 }
12985
12986 public void setSuccess(TFetchResultsResp success) {
12987 this.success = success;
12988 }
12989
12990 public void unsetSuccess() {
12991 this.success = null;
12992 }
12993
12994
12995 public boolean isSetSuccess() {
12996 return this.success != null;
12997 }
12998
12999 public void setSuccessIsSet(boolean value) {
13000 if (!value) {
13001 this.success = null;
13002 }
13003 }
13004
13005 public void setFieldValue(_Fields field, Object value) {
13006 switch (field) {
13007 case SUCCESS:
13008 if (value == null) {
13009 unsetSuccess();
13010 } else {
13011 setSuccess((TFetchResultsResp)value);
13012 }
13013 break;
13014
13015 }
13016 }
13017
13018 public Object getFieldValue(_Fields field) {
13019 switch (field) {
13020 case SUCCESS:
13021 return getSuccess();
13022
13023 }
13024 throw new IllegalStateException();
13025 }
13026
13027
13028 public boolean isSet(_Fields field) {
13029 if (field == null) {
13030 throw new IllegalArgumentException();
13031 }
13032
13033 switch (field) {
13034 case SUCCESS:
13035 return isSetSuccess();
13036 }
13037 throw new IllegalStateException();
13038 }
13039
13040 @Override
13041 public boolean equals(Object that) {
13042 if (that == null)
13043 return false;
13044 if (that instanceof FetchResults_result)
13045 return this.equals((FetchResults_result)that);
13046 return false;
13047 }
13048
13049 public boolean equals(FetchResults_result that) {
13050 if (that == null)
13051 return false;
13052
13053 boolean this_present_success = true && this.isSetSuccess();
13054 boolean that_present_success = true && that.isSetSuccess();
13055 if (this_present_success || that_present_success) {
13056 if (!(this_present_success && that_present_success))
13057 return false;
13058 if (!this.success.equals(that.success))
13059 return false;
13060 }
13061
13062 return true;
13063 }
13064
13065 @Override
13066 public int hashCode() {
13067 HashCodeBuilder builder = new HashCodeBuilder();
13068
13069 boolean present_success = true && (isSetSuccess());
13070 builder.append(present_success);
13071 if (present_success)
13072 builder.append(success);
13073
13074 return builder.toHashCode();
13075 }
13076
13077 public int compareTo(FetchResults_result other) {
13078 if (!getClass().equals(other.getClass())) {
13079 return getClass().getName().compareTo(other.getClass().getName());
13080 }
13081
13082 int lastComparison = 0;
13083 FetchResults_result typedOther = (FetchResults_result)other;
13084
13085 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13086 if (lastComparison != 0) {
13087 return lastComparison;
13088 }
13089 if (isSetSuccess()) {
13090 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13091 if (lastComparison != 0) {
13092 return lastComparison;
13093 }
13094 }
13095 return 0;
13096 }
13097
13098 public _Fields fieldForId(int fieldId) {
13099 return _Fields.findByThriftId(fieldId);
13100 }
13101
13102 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13103 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13104 }
13105
13106 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13107 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13108 }
13109
13110 @Override
13111 public String toString() {
13112 StringBuilder sb = new StringBuilder("FetchResults_result(");
13113 boolean first = true;
13114
13115 sb.append("success:");
13116 if (this.success == null) {
13117 sb.append("null");
13118 } else {
13119 sb.append(this.success);
13120 }
13121 first = false;
13122 sb.append(")");
13123 return sb.toString();
13124 }
13125
13126 public void validate() throws org.apache.thrift.TException {
13127
13128
13129 if (success != null) {
13130 success.validate();
13131 }
13132 }
13133
13134 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13135 try {
13136 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13137 } catch (org.apache.thrift.TException te) {
13138 throw new java.io.IOException(te);
13139 }
13140 }
13141
13142 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13143 try {
13144 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13145 } catch (org.apache.thrift.TException te) {
13146 throw new java.io.IOException(te);
13147 }
13148 }
13149
13150 private static class FetchResults_resultStandardSchemeFactory implements SchemeFactory {
13151 public FetchResults_resultStandardScheme getScheme() {
13152 return new FetchResults_resultStandardScheme();
13153 }
13154 }
13155
13156 private static class FetchResults_resultStandardScheme extends StandardScheme<FetchResults_result> {
13157
13158 public void read(org.apache.thrift.protocol.TProtocol iprot, FetchResults_result struct) throws org.apache.thrift.TException {
13159 org.apache.thrift.protocol.TField schemeField;
13160 iprot.readStructBegin();
13161 while (true)
13162 {
13163 schemeField = iprot.readFieldBegin();
13164 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13165 break;
13166 }
13167 switch (schemeField.id) {
13168 case 0:
13169 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
13170 struct.success = new TFetchResultsResp();
13171 struct.success.read(iprot);
13172 struct.setSuccessIsSet(true);
13173 } else {
13174 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13175 }
13176 break;
13177 default:
13178 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13179 }
13180 iprot.readFieldEnd();
13181 }
13182 iprot.readStructEnd();
13183 struct.validate();
13184 }
13185
13186 public void write(org.apache.thrift.protocol.TProtocol oprot, FetchResults_result struct) throws org.apache.thrift.TException {
13187 struct.validate();
13188
13189 oprot.writeStructBegin(STRUCT_DESC);
13190 if (struct.success != null) {
13191 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13192 struct.success.write(oprot);
13193 oprot.writeFieldEnd();
13194 }
13195 oprot.writeFieldStop();
13196 oprot.writeStructEnd();
13197 }
13198
13199 }
13200
13201 private static class FetchResults_resultTupleSchemeFactory implements SchemeFactory {
13202 public FetchResults_resultTupleScheme getScheme() {
13203 return new FetchResults_resultTupleScheme();
13204 }
13205 }
13206
13207 private static class FetchResults_resultTupleScheme extends TupleScheme<FetchResults_result> {
13208
13209 @Override
13210 public void write(org.apache.thrift.protocol.TProtocol prot, FetchResults_result struct) throws org.apache.thrift.TException {
13211 TTupleProtocol oprot = (TTupleProtocol) prot;
13212 BitSet optionals = new BitSet();
13213 if (struct.isSetSuccess()) {
13214 optionals.set(0);
13215 }
13216 oprot.writeBitSet(optionals, 1);
13217 if (struct.isSetSuccess()) {
13218 struct.success.write(oprot);
13219 }
13220 }
13221
13222 @Override
13223 public void read(org.apache.thrift.protocol.TProtocol prot, FetchResults_result struct) throws org.apache.thrift.TException {
13224 TTupleProtocol iprot = (TTupleProtocol) prot;
13225 BitSet incoming = iprot.readBitSet(1);
13226 if (incoming.get(0)) {
13227 struct.success = new TFetchResultsResp();
13228 struct.success.read(iprot);
13229 struct.setSuccessIsSet(true);
13230 }
13231 }
13232 }
13233
13234 }
13235
13236 public static class GetDelegationToken_args implements org.apache.thrift.TBase<GetDelegationToken_args, GetDelegationToken_args._Fields>, java.io.Serializable, Cloneable {
13237 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetDelegationToken_args");
13238
13239 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);
13240
13241 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13242 static {
13243 schemes.put(StandardScheme.class, new GetDelegationToken_argsStandardSchemeFactory());
13244 schemes.put(TupleScheme.class, new GetDelegationToken_argsTupleSchemeFactory());
13245 }
13246
13247 private TGetDelegationTokenReq req;
13248
13249
13250 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13251 REQ((short)1, "req");
13252
13253 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13254
13255 static {
13256 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13257 byName.put(field.getFieldName(), field);
13258 }
13259 }
13260
13261
13262
13263
13264 public static _Fields findByThriftId(int fieldId) {
13265 switch(fieldId) {
13266 case 1:
13267 return REQ;
13268 default:
13269 return null;
13270 }
13271 }
13272
13273
13274
13275
13276
13277 public static _Fields findByThriftIdOrThrow(int fieldId) {
13278 _Fields fields = findByThriftId(fieldId);
13279 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13280 return fields;
13281 }
13282
13283
13284
13285
13286 public static _Fields findByName(String name) {
13287 return byName.get(name);
13288 }
13289
13290 private final short _thriftId;
13291 private final String _fieldName;
13292
13293 _Fields(short thriftId, String fieldName) {
13294 _thriftId = thriftId;
13295 _fieldName = fieldName;
13296 }
13297
13298 public short getThriftFieldId() {
13299 return _thriftId;
13300 }
13301
13302 public String getFieldName() {
13303 return _fieldName;
13304 }
13305 }
13306
13307
13308 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13309 static {
13310 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13311 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
13312 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetDelegationTokenReq.class)));
13313 metaDataMap = Collections.unmodifiableMap(tmpMap);
13314 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetDelegationToken_args.class, metaDataMap);
13315 }
13316
13317 public GetDelegationToken_args() {
13318 }
13319
13320 public GetDelegationToken_args(
13321 TGetDelegationTokenReq req)
13322 {
13323 this();
13324 this.req = req;
13325 }
13326
13327
13328
13329
13330 public GetDelegationToken_args(GetDelegationToken_args other) {
13331 if (other.isSetReq()) {
13332 this.req = new TGetDelegationTokenReq(other.req);
13333 }
13334 }
13335
13336 public GetDelegationToken_args deepCopy() {
13337 return new GetDelegationToken_args(this);
13338 }
13339
13340 @Override
13341 public void clear() {
13342 this.req = null;
13343 }
13344
13345 public TGetDelegationTokenReq getReq() {
13346 return this.req;
13347 }
13348
13349 public void setReq(TGetDelegationTokenReq req) {
13350 this.req = req;
13351 }
13352
13353 public void unsetReq() {
13354 this.req = null;
13355 }
13356
13357
13358 public boolean isSetReq() {
13359 return this.req != null;
13360 }
13361
13362 public void setReqIsSet(boolean value) {
13363 if (!value) {
13364 this.req = null;
13365 }
13366 }
13367
13368 public void setFieldValue(_Fields field, Object value) {
13369 switch (field) {
13370 case REQ:
13371 if (value == null) {
13372 unsetReq();
13373 } else {
13374 setReq((TGetDelegationTokenReq)value);
13375 }
13376 break;
13377
13378 }
13379 }
13380
13381 public Object getFieldValue(_Fields field) {
13382 switch (field) {
13383 case REQ:
13384 return getReq();
13385
13386 }
13387 throw new IllegalStateException();
13388 }
13389
13390
13391 public boolean isSet(_Fields field) {
13392 if (field == null) {
13393 throw new IllegalArgumentException();
13394 }
13395
13396 switch (field) {
13397 case REQ:
13398 return isSetReq();
13399 }
13400 throw new IllegalStateException();
13401 }
13402
13403 @Override
13404 public boolean equals(Object that) {
13405 if (that == null)
13406 return false;
13407 if (that instanceof GetDelegationToken_args)
13408 return this.equals((GetDelegationToken_args)that);
13409 return false;
13410 }
13411
13412 public boolean equals(GetDelegationToken_args that) {
13413 if (that == null)
13414 return false;
13415
13416 boolean this_present_req = true && this.isSetReq();
13417 boolean that_present_req = true && that.isSetReq();
13418 if (this_present_req || that_present_req) {
13419 if (!(this_present_req && that_present_req))
13420 return false;
13421 if (!this.req.equals(that.req))
13422 return false;
13423 }
13424
13425 return true;
13426 }
13427
13428 @Override
13429 public int hashCode() {
13430 HashCodeBuilder builder = new HashCodeBuilder();
13431
13432 boolean present_req = true && (isSetReq());
13433 builder.append(present_req);
13434 if (present_req)
13435 builder.append(req);
13436
13437 return builder.toHashCode();
13438 }
13439
13440 public int compareTo(GetDelegationToken_args other) {
13441 if (!getClass().equals(other.getClass())) {
13442 return getClass().getName().compareTo(other.getClass().getName());
13443 }
13444
13445 int lastComparison = 0;
13446 GetDelegationToken_args typedOther = (GetDelegationToken_args)other;
13447
13448 lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq());
13449 if (lastComparison != 0) {
13450 return lastComparison;
13451 }
13452 if (isSetReq()) {
13453 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req);
13454 if (lastComparison != 0) {
13455 return lastComparison;
13456 }
13457 }
13458 return 0;
13459 }
13460
13461 public _Fields fieldForId(int fieldId) {
13462 return _Fields.findByThriftId(fieldId);
13463 }
13464
13465 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13466 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13467 }
13468
13469 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13470 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13471 }
13472
13473 @Override
13474 public String toString() {
13475 StringBuilder sb = new StringBuilder("GetDelegationToken_args(");
13476 boolean first = true;
13477
13478 sb.append("req:");
13479 if (this.req == null) {
13480 sb.append("null");
13481 } else {
13482 sb.append(this.req);
13483 }
13484 first = false;
13485 sb.append(")");
13486 return sb.toString();
13487 }
13488
13489 public void validate() throws org.apache.thrift.TException {
13490
13491
13492 if (req != null) {
13493 req.validate();
13494 }
13495 }
13496
13497 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13498 try {
13499 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13500 } catch (org.apache.thrift.TException te) {
13501 throw new java.io.IOException(te);
13502 }
13503 }
13504
13505 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13506 try {
13507 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13508 } catch (org.apache.thrift.TException te) {
13509 throw new java.io.IOException(te);
13510 }
13511 }
13512
13513 private static class GetDelegationToken_argsStandardSchemeFactory implements SchemeFactory {
13514 public GetDelegationToken_argsStandardScheme getScheme() {
13515 return new GetDelegationToken_argsStandardScheme();
13516 }
13517 }
13518
13519 private static class GetDelegationToken_argsStandardScheme extends StandardScheme<GetDelegationToken_args> {
13520
13521 public void read(org.apache.thrift.protocol.TProtocol iprot, GetDelegationToken_args struct) throws org.apache.thrift.TException {
13522 org.apache.thrift.protocol.TField schemeField;
13523 iprot.readStructBegin();
13524 while (true)
13525 {
13526 schemeField = iprot.readFieldBegin();
13527 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13528 break;
13529 }
13530 switch (schemeField.id) {
13531 case 1:
13532 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
13533 struct.req = new TGetDelegationTokenReq();
13534 struct.req.read(iprot);
13535 struct.setReqIsSet(true);
13536 } else {
13537 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13538 }
13539 break;
13540 default:
13541 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13542 }
13543 iprot.readFieldEnd();
13544 }
13545 iprot.readStructEnd();
13546 struct.validate();
13547 }
13548
13549 public void write(org.apache.thrift.protocol.TProtocol oprot, GetDelegationToken_args struct) throws org.apache.thrift.TException {
13550 struct.validate();
13551
13552 oprot.writeStructBegin(STRUCT_DESC);
13553 if (struct.req != null) {
13554 oprot.writeFieldBegin(REQ_FIELD_DESC);
13555 struct.req.write(oprot);
13556 oprot.writeFieldEnd();
13557 }
13558 oprot.writeFieldStop();
13559 oprot.writeStructEnd();
13560 }
13561
13562 }
13563
13564 private static class GetDelegationToken_argsTupleSchemeFactory implements SchemeFactory {
13565 public GetDelegationToken_argsTupleScheme getScheme() {
13566 return new GetDelegationToken_argsTupleScheme();
13567 }
13568 }
13569
13570 private static class GetDelegationToken_argsTupleScheme extends TupleScheme<GetDelegationToken_args> {
13571
13572 @Override
13573 public void write(org.apache.thrift.protocol.TProtocol prot, GetDelegationToken_args struct) throws org.apache.thrift.TException {
13574 TTupleProtocol oprot = (TTupleProtocol) prot;
13575 BitSet optionals = new BitSet();
13576 if (struct.isSetReq()) {
13577 optionals.set(0);
13578 }
13579 oprot.writeBitSet(optionals, 1);
13580 if (struct.isSetReq()) {
13581 struct.req.write(oprot);
13582 }
13583 }
13584
13585 @Override
13586 public void read(org.apache.thrift.protocol.TProtocol prot, GetDelegationToken_args struct) throws org.apache.thrift.TException {
13587 TTupleProtocol iprot = (TTupleProtocol) prot;
13588 BitSet incoming = iprot.readBitSet(1);
13589 if (incoming.get(0)) {
13590 struct.req = new TGetDelegationTokenReq();
13591 struct.req.read(iprot);
13592 struct.setReqIsSet(true);
13593 }
13594 }
13595 }
13596
13597 }
13598
13599 public static class GetDelegationToken_result implements org.apache.thrift.TBase<GetDelegationToken_result, GetDelegationToken_result._Fields>, java.io.Serializable, Cloneable {
13600 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetDelegationToken_result");
13601
13602 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);
13603
13604 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13605 static {
13606 schemes.put(StandardScheme.class, new GetDelegationToken_resultStandardSchemeFactory());
13607 schemes.put(TupleScheme.class, new GetDelegationToken_resultTupleSchemeFactory());
13608 }
13609
13610 private TGetDelegationTokenResp success;
13611
13612
13613 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13614 SUCCESS((short)0, "success");
13615
13616 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13617
13618 static {
13619 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13620 byName.put(field.getFieldName(), field);
13621 }
13622 }
13623
13624
13625
13626
13627 public static _Fields findByThriftId(int fieldId) {
13628 switch(fieldId) {
13629 case 0:
13630 return SUCCESS;
13631 default:
13632 return null;
13633 }
13634 }
13635
13636
13637
13638
13639
13640 public static _Fields findByThriftIdOrThrow(int fieldId) {
13641 _Fields fields = findByThriftId(fieldId);
13642 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13643 return fields;
13644 }
13645
13646
13647
13648
13649 public static _Fields findByName(String name) {
13650 return byName.get(name);
13651 }
13652
13653 private final short _thriftId;
13654 private final String _fieldName;
13655
13656 _Fields(short thriftId, String fieldName) {
13657 _thriftId = thriftId;
13658 _fieldName = fieldName;
13659 }
13660
13661 public short getThriftFieldId() {
13662 return _thriftId;
13663 }
13664
13665 public String getFieldName() {
13666 return _fieldName;
13667 }
13668 }
13669
13670
13671 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13672 static {
13673 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13674 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
13675 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetDelegationTokenResp.class)));
13676 metaDataMap = Collections.unmodifiableMap(tmpMap);
13677 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetDelegationToken_result.class, metaDataMap);
13678 }
13679
13680 public GetDelegationToken_result() {
13681 }
13682
13683 public GetDelegationToken_result(
13684 TGetDelegationTokenResp success)
13685 {
13686 this();
13687 this.success = success;
13688 }
13689
13690
13691
13692
13693 public GetDelegationToken_result(GetDelegationToken_result other) {
13694 if (other.isSetSuccess()) {
13695 this.success = new TGetDelegationTokenResp(other.success);
13696 }
13697 }
13698
13699 public GetDelegationToken_result deepCopy() {
13700 return new GetDelegationToken_result(this);
13701 }
13702
13703 @Override
13704 public void clear() {
13705 this.success = null;
13706 }
13707
13708 public TGetDelegationTokenResp getSuccess() {
13709 return this.success;
13710 }
13711
13712 public void setSuccess(TGetDelegationTokenResp success) {
13713 this.success = success;
13714 }
13715
13716 public void unsetSuccess() {
13717 this.success = null;
13718 }
13719
13720
13721 public boolean isSetSuccess() {
13722 return this.success != null;
13723 }
13724
13725 public void setSuccessIsSet(boolean value) {
13726 if (!value) {
13727 this.success = null;
13728 }
13729 }
13730
13731 public void setFieldValue(_Fields field, Object value) {
13732 switch (field) {
13733 case SUCCESS:
13734 if (value == null) {
13735 unsetSuccess();
13736 } else {
13737 setSuccess((TGetDelegationTokenResp)value);
13738 }
13739 break;
13740
13741 }
13742 }
13743
13744 public Object getFieldValue(_Fields field) {
13745 switch (field) {
13746 case SUCCESS:
13747 return getSuccess();
13748
13749 }
13750 throw new IllegalStateException();
13751 }
13752
13753
13754 public boolean isSet(_Fields field) {
13755 if (field == null) {
13756 throw new IllegalArgumentException();
13757 }
13758
13759 switch (field) {
13760 case SUCCESS:
13761 return isSetSuccess();
13762 }
13763 throw new IllegalStateException();
13764 }
13765
13766 @Override
13767 public boolean equals(Object that) {
13768 if (that == null)
13769 return false;
13770 if (that instanceof GetDelegationToken_result)
13771 return this.equals((GetDelegationToken_result)that);
13772 return false;
13773 }
13774
13775 public boolean equals(GetDelegationToken_result that) {
13776 if (that == null)
13777 return false;
13778
13779 boolean this_present_success = true && this.isSetSuccess();
13780 boolean that_present_success = true && that.isSetSuccess();
13781 if (this_present_success || that_present_success) {
13782 if (!(this_present_success && that_present_success))
13783 return false;
13784 if (!this.success.equals(that.success))
13785 return false;
13786 }
13787
13788 return true;
13789 }
13790
13791 @Override
13792 public int hashCode() {
13793 HashCodeBuilder builder = new HashCodeBuilder();
13794
13795 boolean present_success = true && (isSetSuccess());
13796 builder.append(present_success);
13797 if (present_success)
13798 builder.append(success);
13799
13800 return builder.toHashCode();
13801 }
13802
13803 public int compareTo(GetDelegationToken_result other) {
13804 if (!getClass().equals(other.getClass())) {
13805 return getClass().getName().compareTo(other.getClass().getName());
13806 }
13807
13808 int lastComparison = 0;
13809 GetDelegationToken_result typedOther = (GetDelegationToken_result)other;
13810
13811 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13812 if (lastComparison != 0) {
13813 return lastComparison;
13814 }
13815 if (isSetSuccess()) {
13816 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13817 if (lastComparison != 0) {
13818 return lastComparison;
13819 }
13820 }
13821 return 0;
13822 }
13823
13824 public _Fields fieldForId(int fieldId) {
13825 return _Fields.findByThriftId(fieldId);
13826 }
13827
13828 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13829 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13830 }
13831
13832 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13833 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13834 }
13835
13836 @Override
13837 public String toString() {
13838 StringBuilder sb = new StringBuilder("GetDelegationToken_result(");
13839 boolean first = true;
13840
13841 sb.append("success:");
13842 if (this.success == null) {
13843 sb.append("null");
13844 } else {
13845 sb.append(this.success);
13846 }
13847 first = false;
13848 sb.append(")");
13849 return sb.toString();
13850 }
13851
13852 public void validate() throws org.apache.thrift.TException {
13853
13854
13855 if (success != null) {
13856 success.validate();
13857 }
13858 }
13859
13860 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13861 try {
13862 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13863 } catch (org.apache.thrift.TException te) {
13864 throw new java.io.IOException(te);
13865 }
13866 }
13867
13868 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13869 try {
13870 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13871 } catch (org.apache.thrift.TException te) {
13872 throw new java.io.IOException(te);
13873 }
13874 }
13875
13876 private static class GetDelegationToken_resultStandardSchemeFactory implements SchemeFactory {
13877 public GetDelegationToken_resultStandardScheme getScheme() {
13878 return new GetDelegationToken_resultStandardScheme();
13879 }
13880 }
13881
13882 private static class GetDelegationToken_resultStandardScheme extends StandardScheme<GetDelegationToken_result> {
13883
13884 public void read(org.apache.thrift.protocol.TProtocol iprot, GetDelegationToken_result struct) throws org.apache.thrift.TException {
13885 org.apache.thrift.protocol.TField schemeField;
13886 iprot.readStructBegin();
13887 while (true)
13888 {
13889 schemeField = iprot.readFieldBegin();
13890 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13891 break;
13892 }
13893 switch (schemeField.id) {
13894 case 0:
13895 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
13896 struct.success = new TGetDelegationTokenResp();
13897 struct.success.read(iprot);
13898 struct.setSuccessIsSet(true);
13899 } else {
13900 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13901 }
13902 break;
13903 default:
13904 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13905 }
13906 iprot.readFieldEnd();
13907 }
13908 iprot.readStructEnd();
13909 struct.validate();
13910 }
13911
13912 public void write(org.apache.thrift.protocol.TProtocol oprot, GetDelegationToken_result struct) throws org.apache.thrift.TException {
13913 struct.validate();
13914
13915 oprot.writeStructBegin(STRUCT_DESC);
13916 if (struct.success != null) {
13917 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13918 struct.success.write(oprot);
13919 oprot.writeFieldEnd();
13920 }
13921 oprot.writeFieldStop();
13922 oprot.writeStructEnd();
13923 }
13924
13925 }
13926
13927 private static class GetDelegationToken_resultTupleSchemeFactory implements SchemeFactory {
13928 public GetDelegationToken_resultTupleScheme getScheme() {
13929 return new GetDelegationToken_resultTupleScheme();
13930 }
13931 }
13932
13933 private static class GetDelegationToken_resultTupleScheme extends TupleScheme<GetDelegationToken_result> {
13934
13935 @Override
13936 public void write(org.apache.thrift.protocol.TProtocol prot, GetDelegationToken_result struct) throws org.apache.thrift.TException {
13937 TTupleProtocol oprot = (TTupleProtocol) prot;
13938 BitSet optionals = new BitSet();
13939 if (struct.isSetSuccess()) {
13940 optionals.set(0);
13941 }
13942 oprot.writeBitSet(optionals, 1);
13943 if (struct.isSetSuccess()) {
13944 struct.success.write(oprot);
13945 }
13946 }
13947
13948 @Override
13949 public void read(org.apache.thrift.protocol.TProtocol prot, GetDelegationToken_result struct) throws org.apache.thrift.TException {
13950 TTupleProtocol iprot = (TTupleProtocol) prot;
13951 BitSet incoming = iprot.readBitSet(1);
13952 if (incoming.get(0)) {
13953 struct.success = new TGetDelegationTokenResp();
13954 struct.success.read(iprot);
13955 struct.setSuccessIsSet(true);
13956 }
13957 }
13958 }
13959
13960 }
13961
13962 public static class CancelDelegationToken_args implements org.apache.thrift.TBase<CancelDelegationToken_args, CancelDelegationToken_args._Fields>, java.io.Serializable, Cloneable {
13963 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CancelDelegationToken_args");
13964
13965 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);
13966
13967 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13968 static {
13969 schemes.put(StandardScheme.class, new CancelDelegationToken_argsStandardSchemeFactory());
13970 schemes.put(TupleScheme.class, new CancelDelegationToken_argsTupleSchemeFactory());
13971 }
13972
13973 private TCancelDelegationTokenReq req;
13974
13975
13976 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13977 REQ((short)1, "req");
13978
13979 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13980
13981 static {
13982 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13983 byName.put(field.getFieldName(), field);
13984 }
13985 }
13986
13987
13988
13989
13990 public static _Fields findByThriftId(int fieldId) {
13991 switch(fieldId) {
13992 case 1:
13993 return REQ;
13994 default:
13995 return null;
13996 }
13997 }
13998
13999
14000
14001
14002
14003 public static _Fields findByThriftIdOrThrow(int fieldId) {
14004 _Fields fields = findByThriftId(fieldId);
14005 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14006 return fields;
14007 }
14008
14009
14010
14011
14012 public static _Fields findByName(String name) {
14013 return byName.get(name);
14014 }
14015
14016 private final short _thriftId;
14017 private final String _fieldName;
14018
14019 _Fields(short thriftId, String fieldName) {
14020 _thriftId = thriftId;
14021 _fieldName = fieldName;
14022 }
14023
14024 public short getThriftFieldId() {
14025 return _thriftId;
14026 }
14027
14028 public String getFieldName() {
14029 return _fieldName;
14030 }
14031 }
14032
14033
14034 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14035 static {
14036 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14037 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
14038 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCancelDelegationTokenReq.class)));
14039 metaDataMap = Collections.unmodifiableMap(tmpMap);
14040 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CancelDelegationToken_args.class, metaDataMap);
14041 }
14042
14043 public CancelDelegationToken_args() {
14044 }
14045
14046 public CancelDelegationToken_args(
14047 TCancelDelegationTokenReq req)
14048 {
14049 this();
14050 this.req = req;
14051 }
14052
14053
14054
14055
14056 public CancelDelegationToken_args(CancelDelegationToken_args other) {
14057 if (other.isSetReq()) {
14058 this.req = new TCancelDelegationTokenReq(other.req);
14059 }
14060 }
14061
14062 public CancelDelegationToken_args deepCopy() {
14063 return new CancelDelegationToken_args(this);
14064 }
14065
14066 @Override
14067 public void clear() {
14068 this.req = null;
14069 }
14070
14071 public TCancelDelegationTokenReq getReq() {
14072 return this.req;
14073 }
14074
14075 public void setReq(TCancelDelegationTokenReq req) {
14076 this.req = req;
14077 }
14078
14079 public void unsetReq() {
14080 this.req = null;
14081 }
14082
14083
14084 public boolean isSetReq() {
14085 return this.req != null;
14086 }
14087
14088 public void setReqIsSet(boolean value) {
14089 if (!value) {
14090 this.req = null;
14091 }
14092 }
14093
14094 public void setFieldValue(_Fields field, Object value) {
14095 switch (field) {
14096 case REQ:
14097 if (value == null) {
14098 unsetReq();
14099 } else {
14100 setReq((TCancelDelegationTokenReq)value);
14101 }
14102 break;
14103
14104 }
14105 }
14106
14107 public Object getFieldValue(_Fields field) {
14108 switch (field) {
14109 case REQ:
14110 return getReq();
14111
14112 }
14113 throw new IllegalStateException();
14114 }
14115
14116
14117 public boolean isSet(_Fields field) {
14118 if (field == null) {
14119 throw new IllegalArgumentException();
14120 }
14121
14122 switch (field) {
14123 case REQ:
14124 return isSetReq();
14125 }
14126 throw new IllegalStateException();
14127 }
14128
14129 @Override
14130 public boolean equals(Object that) {
14131 if (that == null)
14132 return false;
14133 if (that instanceof CancelDelegationToken_args)
14134 return this.equals((CancelDelegationToken_args)that);
14135 return false;
14136 }
14137
14138 public boolean equals(CancelDelegationToken_args that) {
14139 if (that == null)
14140 return false;
14141
14142 boolean this_present_req = true && this.isSetReq();
14143 boolean that_present_req = true && that.isSetReq();
14144 if (this_present_req || that_present_req) {
14145 if (!(this_present_req && that_present_req))
14146 return false;
14147 if (!this.req.equals(that.req))
14148 return false;
14149 }
14150
14151 return true;
14152 }
14153
14154 @Override
14155 public int hashCode() {
14156 HashCodeBuilder builder = new HashCodeBuilder();
14157
14158 boolean present_req = true && (isSetReq());
14159 builder.append(present_req);
14160 if (present_req)
14161 builder.append(req);
14162
14163 return builder.toHashCode();
14164 }
14165
14166 public int compareTo(CancelDelegationToken_args other) {
14167 if (!getClass().equals(other.getClass())) {
14168 return getClass().getName().compareTo(other.getClass().getName());
14169 }
14170
14171 int lastComparison = 0;
14172 CancelDelegationToken_args typedOther = (CancelDelegationToken_args)other;
14173
14174 lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq());
14175 if (lastComparison != 0) {
14176 return lastComparison;
14177 }
14178 if (isSetReq()) {
14179 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req);
14180 if (lastComparison != 0) {
14181 return lastComparison;
14182 }
14183 }
14184 return 0;
14185 }
14186
14187 public _Fields fieldForId(int fieldId) {
14188 return _Fields.findByThriftId(fieldId);
14189 }
14190
14191 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14192 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14193 }
14194
14195 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14196 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14197 }
14198
14199 @Override
14200 public String toString() {
14201 StringBuilder sb = new StringBuilder("CancelDelegationToken_args(");
14202 boolean first = true;
14203
14204 sb.append("req:");
14205 if (this.req == null) {
14206 sb.append("null");
14207 } else {
14208 sb.append(this.req);
14209 }
14210 first = false;
14211 sb.append(")");
14212 return sb.toString();
14213 }
14214
14215 public void validate() throws org.apache.thrift.TException {
14216
14217
14218 if (req != null) {
14219 req.validate();
14220 }
14221 }
14222
14223 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14224 try {
14225 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14226 } catch (org.apache.thrift.TException te) {
14227 throw new java.io.IOException(te);
14228 }
14229 }
14230
14231 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14232 try {
14233 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14234 } catch (org.apache.thrift.TException te) {
14235 throw new java.io.IOException(te);
14236 }
14237 }
14238
14239 private static class CancelDelegationToken_argsStandardSchemeFactory implements SchemeFactory {
14240 public CancelDelegationToken_argsStandardScheme getScheme() {
14241 return new CancelDelegationToken_argsStandardScheme();
14242 }
14243 }
14244
14245 private static class CancelDelegationToken_argsStandardScheme extends StandardScheme<CancelDelegationToken_args> {
14246
14247 public void read(org.apache.thrift.protocol.TProtocol iprot, CancelDelegationToken_args struct) throws org.apache.thrift.TException {
14248 org.apache.thrift.protocol.TField schemeField;
14249 iprot.readStructBegin();
14250 while (true)
14251 {
14252 schemeField = iprot.readFieldBegin();
14253 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14254 break;
14255 }
14256 switch (schemeField.id) {
14257 case 1:
14258 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
14259 struct.req = new TCancelDelegationTokenReq();
14260 struct.req.read(iprot);
14261 struct.setReqIsSet(true);
14262 } else {
14263 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14264 }
14265 break;
14266 default:
14267 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14268 }
14269 iprot.readFieldEnd();
14270 }
14271 iprot.readStructEnd();
14272 struct.validate();
14273 }
14274
14275 public void write(org.apache.thrift.protocol.TProtocol oprot, CancelDelegationToken_args struct) throws org.apache.thrift.TException {
14276 struct.validate();
14277
14278 oprot.writeStructBegin(STRUCT_DESC);
14279 if (struct.req != null) {
14280 oprot.writeFieldBegin(REQ_FIELD_DESC);
14281 struct.req.write(oprot);
14282 oprot.writeFieldEnd();
14283 }
14284 oprot.writeFieldStop();
14285 oprot.writeStructEnd();
14286 }
14287
14288 }
14289
14290 private static class CancelDelegationToken_argsTupleSchemeFactory implements SchemeFactory {
14291 public CancelDelegationToken_argsTupleScheme getScheme() {
14292 return new CancelDelegationToken_argsTupleScheme();
14293 }
14294 }
14295
14296 private static class CancelDelegationToken_argsTupleScheme extends TupleScheme<CancelDelegationToken_args> {
14297
14298 @Override
14299 public void write(org.apache.thrift.protocol.TProtocol prot, CancelDelegationToken_args struct) throws org.apache.thrift.TException {
14300 TTupleProtocol oprot = (TTupleProtocol) prot;
14301 BitSet optionals = new BitSet();
14302 if (struct.isSetReq()) {
14303 optionals.set(0);
14304 }
14305 oprot.writeBitSet(optionals, 1);
14306 if (struct.isSetReq()) {
14307 struct.req.write(oprot);
14308 }
14309 }
14310
14311 @Override
14312 public void read(org.apache.thrift.protocol.TProtocol prot, CancelDelegationToken_args struct) throws org.apache.thrift.TException {
14313 TTupleProtocol iprot = (TTupleProtocol) prot;
14314 BitSet incoming = iprot.readBitSet(1);
14315 if (incoming.get(0)) {
14316 struct.req = new TCancelDelegationTokenReq();
14317 struct.req.read(iprot);
14318 struct.setReqIsSet(true);
14319 }
14320 }
14321 }
14322
14323 }
14324
14325 public static class CancelDelegationToken_result implements org.apache.thrift.TBase<CancelDelegationToken_result, CancelDelegationToken_result._Fields>, java.io.Serializable, Cloneable {
14326 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CancelDelegationToken_result");
14327
14328 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);
14329
14330 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14331 static {
14332 schemes.put(StandardScheme.class, new CancelDelegationToken_resultStandardSchemeFactory());
14333 schemes.put(TupleScheme.class, new CancelDelegationToken_resultTupleSchemeFactory());
14334 }
14335
14336 private TCancelDelegationTokenResp success;
14337
14338
14339 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14340 SUCCESS((short)0, "success");
14341
14342 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14343
14344 static {
14345 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14346 byName.put(field.getFieldName(), field);
14347 }
14348 }
14349
14350
14351
14352
14353 public static _Fields findByThriftId(int fieldId) {
14354 switch(fieldId) {
14355 case 0:
14356 return SUCCESS;
14357 default:
14358 return null;
14359 }
14360 }
14361
14362
14363
14364
14365
14366 public static _Fields findByThriftIdOrThrow(int fieldId) {
14367 _Fields fields = findByThriftId(fieldId);
14368 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14369 return fields;
14370 }
14371
14372
14373
14374
14375 public static _Fields findByName(String name) {
14376 return byName.get(name);
14377 }
14378
14379 private final short _thriftId;
14380 private final String _fieldName;
14381
14382 _Fields(short thriftId, String fieldName) {
14383 _thriftId = thriftId;
14384 _fieldName = fieldName;
14385 }
14386
14387 public short getThriftFieldId() {
14388 return _thriftId;
14389 }
14390
14391 public String getFieldName() {
14392 return _fieldName;
14393 }
14394 }
14395
14396
14397 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14398 static {
14399 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14400 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
14401 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCancelDelegationTokenResp.class)));
14402 metaDataMap = Collections.unmodifiableMap(tmpMap);
14403 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CancelDelegationToken_result.class, metaDataMap);
14404 }
14405
14406 public CancelDelegationToken_result() {
14407 }
14408
14409 public CancelDelegationToken_result(
14410 TCancelDelegationTokenResp success)
14411 {
14412 this();
14413 this.success = success;
14414 }
14415
14416
14417
14418
14419 public CancelDelegationToken_result(CancelDelegationToken_result other) {
14420 if (other.isSetSuccess()) {
14421 this.success = new TCancelDelegationTokenResp(other.success);
14422 }
14423 }
14424
14425 public CancelDelegationToken_result deepCopy() {
14426 return new CancelDelegationToken_result(this);
14427 }
14428
14429 @Override
14430 public void clear() {
14431 this.success = null;
14432 }
14433
14434 public TCancelDelegationTokenResp getSuccess() {
14435 return this.success;
14436 }
14437
14438 public void setSuccess(TCancelDelegationTokenResp success) {
14439 this.success = success;
14440 }
14441
14442 public void unsetSuccess() {
14443 this.success = null;
14444 }
14445
14446
14447 public boolean isSetSuccess() {
14448 return this.success != null;
14449 }
14450
14451 public void setSuccessIsSet(boolean value) {
14452 if (!value) {
14453 this.success = null;
14454 }
14455 }
14456
14457 public void setFieldValue(_Fields field, Object value) {
14458 switch (field) {
14459 case SUCCESS:
14460 if (value == null) {
14461 unsetSuccess();
14462 } else {
14463 setSuccess((TCancelDelegationTokenResp)value);
14464 }
14465 break;
14466
14467 }
14468 }
14469
14470 public Object getFieldValue(_Fields field) {
14471 switch (field) {
14472 case SUCCESS:
14473 return getSuccess();
14474
14475 }
14476 throw new IllegalStateException();
14477 }
14478
14479
14480 public boolean isSet(_Fields field) {
14481 if (field == null) {
14482 throw new IllegalArgumentException();
14483 }
14484
14485 switch (field) {
14486 case SUCCESS:
14487 return isSetSuccess();
14488 }
14489 throw new IllegalStateException();
14490 }
14491
14492 @Override
14493 public boolean equals(Object that) {
14494 if (that == null)
14495 return false;
14496 if (that instanceof CancelDelegationToken_result)
14497 return this.equals((CancelDelegationToken_result)that);
14498 return false;
14499 }
14500
14501 public boolean equals(CancelDelegationToken_result that) {
14502 if (that == null)
14503 return false;
14504
14505 boolean this_present_success = true && this.isSetSuccess();
14506 boolean that_present_success = true && that.isSetSuccess();
14507 if (this_present_success || that_present_success) {
14508 if (!(this_present_success && that_present_success))
14509 return false;
14510 if (!this.success.equals(that.success))
14511 return false;
14512 }
14513
14514 return true;
14515 }
14516
14517 @Override
14518 public int hashCode() {
14519 HashCodeBuilder builder = new HashCodeBuilder();
14520
14521 boolean present_success = true && (isSetSuccess());
14522 builder.append(present_success);
14523 if (present_success)
14524 builder.append(success);
14525
14526 return builder.toHashCode();
14527 }
14528
14529 public int compareTo(CancelDelegationToken_result other) {
14530 if (!getClass().equals(other.getClass())) {
14531 return getClass().getName().compareTo(other.getClass().getName());
14532 }
14533
14534 int lastComparison = 0;
14535 CancelDelegationToken_result typedOther = (CancelDelegationToken_result)other;
14536
14537 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14538 if (lastComparison != 0) {
14539 return lastComparison;
14540 }
14541 if (isSetSuccess()) {
14542 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14543 if (lastComparison != 0) {
14544 return lastComparison;
14545 }
14546 }
14547 return 0;
14548 }
14549
14550 public _Fields fieldForId(int fieldId) {
14551 return _Fields.findByThriftId(fieldId);
14552 }
14553
14554 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14555 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14556 }
14557
14558 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14559 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14560 }
14561
14562 @Override
14563 public String toString() {
14564 StringBuilder sb = new StringBuilder("CancelDelegationToken_result(");
14565 boolean first = true;
14566
14567 sb.append("success:");
14568 if (this.success == null) {
14569 sb.append("null");
14570 } else {
14571 sb.append(this.success);
14572 }
14573 first = false;
14574 sb.append(")");
14575 return sb.toString();
14576 }
14577
14578 public void validate() throws org.apache.thrift.TException {
14579
14580
14581 if (success != null) {
14582 success.validate();
14583 }
14584 }
14585
14586 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14587 try {
14588 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14589 } catch (org.apache.thrift.TException te) {
14590 throw new java.io.IOException(te);
14591 }
14592 }
14593
14594 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14595 try {
14596 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14597 } catch (org.apache.thrift.TException te) {
14598 throw new java.io.IOException(te);
14599 }
14600 }
14601
14602 private static class CancelDelegationToken_resultStandardSchemeFactory implements SchemeFactory {
14603 public CancelDelegationToken_resultStandardScheme getScheme() {
14604 return new CancelDelegationToken_resultStandardScheme();
14605 }
14606 }
14607
14608 private static class CancelDelegationToken_resultStandardScheme extends StandardScheme<CancelDelegationToken_result> {
14609
14610 public void read(org.apache.thrift.protocol.TProtocol iprot, CancelDelegationToken_result struct) throws org.apache.thrift.TException {
14611 org.apache.thrift.protocol.TField schemeField;
14612 iprot.readStructBegin();
14613 while (true)
14614 {
14615 schemeField = iprot.readFieldBegin();
14616 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14617 break;
14618 }
14619 switch (schemeField.id) {
14620 case 0:
14621 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
14622 struct.success = new TCancelDelegationTokenResp();
14623 struct.success.read(iprot);
14624 struct.setSuccessIsSet(true);
14625 } else {
14626 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14627 }
14628 break;
14629 default:
14630 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14631 }
14632 iprot.readFieldEnd();
14633 }
14634 iprot.readStructEnd();
14635 struct.validate();
14636 }
14637
14638 public void write(org.apache.thrift.protocol.TProtocol oprot, CancelDelegationToken_result struct) throws org.apache.thrift.TException {
14639 struct.validate();
14640
14641 oprot.writeStructBegin(STRUCT_DESC);
14642 if (struct.success != null) {
14643 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14644 struct.success.write(oprot);
14645 oprot.writeFieldEnd();
14646 }
14647 oprot.writeFieldStop();
14648 oprot.writeStructEnd();
14649 }
14650
14651 }
14652
14653 private static class CancelDelegationToken_resultTupleSchemeFactory implements SchemeFactory {
14654 public CancelDelegationToken_resultTupleScheme getScheme() {
14655 return new CancelDelegationToken_resultTupleScheme();
14656 }
14657 }
14658
14659 private static class CancelDelegationToken_resultTupleScheme extends TupleScheme<CancelDelegationToken_result> {
14660
14661 @Override
14662 public void write(org.apache.thrift.protocol.TProtocol prot, CancelDelegationToken_result struct) throws org.apache.thrift.TException {
14663 TTupleProtocol oprot = (TTupleProtocol) prot;
14664 BitSet optionals = new BitSet();
14665 if (struct.isSetSuccess()) {
14666 optionals.set(0);
14667 }
14668 oprot.writeBitSet(optionals, 1);
14669 if (struct.isSetSuccess()) {
14670 struct.success.write(oprot);
14671 }
14672 }
14673
14674 @Override
14675 public void read(org.apache.thrift.protocol.TProtocol prot, CancelDelegationToken_result struct) throws org.apache.thrift.TException {
14676 TTupleProtocol iprot = (TTupleProtocol) prot;
14677 BitSet incoming = iprot.readBitSet(1);
14678 if (incoming.get(0)) {
14679 struct.success = new TCancelDelegationTokenResp();
14680 struct.success.read(iprot);
14681 struct.setSuccessIsSet(true);
14682 }
14683 }
14684 }
14685
14686 }
14687
14688 public static class RenewDelegationToken_args implements org.apache.thrift.TBase<RenewDelegationToken_args, RenewDelegationToken_args._Fields>, java.io.Serializable, Cloneable {
14689 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RenewDelegationToken_args");
14690
14691 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);
14692
14693 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14694 static {
14695 schemes.put(StandardScheme.class, new RenewDelegationToken_argsStandardSchemeFactory());
14696 schemes.put(TupleScheme.class, new RenewDelegationToken_argsTupleSchemeFactory());
14697 }
14698
14699 private TRenewDelegationTokenReq req;
14700
14701
14702 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14703 REQ((short)1, "req");
14704
14705 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14706
14707 static {
14708 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14709 byName.put(field.getFieldName(), field);
14710 }
14711 }
14712
14713
14714
14715
14716 public static _Fields findByThriftId(int fieldId) {
14717 switch(fieldId) {
14718 case 1:
14719 return REQ;
14720 default:
14721 return null;
14722 }
14723 }
14724
14725
14726
14727
14728
14729 public static _Fields findByThriftIdOrThrow(int fieldId) {
14730 _Fields fields = findByThriftId(fieldId);
14731 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14732 return fields;
14733 }
14734
14735
14736
14737
14738 public static _Fields findByName(String name) {
14739 return byName.get(name);
14740 }
14741
14742 private final short _thriftId;
14743 private final String _fieldName;
14744
14745 _Fields(short thriftId, String fieldName) {
14746 _thriftId = thriftId;
14747 _fieldName = fieldName;
14748 }
14749
14750 public short getThriftFieldId() {
14751 return _thriftId;
14752 }
14753
14754 public String getFieldName() {
14755 return _fieldName;
14756 }
14757 }
14758
14759
14760 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14761 static {
14762 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14763 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
14764 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRenewDelegationTokenReq.class)));
14765 metaDataMap = Collections.unmodifiableMap(tmpMap);
14766 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RenewDelegationToken_args.class, metaDataMap);
14767 }
14768
14769 public RenewDelegationToken_args() {
14770 }
14771
14772 public RenewDelegationToken_args(
14773 TRenewDelegationTokenReq req)
14774 {
14775 this();
14776 this.req = req;
14777 }
14778
14779
14780
14781
14782 public RenewDelegationToken_args(RenewDelegationToken_args other) {
14783 if (other.isSetReq()) {
14784 this.req = new TRenewDelegationTokenReq(other.req);
14785 }
14786 }
14787
14788 public RenewDelegationToken_args deepCopy() {
14789 return new RenewDelegationToken_args(this);
14790 }
14791
14792 @Override
14793 public void clear() {
14794 this.req = null;
14795 }
14796
14797 public TRenewDelegationTokenReq getReq() {
14798 return this.req;
14799 }
14800
14801 public void setReq(TRenewDelegationTokenReq req) {
14802 this.req = req;
14803 }
14804
14805 public void unsetReq() {
14806 this.req = null;
14807 }
14808
14809
14810 public boolean isSetReq() {
14811 return this.req != null;
14812 }
14813
14814 public void setReqIsSet(boolean value) {
14815 if (!value) {
14816 this.req = null;
14817 }
14818 }
14819
14820 public void setFieldValue(_Fields field, Object value) {
14821 switch (field) {
14822 case REQ:
14823 if (value == null) {
14824 unsetReq();
14825 } else {
14826 setReq((TRenewDelegationTokenReq)value);
14827 }
14828 break;
14829
14830 }
14831 }
14832
14833 public Object getFieldValue(_Fields field) {
14834 switch (field) {
14835 case REQ:
14836 return getReq();
14837
14838 }
14839 throw new IllegalStateException();
14840 }
14841
14842
14843 public boolean isSet(_Fields field) {
14844 if (field == null) {
14845 throw new IllegalArgumentException();
14846 }
14847
14848 switch (field) {
14849 case REQ:
14850 return isSetReq();
14851 }
14852 throw new IllegalStateException();
14853 }
14854
14855 @Override
14856 public boolean equals(Object that) {
14857 if (that == null)
14858 return false;
14859 if (that instanceof RenewDelegationToken_args)
14860 return this.equals((RenewDelegationToken_args)that);
14861 return false;
14862 }
14863
14864 public boolean equals(RenewDelegationToken_args that) {
14865 if (that == null)
14866 return false;
14867
14868 boolean this_present_req = true && this.isSetReq();
14869 boolean that_present_req = true && that.isSetReq();
14870 if (this_present_req || that_present_req) {
14871 if (!(this_present_req && that_present_req))
14872 return false;
14873 if (!this.req.equals(that.req))
14874 return false;
14875 }
14876
14877 return true;
14878 }
14879
14880 @Override
14881 public int hashCode() {
14882 HashCodeBuilder builder = new HashCodeBuilder();
14883
14884 boolean present_req = true && (isSetReq());
14885 builder.append(present_req);
14886 if (present_req)
14887 builder.append(req);
14888
14889 return builder.toHashCode();
14890 }
14891
14892 public int compareTo(RenewDelegationToken_args other) {
14893 if (!getClass().equals(other.getClass())) {
14894 return getClass().getName().compareTo(other.getClass().getName());
14895 }
14896
14897 int lastComparison = 0;
14898 RenewDelegationToken_args typedOther = (RenewDelegationToken_args)other;
14899
14900 lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq());
14901 if (lastComparison != 0) {
14902 return lastComparison;
14903 }
14904 if (isSetReq()) {
14905 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req);
14906 if (lastComparison != 0) {
14907 return lastComparison;
14908 }
14909 }
14910 return 0;
14911 }
14912
14913 public _Fields fieldForId(int fieldId) {
14914 return _Fields.findByThriftId(fieldId);
14915 }
14916
14917 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14918 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14919 }
14920
14921 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14922 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14923 }
14924
14925 @Override
14926 public String toString() {
14927 StringBuilder sb = new StringBuilder("RenewDelegationToken_args(");
14928 boolean first = true;
14929
14930 sb.append("req:");
14931 if (this.req == null) {
14932 sb.append("null");
14933 } else {
14934 sb.append(this.req);
14935 }
14936 first = false;
14937 sb.append(")");
14938 return sb.toString();
14939 }
14940
14941 public void validate() throws org.apache.thrift.TException {
14942
14943
14944 if (req != null) {
14945 req.validate();
14946 }
14947 }
14948
14949 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14950 try {
14951 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14952 } catch (org.apache.thrift.TException te) {
14953 throw new java.io.IOException(te);
14954 }
14955 }
14956
14957 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14958 try {
14959 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14960 } catch (org.apache.thrift.TException te) {
14961 throw new java.io.IOException(te);
14962 }
14963 }
14964
14965 private static class RenewDelegationToken_argsStandardSchemeFactory implements SchemeFactory {
14966 public RenewDelegationToken_argsStandardScheme getScheme() {
14967 return new RenewDelegationToken_argsStandardScheme();
14968 }
14969 }
14970
14971 private static class RenewDelegationToken_argsStandardScheme extends StandardScheme<RenewDelegationToken_args> {
14972
14973 public void read(org.apache.thrift.protocol.TProtocol iprot, RenewDelegationToken_args struct) throws org.apache.thrift.TException {
14974 org.apache.thrift.protocol.TField schemeField;
14975 iprot.readStructBegin();
14976 while (true)
14977 {
14978 schemeField = iprot.readFieldBegin();
14979 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14980 break;
14981 }
14982 switch (schemeField.id) {
14983 case 1:
14984 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
14985 struct.req = new TRenewDelegationTokenReq();
14986 struct.req.read(iprot);
14987 struct.setReqIsSet(true);
14988 } else {
14989 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14990 }
14991 break;
14992 default:
14993 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14994 }
14995 iprot.readFieldEnd();
14996 }
14997 iprot.readStructEnd();
14998 struct.validate();
14999 }
15000
15001 public void write(org.apache.thrift.protocol.TProtocol oprot, RenewDelegationToken_args struct) throws org.apache.thrift.TException {
15002 struct.validate();
15003
15004 oprot.writeStructBegin(STRUCT_DESC);
15005 if (struct.req != null) {
15006 oprot.writeFieldBegin(REQ_FIELD_DESC);
15007 struct.req.write(oprot);
15008 oprot.writeFieldEnd();
15009 }
15010 oprot.writeFieldStop();
15011 oprot.writeStructEnd();
15012 }
15013
15014 }
15015
15016 private static class RenewDelegationToken_argsTupleSchemeFactory implements SchemeFactory {
15017 public RenewDelegationToken_argsTupleScheme getScheme() {
15018 return new RenewDelegationToken_argsTupleScheme();
15019 }
15020 }
15021
15022 private static class RenewDelegationToken_argsTupleScheme extends TupleScheme<RenewDelegationToken_args> {
15023
15024 @Override
15025 public void write(org.apache.thrift.protocol.TProtocol prot, RenewDelegationToken_args struct) throws org.apache.thrift.TException {
15026 TTupleProtocol oprot = (TTupleProtocol) prot;
15027 BitSet optionals = new BitSet();
15028 if (struct.isSetReq()) {
15029 optionals.set(0);
15030 }
15031 oprot.writeBitSet(optionals, 1);
15032 if (struct.isSetReq()) {
15033 struct.req.write(oprot);
15034 }
15035 }
15036
15037 @Override
15038 public void read(org.apache.thrift.protocol.TProtocol prot, RenewDelegationToken_args struct) throws org.apache.thrift.TException {
15039 TTupleProtocol iprot = (TTupleProtocol) prot;
15040 BitSet incoming = iprot.readBitSet(1);
15041 if (incoming.get(0)) {
15042 struct.req = new TRenewDelegationTokenReq();
15043 struct.req.read(iprot);
15044 struct.setReqIsSet(true);
15045 }
15046 }
15047 }
15048
15049 }
15050
15051 public static class RenewDelegationToken_result implements org.apache.thrift.TBase<RenewDelegationToken_result, RenewDelegationToken_result._Fields>, java.io.Serializable, Cloneable {
15052 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RenewDelegationToken_result");
15053
15054 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);
15055
15056 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15057 static {
15058 schemes.put(StandardScheme.class, new RenewDelegationToken_resultStandardSchemeFactory());
15059 schemes.put(TupleScheme.class, new RenewDelegationToken_resultTupleSchemeFactory());
15060 }
15061
15062 private TRenewDelegationTokenResp success;
15063
15064
15065 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15066 SUCCESS((short)0, "success");
15067
15068 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15069
15070 static {
15071 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15072 byName.put(field.getFieldName(), field);
15073 }
15074 }
15075
15076
15077
15078
15079 public static _Fields findByThriftId(int fieldId) {
15080 switch(fieldId) {
15081 case 0:
15082 return SUCCESS;
15083 default:
15084 return null;
15085 }
15086 }
15087
15088
15089
15090
15091
15092 public static _Fields findByThriftIdOrThrow(int fieldId) {
15093 _Fields fields = findByThriftId(fieldId);
15094 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15095 return fields;
15096 }
15097
15098
15099
15100
15101 public static _Fields findByName(String name) {
15102 return byName.get(name);
15103 }
15104
15105 private final short _thriftId;
15106 private final String _fieldName;
15107
15108 _Fields(short thriftId, String fieldName) {
15109 _thriftId = thriftId;
15110 _fieldName = fieldName;
15111 }
15112
15113 public short getThriftFieldId() {
15114 return _thriftId;
15115 }
15116
15117 public String getFieldName() {
15118 return _fieldName;
15119 }
15120 }
15121
15122
15123 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15124 static {
15125 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15126 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
15127 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRenewDelegationTokenResp.class)));
15128 metaDataMap = Collections.unmodifiableMap(tmpMap);
15129 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RenewDelegationToken_result.class, metaDataMap);
15130 }
15131
15132 public RenewDelegationToken_result() {
15133 }
15134
15135 public RenewDelegationToken_result(
15136 TRenewDelegationTokenResp success)
15137 {
15138 this();
15139 this.success = success;
15140 }
15141
15142
15143
15144
15145 public RenewDelegationToken_result(RenewDelegationToken_result other) {
15146 if (other.isSetSuccess()) {
15147 this.success = new TRenewDelegationTokenResp(other.success);
15148 }
15149 }
15150
15151 public RenewDelegationToken_result deepCopy() {
15152 return new RenewDelegationToken_result(this);
15153 }
15154
15155 @Override
15156 public void clear() {
15157 this.success = null;
15158 }
15159
15160 public TRenewDelegationTokenResp getSuccess() {
15161 return this.success;
15162 }
15163
15164 public void setSuccess(TRenewDelegationTokenResp success) {
15165 this.success = success;
15166 }
15167
15168 public void unsetSuccess() {
15169 this.success = null;
15170 }
15171
15172
15173 public boolean isSetSuccess() {
15174 return this.success != null;
15175 }
15176
15177 public void setSuccessIsSet(boolean value) {
15178 if (!value) {
15179 this.success = null;
15180 }
15181 }
15182
15183 public void setFieldValue(_Fields field, Object value) {
15184 switch (field) {
15185 case SUCCESS:
15186 if (value == null) {
15187 unsetSuccess();
15188 } else {
15189 setSuccess((TRenewDelegationTokenResp)value);
15190 }
15191 break;
15192
15193 }
15194 }
15195
15196 public Object getFieldValue(_Fields field) {
15197 switch (field) {
15198 case SUCCESS:
15199 return getSuccess();
15200
15201 }
15202 throw new IllegalStateException();
15203 }
15204
15205
15206 public boolean isSet(_Fields field) {
15207 if (field == null) {
15208 throw new IllegalArgumentException();
15209 }
15210
15211 switch (field) {
15212 case SUCCESS:
15213 return isSetSuccess();
15214 }
15215 throw new IllegalStateException();
15216 }
15217
15218 @Override
15219 public boolean equals(Object that) {
15220 if (that == null)
15221 return false;
15222 if (that instanceof RenewDelegationToken_result)
15223 return this.equals((RenewDelegationToken_result)that);
15224 return false;
15225 }
15226
15227 public boolean equals(RenewDelegationToken_result that) {
15228 if (that == null)
15229 return false;
15230
15231 boolean this_present_success = true && this.isSetSuccess();
15232 boolean that_present_success = true && that.isSetSuccess();
15233 if (this_present_success || that_present_success) {
15234 if (!(this_present_success && that_present_success))
15235 return false;
15236 if (!this.success.equals(that.success))
15237 return false;
15238 }
15239
15240 return true;
15241 }
15242
15243 @Override
15244 public int hashCode() {
15245 HashCodeBuilder builder = new HashCodeBuilder();
15246
15247 boolean present_success = true && (isSetSuccess());
15248 builder.append(present_success);
15249 if (present_success)
15250 builder.append(success);
15251
15252 return builder.toHashCode();
15253 }
15254
15255 public int compareTo(RenewDelegationToken_result other) {
15256 if (!getClass().equals(other.getClass())) {
15257 return getClass().getName().compareTo(other.getClass().getName());
15258 }
15259
15260 int lastComparison = 0;
15261 RenewDelegationToken_result typedOther = (RenewDelegationToken_result)other;
15262
15263 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15264 if (lastComparison != 0) {
15265 return lastComparison;
15266 }
15267 if (isSetSuccess()) {
15268 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15269 if (lastComparison != 0) {
15270 return lastComparison;
15271 }
15272 }
15273 return 0;
15274 }
15275
15276 public _Fields fieldForId(int fieldId) {
15277 return _Fields.findByThriftId(fieldId);
15278 }
15279
15280 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15281 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15282 }
15283
15284 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15285 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15286 }
15287
15288 @Override
15289 public String toString() {
15290 StringBuilder sb = new StringBuilder("RenewDelegationToken_result(");
15291 boolean first = true;
15292
15293 sb.append("success:");
15294 if (this.success == null) {
15295 sb.append("null");
15296 } else {
15297 sb.append(this.success);
15298 }
15299 first = false;
15300 sb.append(")");
15301 return sb.toString();
15302 }
15303
15304 public void validate() throws org.apache.thrift.TException {
15305
15306
15307 if (success != null) {
15308 success.validate();
15309 }
15310 }
15311
15312 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15313 try {
15314 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15315 } catch (org.apache.thrift.TException te) {
15316 throw new java.io.IOException(te);
15317 }
15318 }
15319
15320 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15321 try {
15322 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15323 } catch (org.apache.thrift.TException te) {
15324 throw new java.io.IOException(te);
15325 }
15326 }
15327
15328 private static class RenewDelegationToken_resultStandardSchemeFactory implements SchemeFactory {
15329 public RenewDelegationToken_resultStandardScheme getScheme() {
15330 return new RenewDelegationToken_resultStandardScheme();
15331 }
15332 }
15333
15334 private static class RenewDelegationToken_resultStandardScheme extends StandardScheme<RenewDelegationToken_result> {
15335
15336 public void read(org.apache.thrift.protocol.TProtocol iprot, RenewDelegationToken_result struct) throws org.apache.thrift.TException {
15337 org.apache.thrift.protocol.TField schemeField;
15338 iprot.readStructBegin();
15339 while (true)
15340 {
15341 schemeField = iprot.readFieldBegin();
15342 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15343 break;
15344 }
15345 switch (schemeField.id) {
15346 case 0:
15347 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
15348 struct.success = new TRenewDelegationTokenResp();
15349 struct.success.read(iprot);
15350 struct.setSuccessIsSet(true);
15351 } else {
15352 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15353 }
15354 break;
15355 default:
15356 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15357 }
15358 iprot.readFieldEnd();
15359 }
15360 iprot.readStructEnd();
15361 struct.validate();
15362 }
15363
15364 public void write(org.apache.thrift.protocol.TProtocol oprot, RenewDelegationToken_result struct) throws org.apache.thrift.TException {
15365 struct.validate();
15366
15367 oprot.writeStructBegin(STRUCT_DESC);
15368 if (struct.success != null) {
15369 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15370 struct.success.write(oprot);
15371 oprot.writeFieldEnd();
15372 }
15373 oprot.writeFieldStop();
15374 oprot.writeStructEnd();
15375 }
15376
15377 }
15378
15379 private static class RenewDelegationToken_resultTupleSchemeFactory implements SchemeFactory {
15380 public RenewDelegationToken_resultTupleScheme getScheme() {
15381 return new RenewDelegationToken_resultTupleScheme();
15382 }
15383 }
15384
15385 private static class RenewDelegationToken_resultTupleScheme extends TupleScheme<RenewDelegationToken_result> {
15386
15387 @Override
15388 public void write(org.apache.thrift.protocol.TProtocol prot, RenewDelegationToken_result struct) throws org.apache.thrift.TException {
15389 TTupleProtocol oprot = (TTupleProtocol) prot;
15390 BitSet optionals = new BitSet();
15391 if (struct.isSetSuccess()) {
15392 optionals.set(0);
15393 }
15394 oprot.writeBitSet(optionals, 1);
15395 if (struct.isSetSuccess()) {
15396 struct.success.write(oprot);
15397 }
15398 }
15399
15400 @Override
15401 public void read(org.apache.thrift.protocol.TProtocol prot, RenewDelegationToken_result struct) throws org.apache.thrift.TException {
15402 TTupleProtocol iprot = (TTupleProtocol) prot;
15403 BitSet incoming = iprot.readBitSet(1);
15404 if (incoming.get(0)) {
15405 struct.success = new TRenewDelegationTokenResp();
15406 struct.success.read(iprot);
15407 struct.setSuccessIsSet(true);
15408 }
15409 }
15410 }
15411
15412 }
15413
15414 }