0001
0002
0003
0004
0005
0006
0007 package org.apache.hive.service.rpc.thrift;
0008
0009 import org.apache.thrift.scheme.IScheme;
0010 import org.apache.thrift.scheme.SchemeFactory;
0011 import org.apache.thrift.scheme.StandardScheme;
0012
0013 import org.apache.thrift.scheme.TupleScheme;
0014 import org.apache.thrift.protocol.TTupleProtocol;
0015 import org.apache.thrift.protocol.TProtocolException;
0016 import org.apache.thrift.EncodingUtils;
0017 import org.apache.thrift.TException;
0018 import org.apache.thrift.async.AsyncMethodCallback;
0019 import org.apache.thrift.server.AbstractNonblockingServer;
0020 import java.util.List;
0021 import java.util.ArrayList;
0022 import java.util.Map;
0023 import java.util.HashMap;
0024 import java.util.EnumMap;
0025 import java.util.Set;
0026 import java.util.HashSet;
0027 import java.util.EnumSet;
0028 import java.util.Collections;
0029 import java.util.BitSet;
0030 import java.nio.ByteBuffer;
0031 import java.util.Arrays;
0032 import javax.annotation.Generated;
0033 import org.slf4j.Logger;
0034 import org.slf4j.LoggerFactory;
0035
0036 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
0037 @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
0038 public class TCLIService {
0039
0040 public interface Iface {
0041
0042 public TOpenSessionResp OpenSession(TOpenSessionReq req) throws org.apache.thrift.TException;
0043
0044 public TCloseSessionResp CloseSession(TCloseSessionReq req) throws org.apache.thrift.TException;
0045
0046 public TGetInfoResp GetInfo(TGetInfoReq req) throws org.apache.thrift.TException;
0047
0048 public TExecuteStatementResp ExecuteStatement(TExecuteStatementReq req) throws org.apache.thrift.TException;
0049
0050 public TGetTypeInfoResp GetTypeInfo(TGetTypeInfoReq req) throws org.apache.thrift.TException;
0051
0052 public TGetCatalogsResp GetCatalogs(TGetCatalogsReq req) throws org.apache.thrift.TException;
0053
0054 public TGetSchemasResp GetSchemas(TGetSchemasReq req) throws org.apache.thrift.TException;
0055
0056 public TGetTablesResp GetTables(TGetTablesReq req) throws org.apache.thrift.TException;
0057
0058 public TGetTableTypesResp GetTableTypes(TGetTableTypesReq req) throws org.apache.thrift.TException;
0059
0060 public TGetColumnsResp GetColumns(TGetColumnsReq req) throws org.apache.thrift.TException;
0061
0062 public TGetFunctionsResp GetFunctions(TGetFunctionsReq req) throws org.apache.thrift.TException;
0063
0064 public TGetPrimaryKeysResp GetPrimaryKeys(TGetPrimaryKeysReq req) throws org.apache.thrift.TException;
0065
0066 public TGetCrossReferenceResp GetCrossReference(TGetCrossReferenceReq req) throws org.apache.thrift.TException;
0067
0068 public TGetOperationStatusResp GetOperationStatus(TGetOperationStatusReq req) throws org.apache.thrift.TException;
0069
0070 public TCancelOperationResp CancelOperation(TCancelOperationReq req) throws org.apache.thrift.TException;
0071
0072 public TCloseOperationResp CloseOperation(TCloseOperationReq req) throws org.apache.thrift.TException;
0073
0074 public TGetResultSetMetadataResp GetResultSetMetadata(TGetResultSetMetadataReq req) throws org.apache.thrift.TException;
0075
0076 public TFetchResultsResp FetchResults(TFetchResultsReq req) throws org.apache.thrift.TException;
0077
0078 public TGetDelegationTokenResp GetDelegationToken(TGetDelegationTokenReq req) throws org.apache.thrift.TException;
0079
0080 public TCancelDelegationTokenResp CancelDelegationToken(TCancelDelegationTokenReq req) throws org.apache.thrift.TException;
0081
0082 public TRenewDelegationTokenResp RenewDelegationToken(TRenewDelegationTokenReq req) throws org.apache.thrift.TException;
0083
0084 }
0085
0086 public interface AsyncIface {
0087
0088 public void OpenSession(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
0089
0090 public void CloseSession(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
0091
0092 public void GetInfo(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
0093
0094 public void ExecuteStatement(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
0095
0096 public void GetTypeInfo(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
0097
0098 public void GetCatalogs(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
0099
0100 public void GetSchemas(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
0101
0102 public void GetTables(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
0103
0104 public void GetTableTypes(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
0105
0106 public void GetColumns(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
0107
0108 public void GetFunctions(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
0109
0110 public void GetPrimaryKeys(TGetPrimaryKeysReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
0111
0112 public void GetCrossReference(TGetCrossReferenceReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
0113
0114 public void GetOperationStatus(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
0115
0116 public void CancelOperation(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
0117
0118 public void CloseOperation(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
0119
0120 public void GetResultSetMetadata(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
0121
0122 public void FetchResults(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
0123
0124 public void GetDelegationToken(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
0125
0126 public void CancelDelegationToken(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
0127
0128 public void RenewDelegationToken(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
0129
0130 }
0131
0132 public static class Client extends org.apache.thrift.TServiceClient implements Iface {
0133 public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
0134 public Factory() {}
0135 public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
0136 return new Client(prot);
0137 }
0138 public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
0139 return new Client(iprot, oprot);
0140 }
0141 }
0142
0143 public Client(org.apache.thrift.protocol.TProtocol prot)
0144 {
0145 super(prot, prot);
0146 }
0147
0148 public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
0149 super(iprot, oprot);
0150 }
0151
0152 public TOpenSessionResp OpenSession(TOpenSessionReq req) throws org.apache.thrift.TException
0153 {
0154 send_OpenSession(req);
0155 return recv_OpenSession();
0156 }
0157
0158 public void send_OpenSession(TOpenSessionReq req) throws org.apache.thrift.TException
0159 {
0160 OpenSession_args args = new OpenSession_args();
0161 args.setReq(req);
0162 sendBase("OpenSession", args);
0163 }
0164
0165 public TOpenSessionResp recv_OpenSession() throws org.apache.thrift.TException
0166 {
0167 OpenSession_result result = new OpenSession_result();
0168 receiveBase(result, "OpenSession");
0169 if (result.isSetSuccess()) {
0170 return result.success;
0171 }
0172 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "OpenSession failed: unknown result");
0173 }
0174
0175 public TCloseSessionResp CloseSession(TCloseSessionReq req) throws org.apache.thrift.TException
0176 {
0177 send_CloseSession(req);
0178 return recv_CloseSession();
0179 }
0180
0181 public void send_CloseSession(TCloseSessionReq req) throws org.apache.thrift.TException
0182 {
0183 CloseSession_args args = new CloseSession_args();
0184 args.setReq(req);
0185 sendBase("CloseSession", args);
0186 }
0187
0188 public TCloseSessionResp recv_CloseSession() throws org.apache.thrift.TException
0189 {
0190 CloseSession_result result = new CloseSession_result();
0191 receiveBase(result, "CloseSession");
0192 if (result.isSetSuccess()) {
0193 return result.success;
0194 }
0195 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "CloseSession failed: unknown result");
0196 }
0197
0198 public TGetInfoResp GetInfo(TGetInfoReq req) throws org.apache.thrift.TException
0199 {
0200 send_GetInfo(req);
0201 return recv_GetInfo();
0202 }
0203
0204 public void send_GetInfo(TGetInfoReq req) throws org.apache.thrift.TException
0205 {
0206 GetInfo_args args = new GetInfo_args();
0207 args.setReq(req);
0208 sendBase("GetInfo", args);
0209 }
0210
0211 public TGetInfoResp recv_GetInfo() throws org.apache.thrift.TException
0212 {
0213 GetInfo_result result = new GetInfo_result();
0214 receiveBase(result, "GetInfo");
0215 if (result.isSetSuccess()) {
0216 return result.success;
0217 }
0218 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetInfo failed: unknown result");
0219 }
0220
0221 public TExecuteStatementResp ExecuteStatement(TExecuteStatementReq req) throws org.apache.thrift.TException
0222 {
0223 send_ExecuteStatement(req);
0224 return recv_ExecuteStatement();
0225 }
0226
0227 public void send_ExecuteStatement(TExecuteStatementReq req) throws org.apache.thrift.TException
0228 {
0229 ExecuteStatement_args args = new ExecuteStatement_args();
0230 args.setReq(req);
0231 sendBase("ExecuteStatement", args);
0232 }
0233
0234 public TExecuteStatementResp recv_ExecuteStatement() throws org.apache.thrift.TException
0235 {
0236 ExecuteStatement_result result = new ExecuteStatement_result();
0237 receiveBase(result, "ExecuteStatement");
0238 if (result.isSetSuccess()) {
0239 return result.success;
0240 }
0241 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "ExecuteStatement failed: unknown result");
0242 }
0243
0244 public TGetTypeInfoResp GetTypeInfo(TGetTypeInfoReq req) throws org.apache.thrift.TException
0245 {
0246 send_GetTypeInfo(req);
0247 return recv_GetTypeInfo();
0248 }
0249
0250 public void send_GetTypeInfo(TGetTypeInfoReq req) throws org.apache.thrift.TException
0251 {
0252 GetTypeInfo_args args = new GetTypeInfo_args();
0253 args.setReq(req);
0254 sendBase("GetTypeInfo", args);
0255 }
0256
0257 public TGetTypeInfoResp recv_GetTypeInfo() throws org.apache.thrift.TException
0258 {
0259 GetTypeInfo_result result = new GetTypeInfo_result();
0260 receiveBase(result, "GetTypeInfo");
0261 if (result.isSetSuccess()) {
0262 return result.success;
0263 }
0264 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetTypeInfo failed: unknown result");
0265 }
0266
0267 public TGetCatalogsResp GetCatalogs(TGetCatalogsReq req) throws org.apache.thrift.TException
0268 {
0269 send_GetCatalogs(req);
0270 return recv_GetCatalogs();
0271 }
0272
0273 public void send_GetCatalogs(TGetCatalogsReq req) throws org.apache.thrift.TException
0274 {
0275 GetCatalogs_args args = new GetCatalogs_args();
0276 args.setReq(req);
0277 sendBase("GetCatalogs", args);
0278 }
0279
0280 public TGetCatalogsResp recv_GetCatalogs() throws org.apache.thrift.TException
0281 {
0282 GetCatalogs_result result = new GetCatalogs_result();
0283 receiveBase(result, "GetCatalogs");
0284 if (result.isSetSuccess()) {
0285 return result.success;
0286 }
0287 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetCatalogs failed: unknown result");
0288 }
0289
0290 public TGetSchemasResp GetSchemas(TGetSchemasReq req) throws org.apache.thrift.TException
0291 {
0292 send_GetSchemas(req);
0293 return recv_GetSchemas();
0294 }
0295
0296 public void send_GetSchemas(TGetSchemasReq req) throws org.apache.thrift.TException
0297 {
0298 GetSchemas_args args = new GetSchemas_args();
0299 args.setReq(req);
0300 sendBase("GetSchemas", args);
0301 }
0302
0303 public TGetSchemasResp recv_GetSchemas() throws org.apache.thrift.TException
0304 {
0305 GetSchemas_result result = new GetSchemas_result();
0306 receiveBase(result, "GetSchemas");
0307 if (result.isSetSuccess()) {
0308 return result.success;
0309 }
0310 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetSchemas failed: unknown result");
0311 }
0312
0313 public TGetTablesResp GetTables(TGetTablesReq req) throws org.apache.thrift.TException
0314 {
0315 send_GetTables(req);
0316 return recv_GetTables();
0317 }
0318
0319 public void send_GetTables(TGetTablesReq req) throws org.apache.thrift.TException
0320 {
0321 GetTables_args args = new GetTables_args();
0322 args.setReq(req);
0323 sendBase("GetTables", args);
0324 }
0325
0326 public TGetTablesResp recv_GetTables() throws org.apache.thrift.TException
0327 {
0328 GetTables_result result = new GetTables_result();
0329 receiveBase(result, "GetTables");
0330 if (result.isSetSuccess()) {
0331 return result.success;
0332 }
0333 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetTables failed: unknown result");
0334 }
0335
0336 public TGetTableTypesResp GetTableTypes(TGetTableTypesReq req) throws org.apache.thrift.TException
0337 {
0338 send_GetTableTypes(req);
0339 return recv_GetTableTypes();
0340 }
0341
0342 public void send_GetTableTypes(TGetTableTypesReq req) throws org.apache.thrift.TException
0343 {
0344 GetTableTypes_args args = new GetTableTypes_args();
0345 args.setReq(req);
0346 sendBase("GetTableTypes", args);
0347 }
0348
0349 public TGetTableTypesResp recv_GetTableTypes() throws org.apache.thrift.TException
0350 {
0351 GetTableTypes_result result = new GetTableTypes_result();
0352 receiveBase(result, "GetTableTypes");
0353 if (result.isSetSuccess()) {
0354 return result.success;
0355 }
0356 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetTableTypes failed: unknown result");
0357 }
0358
0359 public TGetColumnsResp GetColumns(TGetColumnsReq req) throws org.apache.thrift.TException
0360 {
0361 send_GetColumns(req);
0362 return recv_GetColumns();
0363 }
0364
0365 public void send_GetColumns(TGetColumnsReq req) throws org.apache.thrift.TException
0366 {
0367 GetColumns_args args = new GetColumns_args();
0368 args.setReq(req);
0369 sendBase("GetColumns", args);
0370 }
0371
0372 public TGetColumnsResp recv_GetColumns() throws org.apache.thrift.TException
0373 {
0374 GetColumns_result result = new GetColumns_result();
0375 receiveBase(result, "GetColumns");
0376 if (result.isSetSuccess()) {
0377 return result.success;
0378 }
0379 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetColumns failed: unknown result");
0380 }
0381
0382 public TGetFunctionsResp GetFunctions(TGetFunctionsReq req) throws org.apache.thrift.TException
0383 {
0384 send_GetFunctions(req);
0385 return recv_GetFunctions();
0386 }
0387
0388 public void send_GetFunctions(TGetFunctionsReq req) throws org.apache.thrift.TException
0389 {
0390 GetFunctions_args args = new GetFunctions_args();
0391 args.setReq(req);
0392 sendBase("GetFunctions", args);
0393 }
0394
0395 public TGetFunctionsResp recv_GetFunctions() throws org.apache.thrift.TException
0396 {
0397 GetFunctions_result result = new GetFunctions_result();
0398 receiveBase(result, "GetFunctions");
0399 if (result.isSetSuccess()) {
0400 return result.success;
0401 }
0402 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetFunctions failed: unknown result");
0403 }
0404
0405 public TGetPrimaryKeysResp GetPrimaryKeys(TGetPrimaryKeysReq req) throws org.apache.thrift.TException
0406 {
0407 send_GetPrimaryKeys(req);
0408 return recv_GetPrimaryKeys();
0409 }
0410
0411 public void send_GetPrimaryKeys(TGetPrimaryKeysReq req) throws org.apache.thrift.TException
0412 {
0413 GetPrimaryKeys_args args = new GetPrimaryKeys_args();
0414 args.setReq(req);
0415 sendBase("GetPrimaryKeys", args);
0416 }
0417
0418 public TGetPrimaryKeysResp recv_GetPrimaryKeys() throws org.apache.thrift.TException
0419 {
0420 GetPrimaryKeys_result result = new GetPrimaryKeys_result();
0421 receiveBase(result, "GetPrimaryKeys");
0422 if (result.isSetSuccess()) {
0423 return result.success;
0424 }
0425 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetPrimaryKeys failed: unknown result");
0426 }
0427
0428 public TGetCrossReferenceResp GetCrossReference(TGetCrossReferenceReq req) throws org.apache.thrift.TException
0429 {
0430 send_GetCrossReference(req);
0431 return recv_GetCrossReference();
0432 }
0433
0434 public void send_GetCrossReference(TGetCrossReferenceReq req) throws org.apache.thrift.TException
0435 {
0436 GetCrossReference_args args = new GetCrossReference_args();
0437 args.setReq(req);
0438 sendBase("GetCrossReference", args);
0439 }
0440
0441 public TGetCrossReferenceResp recv_GetCrossReference() throws org.apache.thrift.TException
0442 {
0443 GetCrossReference_result result = new GetCrossReference_result();
0444 receiveBase(result, "GetCrossReference");
0445 if (result.isSetSuccess()) {
0446 return result.success;
0447 }
0448 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetCrossReference failed: unknown result");
0449 }
0450
0451 public TGetOperationStatusResp GetOperationStatus(TGetOperationStatusReq req) throws org.apache.thrift.TException
0452 {
0453 send_GetOperationStatus(req);
0454 return recv_GetOperationStatus();
0455 }
0456
0457 public void send_GetOperationStatus(TGetOperationStatusReq req) throws org.apache.thrift.TException
0458 {
0459 GetOperationStatus_args args = new GetOperationStatus_args();
0460 args.setReq(req);
0461 sendBase("GetOperationStatus", args);
0462 }
0463
0464 public TGetOperationStatusResp recv_GetOperationStatus() throws org.apache.thrift.TException
0465 {
0466 GetOperationStatus_result result = new GetOperationStatus_result();
0467 receiveBase(result, "GetOperationStatus");
0468 if (result.isSetSuccess()) {
0469 return result.success;
0470 }
0471 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetOperationStatus failed: unknown result");
0472 }
0473
0474 public TCancelOperationResp CancelOperation(TCancelOperationReq req) throws org.apache.thrift.TException
0475 {
0476 send_CancelOperation(req);
0477 return recv_CancelOperation();
0478 }
0479
0480 public void send_CancelOperation(TCancelOperationReq req) throws org.apache.thrift.TException
0481 {
0482 CancelOperation_args args = new CancelOperation_args();
0483 args.setReq(req);
0484 sendBase("CancelOperation", args);
0485 }
0486
0487 public TCancelOperationResp recv_CancelOperation() throws org.apache.thrift.TException
0488 {
0489 CancelOperation_result result = new CancelOperation_result();
0490 receiveBase(result, "CancelOperation");
0491 if (result.isSetSuccess()) {
0492 return result.success;
0493 }
0494 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "CancelOperation failed: unknown result");
0495 }
0496
0497 public TCloseOperationResp CloseOperation(TCloseOperationReq req) throws org.apache.thrift.TException
0498 {
0499 send_CloseOperation(req);
0500 return recv_CloseOperation();
0501 }
0502
0503 public void send_CloseOperation(TCloseOperationReq req) throws org.apache.thrift.TException
0504 {
0505 CloseOperation_args args = new CloseOperation_args();
0506 args.setReq(req);
0507 sendBase("CloseOperation", args);
0508 }
0509
0510 public TCloseOperationResp recv_CloseOperation() throws org.apache.thrift.TException
0511 {
0512 CloseOperation_result result = new CloseOperation_result();
0513 receiveBase(result, "CloseOperation");
0514 if (result.isSetSuccess()) {
0515 return result.success;
0516 }
0517 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "CloseOperation failed: unknown result");
0518 }
0519
0520 public TGetResultSetMetadataResp GetResultSetMetadata(TGetResultSetMetadataReq req) throws org.apache.thrift.TException
0521 {
0522 send_GetResultSetMetadata(req);
0523 return recv_GetResultSetMetadata();
0524 }
0525
0526 public void send_GetResultSetMetadata(TGetResultSetMetadataReq req) throws org.apache.thrift.TException
0527 {
0528 GetResultSetMetadata_args args = new GetResultSetMetadata_args();
0529 args.setReq(req);
0530 sendBase("GetResultSetMetadata", args);
0531 }
0532
0533 public TGetResultSetMetadataResp recv_GetResultSetMetadata() throws org.apache.thrift.TException
0534 {
0535 GetResultSetMetadata_result result = new GetResultSetMetadata_result();
0536 receiveBase(result, "GetResultSetMetadata");
0537 if (result.isSetSuccess()) {
0538 return result.success;
0539 }
0540 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetResultSetMetadata failed: unknown result");
0541 }
0542
0543 public TFetchResultsResp FetchResults(TFetchResultsReq req) throws org.apache.thrift.TException
0544 {
0545 send_FetchResults(req);
0546 return recv_FetchResults();
0547 }
0548
0549 public void send_FetchResults(TFetchResultsReq req) throws org.apache.thrift.TException
0550 {
0551 FetchResults_args args = new FetchResults_args();
0552 args.setReq(req);
0553 sendBase("FetchResults", args);
0554 }
0555
0556 public TFetchResultsResp recv_FetchResults() throws org.apache.thrift.TException
0557 {
0558 FetchResults_result result = new FetchResults_result();
0559 receiveBase(result, "FetchResults");
0560 if (result.isSetSuccess()) {
0561 return result.success;
0562 }
0563 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "FetchResults failed: unknown result");
0564 }
0565
0566 public TGetDelegationTokenResp GetDelegationToken(TGetDelegationTokenReq req) throws org.apache.thrift.TException
0567 {
0568 send_GetDelegationToken(req);
0569 return recv_GetDelegationToken();
0570 }
0571
0572 public void send_GetDelegationToken(TGetDelegationTokenReq req) throws org.apache.thrift.TException
0573 {
0574 GetDelegationToken_args args = new GetDelegationToken_args();
0575 args.setReq(req);
0576 sendBase("GetDelegationToken", args);
0577 }
0578
0579 public TGetDelegationTokenResp recv_GetDelegationToken() throws org.apache.thrift.TException
0580 {
0581 GetDelegationToken_result result = new GetDelegationToken_result();
0582 receiveBase(result, "GetDelegationToken");
0583 if (result.isSetSuccess()) {
0584 return result.success;
0585 }
0586 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetDelegationToken failed: unknown result");
0587 }
0588
0589 public TCancelDelegationTokenResp CancelDelegationToken(TCancelDelegationTokenReq req) throws org.apache.thrift.TException
0590 {
0591 send_CancelDelegationToken(req);
0592 return recv_CancelDelegationToken();
0593 }
0594
0595 public void send_CancelDelegationToken(TCancelDelegationTokenReq req) throws org.apache.thrift.TException
0596 {
0597 CancelDelegationToken_args args = new CancelDelegationToken_args();
0598 args.setReq(req);
0599 sendBase("CancelDelegationToken", args);
0600 }
0601
0602 public TCancelDelegationTokenResp recv_CancelDelegationToken() throws org.apache.thrift.TException
0603 {
0604 CancelDelegationToken_result result = new CancelDelegationToken_result();
0605 receiveBase(result, "CancelDelegationToken");
0606 if (result.isSetSuccess()) {
0607 return result.success;
0608 }
0609 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "CancelDelegationToken failed: unknown result");
0610 }
0611
0612 public TRenewDelegationTokenResp RenewDelegationToken(TRenewDelegationTokenReq req) throws org.apache.thrift.TException
0613 {
0614 send_RenewDelegationToken(req);
0615 return recv_RenewDelegationToken();
0616 }
0617
0618 public void send_RenewDelegationToken(TRenewDelegationTokenReq req) throws org.apache.thrift.TException
0619 {
0620 RenewDelegationToken_args args = new RenewDelegationToken_args();
0621 args.setReq(req);
0622 sendBase("RenewDelegationToken", args);
0623 }
0624
0625 public TRenewDelegationTokenResp recv_RenewDelegationToken() throws org.apache.thrift.TException
0626 {
0627 RenewDelegationToken_result result = new RenewDelegationToken_result();
0628 receiveBase(result, "RenewDelegationToken");
0629 if (result.isSetSuccess()) {
0630 return result.success;
0631 }
0632 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "RenewDelegationToken failed: unknown result");
0633 }
0634
0635 }
0636 public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
0637 public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
0638 private org.apache.thrift.async.TAsyncClientManager clientManager;
0639 private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
0640 public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
0641 this.clientManager = clientManager;
0642 this.protocolFactory = protocolFactory;
0643 }
0644 public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
0645 return new AsyncClient(protocolFactory, clientManager, transport);
0646 }
0647 }
0648
0649 public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
0650 super(protocolFactory, clientManager, transport);
0651 }
0652
0653 public void OpenSession(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
0654 checkReady();
0655 OpenSession_call method_call = new OpenSession_call(req, resultHandler, this, ___protocolFactory, ___transport);
0656 this.___currentMethod = method_call;
0657 ___manager.call(method_call);
0658 }
0659
0660 public static class OpenSession_call extends org.apache.thrift.async.TAsyncMethodCall {
0661 private TOpenSessionReq req;
0662 public OpenSession_call(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0663 super(client, protocolFactory, transport, resultHandler, false);
0664 this.req = req;
0665 }
0666
0667 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0668 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("OpenSession", org.apache.thrift.protocol.TMessageType.CALL, 0));
0669 OpenSession_args args = new OpenSession_args();
0670 args.setReq(req);
0671 args.write(prot);
0672 prot.writeMessageEnd();
0673 }
0674
0675 public TOpenSessionResp getResult() throws org.apache.thrift.TException {
0676 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0677 throw new IllegalStateException("Method call not finished!");
0678 }
0679 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0680 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0681 return (new Client(prot)).recv_OpenSession();
0682 }
0683 }
0684
0685 public void CloseSession(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
0686 checkReady();
0687 CloseSession_call method_call = new CloseSession_call(req, resultHandler, this, ___protocolFactory, ___transport);
0688 this.___currentMethod = method_call;
0689 ___manager.call(method_call);
0690 }
0691
0692 public static class CloseSession_call extends org.apache.thrift.async.TAsyncMethodCall {
0693 private TCloseSessionReq req;
0694 public CloseSession_call(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0695 super(client, protocolFactory, transport, resultHandler, false);
0696 this.req = req;
0697 }
0698
0699 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0700 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("CloseSession", org.apache.thrift.protocol.TMessageType.CALL, 0));
0701 CloseSession_args args = new CloseSession_args();
0702 args.setReq(req);
0703 args.write(prot);
0704 prot.writeMessageEnd();
0705 }
0706
0707 public TCloseSessionResp getResult() throws org.apache.thrift.TException {
0708 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0709 throw new IllegalStateException("Method call not finished!");
0710 }
0711 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0712 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0713 return (new Client(prot)).recv_CloseSession();
0714 }
0715 }
0716
0717 public void GetInfo(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
0718 checkReady();
0719 GetInfo_call method_call = new GetInfo_call(req, resultHandler, this, ___protocolFactory, ___transport);
0720 this.___currentMethod = method_call;
0721 ___manager.call(method_call);
0722 }
0723
0724 public static class GetInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
0725 private TGetInfoReq req;
0726 public GetInfo_call(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0727 super(client, protocolFactory, transport, resultHandler, false);
0728 this.req = req;
0729 }
0730
0731 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0732 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
0733 GetInfo_args args = new GetInfo_args();
0734 args.setReq(req);
0735 args.write(prot);
0736 prot.writeMessageEnd();
0737 }
0738
0739 public TGetInfoResp getResult() throws org.apache.thrift.TException {
0740 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0741 throw new IllegalStateException("Method call not finished!");
0742 }
0743 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0744 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0745 return (new Client(prot)).recv_GetInfo();
0746 }
0747 }
0748
0749 public void ExecuteStatement(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
0750 checkReady();
0751 ExecuteStatement_call method_call = new ExecuteStatement_call(req, resultHandler, this, ___protocolFactory, ___transport);
0752 this.___currentMethod = method_call;
0753 ___manager.call(method_call);
0754 }
0755
0756 public static class ExecuteStatement_call extends org.apache.thrift.async.TAsyncMethodCall {
0757 private TExecuteStatementReq req;
0758 public ExecuteStatement_call(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0759 super(client, protocolFactory, transport, resultHandler, false);
0760 this.req = req;
0761 }
0762
0763 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0764 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("ExecuteStatement", org.apache.thrift.protocol.TMessageType.CALL, 0));
0765 ExecuteStatement_args args = new ExecuteStatement_args();
0766 args.setReq(req);
0767 args.write(prot);
0768 prot.writeMessageEnd();
0769 }
0770
0771 public TExecuteStatementResp getResult() throws org.apache.thrift.TException {
0772 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0773 throw new IllegalStateException("Method call not finished!");
0774 }
0775 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0776 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0777 return (new Client(prot)).recv_ExecuteStatement();
0778 }
0779 }
0780
0781 public void GetTypeInfo(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
0782 checkReady();
0783 GetTypeInfo_call method_call = new GetTypeInfo_call(req, resultHandler, this, ___protocolFactory, ___transport);
0784 this.___currentMethod = method_call;
0785 ___manager.call(method_call);
0786 }
0787
0788 public static class GetTypeInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
0789 private TGetTypeInfoReq req;
0790 public GetTypeInfo_call(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0791 super(client, protocolFactory, transport, resultHandler, false);
0792 this.req = req;
0793 }
0794
0795 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0796 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetTypeInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
0797 GetTypeInfo_args args = new GetTypeInfo_args();
0798 args.setReq(req);
0799 args.write(prot);
0800 prot.writeMessageEnd();
0801 }
0802
0803 public TGetTypeInfoResp getResult() throws org.apache.thrift.TException {
0804 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0805 throw new IllegalStateException("Method call not finished!");
0806 }
0807 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0808 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0809 return (new Client(prot)).recv_GetTypeInfo();
0810 }
0811 }
0812
0813 public void GetCatalogs(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
0814 checkReady();
0815 GetCatalogs_call method_call = new GetCatalogs_call(req, resultHandler, this, ___protocolFactory, ___transport);
0816 this.___currentMethod = method_call;
0817 ___manager.call(method_call);
0818 }
0819
0820 public static class GetCatalogs_call extends org.apache.thrift.async.TAsyncMethodCall {
0821 private TGetCatalogsReq req;
0822 public GetCatalogs_call(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0823 super(client, protocolFactory, transport, resultHandler, false);
0824 this.req = req;
0825 }
0826
0827 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0828 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetCatalogs", org.apache.thrift.protocol.TMessageType.CALL, 0));
0829 GetCatalogs_args args = new GetCatalogs_args();
0830 args.setReq(req);
0831 args.write(prot);
0832 prot.writeMessageEnd();
0833 }
0834
0835 public TGetCatalogsResp getResult() throws org.apache.thrift.TException {
0836 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0837 throw new IllegalStateException("Method call not finished!");
0838 }
0839 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0840 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0841 return (new Client(prot)).recv_GetCatalogs();
0842 }
0843 }
0844
0845 public void GetSchemas(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
0846 checkReady();
0847 GetSchemas_call method_call = new GetSchemas_call(req, resultHandler, this, ___protocolFactory, ___transport);
0848 this.___currentMethod = method_call;
0849 ___manager.call(method_call);
0850 }
0851
0852 public static class GetSchemas_call extends org.apache.thrift.async.TAsyncMethodCall {
0853 private TGetSchemasReq req;
0854 public GetSchemas_call(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0855 super(client, protocolFactory, transport, resultHandler, false);
0856 this.req = req;
0857 }
0858
0859 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0860 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetSchemas", org.apache.thrift.protocol.TMessageType.CALL, 0));
0861 GetSchemas_args args = new GetSchemas_args();
0862 args.setReq(req);
0863 args.write(prot);
0864 prot.writeMessageEnd();
0865 }
0866
0867 public TGetSchemasResp getResult() throws org.apache.thrift.TException {
0868 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0869 throw new IllegalStateException("Method call not finished!");
0870 }
0871 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0872 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0873 return (new Client(prot)).recv_GetSchemas();
0874 }
0875 }
0876
0877 public void GetTables(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
0878 checkReady();
0879 GetTables_call method_call = new GetTables_call(req, resultHandler, this, ___protocolFactory, ___transport);
0880 this.___currentMethod = method_call;
0881 ___manager.call(method_call);
0882 }
0883
0884 public static class GetTables_call extends org.apache.thrift.async.TAsyncMethodCall {
0885 private TGetTablesReq req;
0886 public GetTables_call(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0887 super(client, protocolFactory, transport, resultHandler, false);
0888 this.req = req;
0889 }
0890
0891 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0892 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetTables", org.apache.thrift.protocol.TMessageType.CALL, 0));
0893 GetTables_args args = new GetTables_args();
0894 args.setReq(req);
0895 args.write(prot);
0896 prot.writeMessageEnd();
0897 }
0898
0899 public TGetTablesResp getResult() throws org.apache.thrift.TException {
0900 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0901 throw new IllegalStateException("Method call not finished!");
0902 }
0903 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0904 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0905 return (new Client(prot)).recv_GetTables();
0906 }
0907 }
0908
0909 public void GetTableTypes(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
0910 checkReady();
0911 GetTableTypes_call method_call = new GetTableTypes_call(req, resultHandler, this, ___protocolFactory, ___transport);
0912 this.___currentMethod = method_call;
0913 ___manager.call(method_call);
0914 }
0915
0916 public static class GetTableTypes_call extends org.apache.thrift.async.TAsyncMethodCall {
0917 private TGetTableTypesReq req;
0918 public GetTableTypes_call(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0919 super(client, protocolFactory, transport, resultHandler, false);
0920 this.req = req;
0921 }
0922
0923 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0924 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetTableTypes", org.apache.thrift.protocol.TMessageType.CALL, 0));
0925 GetTableTypes_args args = new GetTableTypes_args();
0926 args.setReq(req);
0927 args.write(prot);
0928 prot.writeMessageEnd();
0929 }
0930
0931 public TGetTableTypesResp getResult() throws org.apache.thrift.TException {
0932 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0933 throw new IllegalStateException("Method call not finished!");
0934 }
0935 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0936 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0937 return (new Client(prot)).recv_GetTableTypes();
0938 }
0939 }
0940
0941 public void GetColumns(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
0942 checkReady();
0943 GetColumns_call method_call = new GetColumns_call(req, resultHandler, this, ___protocolFactory, ___transport);
0944 this.___currentMethod = method_call;
0945 ___manager.call(method_call);
0946 }
0947
0948 public static class GetColumns_call extends org.apache.thrift.async.TAsyncMethodCall {
0949 private TGetColumnsReq req;
0950 public GetColumns_call(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0951 super(client, protocolFactory, transport, resultHandler, false);
0952 this.req = req;
0953 }
0954
0955 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0956 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetColumns", org.apache.thrift.protocol.TMessageType.CALL, 0));
0957 GetColumns_args args = new GetColumns_args();
0958 args.setReq(req);
0959 args.write(prot);
0960 prot.writeMessageEnd();
0961 }
0962
0963 public TGetColumnsResp getResult() throws org.apache.thrift.TException {
0964 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0965 throw new IllegalStateException("Method call not finished!");
0966 }
0967 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
0968 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
0969 return (new Client(prot)).recv_GetColumns();
0970 }
0971 }
0972
0973 public void GetFunctions(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
0974 checkReady();
0975 GetFunctions_call method_call = new GetFunctions_call(req, resultHandler, this, ___protocolFactory, ___transport);
0976 this.___currentMethod = method_call;
0977 ___manager.call(method_call);
0978 }
0979
0980 public static class GetFunctions_call extends org.apache.thrift.async.TAsyncMethodCall {
0981 private TGetFunctionsReq req;
0982 public GetFunctions_call(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
0983 super(client, protocolFactory, transport, resultHandler, false);
0984 this.req = req;
0985 }
0986
0987 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
0988 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetFunctions", org.apache.thrift.protocol.TMessageType.CALL, 0));
0989 GetFunctions_args args = new GetFunctions_args();
0990 args.setReq(req);
0991 args.write(prot);
0992 prot.writeMessageEnd();
0993 }
0994
0995 public TGetFunctionsResp getResult() throws org.apache.thrift.TException {
0996 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
0997 throw new IllegalStateException("Method call not finished!");
0998 }
0999 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1000 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1001 return (new Client(prot)).recv_GetFunctions();
1002 }
1003 }
1004
1005 public void GetPrimaryKeys(TGetPrimaryKeysReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1006 checkReady();
1007 GetPrimaryKeys_call method_call = new GetPrimaryKeys_call(req, resultHandler, this, ___protocolFactory, ___transport);
1008 this.___currentMethod = method_call;
1009 ___manager.call(method_call);
1010 }
1011
1012 public static class GetPrimaryKeys_call extends org.apache.thrift.async.TAsyncMethodCall {
1013 private TGetPrimaryKeysReq req;
1014 public GetPrimaryKeys_call(TGetPrimaryKeysReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1015 super(client, protocolFactory, transport, resultHandler, false);
1016 this.req = req;
1017 }
1018
1019 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1020 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetPrimaryKeys", org.apache.thrift.protocol.TMessageType.CALL, 0));
1021 GetPrimaryKeys_args args = new GetPrimaryKeys_args();
1022 args.setReq(req);
1023 args.write(prot);
1024 prot.writeMessageEnd();
1025 }
1026
1027 public TGetPrimaryKeysResp getResult() throws org.apache.thrift.TException {
1028 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1029 throw new IllegalStateException("Method call not finished!");
1030 }
1031 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1032 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1033 return (new Client(prot)).recv_GetPrimaryKeys();
1034 }
1035 }
1036
1037 public void GetCrossReference(TGetCrossReferenceReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1038 checkReady();
1039 GetCrossReference_call method_call = new GetCrossReference_call(req, resultHandler, this, ___protocolFactory, ___transport);
1040 this.___currentMethod = method_call;
1041 ___manager.call(method_call);
1042 }
1043
1044 public static class GetCrossReference_call extends org.apache.thrift.async.TAsyncMethodCall {
1045 private TGetCrossReferenceReq req;
1046 public GetCrossReference_call(TGetCrossReferenceReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1047 super(client, protocolFactory, transport, resultHandler, false);
1048 this.req = req;
1049 }
1050
1051 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1052 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetCrossReference", org.apache.thrift.protocol.TMessageType.CALL, 0));
1053 GetCrossReference_args args = new GetCrossReference_args();
1054 args.setReq(req);
1055 args.write(prot);
1056 prot.writeMessageEnd();
1057 }
1058
1059 public TGetCrossReferenceResp getResult() throws org.apache.thrift.TException {
1060 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1061 throw new IllegalStateException("Method call not finished!");
1062 }
1063 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1064 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1065 return (new Client(prot)).recv_GetCrossReference();
1066 }
1067 }
1068
1069 public void GetOperationStatus(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1070 checkReady();
1071 GetOperationStatus_call method_call = new GetOperationStatus_call(req, resultHandler, this, ___protocolFactory, ___transport);
1072 this.___currentMethod = method_call;
1073 ___manager.call(method_call);
1074 }
1075
1076 public static class GetOperationStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
1077 private TGetOperationStatusReq req;
1078 public GetOperationStatus_call(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1079 super(client, protocolFactory, transport, resultHandler, false);
1080 this.req = req;
1081 }
1082
1083 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1084 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetOperationStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
1085 GetOperationStatus_args args = new GetOperationStatus_args();
1086 args.setReq(req);
1087 args.write(prot);
1088 prot.writeMessageEnd();
1089 }
1090
1091 public TGetOperationStatusResp getResult() throws org.apache.thrift.TException {
1092 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1093 throw new IllegalStateException("Method call not finished!");
1094 }
1095 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1096 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1097 return (new Client(prot)).recv_GetOperationStatus();
1098 }
1099 }
1100
1101 public void CancelOperation(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1102 checkReady();
1103 CancelOperation_call method_call = new CancelOperation_call(req, resultHandler, this, ___protocolFactory, ___transport);
1104 this.___currentMethod = method_call;
1105 ___manager.call(method_call);
1106 }
1107
1108 public static class CancelOperation_call extends org.apache.thrift.async.TAsyncMethodCall {
1109 private TCancelOperationReq req;
1110 public CancelOperation_call(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1111 super(client, protocolFactory, transport, resultHandler, false);
1112 this.req = req;
1113 }
1114
1115 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1116 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("CancelOperation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1117 CancelOperation_args args = new CancelOperation_args();
1118 args.setReq(req);
1119 args.write(prot);
1120 prot.writeMessageEnd();
1121 }
1122
1123 public TCancelOperationResp getResult() throws org.apache.thrift.TException {
1124 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1125 throw new IllegalStateException("Method call not finished!");
1126 }
1127 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1128 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1129 return (new Client(prot)).recv_CancelOperation();
1130 }
1131 }
1132
1133 public void CloseOperation(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1134 checkReady();
1135 CloseOperation_call method_call = new CloseOperation_call(req, resultHandler, this, ___protocolFactory, ___transport);
1136 this.___currentMethod = method_call;
1137 ___manager.call(method_call);
1138 }
1139
1140 public static class CloseOperation_call extends org.apache.thrift.async.TAsyncMethodCall {
1141 private TCloseOperationReq req;
1142 public CloseOperation_call(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1143 super(client, protocolFactory, transport, resultHandler, false);
1144 this.req = req;
1145 }
1146
1147 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1148 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("CloseOperation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1149 CloseOperation_args args = new CloseOperation_args();
1150 args.setReq(req);
1151 args.write(prot);
1152 prot.writeMessageEnd();
1153 }
1154
1155 public TCloseOperationResp getResult() throws org.apache.thrift.TException {
1156 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1157 throw new IllegalStateException("Method call not finished!");
1158 }
1159 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1160 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1161 return (new Client(prot)).recv_CloseOperation();
1162 }
1163 }
1164
1165 public void GetResultSetMetadata(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1166 checkReady();
1167 GetResultSetMetadata_call method_call = new GetResultSetMetadata_call(req, resultHandler, this, ___protocolFactory, ___transport);
1168 this.___currentMethod = method_call;
1169 ___manager.call(method_call);
1170 }
1171
1172 public static class GetResultSetMetadata_call extends org.apache.thrift.async.TAsyncMethodCall {
1173 private TGetResultSetMetadataReq req;
1174 public GetResultSetMetadata_call(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1175 super(client, protocolFactory, transport, resultHandler, false);
1176 this.req = req;
1177 }
1178
1179 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1180 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetResultSetMetadata", org.apache.thrift.protocol.TMessageType.CALL, 0));
1181 GetResultSetMetadata_args args = new GetResultSetMetadata_args();
1182 args.setReq(req);
1183 args.write(prot);
1184 prot.writeMessageEnd();
1185 }
1186
1187 public TGetResultSetMetadataResp getResult() throws org.apache.thrift.TException {
1188 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1189 throw new IllegalStateException("Method call not finished!");
1190 }
1191 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1192 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1193 return (new Client(prot)).recv_GetResultSetMetadata();
1194 }
1195 }
1196
1197 public void FetchResults(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1198 checkReady();
1199 FetchResults_call method_call = new FetchResults_call(req, resultHandler, this, ___protocolFactory, ___transport);
1200 this.___currentMethod = method_call;
1201 ___manager.call(method_call);
1202 }
1203
1204 public static class FetchResults_call extends org.apache.thrift.async.TAsyncMethodCall {
1205 private TFetchResultsReq req;
1206 public FetchResults_call(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1207 super(client, protocolFactory, transport, resultHandler, false);
1208 this.req = req;
1209 }
1210
1211 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1212 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("FetchResults", org.apache.thrift.protocol.TMessageType.CALL, 0));
1213 FetchResults_args args = new FetchResults_args();
1214 args.setReq(req);
1215 args.write(prot);
1216 prot.writeMessageEnd();
1217 }
1218
1219 public TFetchResultsResp getResult() throws org.apache.thrift.TException {
1220 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1221 throw new IllegalStateException("Method call not finished!");
1222 }
1223 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1224 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1225 return (new Client(prot)).recv_FetchResults();
1226 }
1227 }
1228
1229 public void GetDelegationToken(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1230 checkReady();
1231 GetDelegationToken_call method_call = new GetDelegationToken_call(req, resultHandler, this, ___protocolFactory, ___transport);
1232 this.___currentMethod = method_call;
1233 ___manager.call(method_call);
1234 }
1235
1236 public static class GetDelegationToken_call extends org.apache.thrift.async.TAsyncMethodCall {
1237 private TGetDelegationTokenReq req;
1238 public GetDelegationToken_call(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1239 super(client, protocolFactory, transport, resultHandler, false);
1240 this.req = req;
1241 }
1242
1243 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1244 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetDelegationToken", org.apache.thrift.protocol.TMessageType.CALL, 0));
1245 GetDelegationToken_args args = new GetDelegationToken_args();
1246 args.setReq(req);
1247 args.write(prot);
1248 prot.writeMessageEnd();
1249 }
1250
1251 public TGetDelegationTokenResp getResult() throws org.apache.thrift.TException {
1252 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1253 throw new IllegalStateException("Method call not finished!");
1254 }
1255 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1256 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1257 return (new Client(prot)).recv_GetDelegationToken();
1258 }
1259 }
1260
1261 public void CancelDelegationToken(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1262 checkReady();
1263 CancelDelegationToken_call method_call = new CancelDelegationToken_call(req, resultHandler, this, ___protocolFactory, ___transport);
1264 this.___currentMethod = method_call;
1265 ___manager.call(method_call);
1266 }
1267
1268 public static class CancelDelegationToken_call extends org.apache.thrift.async.TAsyncMethodCall {
1269 private TCancelDelegationTokenReq req;
1270 public CancelDelegationToken_call(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1271 super(client, protocolFactory, transport, resultHandler, false);
1272 this.req = req;
1273 }
1274
1275 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1276 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("CancelDelegationToken", org.apache.thrift.protocol.TMessageType.CALL, 0));
1277 CancelDelegationToken_args args = new CancelDelegationToken_args();
1278 args.setReq(req);
1279 args.write(prot);
1280 prot.writeMessageEnd();
1281 }
1282
1283 public TCancelDelegationTokenResp getResult() throws org.apache.thrift.TException {
1284 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1285 throw new IllegalStateException("Method call not finished!");
1286 }
1287 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1288 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1289 return (new Client(prot)).recv_CancelDelegationToken();
1290 }
1291 }
1292
1293 public void RenewDelegationToken(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1294 checkReady();
1295 RenewDelegationToken_call method_call = new RenewDelegationToken_call(req, resultHandler, this, ___protocolFactory, ___transport);
1296 this.___currentMethod = method_call;
1297 ___manager.call(method_call);
1298 }
1299
1300 public static class RenewDelegationToken_call extends org.apache.thrift.async.TAsyncMethodCall {
1301 private TRenewDelegationTokenReq req;
1302 public RenewDelegationToken_call(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1303 super(client, protocolFactory, transport, resultHandler, false);
1304 this.req = req;
1305 }
1306
1307 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1308 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("RenewDelegationToken", org.apache.thrift.protocol.TMessageType.CALL, 0));
1309 RenewDelegationToken_args args = new RenewDelegationToken_args();
1310 args.setReq(req);
1311 args.write(prot);
1312 prot.writeMessageEnd();
1313 }
1314
1315 public TRenewDelegationTokenResp getResult() throws org.apache.thrift.TException {
1316 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1317 throw new IllegalStateException("Method call not finished!");
1318 }
1319 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1320 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1321 return (new Client(prot)).recv_RenewDelegationToken();
1322 }
1323 }
1324
1325 }
1326
1327 public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
1328 private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1329 public Processor(I iface) {
1330 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1331 }
1332
1333 protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
1334 super(iface, getProcessMap(processMap));
1335 }
1336
1337 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) {
1338 processMap.put("OpenSession", new OpenSession());
1339 processMap.put("CloseSession", new CloseSession());
1340 processMap.put("GetInfo", new GetInfo());
1341 processMap.put("ExecuteStatement", new ExecuteStatement());
1342 processMap.put("GetTypeInfo", new GetTypeInfo());
1343 processMap.put("GetCatalogs", new GetCatalogs());
1344 processMap.put("GetSchemas", new GetSchemas());
1345 processMap.put("GetTables", new GetTables());
1346 processMap.put("GetTableTypes", new GetTableTypes());
1347 processMap.put("GetColumns", new GetColumns());
1348 processMap.put("GetFunctions", new GetFunctions());
1349 processMap.put("GetPrimaryKeys", new GetPrimaryKeys());
1350 processMap.put("GetCrossReference", new GetCrossReference());
1351 processMap.put("GetOperationStatus", new GetOperationStatus());
1352 processMap.put("CancelOperation", new CancelOperation());
1353 processMap.put("CloseOperation", new CloseOperation());
1354 processMap.put("GetResultSetMetadata", new GetResultSetMetadata());
1355 processMap.put("FetchResults", new FetchResults());
1356 processMap.put("GetDelegationToken", new GetDelegationToken());
1357 processMap.put("CancelDelegationToken", new CancelDelegationToken());
1358 processMap.put("RenewDelegationToken", new RenewDelegationToken());
1359 return processMap;
1360 }
1361
1362 public static class OpenSession<I extends Iface> extends org.apache.thrift.ProcessFunction<I, OpenSession_args> {
1363 public OpenSession() {
1364 super("OpenSession");
1365 }
1366
1367 public OpenSession_args getEmptyArgsInstance() {
1368 return new OpenSession_args();
1369 }
1370
1371 protected boolean isOneway() {
1372 return false;
1373 }
1374
1375 public OpenSession_result getResult(I iface, OpenSession_args args) throws org.apache.thrift.TException {
1376 OpenSession_result result = new OpenSession_result();
1377 result.success = iface.OpenSession(args.req);
1378 return result;
1379 }
1380 }
1381
1382 public static class CloseSession<I extends Iface> extends org.apache.thrift.ProcessFunction<I, CloseSession_args> {
1383 public CloseSession() {
1384 super("CloseSession");
1385 }
1386
1387 public CloseSession_args getEmptyArgsInstance() {
1388 return new CloseSession_args();
1389 }
1390
1391 protected boolean isOneway() {
1392 return false;
1393 }
1394
1395 public CloseSession_result getResult(I iface, CloseSession_args args) throws org.apache.thrift.TException {
1396 CloseSession_result result = new CloseSession_result();
1397 result.success = iface.CloseSession(args.req);
1398 return result;
1399 }
1400 }
1401
1402 public static class GetInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetInfo_args> {
1403 public GetInfo() {
1404 super("GetInfo");
1405 }
1406
1407 public GetInfo_args getEmptyArgsInstance() {
1408 return new GetInfo_args();
1409 }
1410
1411 protected boolean isOneway() {
1412 return false;
1413 }
1414
1415 public GetInfo_result getResult(I iface, GetInfo_args args) throws org.apache.thrift.TException {
1416 GetInfo_result result = new GetInfo_result();
1417 result.success = iface.GetInfo(args.req);
1418 return result;
1419 }
1420 }
1421
1422 public static class ExecuteStatement<I extends Iface> extends org.apache.thrift.ProcessFunction<I, ExecuteStatement_args> {
1423 public ExecuteStatement() {
1424 super("ExecuteStatement");
1425 }
1426
1427 public ExecuteStatement_args getEmptyArgsInstance() {
1428 return new ExecuteStatement_args();
1429 }
1430
1431 protected boolean isOneway() {
1432 return false;
1433 }
1434
1435 public ExecuteStatement_result getResult(I iface, ExecuteStatement_args args) throws org.apache.thrift.TException {
1436 ExecuteStatement_result result = new ExecuteStatement_result();
1437 result.success = iface.ExecuteStatement(args.req);
1438 return result;
1439 }
1440 }
1441
1442 public static class GetTypeInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetTypeInfo_args> {
1443 public GetTypeInfo() {
1444 super("GetTypeInfo");
1445 }
1446
1447 public GetTypeInfo_args getEmptyArgsInstance() {
1448 return new GetTypeInfo_args();
1449 }
1450
1451 protected boolean isOneway() {
1452 return false;
1453 }
1454
1455 public GetTypeInfo_result getResult(I iface, GetTypeInfo_args args) throws org.apache.thrift.TException {
1456 GetTypeInfo_result result = new GetTypeInfo_result();
1457 result.success = iface.GetTypeInfo(args.req);
1458 return result;
1459 }
1460 }
1461
1462 public static class GetCatalogs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetCatalogs_args> {
1463 public GetCatalogs() {
1464 super("GetCatalogs");
1465 }
1466
1467 public GetCatalogs_args getEmptyArgsInstance() {
1468 return new GetCatalogs_args();
1469 }
1470
1471 protected boolean isOneway() {
1472 return false;
1473 }
1474
1475 public GetCatalogs_result getResult(I iface, GetCatalogs_args args) throws org.apache.thrift.TException {
1476 GetCatalogs_result result = new GetCatalogs_result();
1477 result.success = iface.GetCatalogs(args.req);
1478 return result;
1479 }
1480 }
1481
1482 public static class GetSchemas<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetSchemas_args> {
1483 public GetSchemas() {
1484 super("GetSchemas");
1485 }
1486
1487 public GetSchemas_args getEmptyArgsInstance() {
1488 return new GetSchemas_args();
1489 }
1490
1491 protected boolean isOneway() {
1492 return false;
1493 }
1494
1495 public GetSchemas_result getResult(I iface, GetSchemas_args args) throws org.apache.thrift.TException {
1496 GetSchemas_result result = new GetSchemas_result();
1497 result.success = iface.GetSchemas(args.req);
1498 return result;
1499 }
1500 }
1501
1502 public static class GetTables<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetTables_args> {
1503 public GetTables() {
1504 super("GetTables");
1505 }
1506
1507 public GetTables_args getEmptyArgsInstance() {
1508 return new GetTables_args();
1509 }
1510
1511 protected boolean isOneway() {
1512 return false;
1513 }
1514
1515 public GetTables_result getResult(I iface, GetTables_args args) throws org.apache.thrift.TException {
1516 GetTables_result result = new GetTables_result();
1517 result.success = iface.GetTables(args.req);
1518 return result;
1519 }
1520 }
1521
1522 public static class GetTableTypes<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetTableTypes_args> {
1523 public GetTableTypes() {
1524 super("GetTableTypes");
1525 }
1526
1527 public GetTableTypes_args getEmptyArgsInstance() {
1528 return new GetTableTypes_args();
1529 }
1530
1531 protected boolean isOneway() {
1532 return false;
1533 }
1534
1535 public GetTableTypes_result getResult(I iface, GetTableTypes_args args) throws org.apache.thrift.TException {
1536 GetTableTypes_result result = new GetTableTypes_result();
1537 result.success = iface.GetTableTypes(args.req);
1538 return result;
1539 }
1540 }
1541
1542 public static class GetColumns<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetColumns_args> {
1543 public GetColumns() {
1544 super("GetColumns");
1545 }
1546
1547 public GetColumns_args getEmptyArgsInstance() {
1548 return new GetColumns_args();
1549 }
1550
1551 protected boolean isOneway() {
1552 return false;
1553 }
1554
1555 public GetColumns_result getResult(I iface, GetColumns_args args) throws org.apache.thrift.TException {
1556 GetColumns_result result = new GetColumns_result();
1557 result.success = iface.GetColumns(args.req);
1558 return result;
1559 }
1560 }
1561
1562 public static class GetFunctions<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetFunctions_args> {
1563 public GetFunctions() {
1564 super("GetFunctions");
1565 }
1566
1567 public GetFunctions_args getEmptyArgsInstance() {
1568 return new GetFunctions_args();
1569 }
1570
1571 protected boolean isOneway() {
1572 return false;
1573 }
1574
1575 public GetFunctions_result getResult(I iface, GetFunctions_args args) throws org.apache.thrift.TException {
1576 GetFunctions_result result = new GetFunctions_result();
1577 result.success = iface.GetFunctions(args.req);
1578 return result;
1579 }
1580 }
1581
1582 public static class GetPrimaryKeys<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetPrimaryKeys_args> {
1583 public GetPrimaryKeys() {
1584 super("GetPrimaryKeys");
1585 }
1586
1587 public GetPrimaryKeys_args getEmptyArgsInstance() {
1588 return new GetPrimaryKeys_args();
1589 }
1590
1591 protected boolean isOneway() {
1592 return false;
1593 }
1594
1595 public GetPrimaryKeys_result getResult(I iface, GetPrimaryKeys_args args) throws org.apache.thrift.TException {
1596 GetPrimaryKeys_result result = new GetPrimaryKeys_result();
1597 result.success = iface.GetPrimaryKeys(args.req);
1598 return result;
1599 }
1600 }
1601
1602 public static class GetCrossReference<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetCrossReference_args> {
1603 public GetCrossReference() {
1604 super("GetCrossReference");
1605 }
1606
1607 public GetCrossReference_args getEmptyArgsInstance() {
1608 return new GetCrossReference_args();
1609 }
1610
1611 protected boolean isOneway() {
1612 return false;
1613 }
1614
1615 public GetCrossReference_result getResult(I iface, GetCrossReference_args args) throws org.apache.thrift.TException {
1616 GetCrossReference_result result = new GetCrossReference_result();
1617 result.success = iface.GetCrossReference(args.req);
1618 return result;
1619 }
1620 }
1621
1622 public static class GetOperationStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetOperationStatus_args> {
1623 public GetOperationStatus() {
1624 super("GetOperationStatus");
1625 }
1626
1627 public GetOperationStatus_args getEmptyArgsInstance() {
1628 return new GetOperationStatus_args();
1629 }
1630
1631 protected boolean isOneway() {
1632 return false;
1633 }
1634
1635 public GetOperationStatus_result getResult(I iface, GetOperationStatus_args args) throws org.apache.thrift.TException {
1636 GetOperationStatus_result result = new GetOperationStatus_result();
1637 result.success = iface.GetOperationStatus(args.req);
1638 return result;
1639 }
1640 }
1641
1642 public static class CancelOperation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, CancelOperation_args> {
1643 public CancelOperation() {
1644 super("CancelOperation");
1645 }
1646
1647 public CancelOperation_args getEmptyArgsInstance() {
1648 return new CancelOperation_args();
1649 }
1650
1651 protected boolean isOneway() {
1652 return false;
1653 }
1654
1655 public CancelOperation_result getResult(I iface, CancelOperation_args args) throws org.apache.thrift.TException {
1656 CancelOperation_result result = new CancelOperation_result();
1657 result.success = iface.CancelOperation(args.req);
1658 return result;
1659 }
1660 }
1661
1662 public static class CloseOperation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, CloseOperation_args> {
1663 public CloseOperation() {
1664 super("CloseOperation");
1665 }
1666
1667 public CloseOperation_args getEmptyArgsInstance() {
1668 return new CloseOperation_args();
1669 }
1670
1671 protected boolean isOneway() {
1672 return false;
1673 }
1674
1675 public CloseOperation_result getResult(I iface, CloseOperation_args args) throws org.apache.thrift.TException {
1676 CloseOperation_result result = new CloseOperation_result();
1677 result.success = iface.CloseOperation(args.req);
1678 return result;
1679 }
1680 }
1681
1682 public static class GetResultSetMetadata<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetResultSetMetadata_args> {
1683 public GetResultSetMetadata() {
1684 super("GetResultSetMetadata");
1685 }
1686
1687 public GetResultSetMetadata_args getEmptyArgsInstance() {
1688 return new GetResultSetMetadata_args();
1689 }
1690
1691 protected boolean isOneway() {
1692 return false;
1693 }
1694
1695 public GetResultSetMetadata_result getResult(I iface, GetResultSetMetadata_args args) throws org.apache.thrift.TException {
1696 GetResultSetMetadata_result result = new GetResultSetMetadata_result();
1697 result.success = iface.GetResultSetMetadata(args.req);
1698 return result;
1699 }
1700 }
1701
1702 public static class FetchResults<I extends Iface> extends org.apache.thrift.ProcessFunction<I, FetchResults_args> {
1703 public FetchResults() {
1704 super("FetchResults");
1705 }
1706
1707 public FetchResults_args getEmptyArgsInstance() {
1708 return new FetchResults_args();
1709 }
1710
1711 protected boolean isOneway() {
1712 return false;
1713 }
1714
1715 public FetchResults_result getResult(I iface, FetchResults_args args) throws org.apache.thrift.TException {
1716 FetchResults_result result = new FetchResults_result();
1717 result.success = iface.FetchResults(args.req);
1718 return result;
1719 }
1720 }
1721
1722 public static class GetDelegationToken<I extends Iface> extends org.apache.thrift.ProcessFunction<I, GetDelegationToken_args> {
1723 public GetDelegationToken() {
1724 super("GetDelegationToken");
1725 }
1726
1727 public GetDelegationToken_args getEmptyArgsInstance() {
1728 return new GetDelegationToken_args();
1729 }
1730
1731 protected boolean isOneway() {
1732 return false;
1733 }
1734
1735 public GetDelegationToken_result getResult(I iface, GetDelegationToken_args args) throws org.apache.thrift.TException {
1736 GetDelegationToken_result result = new GetDelegationToken_result();
1737 result.success = iface.GetDelegationToken(args.req);
1738 return result;
1739 }
1740 }
1741
1742 public static class CancelDelegationToken<I extends Iface> extends org.apache.thrift.ProcessFunction<I, CancelDelegationToken_args> {
1743 public CancelDelegationToken() {
1744 super("CancelDelegationToken");
1745 }
1746
1747 public CancelDelegationToken_args getEmptyArgsInstance() {
1748 return new CancelDelegationToken_args();
1749 }
1750
1751 protected boolean isOneway() {
1752 return false;
1753 }
1754
1755 public CancelDelegationToken_result getResult(I iface, CancelDelegationToken_args args) throws org.apache.thrift.TException {
1756 CancelDelegationToken_result result = new CancelDelegationToken_result();
1757 result.success = iface.CancelDelegationToken(args.req);
1758 return result;
1759 }
1760 }
1761
1762 public static class RenewDelegationToken<I extends Iface> extends org.apache.thrift.ProcessFunction<I, RenewDelegationToken_args> {
1763 public RenewDelegationToken() {
1764 super("RenewDelegationToken");
1765 }
1766
1767 public RenewDelegationToken_args getEmptyArgsInstance() {
1768 return new RenewDelegationToken_args();
1769 }
1770
1771 protected boolean isOneway() {
1772 return false;
1773 }
1774
1775 public RenewDelegationToken_result getResult(I iface, RenewDelegationToken_args args) throws org.apache.thrift.TException {
1776 RenewDelegationToken_result result = new RenewDelegationToken_result();
1777 result.success = iface.RenewDelegationToken(args.req);
1778 return result;
1779 }
1780 }
1781
1782 }
1783
1784 public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
1785 private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
1786 public AsyncProcessor(I iface) {
1787 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
1788 }
1789
1790 protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
1791 super(iface, getProcessMap(processMap));
1792 }
1793
1794 private static <I extends AsyncIface> Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase,?>> getProcessMap(Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
1795 processMap.put("OpenSession", new OpenSession());
1796 processMap.put("CloseSession", new CloseSession());
1797 processMap.put("GetInfo", new GetInfo());
1798 processMap.put("ExecuteStatement", new ExecuteStatement());
1799 processMap.put("GetTypeInfo", new GetTypeInfo());
1800 processMap.put("GetCatalogs", new GetCatalogs());
1801 processMap.put("GetSchemas", new GetSchemas());
1802 processMap.put("GetTables", new GetTables());
1803 processMap.put("GetTableTypes", new GetTableTypes());
1804 processMap.put("GetColumns", new GetColumns());
1805 processMap.put("GetFunctions", new GetFunctions());
1806 processMap.put("GetPrimaryKeys", new GetPrimaryKeys());
1807 processMap.put("GetCrossReference", new GetCrossReference());
1808 processMap.put("GetOperationStatus", new GetOperationStatus());
1809 processMap.put("CancelOperation", new CancelOperation());
1810 processMap.put("CloseOperation", new CloseOperation());
1811 processMap.put("GetResultSetMetadata", new GetResultSetMetadata());
1812 processMap.put("FetchResults", new FetchResults());
1813 processMap.put("GetDelegationToken", new GetDelegationToken());
1814 processMap.put("CancelDelegationToken", new CancelDelegationToken());
1815 processMap.put("RenewDelegationToken", new RenewDelegationToken());
1816 return processMap;
1817 }
1818
1819 public static class OpenSession<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, OpenSession_args, TOpenSessionResp> {
1820 public OpenSession() {
1821 super("OpenSession");
1822 }
1823
1824 public OpenSession_args getEmptyArgsInstance() {
1825 return new OpenSession_args();
1826 }
1827
1828 public AsyncMethodCallback<TOpenSessionResp> getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
1829 final org.apache.thrift.AsyncProcessFunction fcall = this;
1830 return new AsyncMethodCallback<TOpenSessionResp>() {
1831 public void onComplete(TOpenSessionResp o) {
1832 OpenSession_result result = new OpenSession_result();
1833 result.success = o;
1834 try {
1835 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1836 return;
1837 } catch (Exception e) {
1838 LOGGER.error("Exception writing to internal frame buffer", e);
1839 }
1840 fb.close();
1841 }
1842 public void onError(Exception e) {
1843 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1844 org.apache.thrift.TBase msg;
1845 OpenSession_result result = new OpenSession_result();
1846 {
1847 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1848 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1849 }
1850 try {
1851 fcall.sendResponse(fb,msg,msgType,seqid);
1852 return;
1853 } catch (Exception ex) {
1854 LOGGER.error("Exception writing to internal frame buffer", ex);
1855 }
1856 fb.close();
1857 }
1858 };
1859 }
1860
1861 protected boolean isOneway() {
1862 return false;
1863 }
1864
1865 public void start(I iface, OpenSession_args args, org.apache.thrift.async.AsyncMethodCallback<TOpenSessionResp> resultHandler) throws TException {
1866 iface.OpenSession(args.req,resultHandler);
1867 }
1868 }
1869
1870 public static class CloseSession<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, CloseSession_args, TCloseSessionResp> {
1871 public CloseSession() {
1872 super("CloseSession");
1873 }
1874
1875 public CloseSession_args getEmptyArgsInstance() {
1876 return new CloseSession_args();
1877 }
1878
1879 public AsyncMethodCallback<TCloseSessionResp> getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
1880 final org.apache.thrift.AsyncProcessFunction fcall = this;
1881 return new AsyncMethodCallback<TCloseSessionResp>() {
1882 public void onComplete(TCloseSessionResp o) {
1883 CloseSession_result result = new CloseSession_result();
1884 result.success = o;
1885 try {
1886 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1887 return;
1888 } catch (Exception e) {
1889 LOGGER.error("Exception writing to internal frame buffer", e);
1890 }
1891 fb.close();
1892 }
1893 public void onError(Exception e) {
1894 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1895 org.apache.thrift.TBase msg;
1896 CloseSession_result result = new CloseSession_result();
1897 {
1898 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1899 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1900 }
1901 try {
1902 fcall.sendResponse(fb,msg,msgType,seqid);
1903 return;
1904 } catch (Exception ex) {
1905 LOGGER.error("Exception writing to internal frame buffer", ex);
1906 }
1907 fb.close();
1908 }
1909 };
1910 }
1911
1912 protected boolean isOneway() {
1913 return false;
1914 }
1915
1916 public void start(I iface, CloseSession_args args, org.apache.thrift.async.AsyncMethodCallback<TCloseSessionResp> resultHandler) throws TException {
1917 iface.CloseSession(args.req,resultHandler);
1918 }
1919 }
1920
1921 public static class GetInfo<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetInfo_args, TGetInfoResp> {
1922 public GetInfo() {
1923 super("GetInfo");
1924 }
1925
1926 public GetInfo_args getEmptyArgsInstance() {
1927 return new GetInfo_args();
1928 }
1929
1930 public AsyncMethodCallback<TGetInfoResp> getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
1931 final org.apache.thrift.AsyncProcessFunction fcall = this;
1932 return new AsyncMethodCallback<TGetInfoResp>() {
1933 public void onComplete(TGetInfoResp o) {
1934 GetInfo_result result = new GetInfo_result();
1935 result.success = o;
1936 try {
1937 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1938 return;
1939 } catch (Exception e) {
1940 LOGGER.error("Exception writing to internal frame buffer", e);
1941 }
1942 fb.close();
1943 }
1944 public void onError(Exception e) {
1945 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1946 org.apache.thrift.TBase msg;
1947 GetInfo_result result = new GetInfo_result();
1948 {
1949 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1950 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1951 }
1952 try {
1953 fcall.sendResponse(fb,msg,msgType,seqid);
1954 return;
1955 } catch (Exception ex) {
1956 LOGGER.error("Exception writing to internal frame buffer", ex);
1957 }
1958 fb.close();
1959 }
1960 };
1961 }
1962
1963 protected boolean isOneway() {
1964 return false;
1965 }
1966
1967 public void start(I iface, GetInfo_args args, org.apache.thrift.async.AsyncMethodCallback<TGetInfoResp> resultHandler) throws TException {
1968 iface.GetInfo(args.req,resultHandler);
1969 }
1970 }
1971
1972 public static class ExecuteStatement<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, ExecuteStatement_args, TExecuteStatementResp> {
1973 public ExecuteStatement() {
1974 super("ExecuteStatement");
1975 }
1976
1977 public ExecuteStatement_args getEmptyArgsInstance() {
1978 return new ExecuteStatement_args();
1979 }
1980
1981 public AsyncMethodCallback<TExecuteStatementResp> getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
1982 final org.apache.thrift.AsyncProcessFunction fcall = this;
1983 return new AsyncMethodCallback<TExecuteStatementResp>() {
1984 public void onComplete(TExecuteStatementResp o) {
1985 ExecuteStatement_result result = new ExecuteStatement_result();
1986 result.success = o;
1987 try {
1988 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1989 return;
1990 } catch (Exception e) {
1991 LOGGER.error("Exception writing to internal frame buffer", e);
1992 }
1993 fb.close();
1994 }
1995 public void onError(Exception e) {
1996 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1997 org.apache.thrift.TBase msg;
1998 ExecuteStatement_result result = new ExecuteStatement_result();
1999 {
2000 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2001 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2002 }
2003 try {
2004 fcall.sendResponse(fb,msg,msgType,seqid);
2005 return;
2006 } catch (Exception ex) {
2007 LOGGER.error("Exception writing to internal frame buffer", ex);
2008 }
2009 fb.close();
2010 }
2011 };
2012 }
2013
2014 protected boolean isOneway() {
2015 return false;
2016 }
2017
2018 public void start(I iface, ExecuteStatement_args args, org.apache.thrift.async.AsyncMethodCallback<TExecuteStatementResp> resultHandler) throws TException {
2019 iface.ExecuteStatement(args.req,resultHandler);
2020 }
2021 }
2022
2023 public static class GetTypeInfo<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetTypeInfo_args, TGetTypeInfoResp> {
2024 public GetTypeInfo() {
2025 super("GetTypeInfo");
2026 }
2027
2028 public GetTypeInfo_args getEmptyArgsInstance() {
2029 return new GetTypeInfo_args();
2030 }
2031
2032 public AsyncMethodCallback<TGetTypeInfoResp> getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
2033 final org.apache.thrift.AsyncProcessFunction fcall = this;
2034 return new AsyncMethodCallback<TGetTypeInfoResp>() {
2035 public void onComplete(TGetTypeInfoResp o) {
2036 GetTypeInfo_result result = new GetTypeInfo_result();
2037 result.success = o;
2038 try {
2039 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2040 return;
2041 } catch (Exception e) {
2042 LOGGER.error("Exception writing to internal frame buffer", e);
2043 }
2044 fb.close();
2045 }
2046 public void onError(Exception e) {
2047 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2048 org.apache.thrift.TBase msg;
2049 GetTypeInfo_result result = new GetTypeInfo_result();
2050 {
2051 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2052 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2053 }
2054 try {
2055 fcall.sendResponse(fb,msg,msgType,seqid);
2056 return;
2057 } catch (Exception ex) {
2058 LOGGER.error("Exception writing to internal frame buffer", ex);
2059 }
2060 fb.close();
2061 }
2062 };
2063 }
2064
2065 protected boolean isOneway() {
2066 return false;
2067 }
2068
2069 public void start(I iface, GetTypeInfo_args args, org.apache.thrift.async.AsyncMethodCallback<TGetTypeInfoResp> resultHandler) throws TException {
2070 iface.GetTypeInfo(args.req,resultHandler);
2071 }
2072 }
2073
2074 public static class GetCatalogs<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetCatalogs_args, TGetCatalogsResp> {
2075 public GetCatalogs() {
2076 super("GetCatalogs");
2077 }
2078
2079 public GetCatalogs_args getEmptyArgsInstance() {
2080 return new GetCatalogs_args();
2081 }
2082
2083 public AsyncMethodCallback<TGetCatalogsResp> getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
2084 final org.apache.thrift.AsyncProcessFunction fcall = this;
2085 return new AsyncMethodCallback<TGetCatalogsResp>() {
2086 public void onComplete(TGetCatalogsResp o) {
2087 GetCatalogs_result result = new GetCatalogs_result();
2088 result.success = o;
2089 try {
2090 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2091 return;
2092 } catch (Exception e) {
2093 LOGGER.error("Exception writing to internal frame buffer", e);
2094 }
2095 fb.close();
2096 }
2097 public void onError(Exception e) {
2098 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2099 org.apache.thrift.TBase msg;
2100 GetCatalogs_result result = new GetCatalogs_result();
2101 {
2102 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2103 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2104 }
2105 try {
2106 fcall.sendResponse(fb,msg,msgType,seqid);
2107 return;
2108 } catch (Exception ex) {
2109 LOGGER.error("Exception writing to internal frame buffer", ex);
2110 }
2111 fb.close();
2112 }
2113 };
2114 }
2115
2116 protected boolean isOneway() {
2117 return false;
2118 }
2119
2120 public void start(I iface, GetCatalogs_args args, org.apache.thrift.async.AsyncMethodCallback<TGetCatalogsResp> resultHandler) throws TException {
2121 iface.GetCatalogs(args.req,resultHandler);
2122 }
2123 }
2124
2125 public static class GetSchemas<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetSchemas_args, TGetSchemasResp> {
2126 public GetSchemas() {
2127 super("GetSchemas");
2128 }
2129
2130 public GetSchemas_args getEmptyArgsInstance() {
2131 return new GetSchemas_args();
2132 }
2133
2134 public AsyncMethodCallback<TGetSchemasResp> getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
2135 final org.apache.thrift.AsyncProcessFunction fcall = this;
2136 return new AsyncMethodCallback<TGetSchemasResp>() {
2137 public void onComplete(TGetSchemasResp o) {
2138 GetSchemas_result result = new GetSchemas_result();
2139 result.success = o;
2140 try {
2141 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2142 return;
2143 } catch (Exception e) {
2144 LOGGER.error("Exception writing to internal frame buffer", e);
2145 }
2146 fb.close();
2147 }
2148 public void onError(Exception e) {
2149 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2150 org.apache.thrift.TBase msg;
2151 GetSchemas_result result = new GetSchemas_result();
2152 {
2153 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2154 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2155 }
2156 try {
2157 fcall.sendResponse(fb,msg,msgType,seqid);
2158 return;
2159 } catch (Exception ex) {
2160 LOGGER.error("Exception writing to internal frame buffer", ex);
2161 }
2162 fb.close();
2163 }
2164 };
2165 }
2166
2167 protected boolean isOneway() {
2168 return false;
2169 }
2170
2171 public void start(I iface, GetSchemas_args args, org.apache.thrift.async.AsyncMethodCallback<TGetSchemasResp> resultHandler) throws TException {
2172 iface.GetSchemas(args.req,resultHandler);
2173 }
2174 }
2175
2176 public static class GetTables<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetTables_args, TGetTablesResp> {
2177 public GetTables() {
2178 super("GetTables");
2179 }
2180
2181 public GetTables_args getEmptyArgsInstance() {
2182 return new GetTables_args();
2183 }
2184
2185 public AsyncMethodCallback<TGetTablesResp> getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
2186 final org.apache.thrift.AsyncProcessFunction fcall = this;
2187 return new AsyncMethodCallback<TGetTablesResp>() {
2188 public void onComplete(TGetTablesResp o) {
2189 GetTables_result result = new GetTables_result();
2190 result.success = o;
2191 try {
2192 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2193 return;
2194 } catch (Exception e) {
2195 LOGGER.error("Exception writing to internal frame buffer", e);
2196 }
2197 fb.close();
2198 }
2199 public void onError(Exception e) {
2200 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2201 org.apache.thrift.TBase msg;
2202 GetTables_result result = new GetTables_result();
2203 {
2204 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2205 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2206 }
2207 try {
2208 fcall.sendResponse(fb,msg,msgType,seqid);
2209 return;
2210 } catch (Exception ex) {
2211 LOGGER.error("Exception writing to internal frame buffer", ex);
2212 }
2213 fb.close();
2214 }
2215 };
2216 }
2217
2218 protected boolean isOneway() {
2219 return false;
2220 }
2221
2222 public void start(I iface, GetTables_args args, org.apache.thrift.async.AsyncMethodCallback<TGetTablesResp> resultHandler) throws TException {
2223 iface.GetTables(args.req,resultHandler);
2224 }
2225 }
2226
2227 public static class GetTableTypes<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetTableTypes_args, TGetTableTypesResp> {
2228 public GetTableTypes() {
2229 super("GetTableTypes");
2230 }
2231
2232 public GetTableTypes_args getEmptyArgsInstance() {
2233 return new GetTableTypes_args();
2234 }
2235
2236 public AsyncMethodCallback<TGetTableTypesResp> getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
2237 final org.apache.thrift.AsyncProcessFunction fcall = this;
2238 return new AsyncMethodCallback<TGetTableTypesResp>() {
2239 public void onComplete(TGetTableTypesResp o) {
2240 GetTableTypes_result result = new GetTableTypes_result();
2241 result.success = o;
2242 try {
2243 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2244 return;
2245 } catch (Exception e) {
2246 LOGGER.error("Exception writing to internal frame buffer", e);
2247 }
2248 fb.close();
2249 }
2250 public void onError(Exception e) {
2251 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2252 org.apache.thrift.TBase msg;
2253 GetTableTypes_result result = new GetTableTypes_result();
2254 {
2255 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2256 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2257 }
2258 try {
2259 fcall.sendResponse(fb,msg,msgType,seqid);
2260 return;
2261 } catch (Exception ex) {
2262 LOGGER.error("Exception writing to internal frame buffer", ex);
2263 }
2264 fb.close();
2265 }
2266 };
2267 }
2268
2269 protected boolean isOneway() {
2270 return false;
2271 }
2272
2273 public void start(I iface, GetTableTypes_args args, org.apache.thrift.async.AsyncMethodCallback<TGetTableTypesResp> resultHandler) throws TException {
2274 iface.GetTableTypes(args.req,resultHandler);
2275 }
2276 }
2277
2278 public static class GetColumns<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetColumns_args, TGetColumnsResp> {
2279 public GetColumns() {
2280 super("GetColumns");
2281 }
2282
2283 public GetColumns_args getEmptyArgsInstance() {
2284 return new GetColumns_args();
2285 }
2286
2287 public AsyncMethodCallback<TGetColumnsResp> getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
2288 final org.apache.thrift.AsyncProcessFunction fcall = this;
2289 return new AsyncMethodCallback<TGetColumnsResp>() {
2290 public void onComplete(TGetColumnsResp o) {
2291 GetColumns_result result = new GetColumns_result();
2292 result.success = o;
2293 try {
2294 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2295 return;
2296 } catch (Exception e) {
2297 LOGGER.error("Exception writing to internal frame buffer", e);
2298 }
2299 fb.close();
2300 }
2301 public void onError(Exception e) {
2302 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2303 org.apache.thrift.TBase msg;
2304 GetColumns_result result = new GetColumns_result();
2305 {
2306 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2307 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2308 }
2309 try {
2310 fcall.sendResponse(fb,msg,msgType,seqid);
2311 return;
2312 } catch (Exception ex) {
2313 LOGGER.error("Exception writing to internal frame buffer", ex);
2314 }
2315 fb.close();
2316 }
2317 };
2318 }
2319
2320 protected boolean isOneway() {
2321 return false;
2322 }
2323
2324 public void start(I iface, GetColumns_args args, org.apache.thrift.async.AsyncMethodCallback<TGetColumnsResp> resultHandler) throws TException {
2325 iface.GetColumns(args.req,resultHandler);
2326 }
2327 }
2328
2329 public static class GetFunctions<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetFunctions_args, TGetFunctionsResp> {
2330 public GetFunctions() {
2331 super("GetFunctions");
2332 }
2333
2334 public GetFunctions_args getEmptyArgsInstance() {
2335 return new GetFunctions_args();
2336 }
2337
2338 public AsyncMethodCallback<TGetFunctionsResp> getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
2339 final org.apache.thrift.AsyncProcessFunction fcall = this;
2340 return new AsyncMethodCallback<TGetFunctionsResp>() {
2341 public void onComplete(TGetFunctionsResp o) {
2342 GetFunctions_result result = new GetFunctions_result();
2343 result.success = o;
2344 try {
2345 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2346 return;
2347 } catch (Exception e) {
2348 LOGGER.error("Exception writing to internal frame buffer", e);
2349 }
2350 fb.close();
2351 }
2352 public void onError(Exception e) {
2353 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2354 org.apache.thrift.TBase msg;
2355 GetFunctions_result result = new GetFunctions_result();
2356 {
2357 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2358 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2359 }
2360 try {
2361 fcall.sendResponse(fb,msg,msgType,seqid);
2362 return;
2363 } catch (Exception ex) {
2364 LOGGER.error("Exception writing to internal frame buffer", ex);
2365 }
2366 fb.close();
2367 }
2368 };
2369 }
2370
2371 protected boolean isOneway() {
2372 return false;
2373 }
2374
2375 public void start(I iface, GetFunctions_args args, org.apache.thrift.async.AsyncMethodCallback<TGetFunctionsResp> resultHandler) throws TException {
2376 iface.GetFunctions(args.req,resultHandler);
2377 }
2378 }
2379
2380 public static class GetPrimaryKeys<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetPrimaryKeys_args, TGetPrimaryKeysResp> {
2381 public GetPrimaryKeys() {
2382 super("GetPrimaryKeys");
2383 }
2384
2385 public GetPrimaryKeys_args getEmptyArgsInstance() {
2386 return new GetPrimaryKeys_args();
2387 }
2388
2389 public AsyncMethodCallback<TGetPrimaryKeysResp> getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
2390 final org.apache.thrift.AsyncProcessFunction fcall = this;
2391 return new AsyncMethodCallback<TGetPrimaryKeysResp>() {
2392 public void onComplete(TGetPrimaryKeysResp o) {
2393 GetPrimaryKeys_result result = new GetPrimaryKeys_result();
2394 result.success = o;
2395 try {
2396 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2397 return;
2398 } catch (Exception e) {
2399 LOGGER.error("Exception writing to internal frame buffer", e);
2400 }
2401 fb.close();
2402 }
2403 public void onError(Exception e) {
2404 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2405 org.apache.thrift.TBase msg;
2406 GetPrimaryKeys_result result = new GetPrimaryKeys_result();
2407 {
2408 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2409 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2410 }
2411 try {
2412 fcall.sendResponse(fb,msg,msgType,seqid);
2413 return;
2414 } catch (Exception ex) {
2415 LOGGER.error("Exception writing to internal frame buffer", ex);
2416 }
2417 fb.close();
2418 }
2419 };
2420 }
2421
2422 protected boolean isOneway() {
2423 return false;
2424 }
2425
2426 public void start(I iface, GetPrimaryKeys_args args, org.apache.thrift.async.AsyncMethodCallback<TGetPrimaryKeysResp> resultHandler) throws TException {
2427 iface.GetPrimaryKeys(args.req,resultHandler);
2428 }
2429 }
2430
2431 public static class GetCrossReference<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetCrossReference_args, TGetCrossReferenceResp> {
2432 public GetCrossReference() {
2433 super("GetCrossReference");
2434 }
2435
2436 public GetCrossReference_args getEmptyArgsInstance() {
2437 return new GetCrossReference_args();
2438 }
2439
2440 public AsyncMethodCallback<TGetCrossReferenceResp> getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
2441 final org.apache.thrift.AsyncProcessFunction fcall = this;
2442 return new AsyncMethodCallback<TGetCrossReferenceResp>() {
2443 public void onComplete(TGetCrossReferenceResp o) {
2444 GetCrossReference_result result = new GetCrossReference_result();
2445 result.success = o;
2446 try {
2447 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2448 return;
2449 } catch (Exception e) {
2450 LOGGER.error("Exception writing to internal frame buffer", e);
2451 }
2452 fb.close();
2453 }
2454 public void onError(Exception e) {
2455 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2456 org.apache.thrift.TBase msg;
2457 GetCrossReference_result result = new GetCrossReference_result();
2458 {
2459 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2460 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2461 }
2462 try {
2463 fcall.sendResponse(fb,msg,msgType,seqid);
2464 return;
2465 } catch (Exception ex) {
2466 LOGGER.error("Exception writing to internal frame buffer", ex);
2467 }
2468 fb.close();
2469 }
2470 };
2471 }
2472
2473 protected boolean isOneway() {
2474 return false;
2475 }
2476
2477 public void start(I iface, GetCrossReference_args args, org.apache.thrift.async.AsyncMethodCallback<TGetCrossReferenceResp> resultHandler) throws TException {
2478 iface.GetCrossReference(args.req,resultHandler);
2479 }
2480 }
2481
2482 public static class GetOperationStatus<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetOperationStatus_args, TGetOperationStatusResp> {
2483 public GetOperationStatus() {
2484 super("GetOperationStatus");
2485 }
2486
2487 public GetOperationStatus_args getEmptyArgsInstance() {
2488 return new GetOperationStatus_args();
2489 }
2490
2491 public AsyncMethodCallback<TGetOperationStatusResp> getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
2492 final org.apache.thrift.AsyncProcessFunction fcall = this;
2493 return new AsyncMethodCallback<TGetOperationStatusResp>() {
2494 public void onComplete(TGetOperationStatusResp o) {
2495 GetOperationStatus_result result = new GetOperationStatus_result();
2496 result.success = o;
2497 try {
2498 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2499 return;
2500 } catch (Exception e) {
2501 LOGGER.error("Exception writing to internal frame buffer", e);
2502 }
2503 fb.close();
2504 }
2505 public void onError(Exception e) {
2506 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2507 org.apache.thrift.TBase msg;
2508 GetOperationStatus_result result = new GetOperationStatus_result();
2509 {
2510 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2511 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2512 }
2513 try {
2514 fcall.sendResponse(fb,msg,msgType,seqid);
2515 return;
2516 } catch (Exception ex) {
2517 LOGGER.error("Exception writing to internal frame buffer", ex);
2518 }
2519 fb.close();
2520 }
2521 };
2522 }
2523
2524 protected boolean isOneway() {
2525 return false;
2526 }
2527
2528 public void start(I iface, GetOperationStatus_args args, org.apache.thrift.async.AsyncMethodCallback<TGetOperationStatusResp> resultHandler) throws TException {
2529 iface.GetOperationStatus(args.req,resultHandler);
2530 }
2531 }
2532
2533 public static class CancelOperation<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, CancelOperation_args, TCancelOperationResp> {
2534 public CancelOperation() {
2535 super("CancelOperation");
2536 }
2537
2538 public CancelOperation_args getEmptyArgsInstance() {
2539 return new CancelOperation_args();
2540 }
2541
2542 public AsyncMethodCallback<TCancelOperationResp> getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
2543 final org.apache.thrift.AsyncProcessFunction fcall = this;
2544 return new AsyncMethodCallback<TCancelOperationResp>() {
2545 public void onComplete(TCancelOperationResp o) {
2546 CancelOperation_result result = new CancelOperation_result();
2547 result.success = o;
2548 try {
2549 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2550 return;
2551 } catch (Exception e) {
2552 LOGGER.error("Exception writing to internal frame buffer", e);
2553 }
2554 fb.close();
2555 }
2556 public void onError(Exception e) {
2557 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2558 org.apache.thrift.TBase msg;
2559 CancelOperation_result result = new CancelOperation_result();
2560 {
2561 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2562 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2563 }
2564 try {
2565 fcall.sendResponse(fb,msg,msgType,seqid);
2566 return;
2567 } catch (Exception ex) {
2568 LOGGER.error("Exception writing to internal frame buffer", ex);
2569 }
2570 fb.close();
2571 }
2572 };
2573 }
2574
2575 protected boolean isOneway() {
2576 return false;
2577 }
2578
2579 public void start(I iface, CancelOperation_args args, org.apache.thrift.async.AsyncMethodCallback<TCancelOperationResp> resultHandler) throws TException {
2580 iface.CancelOperation(args.req,resultHandler);
2581 }
2582 }
2583
2584 public static class CloseOperation<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, CloseOperation_args, TCloseOperationResp> {
2585 public CloseOperation() {
2586 super("CloseOperation");
2587 }
2588
2589 public CloseOperation_args getEmptyArgsInstance() {
2590 return new CloseOperation_args();
2591 }
2592
2593 public AsyncMethodCallback<TCloseOperationResp> getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
2594 final org.apache.thrift.AsyncProcessFunction fcall = this;
2595 return new AsyncMethodCallback<TCloseOperationResp>() {
2596 public void onComplete(TCloseOperationResp o) {
2597 CloseOperation_result result = new CloseOperation_result();
2598 result.success = o;
2599 try {
2600 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2601 return;
2602 } catch (Exception e) {
2603 LOGGER.error("Exception writing to internal frame buffer", e);
2604 }
2605 fb.close();
2606 }
2607 public void onError(Exception e) {
2608 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2609 org.apache.thrift.TBase msg;
2610 CloseOperation_result result = new CloseOperation_result();
2611 {
2612 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2613 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2614 }
2615 try {
2616 fcall.sendResponse(fb,msg,msgType,seqid);
2617 return;
2618 } catch (Exception ex) {
2619 LOGGER.error("Exception writing to internal frame buffer", ex);
2620 }
2621 fb.close();
2622 }
2623 };
2624 }
2625
2626 protected boolean isOneway() {
2627 return false;
2628 }
2629
2630 public void start(I iface, CloseOperation_args args, org.apache.thrift.async.AsyncMethodCallback<TCloseOperationResp> resultHandler) throws TException {
2631 iface.CloseOperation(args.req,resultHandler);
2632 }
2633 }
2634
2635 public static class GetResultSetMetadata<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetResultSetMetadata_args, TGetResultSetMetadataResp> {
2636 public GetResultSetMetadata() {
2637 super("GetResultSetMetadata");
2638 }
2639
2640 public GetResultSetMetadata_args getEmptyArgsInstance() {
2641 return new GetResultSetMetadata_args();
2642 }
2643
2644 public AsyncMethodCallback<TGetResultSetMetadataResp> getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
2645 final org.apache.thrift.AsyncProcessFunction fcall = this;
2646 return new AsyncMethodCallback<TGetResultSetMetadataResp>() {
2647 public void onComplete(TGetResultSetMetadataResp o) {
2648 GetResultSetMetadata_result result = new GetResultSetMetadata_result();
2649 result.success = o;
2650 try {
2651 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2652 return;
2653 } catch (Exception e) {
2654 LOGGER.error("Exception writing to internal frame buffer", e);
2655 }
2656 fb.close();
2657 }
2658 public void onError(Exception e) {
2659 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2660 org.apache.thrift.TBase msg;
2661 GetResultSetMetadata_result result = new GetResultSetMetadata_result();
2662 {
2663 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2664 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2665 }
2666 try {
2667 fcall.sendResponse(fb,msg,msgType,seqid);
2668 return;
2669 } catch (Exception ex) {
2670 LOGGER.error("Exception writing to internal frame buffer", ex);
2671 }
2672 fb.close();
2673 }
2674 };
2675 }
2676
2677 protected boolean isOneway() {
2678 return false;
2679 }
2680
2681 public void start(I iface, GetResultSetMetadata_args args, org.apache.thrift.async.AsyncMethodCallback<TGetResultSetMetadataResp> resultHandler) throws TException {
2682 iface.GetResultSetMetadata(args.req,resultHandler);
2683 }
2684 }
2685
2686 public static class FetchResults<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, FetchResults_args, TFetchResultsResp> {
2687 public FetchResults() {
2688 super("FetchResults");
2689 }
2690
2691 public FetchResults_args getEmptyArgsInstance() {
2692 return new FetchResults_args();
2693 }
2694
2695 public AsyncMethodCallback<TFetchResultsResp> getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
2696 final org.apache.thrift.AsyncProcessFunction fcall = this;
2697 return new AsyncMethodCallback<TFetchResultsResp>() {
2698 public void onComplete(TFetchResultsResp o) {
2699 FetchResults_result result = new FetchResults_result();
2700 result.success = o;
2701 try {
2702 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2703 return;
2704 } catch (Exception e) {
2705 LOGGER.error("Exception writing to internal frame buffer", e);
2706 }
2707 fb.close();
2708 }
2709 public void onError(Exception e) {
2710 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2711 org.apache.thrift.TBase msg;
2712 FetchResults_result result = new FetchResults_result();
2713 {
2714 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2715 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2716 }
2717 try {
2718 fcall.sendResponse(fb,msg,msgType,seqid);
2719 return;
2720 } catch (Exception ex) {
2721 LOGGER.error("Exception writing to internal frame buffer", ex);
2722 }
2723 fb.close();
2724 }
2725 };
2726 }
2727
2728 protected boolean isOneway() {
2729 return false;
2730 }
2731
2732 public void start(I iface, FetchResults_args args, org.apache.thrift.async.AsyncMethodCallback<TFetchResultsResp> resultHandler) throws TException {
2733 iface.FetchResults(args.req,resultHandler);
2734 }
2735 }
2736
2737 public static class GetDelegationToken<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, GetDelegationToken_args, TGetDelegationTokenResp> {
2738 public GetDelegationToken() {
2739 super("GetDelegationToken");
2740 }
2741
2742 public GetDelegationToken_args getEmptyArgsInstance() {
2743 return new GetDelegationToken_args();
2744 }
2745
2746 public AsyncMethodCallback<TGetDelegationTokenResp> getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
2747 final org.apache.thrift.AsyncProcessFunction fcall = this;
2748 return new AsyncMethodCallback<TGetDelegationTokenResp>() {
2749 public void onComplete(TGetDelegationTokenResp o) {
2750 GetDelegationToken_result result = new GetDelegationToken_result();
2751 result.success = o;
2752 try {
2753 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2754 return;
2755 } catch (Exception e) {
2756 LOGGER.error("Exception writing to internal frame buffer", e);
2757 }
2758 fb.close();
2759 }
2760 public void onError(Exception e) {
2761 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2762 org.apache.thrift.TBase msg;
2763 GetDelegationToken_result result = new GetDelegationToken_result();
2764 {
2765 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2766 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2767 }
2768 try {
2769 fcall.sendResponse(fb,msg,msgType,seqid);
2770 return;
2771 } catch (Exception ex) {
2772 LOGGER.error("Exception writing to internal frame buffer", ex);
2773 }
2774 fb.close();
2775 }
2776 };
2777 }
2778
2779 protected boolean isOneway() {
2780 return false;
2781 }
2782
2783 public void start(I iface, GetDelegationToken_args args, org.apache.thrift.async.AsyncMethodCallback<TGetDelegationTokenResp> resultHandler) throws TException {
2784 iface.GetDelegationToken(args.req,resultHandler);
2785 }
2786 }
2787
2788 public static class CancelDelegationToken<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, CancelDelegationToken_args, TCancelDelegationTokenResp> {
2789 public CancelDelegationToken() {
2790 super("CancelDelegationToken");
2791 }
2792
2793 public CancelDelegationToken_args getEmptyArgsInstance() {
2794 return new CancelDelegationToken_args();
2795 }
2796
2797 public AsyncMethodCallback<TCancelDelegationTokenResp> getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
2798 final org.apache.thrift.AsyncProcessFunction fcall = this;
2799 return new AsyncMethodCallback<TCancelDelegationTokenResp>() {
2800 public void onComplete(TCancelDelegationTokenResp o) {
2801 CancelDelegationToken_result result = new CancelDelegationToken_result();
2802 result.success = o;
2803 try {
2804 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2805 return;
2806 } catch (Exception e) {
2807 LOGGER.error("Exception writing to internal frame buffer", e);
2808 }
2809 fb.close();
2810 }
2811 public void onError(Exception e) {
2812 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2813 org.apache.thrift.TBase msg;
2814 CancelDelegationToken_result result = new CancelDelegationToken_result();
2815 {
2816 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2817 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2818 }
2819 try {
2820 fcall.sendResponse(fb,msg,msgType,seqid);
2821 return;
2822 } catch (Exception ex) {
2823 LOGGER.error("Exception writing to internal frame buffer", ex);
2824 }
2825 fb.close();
2826 }
2827 };
2828 }
2829
2830 protected boolean isOneway() {
2831 return false;
2832 }
2833
2834 public void start(I iface, CancelDelegationToken_args args, org.apache.thrift.async.AsyncMethodCallback<TCancelDelegationTokenResp> resultHandler) throws TException {
2835 iface.CancelDelegationToken(args.req,resultHandler);
2836 }
2837 }
2838
2839 public static class RenewDelegationToken<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, RenewDelegationToken_args, TRenewDelegationTokenResp> {
2840 public RenewDelegationToken() {
2841 super("RenewDelegationToken");
2842 }
2843
2844 public RenewDelegationToken_args getEmptyArgsInstance() {
2845 return new RenewDelegationToken_args();
2846 }
2847
2848 public AsyncMethodCallback<TRenewDelegationTokenResp> getResultHandler(final AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
2849 final org.apache.thrift.AsyncProcessFunction fcall = this;
2850 return new AsyncMethodCallback<TRenewDelegationTokenResp>() {
2851 public void onComplete(TRenewDelegationTokenResp o) {
2852 RenewDelegationToken_result result = new RenewDelegationToken_result();
2853 result.success = o;
2854 try {
2855 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2856 return;
2857 } catch (Exception e) {
2858 LOGGER.error("Exception writing to internal frame buffer", e);
2859 }
2860 fb.close();
2861 }
2862 public void onError(Exception e) {
2863 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2864 org.apache.thrift.TBase msg;
2865 RenewDelegationToken_result result = new RenewDelegationToken_result();
2866 {
2867 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2868 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2869 }
2870 try {
2871 fcall.sendResponse(fb,msg,msgType,seqid);
2872 return;
2873 } catch (Exception ex) {
2874 LOGGER.error("Exception writing to internal frame buffer", ex);
2875 }
2876 fb.close();
2877 }
2878 };
2879 }
2880
2881 protected boolean isOneway() {
2882 return false;
2883 }
2884
2885 public void start(I iface, RenewDelegationToken_args args, org.apache.thrift.async.AsyncMethodCallback<TRenewDelegationTokenResp> resultHandler) throws TException {
2886 iface.RenewDelegationToken(args.req,resultHandler);
2887 }
2888 }
2889
2890 }
2891
2892 public static class OpenSession_args implements org.apache.thrift.TBase<OpenSession_args, OpenSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<OpenSession_args> {
2893 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OpenSession_args");
2894
2895 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);
2896
2897 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
2898 static {
2899 schemes.put(StandardScheme.class, new OpenSession_argsStandardSchemeFactory());
2900 schemes.put(TupleScheme.class, new OpenSession_argsTupleSchemeFactory());
2901 }
2902
2903 private TOpenSessionReq req;
2904
2905
2906 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2907 REQ((short)1, "req");
2908
2909 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2910
2911 static {
2912 for (_Fields field : EnumSet.allOf(_Fields.class)) {
2913 byName.put(field.getFieldName(), field);
2914 }
2915 }
2916
2917
2918
2919
2920 public static _Fields findByThriftId(int fieldId) {
2921 switch(fieldId) {
2922 case 1:
2923 return REQ;
2924 default:
2925 return null;
2926 }
2927 }
2928
2929
2930
2931
2932
2933 public static _Fields findByThriftIdOrThrow(int fieldId) {
2934 _Fields fields = findByThriftId(fieldId);
2935 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2936 return fields;
2937 }
2938
2939
2940
2941
2942 public static _Fields findByName(String name) {
2943 return byName.get(name);
2944 }
2945
2946 private final short _thriftId;
2947 private final String _fieldName;
2948
2949 _Fields(short thriftId, String fieldName) {
2950 _thriftId = thriftId;
2951 _fieldName = fieldName;
2952 }
2953
2954 public short getThriftFieldId() {
2955 return _thriftId;
2956 }
2957
2958 public String getFieldName() {
2959 return _fieldName;
2960 }
2961 }
2962
2963
2964 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2965 static {
2966 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2967 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
2968 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TOpenSessionReq.class)));
2969 metaDataMap = Collections.unmodifiableMap(tmpMap);
2970 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(OpenSession_args.class, metaDataMap);
2971 }
2972
2973 public OpenSession_args() {
2974 }
2975
2976 public OpenSession_args(
2977 TOpenSessionReq req)
2978 {
2979 this();
2980 this.req = req;
2981 }
2982
2983
2984
2985
2986 public OpenSession_args(OpenSession_args other) {
2987 if (other.isSetReq()) {
2988 this.req = new TOpenSessionReq(other.req);
2989 }
2990 }
2991
2992 public OpenSession_args deepCopy() {
2993 return new OpenSession_args(this);
2994 }
2995
2996 @Override
2997 public void clear() {
2998 this.req = null;
2999 }
3000
3001 public TOpenSessionReq getReq() {
3002 return this.req;
3003 }
3004
3005 public void setReq(TOpenSessionReq req) {
3006 this.req = req;
3007 }
3008
3009 public void unsetReq() {
3010 this.req = null;
3011 }
3012
3013
3014 public boolean isSetReq() {
3015 return this.req != null;
3016 }
3017
3018 public void setReqIsSet(boolean value) {
3019 if (!value) {
3020 this.req = null;
3021 }
3022 }
3023
3024 public void setFieldValue(_Fields field, Object value) {
3025 switch (field) {
3026 case REQ:
3027 if (value == null) {
3028 unsetReq();
3029 } else {
3030 setReq((TOpenSessionReq)value);
3031 }
3032 break;
3033
3034 }
3035 }
3036
3037 public Object getFieldValue(_Fields field) {
3038 switch (field) {
3039 case REQ:
3040 return getReq();
3041
3042 }
3043 throw new IllegalStateException();
3044 }
3045
3046
3047 public boolean isSet(_Fields field) {
3048 if (field == null) {
3049 throw new IllegalArgumentException();
3050 }
3051
3052 switch (field) {
3053 case REQ:
3054 return isSetReq();
3055 }
3056 throw new IllegalStateException();
3057 }
3058
3059 @Override
3060 public boolean equals(Object that) {
3061 if (that == null)
3062 return false;
3063 if (that instanceof OpenSession_args)
3064 return this.equals((OpenSession_args)that);
3065 return false;
3066 }
3067
3068 public boolean equals(OpenSession_args that) {
3069 if (that == null)
3070 return false;
3071
3072 boolean this_present_req = true && this.isSetReq();
3073 boolean that_present_req = true && that.isSetReq();
3074 if (this_present_req || that_present_req) {
3075 if (!(this_present_req && that_present_req))
3076 return false;
3077 if (!this.req.equals(that.req))
3078 return false;
3079 }
3080
3081 return true;
3082 }
3083
3084 @Override
3085 public int hashCode() {
3086 List<Object> list = new ArrayList<Object>();
3087
3088 boolean present_req = true && (isSetReq());
3089 list.add(present_req);
3090 if (present_req)
3091 list.add(req);
3092
3093 return list.hashCode();
3094 }
3095
3096 @Override
3097 public int compareTo(OpenSession_args other) {
3098 if (!getClass().equals(other.getClass())) {
3099 return getClass().getName().compareTo(other.getClass().getName());
3100 }
3101
3102 int lastComparison = 0;
3103
3104 lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
3105 if (lastComparison != 0) {
3106 return lastComparison;
3107 }
3108 if (isSetReq()) {
3109 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
3110 if (lastComparison != 0) {
3111 return lastComparison;
3112 }
3113 }
3114 return 0;
3115 }
3116
3117 public _Fields fieldForId(int fieldId) {
3118 return _Fields.findByThriftId(fieldId);
3119 }
3120
3121 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3122 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
3123 }
3124
3125 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3126 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
3127 }
3128
3129 @Override
3130 public String toString() {
3131 StringBuilder sb = new StringBuilder("OpenSession_args(");
3132 boolean first = true;
3133
3134 sb.append("req:");
3135 if (this.req == null) {
3136 sb.append("null");
3137 } else {
3138 sb.append(this.req);
3139 }
3140 first = false;
3141 sb.append(")");
3142 return sb.toString();
3143 }
3144
3145 public void validate() throws org.apache.thrift.TException {
3146
3147
3148 if (req != null) {
3149 req.validate();
3150 }
3151 }
3152
3153 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3154 try {
3155 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3156 } catch (org.apache.thrift.TException te) {
3157 throw new java.io.IOException(te);
3158 }
3159 }
3160
3161 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3162 try {
3163 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3164 } catch (org.apache.thrift.TException te) {
3165 throw new java.io.IOException(te);
3166 }
3167 }
3168
3169 private static class OpenSession_argsStandardSchemeFactory implements SchemeFactory {
3170 public OpenSession_argsStandardScheme getScheme() {
3171 return new OpenSession_argsStandardScheme();
3172 }
3173 }
3174
3175 private static class OpenSession_argsStandardScheme extends StandardScheme<OpenSession_args> {
3176
3177 public void read(org.apache.thrift.protocol.TProtocol iprot, OpenSession_args struct) throws org.apache.thrift.TException {
3178 org.apache.thrift.protocol.TField schemeField;
3179 iprot.readStructBegin();
3180 while (true)
3181 {
3182 schemeField = iprot.readFieldBegin();
3183 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
3184 break;
3185 }
3186 switch (schemeField.id) {
3187 case 1:
3188 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
3189 struct.req = new TOpenSessionReq();
3190 struct.req.read(iprot);
3191 struct.setReqIsSet(true);
3192 } else {
3193 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3194 }
3195 break;
3196 default:
3197 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3198 }
3199 iprot.readFieldEnd();
3200 }
3201 iprot.readStructEnd();
3202 struct.validate();
3203 }
3204
3205 public void write(org.apache.thrift.protocol.TProtocol oprot, OpenSession_args struct) throws org.apache.thrift.TException {
3206 struct.validate();
3207
3208 oprot.writeStructBegin(STRUCT_DESC);
3209 if (struct.req != null) {
3210 oprot.writeFieldBegin(REQ_FIELD_DESC);
3211 struct.req.write(oprot);
3212 oprot.writeFieldEnd();
3213 }
3214 oprot.writeFieldStop();
3215 oprot.writeStructEnd();
3216 }
3217
3218 }
3219
3220 private static class OpenSession_argsTupleSchemeFactory implements SchemeFactory {
3221 public OpenSession_argsTupleScheme getScheme() {
3222 return new OpenSession_argsTupleScheme();
3223 }
3224 }
3225
3226 private static class OpenSession_argsTupleScheme extends TupleScheme<OpenSession_args> {
3227
3228 @Override
3229 public void write(org.apache.thrift.protocol.TProtocol prot, OpenSession_args struct) throws org.apache.thrift.TException {
3230 TTupleProtocol oprot = (TTupleProtocol) prot;
3231 BitSet optionals = new BitSet();
3232 if (struct.isSetReq()) {
3233 optionals.set(0);
3234 }
3235 oprot.writeBitSet(optionals, 1);
3236 if (struct.isSetReq()) {
3237 struct.req.write(oprot);
3238 }
3239 }
3240
3241 @Override
3242 public void read(org.apache.thrift.protocol.TProtocol prot, OpenSession_args struct) throws org.apache.thrift.TException {
3243 TTupleProtocol iprot = (TTupleProtocol) prot;
3244 BitSet incoming = iprot.readBitSet(1);
3245 if (incoming.get(0)) {
3246 struct.req = new TOpenSessionReq();
3247 struct.req.read(iprot);
3248 struct.setReqIsSet(true);
3249 }
3250 }
3251 }
3252
3253 }
3254
3255 public static class OpenSession_result implements org.apache.thrift.TBase<OpenSession_result, OpenSession_result._Fields>, java.io.Serializable, Cloneable, Comparable<OpenSession_result> {
3256 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OpenSession_result");
3257
3258 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);
3259
3260 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
3261 static {
3262 schemes.put(StandardScheme.class, new OpenSession_resultStandardSchemeFactory());
3263 schemes.put(TupleScheme.class, new OpenSession_resultTupleSchemeFactory());
3264 }
3265
3266 private TOpenSessionResp success;
3267
3268
3269 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3270 SUCCESS((short)0, "success");
3271
3272 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3273
3274 static {
3275 for (_Fields field : EnumSet.allOf(_Fields.class)) {
3276 byName.put(field.getFieldName(), field);
3277 }
3278 }
3279
3280
3281
3282
3283 public static _Fields findByThriftId(int fieldId) {
3284 switch(fieldId) {
3285 case 0:
3286 return SUCCESS;
3287 default:
3288 return null;
3289 }
3290 }
3291
3292
3293
3294
3295
3296 public static _Fields findByThriftIdOrThrow(int fieldId) {
3297 _Fields fields = findByThriftId(fieldId);
3298 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3299 return fields;
3300 }
3301
3302
3303
3304
3305 public static _Fields findByName(String name) {
3306 return byName.get(name);
3307 }
3308
3309 private final short _thriftId;
3310 private final String _fieldName;
3311
3312 _Fields(short thriftId, String fieldName) {
3313 _thriftId = thriftId;
3314 _fieldName = fieldName;
3315 }
3316
3317 public short getThriftFieldId() {
3318 return _thriftId;
3319 }
3320
3321 public String getFieldName() {
3322 return _fieldName;
3323 }
3324 }
3325
3326
3327 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3328 static {
3329 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3330 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
3331 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TOpenSessionResp.class)));
3332 metaDataMap = Collections.unmodifiableMap(tmpMap);
3333 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(OpenSession_result.class, metaDataMap);
3334 }
3335
3336 public OpenSession_result() {
3337 }
3338
3339 public OpenSession_result(
3340 TOpenSessionResp success)
3341 {
3342 this();
3343 this.success = success;
3344 }
3345
3346
3347
3348
3349 public OpenSession_result(OpenSession_result other) {
3350 if (other.isSetSuccess()) {
3351 this.success = new TOpenSessionResp(other.success);
3352 }
3353 }
3354
3355 public OpenSession_result deepCopy() {
3356 return new OpenSession_result(this);
3357 }
3358
3359 @Override
3360 public void clear() {
3361 this.success = null;
3362 }
3363
3364 public TOpenSessionResp getSuccess() {
3365 return this.success;
3366 }
3367
3368 public void setSuccess(TOpenSessionResp success) {
3369 this.success = success;
3370 }
3371
3372 public void unsetSuccess() {
3373 this.success = null;
3374 }
3375
3376
3377 public boolean isSetSuccess() {
3378 return this.success != null;
3379 }
3380
3381 public void setSuccessIsSet(boolean value) {
3382 if (!value) {
3383 this.success = null;
3384 }
3385 }
3386
3387 public void setFieldValue(_Fields field, Object value) {
3388 switch (field) {
3389 case SUCCESS:
3390 if (value == null) {
3391 unsetSuccess();
3392 } else {
3393 setSuccess((TOpenSessionResp)value);
3394 }
3395 break;
3396
3397 }
3398 }
3399
3400 public Object getFieldValue(_Fields field) {
3401 switch (field) {
3402 case SUCCESS:
3403 return getSuccess();
3404
3405 }
3406 throw new IllegalStateException();
3407 }
3408
3409
3410 public boolean isSet(_Fields field) {
3411 if (field == null) {
3412 throw new IllegalArgumentException();
3413 }
3414
3415 switch (field) {
3416 case SUCCESS:
3417 return isSetSuccess();
3418 }
3419 throw new IllegalStateException();
3420 }
3421
3422 @Override
3423 public boolean equals(Object that) {
3424 if (that == null)
3425 return false;
3426 if (that instanceof OpenSession_result)
3427 return this.equals((OpenSession_result)that);
3428 return false;
3429 }
3430
3431 public boolean equals(OpenSession_result that) {
3432 if (that == null)
3433 return false;
3434
3435 boolean this_present_success = true && this.isSetSuccess();
3436 boolean that_present_success = true && that.isSetSuccess();
3437 if (this_present_success || that_present_success) {
3438 if (!(this_present_success && that_present_success))
3439 return false;
3440 if (!this.success.equals(that.success))
3441 return false;
3442 }
3443
3444 return true;
3445 }
3446
3447 @Override
3448 public int hashCode() {
3449 List<Object> list = new ArrayList<Object>();
3450
3451 boolean present_success = true && (isSetSuccess());
3452 list.add(present_success);
3453 if (present_success)
3454 list.add(success);
3455
3456 return list.hashCode();
3457 }
3458
3459 @Override
3460 public int compareTo(OpenSession_result other) {
3461 if (!getClass().equals(other.getClass())) {
3462 return getClass().getName().compareTo(other.getClass().getName());
3463 }
3464
3465 int lastComparison = 0;
3466
3467 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
3468 if (lastComparison != 0) {
3469 return lastComparison;
3470 }
3471 if (isSetSuccess()) {
3472 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
3473 if (lastComparison != 0) {
3474 return lastComparison;
3475 }
3476 }
3477 return 0;
3478 }
3479
3480 public _Fields fieldForId(int fieldId) {
3481 return _Fields.findByThriftId(fieldId);
3482 }
3483
3484 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3485 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
3486 }
3487
3488 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3489 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
3490 }
3491
3492 @Override
3493 public String toString() {
3494 StringBuilder sb = new StringBuilder("OpenSession_result(");
3495 boolean first = true;
3496
3497 sb.append("success:");
3498 if (this.success == null) {
3499 sb.append("null");
3500 } else {
3501 sb.append(this.success);
3502 }
3503 first = false;
3504 sb.append(")");
3505 return sb.toString();
3506 }
3507
3508 public void validate() throws org.apache.thrift.TException {
3509
3510
3511 if (success != null) {
3512 success.validate();
3513 }
3514 }
3515
3516 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3517 try {
3518 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3519 } catch (org.apache.thrift.TException te) {
3520 throw new java.io.IOException(te);
3521 }
3522 }
3523
3524 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3525 try {
3526 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3527 } catch (org.apache.thrift.TException te) {
3528 throw new java.io.IOException(te);
3529 }
3530 }
3531
3532 private static class OpenSession_resultStandardSchemeFactory implements SchemeFactory {
3533 public OpenSession_resultStandardScheme getScheme() {
3534 return new OpenSession_resultStandardScheme();
3535 }
3536 }
3537
3538 private static class OpenSession_resultStandardScheme extends StandardScheme<OpenSession_result> {
3539
3540 public void read(org.apache.thrift.protocol.TProtocol iprot, OpenSession_result struct) throws org.apache.thrift.TException {
3541 org.apache.thrift.protocol.TField schemeField;
3542 iprot.readStructBegin();
3543 while (true)
3544 {
3545 schemeField = iprot.readFieldBegin();
3546 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
3547 break;
3548 }
3549 switch (schemeField.id) {
3550 case 0:
3551 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
3552 struct.success = new TOpenSessionResp();
3553 struct.success.read(iprot);
3554 struct.setSuccessIsSet(true);
3555 } else {
3556 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3557 }
3558 break;
3559 default:
3560 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3561 }
3562 iprot.readFieldEnd();
3563 }
3564 iprot.readStructEnd();
3565 struct.validate();
3566 }
3567
3568 public void write(org.apache.thrift.protocol.TProtocol oprot, OpenSession_result struct) throws org.apache.thrift.TException {
3569 struct.validate();
3570
3571 oprot.writeStructBegin(STRUCT_DESC);
3572 if (struct.success != null) {
3573 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3574 struct.success.write(oprot);
3575 oprot.writeFieldEnd();
3576 }
3577 oprot.writeFieldStop();
3578 oprot.writeStructEnd();
3579 }
3580
3581 }
3582
3583 private static class OpenSession_resultTupleSchemeFactory implements SchemeFactory {
3584 public OpenSession_resultTupleScheme getScheme() {
3585 return new OpenSession_resultTupleScheme();
3586 }
3587 }
3588
3589 private static class OpenSession_resultTupleScheme extends TupleScheme<OpenSession_result> {
3590
3591 @Override
3592 public void write(org.apache.thrift.protocol.TProtocol prot, OpenSession_result struct) throws org.apache.thrift.TException {
3593 TTupleProtocol oprot = (TTupleProtocol) prot;
3594 BitSet optionals = new BitSet();
3595 if (struct.isSetSuccess()) {
3596 optionals.set(0);
3597 }
3598 oprot.writeBitSet(optionals, 1);
3599 if (struct.isSetSuccess()) {
3600 struct.success.write(oprot);
3601 }
3602 }
3603
3604 @Override
3605 public void read(org.apache.thrift.protocol.TProtocol prot, OpenSession_result struct) throws org.apache.thrift.TException {
3606 TTupleProtocol iprot = (TTupleProtocol) prot;
3607 BitSet incoming = iprot.readBitSet(1);
3608 if (incoming.get(0)) {
3609 struct.success = new TOpenSessionResp();
3610 struct.success.read(iprot);
3611 struct.setSuccessIsSet(true);
3612 }
3613 }
3614 }
3615
3616 }
3617
3618 public static class CloseSession_args implements org.apache.thrift.TBase<CloseSession_args, CloseSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<CloseSession_args> {
3619 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CloseSession_args");
3620
3621 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);
3622
3623 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
3624 static {
3625 schemes.put(StandardScheme.class, new CloseSession_argsStandardSchemeFactory());
3626 schemes.put(TupleScheme.class, new CloseSession_argsTupleSchemeFactory());
3627 }
3628
3629 private TCloseSessionReq req;
3630
3631
3632 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3633 REQ((short)1, "req");
3634
3635 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3636
3637 static {
3638 for (_Fields field : EnumSet.allOf(_Fields.class)) {
3639 byName.put(field.getFieldName(), field);
3640 }
3641 }
3642
3643
3644
3645
3646 public static _Fields findByThriftId(int fieldId) {
3647 switch(fieldId) {
3648 case 1:
3649 return REQ;
3650 default:
3651 return null;
3652 }
3653 }
3654
3655
3656
3657
3658
3659 public static _Fields findByThriftIdOrThrow(int fieldId) {
3660 _Fields fields = findByThriftId(fieldId);
3661 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3662 return fields;
3663 }
3664
3665
3666
3667
3668 public static _Fields findByName(String name) {
3669 return byName.get(name);
3670 }
3671
3672 private final short _thriftId;
3673 private final String _fieldName;
3674
3675 _Fields(short thriftId, String fieldName) {
3676 _thriftId = thriftId;
3677 _fieldName = fieldName;
3678 }
3679
3680 public short getThriftFieldId() {
3681 return _thriftId;
3682 }
3683
3684 public String getFieldName() {
3685 return _fieldName;
3686 }
3687 }
3688
3689
3690 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3691 static {
3692 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3693 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
3694 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCloseSessionReq.class)));
3695 metaDataMap = Collections.unmodifiableMap(tmpMap);
3696 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CloseSession_args.class, metaDataMap);
3697 }
3698
3699 public CloseSession_args() {
3700 }
3701
3702 public CloseSession_args(
3703 TCloseSessionReq req)
3704 {
3705 this();
3706 this.req = req;
3707 }
3708
3709
3710
3711
3712 public CloseSession_args(CloseSession_args other) {
3713 if (other.isSetReq()) {
3714 this.req = new TCloseSessionReq(other.req);
3715 }
3716 }
3717
3718 public CloseSession_args deepCopy() {
3719 return new CloseSession_args(this);
3720 }
3721
3722 @Override
3723 public void clear() {
3724 this.req = null;
3725 }
3726
3727 public TCloseSessionReq getReq() {
3728 return this.req;
3729 }
3730
3731 public void setReq(TCloseSessionReq req) {
3732 this.req = req;
3733 }
3734
3735 public void unsetReq() {
3736 this.req = null;
3737 }
3738
3739
3740 public boolean isSetReq() {
3741 return this.req != null;
3742 }
3743
3744 public void setReqIsSet(boolean value) {
3745 if (!value) {
3746 this.req = null;
3747 }
3748 }
3749
3750 public void setFieldValue(_Fields field, Object value) {
3751 switch (field) {
3752 case REQ:
3753 if (value == null) {
3754 unsetReq();
3755 } else {
3756 setReq((TCloseSessionReq)value);
3757 }
3758 break;
3759
3760 }
3761 }
3762
3763 public Object getFieldValue(_Fields field) {
3764 switch (field) {
3765 case REQ:
3766 return getReq();
3767
3768 }
3769 throw new IllegalStateException();
3770 }
3771
3772
3773 public boolean isSet(_Fields field) {
3774 if (field == null) {
3775 throw new IllegalArgumentException();
3776 }
3777
3778 switch (field) {
3779 case REQ:
3780 return isSetReq();
3781 }
3782 throw new IllegalStateException();
3783 }
3784
3785 @Override
3786 public boolean equals(Object that) {
3787 if (that == null)
3788 return false;
3789 if (that instanceof CloseSession_args)
3790 return this.equals((CloseSession_args)that);
3791 return false;
3792 }
3793
3794 public boolean equals(CloseSession_args that) {
3795 if (that == null)
3796 return false;
3797
3798 boolean this_present_req = true && this.isSetReq();
3799 boolean that_present_req = true && that.isSetReq();
3800 if (this_present_req || that_present_req) {
3801 if (!(this_present_req && that_present_req))
3802 return false;
3803 if (!this.req.equals(that.req))
3804 return false;
3805 }
3806
3807 return true;
3808 }
3809
3810 @Override
3811 public int hashCode() {
3812 List<Object> list = new ArrayList<Object>();
3813
3814 boolean present_req = true && (isSetReq());
3815 list.add(present_req);
3816 if (present_req)
3817 list.add(req);
3818
3819 return list.hashCode();
3820 }
3821
3822 @Override
3823 public int compareTo(CloseSession_args other) {
3824 if (!getClass().equals(other.getClass())) {
3825 return getClass().getName().compareTo(other.getClass().getName());
3826 }
3827
3828 int lastComparison = 0;
3829
3830 lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
3831 if (lastComparison != 0) {
3832 return lastComparison;
3833 }
3834 if (isSetReq()) {
3835 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
3836 if (lastComparison != 0) {
3837 return lastComparison;
3838 }
3839 }
3840 return 0;
3841 }
3842
3843 public _Fields fieldForId(int fieldId) {
3844 return _Fields.findByThriftId(fieldId);
3845 }
3846
3847 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3848 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
3849 }
3850
3851 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3852 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
3853 }
3854
3855 @Override
3856 public String toString() {
3857 StringBuilder sb = new StringBuilder("CloseSession_args(");
3858 boolean first = true;
3859
3860 sb.append("req:");
3861 if (this.req == null) {
3862 sb.append("null");
3863 } else {
3864 sb.append(this.req);
3865 }
3866 first = false;
3867 sb.append(")");
3868 return sb.toString();
3869 }
3870
3871 public void validate() throws org.apache.thrift.TException {
3872
3873
3874 if (req != null) {
3875 req.validate();
3876 }
3877 }
3878
3879 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3880 try {
3881 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3882 } catch (org.apache.thrift.TException te) {
3883 throw new java.io.IOException(te);
3884 }
3885 }
3886
3887 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3888 try {
3889 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3890 } catch (org.apache.thrift.TException te) {
3891 throw new java.io.IOException(te);
3892 }
3893 }
3894
3895 private static class CloseSession_argsStandardSchemeFactory implements SchemeFactory {
3896 public CloseSession_argsStandardScheme getScheme() {
3897 return new CloseSession_argsStandardScheme();
3898 }
3899 }
3900
3901 private static class CloseSession_argsStandardScheme extends StandardScheme<CloseSession_args> {
3902
3903 public void read(org.apache.thrift.protocol.TProtocol iprot, CloseSession_args struct) throws org.apache.thrift.TException {
3904 org.apache.thrift.protocol.TField schemeField;
3905 iprot.readStructBegin();
3906 while (true)
3907 {
3908 schemeField = iprot.readFieldBegin();
3909 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
3910 break;
3911 }
3912 switch (schemeField.id) {
3913 case 1:
3914 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
3915 struct.req = new TCloseSessionReq();
3916 struct.req.read(iprot);
3917 struct.setReqIsSet(true);
3918 } else {
3919 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3920 }
3921 break;
3922 default:
3923 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3924 }
3925 iprot.readFieldEnd();
3926 }
3927 iprot.readStructEnd();
3928 struct.validate();
3929 }
3930
3931 public void write(org.apache.thrift.protocol.TProtocol oprot, CloseSession_args struct) throws org.apache.thrift.TException {
3932 struct.validate();
3933
3934 oprot.writeStructBegin(STRUCT_DESC);
3935 if (struct.req != null) {
3936 oprot.writeFieldBegin(REQ_FIELD_DESC);
3937 struct.req.write(oprot);
3938 oprot.writeFieldEnd();
3939 }
3940 oprot.writeFieldStop();
3941 oprot.writeStructEnd();
3942 }
3943
3944 }
3945
3946 private static class CloseSession_argsTupleSchemeFactory implements SchemeFactory {
3947 public CloseSession_argsTupleScheme getScheme() {
3948 return new CloseSession_argsTupleScheme();
3949 }
3950 }
3951
3952 private static class CloseSession_argsTupleScheme extends TupleScheme<CloseSession_args> {
3953
3954 @Override
3955 public void write(org.apache.thrift.protocol.TProtocol prot, CloseSession_args struct) throws org.apache.thrift.TException {
3956 TTupleProtocol oprot = (TTupleProtocol) prot;
3957 BitSet optionals = new BitSet();
3958 if (struct.isSetReq()) {
3959 optionals.set(0);
3960 }
3961 oprot.writeBitSet(optionals, 1);
3962 if (struct.isSetReq()) {
3963 struct.req.write(oprot);
3964 }
3965 }
3966
3967 @Override
3968 public void read(org.apache.thrift.protocol.TProtocol prot, CloseSession_args struct) throws org.apache.thrift.TException {
3969 TTupleProtocol iprot = (TTupleProtocol) prot;
3970 BitSet incoming = iprot.readBitSet(1);
3971 if (incoming.get(0)) {
3972 struct.req = new TCloseSessionReq();
3973 struct.req.read(iprot);
3974 struct.setReqIsSet(true);
3975 }
3976 }
3977 }
3978
3979 }
3980
3981 public static class CloseSession_result implements org.apache.thrift.TBase<CloseSession_result, CloseSession_result._Fields>, java.io.Serializable, Cloneable, Comparable<CloseSession_result> {
3982 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CloseSession_result");
3983
3984 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);
3985
3986 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
3987 static {
3988 schemes.put(StandardScheme.class, new CloseSession_resultStandardSchemeFactory());
3989 schemes.put(TupleScheme.class, new CloseSession_resultTupleSchemeFactory());
3990 }
3991
3992 private TCloseSessionResp success;
3993
3994
3995 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3996 SUCCESS((short)0, "success");
3997
3998 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3999
4000 static {
4001 for (_Fields field : EnumSet.allOf(_Fields.class)) {
4002 byName.put(field.getFieldName(), field);
4003 }
4004 }
4005
4006
4007
4008
4009 public static _Fields findByThriftId(int fieldId) {
4010 switch(fieldId) {
4011 case 0:
4012 return SUCCESS;
4013 default:
4014 return null;
4015 }
4016 }
4017
4018
4019
4020
4021
4022 public static _Fields findByThriftIdOrThrow(int fieldId) {
4023 _Fields fields = findByThriftId(fieldId);
4024 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4025 return fields;
4026 }
4027
4028
4029
4030
4031 public static _Fields findByName(String name) {
4032 return byName.get(name);
4033 }
4034
4035 private final short _thriftId;
4036 private final String _fieldName;
4037
4038 _Fields(short thriftId, String fieldName) {
4039 _thriftId = thriftId;
4040 _fieldName = fieldName;
4041 }
4042
4043 public short getThriftFieldId() {
4044 return _thriftId;
4045 }
4046
4047 public String getFieldName() {
4048 return _fieldName;
4049 }
4050 }
4051
4052
4053 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4054 static {
4055 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4056 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
4057 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCloseSessionResp.class)));
4058 metaDataMap = Collections.unmodifiableMap(tmpMap);
4059 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CloseSession_result.class, metaDataMap);
4060 }
4061
4062 public CloseSession_result() {
4063 }
4064
4065 public CloseSession_result(
4066 TCloseSessionResp success)
4067 {
4068 this();
4069 this.success = success;
4070 }
4071
4072
4073
4074
4075 public CloseSession_result(CloseSession_result other) {
4076 if (other.isSetSuccess()) {
4077 this.success = new TCloseSessionResp(other.success);
4078 }
4079 }
4080
4081 public CloseSession_result deepCopy() {
4082 return new CloseSession_result(this);
4083 }
4084
4085 @Override
4086 public void clear() {
4087 this.success = null;
4088 }
4089
4090 public TCloseSessionResp getSuccess() {
4091 return this.success;
4092 }
4093
4094 public void setSuccess(TCloseSessionResp success) {
4095 this.success = success;
4096 }
4097
4098 public void unsetSuccess() {
4099 this.success = null;
4100 }
4101
4102
4103 public boolean isSetSuccess() {
4104 return this.success != null;
4105 }
4106
4107 public void setSuccessIsSet(boolean value) {
4108 if (!value) {
4109 this.success = null;
4110 }
4111 }
4112
4113 public void setFieldValue(_Fields field, Object value) {
4114 switch (field) {
4115 case SUCCESS:
4116 if (value == null) {
4117 unsetSuccess();
4118 } else {
4119 setSuccess((TCloseSessionResp)value);
4120 }
4121 break;
4122
4123 }
4124 }
4125
4126 public Object getFieldValue(_Fields field) {
4127 switch (field) {
4128 case SUCCESS:
4129 return getSuccess();
4130
4131 }
4132 throw new IllegalStateException();
4133 }
4134
4135
4136 public boolean isSet(_Fields field) {
4137 if (field == null) {
4138 throw new IllegalArgumentException();
4139 }
4140
4141 switch (field) {
4142 case SUCCESS:
4143 return isSetSuccess();
4144 }
4145 throw new IllegalStateException();
4146 }
4147
4148 @Override
4149 public boolean equals(Object that) {
4150 if (that == null)
4151 return false;
4152 if (that instanceof CloseSession_result)
4153 return this.equals((CloseSession_result)that);
4154 return false;
4155 }
4156
4157 public boolean equals(CloseSession_result that) {
4158 if (that == null)
4159 return false;
4160
4161 boolean this_present_success = true && this.isSetSuccess();
4162 boolean that_present_success = true && that.isSetSuccess();
4163 if (this_present_success || that_present_success) {
4164 if (!(this_present_success && that_present_success))
4165 return false;
4166 if (!this.success.equals(that.success))
4167 return false;
4168 }
4169
4170 return true;
4171 }
4172
4173 @Override
4174 public int hashCode() {
4175 List<Object> list = new ArrayList<Object>();
4176
4177 boolean present_success = true && (isSetSuccess());
4178 list.add(present_success);
4179 if (present_success)
4180 list.add(success);
4181
4182 return list.hashCode();
4183 }
4184
4185 @Override
4186 public int compareTo(CloseSession_result other) {
4187 if (!getClass().equals(other.getClass())) {
4188 return getClass().getName().compareTo(other.getClass().getName());
4189 }
4190
4191 int lastComparison = 0;
4192
4193 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
4194 if (lastComparison != 0) {
4195 return lastComparison;
4196 }
4197 if (isSetSuccess()) {
4198 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
4199 if (lastComparison != 0) {
4200 return lastComparison;
4201 }
4202 }
4203 return 0;
4204 }
4205
4206 public _Fields fieldForId(int fieldId) {
4207 return _Fields.findByThriftId(fieldId);
4208 }
4209
4210 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4211 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4212 }
4213
4214 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4215 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4216 }
4217
4218 @Override
4219 public String toString() {
4220 StringBuilder sb = new StringBuilder("CloseSession_result(");
4221 boolean first = true;
4222
4223 sb.append("success:");
4224 if (this.success == null) {
4225 sb.append("null");
4226 } else {
4227 sb.append(this.success);
4228 }
4229 first = false;
4230 sb.append(")");
4231 return sb.toString();
4232 }
4233
4234 public void validate() throws org.apache.thrift.TException {
4235
4236
4237 if (success != null) {
4238 success.validate();
4239 }
4240 }
4241
4242 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4243 try {
4244 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4245 } catch (org.apache.thrift.TException te) {
4246 throw new java.io.IOException(te);
4247 }
4248 }
4249
4250 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4251 try {
4252 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4253 } catch (org.apache.thrift.TException te) {
4254 throw new java.io.IOException(te);
4255 }
4256 }
4257
4258 private static class CloseSession_resultStandardSchemeFactory implements SchemeFactory {
4259 public CloseSession_resultStandardScheme getScheme() {
4260 return new CloseSession_resultStandardScheme();
4261 }
4262 }
4263
4264 private static class CloseSession_resultStandardScheme extends StandardScheme<CloseSession_result> {
4265
4266 public void read(org.apache.thrift.protocol.TProtocol iprot, CloseSession_result struct) throws org.apache.thrift.TException {
4267 org.apache.thrift.protocol.TField schemeField;
4268 iprot.readStructBegin();
4269 while (true)
4270 {
4271 schemeField = iprot.readFieldBegin();
4272 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
4273 break;
4274 }
4275 switch (schemeField.id) {
4276 case 0:
4277 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
4278 struct.success = new TCloseSessionResp();
4279 struct.success.read(iprot);
4280 struct.setSuccessIsSet(true);
4281 } else {
4282 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4283 }
4284 break;
4285 default:
4286 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4287 }
4288 iprot.readFieldEnd();
4289 }
4290 iprot.readStructEnd();
4291 struct.validate();
4292 }
4293
4294 public void write(org.apache.thrift.protocol.TProtocol oprot, CloseSession_result struct) throws org.apache.thrift.TException {
4295 struct.validate();
4296
4297 oprot.writeStructBegin(STRUCT_DESC);
4298 if (struct.success != null) {
4299 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4300 struct.success.write(oprot);
4301 oprot.writeFieldEnd();
4302 }
4303 oprot.writeFieldStop();
4304 oprot.writeStructEnd();
4305 }
4306
4307 }
4308
4309 private static class CloseSession_resultTupleSchemeFactory implements SchemeFactory {
4310 public CloseSession_resultTupleScheme getScheme() {
4311 return new CloseSession_resultTupleScheme();
4312 }
4313 }
4314
4315 private static class CloseSession_resultTupleScheme extends TupleScheme<CloseSession_result> {
4316
4317 @Override
4318 public void write(org.apache.thrift.protocol.TProtocol prot, CloseSession_result struct) throws org.apache.thrift.TException {
4319 TTupleProtocol oprot = (TTupleProtocol) prot;
4320 BitSet optionals = new BitSet();
4321 if (struct.isSetSuccess()) {
4322 optionals.set(0);
4323 }
4324 oprot.writeBitSet(optionals, 1);
4325 if (struct.isSetSuccess()) {
4326 struct.success.write(oprot);
4327 }
4328 }
4329
4330 @Override
4331 public void read(org.apache.thrift.protocol.TProtocol prot, CloseSession_result struct) throws org.apache.thrift.TException {
4332 TTupleProtocol iprot = (TTupleProtocol) prot;
4333 BitSet incoming = iprot.readBitSet(1);
4334 if (incoming.get(0)) {
4335 struct.success = new TCloseSessionResp();
4336 struct.success.read(iprot);
4337 struct.setSuccessIsSet(true);
4338 }
4339 }
4340 }
4341
4342 }
4343
4344 public static class GetInfo_args implements org.apache.thrift.TBase<GetInfo_args, GetInfo_args._Fields>, java.io.Serializable, Cloneable, Comparable<GetInfo_args> {
4345 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetInfo_args");
4346
4347 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);
4348
4349 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4350 static {
4351 schemes.put(StandardScheme.class, new GetInfo_argsStandardSchemeFactory());
4352 schemes.put(TupleScheme.class, new GetInfo_argsTupleSchemeFactory());
4353 }
4354
4355 private TGetInfoReq req;
4356
4357
4358 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4359 REQ((short)1, "req");
4360
4361 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4362
4363 static {
4364 for (_Fields field : EnumSet.allOf(_Fields.class)) {
4365 byName.put(field.getFieldName(), field);
4366 }
4367 }
4368
4369
4370
4371
4372 public static _Fields findByThriftId(int fieldId) {
4373 switch(fieldId) {
4374 case 1:
4375 return REQ;
4376 default:
4377 return null;
4378 }
4379 }
4380
4381
4382
4383
4384
4385 public static _Fields findByThriftIdOrThrow(int fieldId) {
4386 _Fields fields = findByThriftId(fieldId);
4387 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4388 return fields;
4389 }
4390
4391
4392
4393
4394 public static _Fields findByName(String name) {
4395 return byName.get(name);
4396 }
4397
4398 private final short _thriftId;
4399 private final String _fieldName;
4400
4401 _Fields(short thriftId, String fieldName) {
4402 _thriftId = thriftId;
4403 _fieldName = fieldName;
4404 }
4405
4406 public short getThriftFieldId() {
4407 return _thriftId;
4408 }
4409
4410 public String getFieldName() {
4411 return _fieldName;
4412 }
4413 }
4414
4415
4416 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4417 static {
4418 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4419 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
4420 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetInfoReq.class)));
4421 metaDataMap = Collections.unmodifiableMap(tmpMap);
4422 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetInfo_args.class, metaDataMap);
4423 }
4424
4425 public GetInfo_args() {
4426 }
4427
4428 public GetInfo_args(
4429 TGetInfoReq req)
4430 {
4431 this();
4432 this.req = req;
4433 }
4434
4435
4436
4437
4438 public GetInfo_args(GetInfo_args other) {
4439 if (other.isSetReq()) {
4440 this.req = new TGetInfoReq(other.req);
4441 }
4442 }
4443
4444 public GetInfo_args deepCopy() {
4445 return new GetInfo_args(this);
4446 }
4447
4448 @Override
4449 public void clear() {
4450 this.req = null;
4451 }
4452
4453 public TGetInfoReq getReq() {
4454 return this.req;
4455 }
4456
4457 public void setReq(TGetInfoReq req) {
4458 this.req = req;
4459 }
4460
4461 public void unsetReq() {
4462 this.req = null;
4463 }
4464
4465
4466 public boolean isSetReq() {
4467 return this.req != null;
4468 }
4469
4470 public void setReqIsSet(boolean value) {
4471 if (!value) {
4472 this.req = null;
4473 }
4474 }
4475
4476 public void setFieldValue(_Fields field, Object value) {
4477 switch (field) {
4478 case REQ:
4479 if (value == null) {
4480 unsetReq();
4481 } else {
4482 setReq((TGetInfoReq)value);
4483 }
4484 break;
4485
4486 }
4487 }
4488
4489 public Object getFieldValue(_Fields field) {
4490 switch (field) {
4491 case REQ:
4492 return getReq();
4493
4494 }
4495 throw new IllegalStateException();
4496 }
4497
4498
4499 public boolean isSet(_Fields field) {
4500 if (field == null) {
4501 throw new IllegalArgumentException();
4502 }
4503
4504 switch (field) {
4505 case REQ:
4506 return isSetReq();
4507 }
4508 throw new IllegalStateException();
4509 }
4510
4511 @Override
4512 public boolean equals(Object that) {
4513 if (that == null)
4514 return false;
4515 if (that instanceof GetInfo_args)
4516 return this.equals((GetInfo_args)that);
4517 return false;
4518 }
4519
4520 public boolean equals(GetInfo_args that) {
4521 if (that == null)
4522 return false;
4523
4524 boolean this_present_req = true && this.isSetReq();
4525 boolean that_present_req = true && that.isSetReq();
4526 if (this_present_req || that_present_req) {
4527 if (!(this_present_req && that_present_req))
4528 return false;
4529 if (!this.req.equals(that.req))
4530 return false;
4531 }
4532
4533 return true;
4534 }
4535
4536 @Override
4537 public int hashCode() {
4538 List<Object> list = new ArrayList<Object>();
4539
4540 boolean present_req = true && (isSetReq());
4541 list.add(present_req);
4542 if (present_req)
4543 list.add(req);
4544
4545 return list.hashCode();
4546 }
4547
4548 @Override
4549 public int compareTo(GetInfo_args other) {
4550 if (!getClass().equals(other.getClass())) {
4551 return getClass().getName().compareTo(other.getClass().getName());
4552 }
4553
4554 int lastComparison = 0;
4555
4556 lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
4557 if (lastComparison != 0) {
4558 return lastComparison;
4559 }
4560 if (isSetReq()) {
4561 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
4562 if (lastComparison != 0) {
4563 return lastComparison;
4564 }
4565 }
4566 return 0;
4567 }
4568
4569 public _Fields fieldForId(int fieldId) {
4570 return _Fields.findByThriftId(fieldId);
4571 }
4572
4573 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4574 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4575 }
4576
4577 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4578 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4579 }
4580
4581 @Override
4582 public String toString() {
4583 StringBuilder sb = new StringBuilder("GetInfo_args(");
4584 boolean first = true;
4585
4586 sb.append("req:");
4587 if (this.req == null) {
4588 sb.append("null");
4589 } else {
4590 sb.append(this.req);
4591 }
4592 first = false;
4593 sb.append(")");
4594 return sb.toString();
4595 }
4596
4597 public void validate() throws org.apache.thrift.TException {
4598
4599
4600 if (req != null) {
4601 req.validate();
4602 }
4603 }
4604
4605 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4606 try {
4607 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4608 } catch (org.apache.thrift.TException te) {
4609 throw new java.io.IOException(te);
4610 }
4611 }
4612
4613 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4614 try {
4615 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4616 } catch (org.apache.thrift.TException te) {
4617 throw new java.io.IOException(te);
4618 }
4619 }
4620
4621 private static class GetInfo_argsStandardSchemeFactory implements SchemeFactory {
4622 public GetInfo_argsStandardScheme getScheme() {
4623 return new GetInfo_argsStandardScheme();
4624 }
4625 }
4626
4627 private static class GetInfo_argsStandardScheme extends StandardScheme<GetInfo_args> {
4628
4629 public void read(org.apache.thrift.protocol.TProtocol iprot, GetInfo_args struct) throws org.apache.thrift.TException {
4630 org.apache.thrift.protocol.TField schemeField;
4631 iprot.readStructBegin();
4632 while (true)
4633 {
4634 schemeField = iprot.readFieldBegin();
4635 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
4636 break;
4637 }
4638 switch (schemeField.id) {
4639 case 1:
4640 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
4641 struct.req = new TGetInfoReq();
4642 struct.req.read(iprot);
4643 struct.setReqIsSet(true);
4644 } else {
4645 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4646 }
4647 break;
4648 default:
4649 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4650 }
4651 iprot.readFieldEnd();
4652 }
4653 iprot.readStructEnd();
4654 struct.validate();
4655 }
4656
4657 public void write(org.apache.thrift.protocol.TProtocol oprot, GetInfo_args struct) throws org.apache.thrift.TException {
4658 struct.validate();
4659
4660 oprot.writeStructBegin(STRUCT_DESC);
4661 if (struct.req != null) {
4662 oprot.writeFieldBegin(REQ_FIELD_DESC);
4663 struct.req.write(oprot);
4664 oprot.writeFieldEnd();
4665 }
4666 oprot.writeFieldStop();
4667 oprot.writeStructEnd();
4668 }
4669
4670 }
4671
4672 private static class GetInfo_argsTupleSchemeFactory implements SchemeFactory {
4673 public GetInfo_argsTupleScheme getScheme() {
4674 return new GetInfo_argsTupleScheme();
4675 }
4676 }
4677
4678 private static class GetInfo_argsTupleScheme extends TupleScheme<GetInfo_args> {
4679
4680 @Override
4681 public void write(org.apache.thrift.protocol.TProtocol prot, GetInfo_args struct) throws org.apache.thrift.TException {
4682 TTupleProtocol oprot = (TTupleProtocol) prot;
4683 BitSet optionals = new BitSet();
4684 if (struct.isSetReq()) {
4685 optionals.set(0);
4686 }
4687 oprot.writeBitSet(optionals, 1);
4688 if (struct.isSetReq()) {
4689 struct.req.write(oprot);
4690 }
4691 }
4692
4693 @Override
4694 public void read(org.apache.thrift.protocol.TProtocol prot, GetInfo_args struct) throws org.apache.thrift.TException {
4695 TTupleProtocol iprot = (TTupleProtocol) prot;
4696 BitSet incoming = iprot.readBitSet(1);
4697 if (incoming.get(0)) {
4698 struct.req = new TGetInfoReq();
4699 struct.req.read(iprot);
4700 struct.setReqIsSet(true);
4701 }
4702 }
4703 }
4704
4705 }
4706
4707 public static class GetInfo_result implements org.apache.thrift.TBase<GetInfo_result, GetInfo_result._Fields>, java.io.Serializable, Cloneable, Comparable<GetInfo_result> {
4708 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetInfo_result");
4709
4710 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);
4711
4712 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4713 static {
4714 schemes.put(StandardScheme.class, new GetInfo_resultStandardSchemeFactory());
4715 schemes.put(TupleScheme.class, new GetInfo_resultTupleSchemeFactory());
4716 }
4717
4718 private TGetInfoResp success;
4719
4720
4721 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4722 SUCCESS((short)0, "success");
4723
4724 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4725
4726 static {
4727 for (_Fields field : EnumSet.allOf(_Fields.class)) {
4728 byName.put(field.getFieldName(), field);
4729 }
4730 }
4731
4732
4733
4734
4735 public static _Fields findByThriftId(int fieldId) {
4736 switch(fieldId) {
4737 case 0:
4738 return SUCCESS;
4739 default:
4740 return null;
4741 }
4742 }
4743
4744
4745
4746
4747
4748 public static _Fields findByThriftIdOrThrow(int fieldId) {
4749 _Fields fields = findByThriftId(fieldId);
4750 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4751 return fields;
4752 }
4753
4754
4755
4756
4757 public static _Fields findByName(String name) {
4758 return byName.get(name);
4759 }
4760
4761 private final short _thriftId;
4762 private final String _fieldName;
4763
4764 _Fields(short thriftId, String fieldName) {
4765 _thriftId = thriftId;
4766 _fieldName = fieldName;
4767 }
4768
4769 public short getThriftFieldId() {
4770 return _thriftId;
4771 }
4772
4773 public String getFieldName() {
4774 return _fieldName;
4775 }
4776 }
4777
4778
4779 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4780 static {
4781 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4782 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
4783 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetInfoResp.class)));
4784 metaDataMap = Collections.unmodifiableMap(tmpMap);
4785 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetInfo_result.class, metaDataMap);
4786 }
4787
4788 public GetInfo_result() {
4789 }
4790
4791 public GetInfo_result(
4792 TGetInfoResp success)
4793 {
4794 this();
4795 this.success = success;
4796 }
4797
4798
4799
4800
4801 public GetInfo_result(GetInfo_result other) {
4802 if (other.isSetSuccess()) {
4803 this.success = new TGetInfoResp(other.success);
4804 }
4805 }
4806
4807 public GetInfo_result deepCopy() {
4808 return new GetInfo_result(this);
4809 }
4810
4811 @Override
4812 public void clear() {
4813 this.success = null;
4814 }
4815
4816 public TGetInfoResp getSuccess() {
4817 return this.success;
4818 }
4819
4820 public void setSuccess(TGetInfoResp success) {
4821 this.success = success;
4822 }
4823
4824 public void unsetSuccess() {
4825 this.success = null;
4826 }
4827
4828
4829 public boolean isSetSuccess() {
4830 return this.success != null;
4831 }
4832
4833 public void setSuccessIsSet(boolean value) {
4834 if (!value) {
4835 this.success = null;
4836 }
4837 }
4838
4839 public void setFieldValue(_Fields field, Object value) {
4840 switch (field) {
4841 case SUCCESS:
4842 if (value == null) {
4843 unsetSuccess();
4844 } else {
4845 setSuccess((TGetInfoResp)value);
4846 }
4847 break;
4848
4849 }
4850 }
4851
4852 public Object getFieldValue(_Fields field) {
4853 switch (field) {
4854 case SUCCESS:
4855 return getSuccess();
4856
4857 }
4858 throw new IllegalStateException();
4859 }
4860
4861
4862 public boolean isSet(_Fields field) {
4863 if (field == null) {
4864 throw new IllegalArgumentException();
4865 }
4866
4867 switch (field) {
4868 case SUCCESS:
4869 return isSetSuccess();
4870 }
4871 throw new IllegalStateException();
4872 }
4873
4874 @Override
4875 public boolean equals(Object that) {
4876 if (that == null)
4877 return false;
4878 if (that instanceof GetInfo_result)
4879 return this.equals((GetInfo_result)that);
4880 return false;
4881 }
4882
4883 public boolean equals(GetInfo_result that) {
4884 if (that == null)
4885 return false;
4886
4887 boolean this_present_success = true && this.isSetSuccess();
4888 boolean that_present_success = true && that.isSetSuccess();
4889 if (this_present_success || that_present_success) {
4890 if (!(this_present_success && that_present_success))
4891 return false;
4892 if (!this.success.equals(that.success))
4893 return false;
4894 }
4895
4896 return true;
4897 }
4898
4899 @Override
4900 public int hashCode() {
4901 List<Object> list = new ArrayList<Object>();
4902
4903 boolean present_success = true && (isSetSuccess());
4904 list.add(present_success);
4905 if (present_success)
4906 list.add(success);
4907
4908 return list.hashCode();
4909 }
4910
4911 @Override
4912 public int compareTo(GetInfo_result other) {
4913 if (!getClass().equals(other.getClass())) {
4914 return getClass().getName().compareTo(other.getClass().getName());
4915 }
4916
4917 int lastComparison = 0;
4918
4919 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
4920 if (lastComparison != 0) {
4921 return lastComparison;
4922 }
4923 if (isSetSuccess()) {
4924 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
4925 if (lastComparison != 0) {
4926 return lastComparison;
4927 }
4928 }
4929 return 0;
4930 }
4931
4932 public _Fields fieldForId(int fieldId) {
4933 return _Fields.findByThriftId(fieldId);
4934 }
4935
4936 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4937 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4938 }
4939
4940 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4941 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4942 }
4943
4944 @Override
4945 public String toString() {
4946 StringBuilder sb = new StringBuilder("GetInfo_result(");
4947 boolean first = true;
4948
4949 sb.append("success:");
4950 if (this.success == null) {
4951 sb.append("null");
4952 } else {
4953 sb.append(this.success);
4954 }
4955 first = false;
4956 sb.append(")");
4957 return sb.toString();
4958 }
4959
4960 public void validate() throws org.apache.thrift.TException {
4961
4962
4963 if (success != null) {
4964 success.validate();
4965 }
4966 }
4967
4968 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4969 try {
4970 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4971 } catch (org.apache.thrift.TException te) {
4972 throw new java.io.IOException(te);
4973 }
4974 }
4975
4976 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4977 try {
4978 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4979 } catch (org.apache.thrift.TException te) {
4980 throw new java.io.IOException(te);
4981 }
4982 }
4983
4984 private static class GetInfo_resultStandardSchemeFactory implements SchemeFactory {
4985 public GetInfo_resultStandardScheme getScheme() {
4986 return new GetInfo_resultStandardScheme();
4987 }
4988 }
4989
4990 private static class GetInfo_resultStandardScheme extends StandardScheme<GetInfo_result> {
4991
4992 public void read(org.apache.thrift.protocol.TProtocol iprot, GetInfo_result struct) throws org.apache.thrift.TException {
4993 org.apache.thrift.protocol.TField schemeField;
4994 iprot.readStructBegin();
4995 while (true)
4996 {
4997 schemeField = iprot.readFieldBegin();
4998 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
4999 break;
5000 }
5001 switch (schemeField.id) {
5002 case 0:
5003 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
5004 struct.success = new TGetInfoResp();
5005 struct.success.read(iprot);
5006 struct.setSuccessIsSet(true);
5007 } else {
5008 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5009 }
5010 break;
5011 default:
5012 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5013 }
5014 iprot.readFieldEnd();
5015 }
5016 iprot.readStructEnd();
5017 struct.validate();
5018 }
5019
5020 public void write(org.apache.thrift.protocol.TProtocol oprot, GetInfo_result struct) throws org.apache.thrift.TException {
5021 struct.validate();
5022
5023 oprot.writeStructBegin(STRUCT_DESC);
5024 if (struct.success != null) {
5025 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5026 struct.success.write(oprot);
5027 oprot.writeFieldEnd();
5028 }
5029 oprot.writeFieldStop();
5030 oprot.writeStructEnd();
5031 }
5032
5033 }
5034
5035 private static class GetInfo_resultTupleSchemeFactory implements SchemeFactory {
5036 public GetInfo_resultTupleScheme getScheme() {
5037 return new GetInfo_resultTupleScheme();
5038 }
5039 }
5040
5041 private static class GetInfo_resultTupleScheme extends TupleScheme<GetInfo_result> {
5042
5043 @Override
5044 public void write(org.apache.thrift.protocol.TProtocol prot, GetInfo_result struct) throws org.apache.thrift.TException {
5045 TTupleProtocol oprot = (TTupleProtocol) prot;
5046 BitSet optionals = new BitSet();
5047 if (struct.isSetSuccess()) {
5048 optionals.set(0);
5049 }
5050 oprot.writeBitSet(optionals, 1);
5051 if (struct.isSetSuccess()) {
5052 struct.success.write(oprot);
5053 }
5054 }
5055
5056 @Override
5057 public void read(org.apache.thrift.protocol.TProtocol prot, GetInfo_result struct) throws org.apache.thrift.TException {
5058 TTupleProtocol iprot = (TTupleProtocol) prot;
5059 BitSet incoming = iprot.readBitSet(1);
5060 if (incoming.get(0)) {
5061 struct.success = new TGetInfoResp();
5062 struct.success.read(iprot);
5063 struct.setSuccessIsSet(true);
5064 }
5065 }
5066 }
5067
5068 }
5069
5070 public static class ExecuteStatement_args implements org.apache.thrift.TBase<ExecuteStatement_args, ExecuteStatement_args._Fields>, java.io.Serializable, Cloneable, Comparable<ExecuteStatement_args> {
5071 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExecuteStatement_args");
5072
5073 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);
5074
5075 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5076 static {
5077 schemes.put(StandardScheme.class, new ExecuteStatement_argsStandardSchemeFactory());
5078 schemes.put(TupleScheme.class, new ExecuteStatement_argsTupleSchemeFactory());
5079 }
5080
5081 private TExecuteStatementReq req;
5082
5083
5084 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5085 REQ((short)1, "req");
5086
5087 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5088
5089 static {
5090 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5091 byName.put(field.getFieldName(), field);
5092 }
5093 }
5094
5095
5096
5097
5098 public static _Fields findByThriftId(int fieldId) {
5099 switch(fieldId) {
5100 case 1:
5101 return REQ;
5102 default:
5103 return null;
5104 }
5105 }
5106
5107
5108
5109
5110
5111 public static _Fields findByThriftIdOrThrow(int fieldId) {
5112 _Fields fields = findByThriftId(fieldId);
5113 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5114 return fields;
5115 }
5116
5117
5118
5119
5120 public static _Fields findByName(String name) {
5121 return byName.get(name);
5122 }
5123
5124 private final short _thriftId;
5125 private final String _fieldName;
5126
5127 _Fields(short thriftId, String fieldName) {
5128 _thriftId = thriftId;
5129 _fieldName = fieldName;
5130 }
5131
5132 public short getThriftFieldId() {
5133 return _thriftId;
5134 }
5135
5136 public String getFieldName() {
5137 return _fieldName;
5138 }
5139 }
5140
5141
5142 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5143 static {
5144 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5145 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
5146 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TExecuteStatementReq.class)));
5147 metaDataMap = Collections.unmodifiableMap(tmpMap);
5148 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ExecuteStatement_args.class, metaDataMap);
5149 }
5150
5151 public ExecuteStatement_args() {
5152 }
5153
5154 public ExecuteStatement_args(
5155 TExecuteStatementReq req)
5156 {
5157 this();
5158 this.req = req;
5159 }
5160
5161
5162
5163
5164 public ExecuteStatement_args(ExecuteStatement_args other) {
5165 if (other.isSetReq()) {
5166 this.req = new TExecuteStatementReq(other.req);
5167 }
5168 }
5169
5170 public ExecuteStatement_args deepCopy() {
5171 return new ExecuteStatement_args(this);
5172 }
5173
5174 @Override
5175 public void clear() {
5176 this.req = null;
5177 }
5178
5179 public TExecuteStatementReq getReq() {
5180 return this.req;
5181 }
5182
5183 public void setReq(TExecuteStatementReq req) {
5184 this.req = req;
5185 }
5186
5187 public void unsetReq() {
5188 this.req = null;
5189 }
5190
5191
5192 public boolean isSetReq() {
5193 return this.req != null;
5194 }
5195
5196 public void setReqIsSet(boolean value) {
5197 if (!value) {
5198 this.req = null;
5199 }
5200 }
5201
5202 public void setFieldValue(_Fields field, Object value) {
5203 switch (field) {
5204 case REQ:
5205 if (value == null) {
5206 unsetReq();
5207 } else {
5208 setReq((TExecuteStatementReq)value);
5209 }
5210 break;
5211
5212 }
5213 }
5214
5215 public Object getFieldValue(_Fields field) {
5216 switch (field) {
5217 case REQ:
5218 return getReq();
5219
5220 }
5221 throw new IllegalStateException();
5222 }
5223
5224
5225 public boolean isSet(_Fields field) {
5226 if (field == null) {
5227 throw new IllegalArgumentException();
5228 }
5229
5230 switch (field) {
5231 case REQ:
5232 return isSetReq();
5233 }
5234 throw new IllegalStateException();
5235 }
5236
5237 @Override
5238 public boolean equals(Object that) {
5239 if (that == null)
5240 return false;
5241 if (that instanceof ExecuteStatement_args)
5242 return this.equals((ExecuteStatement_args)that);
5243 return false;
5244 }
5245
5246 public boolean equals(ExecuteStatement_args that) {
5247 if (that == null)
5248 return false;
5249
5250 boolean this_present_req = true && this.isSetReq();
5251 boolean that_present_req = true && that.isSetReq();
5252 if (this_present_req || that_present_req) {
5253 if (!(this_present_req && that_present_req))
5254 return false;
5255 if (!this.req.equals(that.req))
5256 return false;
5257 }
5258
5259 return true;
5260 }
5261
5262 @Override
5263 public int hashCode() {
5264 List<Object> list = new ArrayList<Object>();
5265
5266 boolean present_req = true && (isSetReq());
5267 list.add(present_req);
5268 if (present_req)
5269 list.add(req);
5270
5271 return list.hashCode();
5272 }
5273
5274 @Override
5275 public int compareTo(ExecuteStatement_args other) {
5276 if (!getClass().equals(other.getClass())) {
5277 return getClass().getName().compareTo(other.getClass().getName());
5278 }
5279
5280 int lastComparison = 0;
5281
5282 lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
5283 if (lastComparison != 0) {
5284 return lastComparison;
5285 }
5286 if (isSetReq()) {
5287 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
5288 if (lastComparison != 0) {
5289 return lastComparison;
5290 }
5291 }
5292 return 0;
5293 }
5294
5295 public _Fields fieldForId(int fieldId) {
5296 return _Fields.findByThriftId(fieldId);
5297 }
5298
5299 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5300 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5301 }
5302
5303 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5304 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5305 }
5306
5307 @Override
5308 public String toString() {
5309 StringBuilder sb = new StringBuilder("ExecuteStatement_args(");
5310 boolean first = true;
5311
5312 sb.append("req:");
5313 if (this.req == null) {
5314 sb.append("null");
5315 } else {
5316 sb.append(this.req);
5317 }
5318 first = false;
5319 sb.append(")");
5320 return sb.toString();
5321 }
5322
5323 public void validate() throws org.apache.thrift.TException {
5324
5325
5326 if (req != null) {
5327 req.validate();
5328 }
5329 }
5330
5331 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5332 try {
5333 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5334 } catch (org.apache.thrift.TException te) {
5335 throw new java.io.IOException(te);
5336 }
5337 }
5338
5339 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5340 try {
5341 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5342 } catch (org.apache.thrift.TException te) {
5343 throw new java.io.IOException(te);
5344 }
5345 }
5346
5347 private static class ExecuteStatement_argsStandardSchemeFactory implements SchemeFactory {
5348 public ExecuteStatement_argsStandardScheme getScheme() {
5349 return new ExecuteStatement_argsStandardScheme();
5350 }
5351 }
5352
5353 private static class ExecuteStatement_argsStandardScheme extends StandardScheme<ExecuteStatement_args> {
5354
5355 public void read(org.apache.thrift.protocol.TProtocol iprot, ExecuteStatement_args struct) throws org.apache.thrift.TException {
5356 org.apache.thrift.protocol.TField schemeField;
5357 iprot.readStructBegin();
5358 while (true)
5359 {
5360 schemeField = iprot.readFieldBegin();
5361 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5362 break;
5363 }
5364 switch (schemeField.id) {
5365 case 1:
5366 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
5367 struct.req = new TExecuteStatementReq();
5368 struct.req.read(iprot);
5369 struct.setReqIsSet(true);
5370 } else {
5371 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5372 }
5373 break;
5374 default:
5375 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5376 }
5377 iprot.readFieldEnd();
5378 }
5379 iprot.readStructEnd();
5380 struct.validate();
5381 }
5382
5383 public void write(org.apache.thrift.protocol.TProtocol oprot, ExecuteStatement_args struct) throws org.apache.thrift.TException {
5384 struct.validate();
5385
5386 oprot.writeStructBegin(STRUCT_DESC);
5387 if (struct.req != null) {
5388 oprot.writeFieldBegin(REQ_FIELD_DESC);
5389 struct.req.write(oprot);
5390 oprot.writeFieldEnd();
5391 }
5392 oprot.writeFieldStop();
5393 oprot.writeStructEnd();
5394 }
5395
5396 }
5397
5398 private static class ExecuteStatement_argsTupleSchemeFactory implements SchemeFactory {
5399 public ExecuteStatement_argsTupleScheme getScheme() {
5400 return new ExecuteStatement_argsTupleScheme();
5401 }
5402 }
5403
5404 private static class ExecuteStatement_argsTupleScheme extends TupleScheme<ExecuteStatement_args> {
5405
5406 @Override
5407 public void write(org.apache.thrift.protocol.TProtocol prot, ExecuteStatement_args struct) throws org.apache.thrift.TException {
5408 TTupleProtocol oprot = (TTupleProtocol) prot;
5409 BitSet optionals = new BitSet();
5410 if (struct.isSetReq()) {
5411 optionals.set(0);
5412 }
5413 oprot.writeBitSet(optionals, 1);
5414 if (struct.isSetReq()) {
5415 struct.req.write(oprot);
5416 }
5417 }
5418
5419 @Override
5420 public void read(org.apache.thrift.protocol.TProtocol prot, ExecuteStatement_args struct) throws org.apache.thrift.TException {
5421 TTupleProtocol iprot = (TTupleProtocol) prot;
5422 BitSet incoming = iprot.readBitSet(1);
5423 if (incoming.get(0)) {
5424 struct.req = new TExecuteStatementReq();
5425 struct.req.read(iprot);
5426 struct.setReqIsSet(true);
5427 }
5428 }
5429 }
5430
5431 }
5432
5433 public static class ExecuteStatement_result implements org.apache.thrift.TBase<ExecuteStatement_result, ExecuteStatement_result._Fields>, java.io.Serializable, Cloneable, Comparable<ExecuteStatement_result> {
5434 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExecuteStatement_result");
5435
5436 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);
5437
5438 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5439 static {
5440 schemes.put(StandardScheme.class, new ExecuteStatement_resultStandardSchemeFactory());
5441 schemes.put(TupleScheme.class, new ExecuteStatement_resultTupleSchemeFactory());
5442 }
5443
5444 private TExecuteStatementResp success;
5445
5446
5447 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5448 SUCCESS((short)0, "success");
5449
5450 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5451
5452 static {
5453 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5454 byName.put(field.getFieldName(), field);
5455 }
5456 }
5457
5458
5459
5460
5461 public static _Fields findByThriftId(int fieldId) {
5462 switch(fieldId) {
5463 case 0:
5464 return SUCCESS;
5465 default:
5466 return null;
5467 }
5468 }
5469
5470
5471
5472
5473
5474 public static _Fields findByThriftIdOrThrow(int fieldId) {
5475 _Fields fields = findByThriftId(fieldId);
5476 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5477 return fields;
5478 }
5479
5480
5481
5482
5483 public static _Fields findByName(String name) {
5484 return byName.get(name);
5485 }
5486
5487 private final short _thriftId;
5488 private final String _fieldName;
5489
5490 _Fields(short thriftId, String fieldName) {
5491 _thriftId = thriftId;
5492 _fieldName = fieldName;
5493 }
5494
5495 public short getThriftFieldId() {
5496 return _thriftId;
5497 }
5498
5499 public String getFieldName() {
5500 return _fieldName;
5501 }
5502 }
5503
5504
5505 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5506 static {
5507 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5508 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
5509 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TExecuteStatementResp.class)));
5510 metaDataMap = Collections.unmodifiableMap(tmpMap);
5511 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ExecuteStatement_result.class, metaDataMap);
5512 }
5513
5514 public ExecuteStatement_result() {
5515 }
5516
5517 public ExecuteStatement_result(
5518 TExecuteStatementResp success)
5519 {
5520 this();
5521 this.success = success;
5522 }
5523
5524
5525
5526
5527 public ExecuteStatement_result(ExecuteStatement_result other) {
5528 if (other.isSetSuccess()) {
5529 this.success = new TExecuteStatementResp(other.success);
5530 }
5531 }
5532
5533 public ExecuteStatement_result deepCopy() {
5534 return new ExecuteStatement_result(this);
5535 }
5536
5537 @Override
5538 public void clear() {
5539 this.success = null;
5540 }
5541
5542 public TExecuteStatementResp getSuccess() {
5543 return this.success;
5544 }
5545
5546 public void setSuccess(TExecuteStatementResp success) {
5547 this.success = success;
5548 }
5549
5550 public void unsetSuccess() {
5551 this.success = null;
5552 }
5553
5554
5555 public boolean isSetSuccess() {
5556 return this.success != null;
5557 }
5558
5559 public void setSuccessIsSet(boolean value) {
5560 if (!value) {
5561 this.success = null;
5562 }
5563 }
5564
5565 public void setFieldValue(_Fields field, Object value) {
5566 switch (field) {
5567 case SUCCESS:
5568 if (value == null) {
5569 unsetSuccess();
5570 } else {
5571 setSuccess((TExecuteStatementResp)value);
5572 }
5573 break;
5574
5575 }
5576 }
5577
5578 public Object getFieldValue(_Fields field) {
5579 switch (field) {
5580 case SUCCESS:
5581 return getSuccess();
5582
5583 }
5584 throw new IllegalStateException();
5585 }
5586
5587
5588 public boolean isSet(_Fields field) {
5589 if (field == null) {
5590 throw new IllegalArgumentException();
5591 }
5592
5593 switch (field) {
5594 case SUCCESS:
5595 return isSetSuccess();
5596 }
5597 throw new IllegalStateException();
5598 }
5599
5600 @Override
5601 public boolean equals(Object that) {
5602 if (that == null)
5603 return false;
5604 if (that instanceof ExecuteStatement_result)
5605 return this.equals((ExecuteStatement_result)that);
5606 return false;
5607 }
5608
5609 public boolean equals(ExecuteStatement_result that) {
5610 if (that == null)
5611 return false;
5612
5613 boolean this_present_success = true && this.isSetSuccess();
5614 boolean that_present_success = true && that.isSetSuccess();
5615 if (this_present_success || that_present_success) {
5616 if (!(this_present_success && that_present_success))
5617 return false;
5618 if (!this.success.equals(that.success))
5619 return false;
5620 }
5621
5622 return true;
5623 }
5624
5625 @Override
5626 public int hashCode() {
5627 List<Object> list = new ArrayList<Object>();
5628
5629 boolean present_success = true && (isSetSuccess());
5630 list.add(present_success);
5631 if (present_success)
5632 list.add(success);
5633
5634 return list.hashCode();
5635 }
5636
5637 @Override
5638 public int compareTo(ExecuteStatement_result other) {
5639 if (!getClass().equals(other.getClass())) {
5640 return getClass().getName().compareTo(other.getClass().getName());
5641 }
5642
5643 int lastComparison = 0;
5644
5645 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
5646 if (lastComparison != 0) {
5647 return lastComparison;
5648 }
5649 if (isSetSuccess()) {
5650 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
5651 if (lastComparison != 0) {
5652 return lastComparison;
5653 }
5654 }
5655 return 0;
5656 }
5657
5658 public _Fields fieldForId(int fieldId) {
5659 return _Fields.findByThriftId(fieldId);
5660 }
5661
5662 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5663 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5664 }
5665
5666 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5667 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5668 }
5669
5670 @Override
5671 public String toString() {
5672 StringBuilder sb = new StringBuilder("ExecuteStatement_result(");
5673 boolean first = true;
5674
5675 sb.append("success:");
5676 if (this.success == null) {
5677 sb.append("null");
5678 } else {
5679 sb.append(this.success);
5680 }
5681 first = false;
5682 sb.append(")");
5683 return sb.toString();
5684 }
5685
5686 public void validate() throws org.apache.thrift.TException {
5687
5688
5689 if (success != null) {
5690 success.validate();
5691 }
5692 }
5693
5694 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5695 try {
5696 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5697 } catch (org.apache.thrift.TException te) {
5698 throw new java.io.IOException(te);
5699 }
5700 }
5701
5702 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5703 try {
5704 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5705 } catch (org.apache.thrift.TException te) {
5706 throw new java.io.IOException(te);
5707 }
5708 }
5709
5710 private static class ExecuteStatement_resultStandardSchemeFactory implements SchemeFactory {
5711 public ExecuteStatement_resultStandardScheme getScheme() {
5712 return new ExecuteStatement_resultStandardScheme();
5713 }
5714 }
5715
5716 private static class ExecuteStatement_resultStandardScheme extends StandardScheme<ExecuteStatement_result> {
5717
5718 public void read(org.apache.thrift.protocol.TProtocol iprot, ExecuteStatement_result struct) throws org.apache.thrift.TException {
5719 org.apache.thrift.protocol.TField schemeField;
5720 iprot.readStructBegin();
5721 while (true)
5722 {
5723 schemeField = iprot.readFieldBegin();
5724 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5725 break;
5726 }
5727 switch (schemeField.id) {
5728 case 0:
5729 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
5730 struct.success = new TExecuteStatementResp();
5731 struct.success.read(iprot);
5732 struct.setSuccessIsSet(true);
5733 } else {
5734 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5735 }
5736 break;
5737 default:
5738 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5739 }
5740 iprot.readFieldEnd();
5741 }
5742 iprot.readStructEnd();
5743 struct.validate();
5744 }
5745
5746 public void write(org.apache.thrift.protocol.TProtocol oprot, ExecuteStatement_result struct) throws org.apache.thrift.TException {
5747 struct.validate();
5748
5749 oprot.writeStructBegin(STRUCT_DESC);
5750 if (struct.success != null) {
5751 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5752 struct.success.write(oprot);
5753 oprot.writeFieldEnd();
5754 }
5755 oprot.writeFieldStop();
5756 oprot.writeStructEnd();
5757 }
5758
5759 }
5760
5761 private static class ExecuteStatement_resultTupleSchemeFactory implements SchemeFactory {
5762 public ExecuteStatement_resultTupleScheme getScheme() {
5763 return new ExecuteStatement_resultTupleScheme();
5764 }
5765 }
5766
5767 private static class ExecuteStatement_resultTupleScheme extends TupleScheme<ExecuteStatement_result> {
5768
5769 @Override
5770 public void write(org.apache.thrift.protocol.TProtocol prot, ExecuteStatement_result struct) throws org.apache.thrift.TException {
5771 TTupleProtocol oprot = (TTupleProtocol) prot;
5772 BitSet optionals = new BitSet();
5773 if (struct.isSetSuccess()) {
5774 optionals.set(0);
5775 }
5776 oprot.writeBitSet(optionals, 1);
5777 if (struct.isSetSuccess()) {
5778 struct.success.write(oprot);
5779 }
5780 }
5781
5782 @Override
5783 public void read(org.apache.thrift.protocol.TProtocol prot, ExecuteStatement_result struct) throws org.apache.thrift.TException {
5784 TTupleProtocol iprot = (TTupleProtocol) prot;
5785 BitSet incoming = iprot.readBitSet(1);
5786 if (incoming.get(0)) {
5787 struct.success = new TExecuteStatementResp();
5788 struct.success.read(iprot);
5789 struct.setSuccessIsSet(true);
5790 }
5791 }
5792 }
5793
5794 }
5795
5796 public static class GetTypeInfo_args implements org.apache.thrift.TBase<GetTypeInfo_args, GetTypeInfo_args._Fields>, java.io.Serializable, Cloneable, Comparable<GetTypeInfo_args> {
5797 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTypeInfo_args");
5798
5799 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);
5800
5801 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5802 static {
5803 schemes.put(StandardScheme.class, new GetTypeInfo_argsStandardSchemeFactory());
5804 schemes.put(TupleScheme.class, new GetTypeInfo_argsTupleSchemeFactory());
5805 }
5806
5807 private TGetTypeInfoReq req;
5808
5809
5810 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5811 REQ((short)1, "req");
5812
5813 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5814
5815 static {
5816 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5817 byName.put(field.getFieldName(), field);
5818 }
5819 }
5820
5821
5822
5823
5824 public static _Fields findByThriftId(int fieldId) {
5825 switch(fieldId) {
5826 case 1:
5827 return REQ;
5828 default:
5829 return null;
5830 }
5831 }
5832
5833
5834
5835
5836
5837 public static _Fields findByThriftIdOrThrow(int fieldId) {
5838 _Fields fields = findByThriftId(fieldId);
5839 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5840 return fields;
5841 }
5842
5843
5844
5845
5846 public static _Fields findByName(String name) {
5847 return byName.get(name);
5848 }
5849
5850 private final short _thriftId;
5851 private final String _fieldName;
5852
5853 _Fields(short thriftId, String fieldName) {
5854 _thriftId = thriftId;
5855 _fieldName = fieldName;
5856 }
5857
5858 public short getThriftFieldId() {
5859 return _thriftId;
5860 }
5861
5862 public String getFieldName() {
5863 return _fieldName;
5864 }
5865 }
5866
5867
5868 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5869 static {
5870 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5871 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
5872 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetTypeInfoReq.class)));
5873 metaDataMap = Collections.unmodifiableMap(tmpMap);
5874 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetTypeInfo_args.class, metaDataMap);
5875 }
5876
5877 public GetTypeInfo_args() {
5878 }
5879
5880 public GetTypeInfo_args(
5881 TGetTypeInfoReq req)
5882 {
5883 this();
5884 this.req = req;
5885 }
5886
5887
5888
5889
5890 public GetTypeInfo_args(GetTypeInfo_args other) {
5891 if (other.isSetReq()) {
5892 this.req = new TGetTypeInfoReq(other.req);
5893 }
5894 }
5895
5896 public GetTypeInfo_args deepCopy() {
5897 return new GetTypeInfo_args(this);
5898 }
5899
5900 @Override
5901 public void clear() {
5902 this.req = null;
5903 }
5904
5905 public TGetTypeInfoReq getReq() {
5906 return this.req;
5907 }
5908
5909 public void setReq(TGetTypeInfoReq req) {
5910 this.req = req;
5911 }
5912
5913 public void unsetReq() {
5914 this.req = null;
5915 }
5916
5917
5918 public boolean isSetReq() {
5919 return this.req != null;
5920 }
5921
5922 public void setReqIsSet(boolean value) {
5923 if (!value) {
5924 this.req = null;
5925 }
5926 }
5927
5928 public void setFieldValue(_Fields field, Object value) {
5929 switch (field) {
5930 case REQ:
5931 if (value == null) {
5932 unsetReq();
5933 } else {
5934 setReq((TGetTypeInfoReq)value);
5935 }
5936 break;
5937
5938 }
5939 }
5940
5941 public Object getFieldValue(_Fields field) {
5942 switch (field) {
5943 case REQ:
5944 return getReq();
5945
5946 }
5947 throw new IllegalStateException();
5948 }
5949
5950
5951 public boolean isSet(_Fields field) {
5952 if (field == null) {
5953 throw new IllegalArgumentException();
5954 }
5955
5956 switch (field) {
5957 case REQ:
5958 return isSetReq();
5959 }
5960 throw new IllegalStateException();
5961 }
5962
5963 @Override
5964 public boolean equals(Object that) {
5965 if (that == null)
5966 return false;
5967 if (that instanceof GetTypeInfo_args)
5968 return this.equals((GetTypeInfo_args)that);
5969 return false;
5970 }
5971
5972 public boolean equals(GetTypeInfo_args that) {
5973 if (that == null)
5974 return false;
5975
5976 boolean this_present_req = true && this.isSetReq();
5977 boolean that_present_req = true && that.isSetReq();
5978 if (this_present_req || that_present_req) {
5979 if (!(this_present_req && that_present_req))
5980 return false;
5981 if (!this.req.equals(that.req))
5982 return false;
5983 }
5984
5985 return true;
5986 }
5987
5988 @Override
5989 public int hashCode() {
5990 List<Object> list = new ArrayList<Object>();
5991
5992 boolean present_req = true && (isSetReq());
5993 list.add(present_req);
5994 if (present_req)
5995 list.add(req);
5996
5997 return list.hashCode();
5998 }
5999
6000 @Override
6001 public int compareTo(GetTypeInfo_args other) {
6002 if (!getClass().equals(other.getClass())) {
6003 return getClass().getName().compareTo(other.getClass().getName());
6004 }
6005
6006 int lastComparison = 0;
6007
6008 lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
6009 if (lastComparison != 0) {
6010 return lastComparison;
6011 }
6012 if (isSetReq()) {
6013 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
6014 if (lastComparison != 0) {
6015 return lastComparison;
6016 }
6017 }
6018 return 0;
6019 }
6020
6021 public _Fields fieldForId(int fieldId) {
6022 return _Fields.findByThriftId(fieldId);
6023 }
6024
6025 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6026 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6027 }
6028
6029 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6030 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6031 }
6032
6033 @Override
6034 public String toString() {
6035 StringBuilder sb = new StringBuilder("GetTypeInfo_args(");
6036 boolean first = true;
6037
6038 sb.append("req:");
6039 if (this.req == null) {
6040 sb.append("null");
6041 } else {
6042 sb.append(this.req);
6043 }
6044 first = false;
6045 sb.append(")");
6046 return sb.toString();
6047 }
6048
6049 public void validate() throws org.apache.thrift.TException {
6050
6051
6052 if (req != null) {
6053 req.validate();
6054 }
6055 }
6056
6057 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6058 try {
6059 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6060 } catch (org.apache.thrift.TException te) {
6061 throw new java.io.IOException(te);
6062 }
6063 }
6064
6065 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6066 try {
6067 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6068 } catch (org.apache.thrift.TException te) {
6069 throw new java.io.IOException(te);
6070 }
6071 }
6072
6073 private static class GetTypeInfo_argsStandardSchemeFactory implements SchemeFactory {
6074 public GetTypeInfo_argsStandardScheme getScheme() {
6075 return new GetTypeInfo_argsStandardScheme();
6076 }
6077 }
6078
6079 private static class GetTypeInfo_argsStandardScheme extends StandardScheme<GetTypeInfo_args> {
6080
6081 public void read(org.apache.thrift.protocol.TProtocol iprot, GetTypeInfo_args struct) throws org.apache.thrift.TException {
6082 org.apache.thrift.protocol.TField schemeField;
6083 iprot.readStructBegin();
6084 while (true)
6085 {
6086 schemeField = iprot.readFieldBegin();
6087 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6088 break;
6089 }
6090 switch (schemeField.id) {
6091 case 1:
6092 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
6093 struct.req = new TGetTypeInfoReq();
6094 struct.req.read(iprot);
6095 struct.setReqIsSet(true);
6096 } else {
6097 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6098 }
6099 break;
6100 default:
6101 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6102 }
6103 iprot.readFieldEnd();
6104 }
6105 iprot.readStructEnd();
6106 struct.validate();
6107 }
6108
6109 public void write(org.apache.thrift.protocol.TProtocol oprot, GetTypeInfo_args struct) throws org.apache.thrift.TException {
6110 struct.validate();
6111
6112 oprot.writeStructBegin(STRUCT_DESC);
6113 if (struct.req != null) {
6114 oprot.writeFieldBegin(REQ_FIELD_DESC);
6115 struct.req.write(oprot);
6116 oprot.writeFieldEnd();
6117 }
6118 oprot.writeFieldStop();
6119 oprot.writeStructEnd();
6120 }
6121
6122 }
6123
6124 private static class GetTypeInfo_argsTupleSchemeFactory implements SchemeFactory {
6125 public GetTypeInfo_argsTupleScheme getScheme() {
6126 return new GetTypeInfo_argsTupleScheme();
6127 }
6128 }
6129
6130 private static class GetTypeInfo_argsTupleScheme extends TupleScheme<GetTypeInfo_args> {
6131
6132 @Override
6133 public void write(org.apache.thrift.protocol.TProtocol prot, GetTypeInfo_args struct) throws org.apache.thrift.TException {
6134 TTupleProtocol oprot = (TTupleProtocol) prot;
6135 BitSet optionals = new BitSet();
6136 if (struct.isSetReq()) {
6137 optionals.set(0);
6138 }
6139 oprot.writeBitSet(optionals, 1);
6140 if (struct.isSetReq()) {
6141 struct.req.write(oprot);
6142 }
6143 }
6144
6145 @Override
6146 public void read(org.apache.thrift.protocol.TProtocol prot, GetTypeInfo_args struct) throws org.apache.thrift.TException {
6147 TTupleProtocol iprot = (TTupleProtocol) prot;
6148 BitSet incoming = iprot.readBitSet(1);
6149 if (incoming.get(0)) {
6150 struct.req = new TGetTypeInfoReq();
6151 struct.req.read(iprot);
6152 struct.setReqIsSet(true);
6153 }
6154 }
6155 }
6156
6157 }
6158
6159 public static class GetTypeInfo_result implements org.apache.thrift.TBase<GetTypeInfo_result, GetTypeInfo_result._Fields>, java.io.Serializable, Cloneable, Comparable<GetTypeInfo_result> {
6160 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTypeInfo_result");
6161
6162 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);
6163
6164 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6165 static {
6166 schemes.put(StandardScheme.class, new GetTypeInfo_resultStandardSchemeFactory());
6167 schemes.put(TupleScheme.class, new GetTypeInfo_resultTupleSchemeFactory());
6168 }
6169
6170 private TGetTypeInfoResp success;
6171
6172
6173 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6174 SUCCESS((short)0, "success");
6175
6176 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6177
6178 static {
6179 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6180 byName.put(field.getFieldName(), field);
6181 }
6182 }
6183
6184
6185
6186
6187 public static _Fields findByThriftId(int fieldId) {
6188 switch(fieldId) {
6189 case 0:
6190 return SUCCESS;
6191 default:
6192 return null;
6193 }
6194 }
6195
6196
6197
6198
6199
6200 public static _Fields findByThriftIdOrThrow(int fieldId) {
6201 _Fields fields = findByThriftId(fieldId);
6202 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6203 return fields;
6204 }
6205
6206
6207
6208
6209 public static _Fields findByName(String name) {
6210 return byName.get(name);
6211 }
6212
6213 private final short _thriftId;
6214 private final String _fieldName;
6215
6216 _Fields(short thriftId, String fieldName) {
6217 _thriftId = thriftId;
6218 _fieldName = fieldName;
6219 }
6220
6221 public short getThriftFieldId() {
6222 return _thriftId;
6223 }
6224
6225 public String getFieldName() {
6226 return _fieldName;
6227 }
6228 }
6229
6230
6231 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6232 static {
6233 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6234 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
6235 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetTypeInfoResp.class)));
6236 metaDataMap = Collections.unmodifiableMap(tmpMap);
6237 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetTypeInfo_result.class, metaDataMap);
6238 }
6239
6240 public GetTypeInfo_result() {
6241 }
6242
6243 public GetTypeInfo_result(
6244 TGetTypeInfoResp success)
6245 {
6246 this();
6247 this.success = success;
6248 }
6249
6250
6251
6252
6253 public GetTypeInfo_result(GetTypeInfo_result other) {
6254 if (other.isSetSuccess()) {
6255 this.success = new TGetTypeInfoResp(other.success);
6256 }
6257 }
6258
6259 public GetTypeInfo_result deepCopy() {
6260 return new GetTypeInfo_result(this);
6261 }
6262
6263 @Override
6264 public void clear() {
6265 this.success = null;
6266 }
6267
6268 public TGetTypeInfoResp getSuccess() {
6269 return this.success;
6270 }
6271
6272 public void setSuccess(TGetTypeInfoResp success) {
6273 this.success = success;
6274 }
6275
6276 public void unsetSuccess() {
6277 this.success = null;
6278 }
6279
6280
6281 public boolean isSetSuccess() {
6282 return this.success != null;
6283 }
6284
6285 public void setSuccessIsSet(boolean value) {
6286 if (!value) {
6287 this.success = null;
6288 }
6289 }
6290
6291 public void setFieldValue(_Fields field, Object value) {
6292 switch (field) {
6293 case SUCCESS:
6294 if (value == null) {
6295 unsetSuccess();
6296 } else {
6297 setSuccess((TGetTypeInfoResp)value);
6298 }
6299 break;
6300
6301 }
6302 }
6303
6304 public Object getFieldValue(_Fields field) {
6305 switch (field) {
6306 case SUCCESS:
6307 return getSuccess();
6308
6309 }
6310 throw new IllegalStateException();
6311 }
6312
6313
6314 public boolean isSet(_Fields field) {
6315 if (field == null) {
6316 throw new IllegalArgumentException();
6317 }
6318
6319 switch (field) {
6320 case SUCCESS:
6321 return isSetSuccess();
6322 }
6323 throw new IllegalStateException();
6324 }
6325
6326 @Override
6327 public boolean equals(Object that) {
6328 if (that == null)
6329 return false;
6330 if (that instanceof GetTypeInfo_result)
6331 return this.equals((GetTypeInfo_result)that);
6332 return false;
6333 }
6334
6335 public boolean equals(GetTypeInfo_result that) {
6336 if (that == null)
6337 return false;
6338
6339 boolean this_present_success = true && this.isSetSuccess();
6340 boolean that_present_success = true && that.isSetSuccess();
6341 if (this_present_success || that_present_success) {
6342 if (!(this_present_success && that_present_success))
6343 return false;
6344 if (!this.success.equals(that.success))
6345 return false;
6346 }
6347
6348 return true;
6349 }
6350
6351 @Override
6352 public int hashCode() {
6353 List<Object> list = new ArrayList<Object>();
6354
6355 boolean present_success = true && (isSetSuccess());
6356 list.add(present_success);
6357 if (present_success)
6358 list.add(success);
6359
6360 return list.hashCode();
6361 }
6362
6363 @Override
6364 public int compareTo(GetTypeInfo_result other) {
6365 if (!getClass().equals(other.getClass())) {
6366 return getClass().getName().compareTo(other.getClass().getName());
6367 }
6368
6369 int lastComparison = 0;
6370
6371 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
6372 if (lastComparison != 0) {
6373 return lastComparison;
6374 }
6375 if (isSetSuccess()) {
6376 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
6377 if (lastComparison != 0) {
6378 return lastComparison;
6379 }
6380 }
6381 return 0;
6382 }
6383
6384 public _Fields fieldForId(int fieldId) {
6385 return _Fields.findByThriftId(fieldId);
6386 }
6387
6388 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6389 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6390 }
6391
6392 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6393 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6394 }
6395
6396 @Override
6397 public String toString() {
6398 StringBuilder sb = new StringBuilder("GetTypeInfo_result(");
6399 boolean first = true;
6400
6401 sb.append("success:");
6402 if (this.success == null) {
6403 sb.append("null");
6404 } else {
6405 sb.append(this.success);
6406 }
6407 first = false;
6408 sb.append(")");
6409 return sb.toString();
6410 }
6411
6412 public void validate() throws org.apache.thrift.TException {
6413
6414
6415 if (success != null) {
6416 success.validate();
6417 }
6418 }
6419
6420 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6421 try {
6422 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6423 } catch (org.apache.thrift.TException te) {
6424 throw new java.io.IOException(te);
6425 }
6426 }
6427
6428 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6429 try {
6430 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6431 } catch (org.apache.thrift.TException te) {
6432 throw new java.io.IOException(te);
6433 }
6434 }
6435
6436 private static class GetTypeInfo_resultStandardSchemeFactory implements SchemeFactory {
6437 public GetTypeInfo_resultStandardScheme getScheme() {
6438 return new GetTypeInfo_resultStandardScheme();
6439 }
6440 }
6441
6442 private static class GetTypeInfo_resultStandardScheme extends StandardScheme<GetTypeInfo_result> {
6443
6444 public void read(org.apache.thrift.protocol.TProtocol iprot, GetTypeInfo_result struct) throws org.apache.thrift.TException {
6445 org.apache.thrift.protocol.TField schemeField;
6446 iprot.readStructBegin();
6447 while (true)
6448 {
6449 schemeField = iprot.readFieldBegin();
6450 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6451 break;
6452 }
6453 switch (schemeField.id) {
6454 case 0:
6455 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
6456 struct.success = new TGetTypeInfoResp();
6457 struct.success.read(iprot);
6458 struct.setSuccessIsSet(true);
6459 } else {
6460 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6461 }
6462 break;
6463 default:
6464 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6465 }
6466 iprot.readFieldEnd();
6467 }
6468 iprot.readStructEnd();
6469 struct.validate();
6470 }
6471
6472 public void write(org.apache.thrift.protocol.TProtocol oprot, GetTypeInfo_result struct) throws org.apache.thrift.TException {
6473 struct.validate();
6474
6475 oprot.writeStructBegin(STRUCT_DESC);
6476 if (struct.success != null) {
6477 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6478 struct.success.write(oprot);
6479 oprot.writeFieldEnd();
6480 }
6481 oprot.writeFieldStop();
6482 oprot.writeStructEnd();
6483 }
6484
6485 }
6486
6487 private static class GetTypeInfo_resultTupleSchemeFactory implements SchemeFactory {
6488 public GetTypeInfo_resultTupleScheme getScheme() {
6489 return new GetTypeInfo_resultTupleScheme();
6490 }
6491 }
6492
6493 private static class GetTypeInfo_resultTupleScheme extends TupleScheme<GetTypeInfo_result> {
6494
6495 @Override
6496 public void write(org.apache.thrift.protocol.TProtocol prot, GetTypeInfo_result struct) throws org.apache.thrift.TException {
6497 TTupleProtocol oprot = (TTupleProtocol) prot;
6498 BitSet optionals = new BitSet();
6499 if (struct.isSetSuccess()) {
6500 optionals.set(0);
6501 }
6502 oprot.writeBitSet(optionals, 1);
6503 if (struct.isSetSuccess()) {
6504 struct.success.write(oprot);
6505 }
6506 }
6507
6508 @Override
6509 public void read(org.apache.thrift.protocol.TProtocol prot, GetTypeInfo_result struct) throws org.apache.thrift.TException {
6510 TTupleProtocol iprot = (TTupleProtocol) prot;
6511 BitSet incoming = iprot.readBitSet(1);
6512 if (incoming.get(0)) {
6513 struct.success = new TGetTypeInfoResp();
6514 struct.success.read(iprot);
6515 struct.setSuccessIsSet(true);
6516 }
6517 }
6518 }
6519
6520 }
6521
6522 public static class GetCatalogs_args implements org.apache.thrift.TBase<GetCatalogs_args, GetCatalogs_args._Fields>, java.io.Serializable, Cloneable, Comparable<GetCatalogs_args> {
6523 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetCatalogs_args");
6524
6525 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);
6526
6527 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6528 static {
6529 schemes.put(StandardScheme.class, new GetCatalogs_argsStandardSchemeFactory());
6530 schemes.put(TupleScheme.class, new GetCatalogs_argsTupleSchemeFactory());
6531 }
6532
6533 private TGetCatalogsReq req;
6534
6535
6536 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6537 REQ((short)1, "req");
6538
6539 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6540
6541 static {
6542 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6543 byName.put(field.getFieldName(), field);
6544 }
6545 }
6546
6547
6548
6549
6550 public static _Fields findByThriftId(int fieldId) {
6551 switch(fieldId) {
6552 case 1:
6553 return REQ;
6554 default:
6555 return null;
6556 }
6557 }
6558
6559
6560
6561
6562
6563 public static _Fields findByThriftIdOrThrow(int fieldId) {
6564 _Fields fields = findByThriftId(fieldId);
6565 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6566 return fields;
6567 }
6568
6569
6570
6571
6572 public static _Fields findByName(String name) {
6573 return byName.get(name);
6574 }
6575
6576 private final short _thriftId;
6577 private final String _fieldName;
6578
6579 _Fields(short thriftId, String fieldName) {
6580 _thriftId = thriftId;
6581 _fieldName = fieldName;
6582 }
6583
6584 public short getThriftFieldId() {
6585 return _thriftId;
6586 }
6587
6588 public String getFieldName() {
6589 return _fieldName;
6590 }
6591 }
6592
6593
6594 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6595 static {
6596 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6597 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
6598 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetCatalogsReq.class)));
6599 metaDataMap = Collections.unmodifiableMap(tmpMap);
6600 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetCatalogs_args.class, metaDataMap);
6601 }
6602
6603 public GetCatalogs_args() {
6604 }
6605
6606 public GetCatalogs_args(
6607 TGetCatalogsReq req)
6608 {
6609 this();
6610 this.req = req;
6611 }
6612
6613
6614
6615
6616 public GetCatalogs_args(GetCatalogs_args other) {
6617 if (other.isSetReq()) {
6618 this.req = new TGetCatalogsReq(other.req);
6619 }
6620 }
6621
6622 public GetCatalogs_args deepCopy() {
6623 return new GetCatalogs_args(this);
6624 }
6625
6626 @Override
6627 public void clear() {
6628 this.req = null;
6629 }
6630
6631 public TGetCatalogsReq getReq() {
6632 return this.req;
6633 }
6634
6635 public void setReq(TGetCatalogsReq req) {
6636 this.req = req;
6637 }
6638
6639 public void unsetReq() {
6640 this.req = null;
6641 }
6642
6643
6644 public boolean isSetReq() {
6645 return this.req != null;
6646 }
6647
6648 public void setReqIsSet(boolean value) {
6649 if (!value) {
6650 this.req = null;
6651 }
6652 }
6653
6654 public void setFieldValue(_Fields field, Object value) {
6655 switch (field) {
6656 case REQ:
6657 if (value == null) {
6658 unsetReq();
6659 } else {
6660 setReq((TGetCatalogsReq)value);
6661 }
6662 break;
6663
6664 }
6665 }
6666
6667 public Object getFieldValue(_Fields field) {
6668 switch (field) {
6669 case REQ:
6670 return getReq();
6671
6672 }
6673 throw new IllegalStateException();
6674 }
6675
6676
6677 public boolean isSet(_Fields field) {
6678 if (field == null) {
6679 throw new IllegalArgumentException();
6680 }
6681
6682 switch (field) {
6683 case REQ:
6684 return isSetReq();
6685 }
6686 throw new IllegalStateException();
6687 }
6688
6689 @Override
6690 public boolean equals(Object that) {
6691 if (that == null)
6692 return false;
6693 if (that instanceof GetCatalogs_args)
6694 return this.equals((GetCatalogs_args)that);
6695 return false;
6696 }
6697
6698 public boolean equals(GetCatalogs_args that) {
6699 if (that == null)
6700 return false;
6701
6702 boolean this_present_req = true && this.isSetReq();
6703 boolean that_present_req = true && that.isSetReq();
6704 if (this_present_req || that_present_req) {
6705 if (!(this_present_req && that_present_req))
6706 return false;
6707 if (!this.req.equals(that.req))
6708 return false;
6709 }
6710
6711 return true;
6712 }
6713
6714 @Override
6715 public int hashCode() {
6716 List<Object> list = new ArrayList<Object>();
6717
6718 boolean present_req = true && (isSetReq());
6719 list.add(present_req);
6720 if (present_req)
6721 list.add(req);
6722
6723 return list.hashCode();
6724 }
6725
6726 @Override
6727 public int compareTo(GetCatalogs_args other) {
6728 if (!getClass().equals(other.getClass())) {
6729 return getClass().getName().compareTo(other.getClass().getName());
6730 }
6731
6732 int lastComparison = 0;
6733
6734 lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
6735 if (lastComparison != 0) {
6736 return lastComparison;
6737 }
6738 if (isSetReq()) {
6739 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
6740 if (lastComparison != 0) {
6741 return lastComparison;
6742 }
6743 }
6744 return 0;
6745 }
6746
6747 public _Fields fieldForId(int fieldId) {
6748 return _Fields.findByThriftId(fieldId);
6749 }
6750
6751 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6752 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6753 }
6754
6755 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6756 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6757 }
6758
6759 @Override
6760 public String toString() {
6761 StringBuilder sb = new StringBuilder("GetCatalogs_args(");
6762 boolean first = true;
6763
6764 sb.append("req:");
6765 if (this.req == null) {
6766 sb.append("null");
6767 } else {
6768 sb.append(this.req);
6769 }
6770 first = false;
6771 sb.append(")");
6772 return sb.toString();
6773 }
6774
6775 public void validate() throws org.apache.thrift.TException {
6776
6777
6778 if (req != null) {
6779 req.validate();
6780 }
6781 }
6782
6783 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6784 try {
6785 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6786 } catch (org.apache.thrift.TException te) {
6787 throw new java.io.IOException(te);
6788 }
6789 }
6790
6791 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6792 try {
6793 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6794 } catch (org.apache.thrift.TException te) {
6795 throw new java.io.IOException(te);
6796 }
6797 }
6798
6799 private static class GetCatalogs_argsStandardSchemeFactory implements SchemeFactory {
6800 public GetCatalogs_argsStandardScheme getScheme() {
6801 return new GetCatalogs_argsStandardScheme();
6802 }
6803 }
6804
6805 private static class GetCatalogs_argsStandardScheme extends StandardScheme<GetCatalogs_args> {
6806
6807 public void read(org.apache.thrift.protocol.TProtocol iprot, GetCatalogs_args struct) throws org.apache.thrift.TException {
6808 org.apache.thrift.protocol.TField schemeField;
6809 iprot.readStructBegin();
6810 while (true)
6811 {
6812 schemeField = iprot.readFieldBegin();
6813 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6814 break;
6815 }
6816 switch (schemeField.id) {
6817 case 1:
6818 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
6819 struct.req = new TGetCatalogsReq();
6820 struct.req.read(iprot);
6821 struct.setReqIsSet(true);
6822 } else {
6823 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6824 }
6825 break;
6826 default:
6827 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6828 }
6829 iprot.readFieldEnd();
6830 }
6831 iprot.readStructEnd();
6832 struct.validate();
6833 }
6834
6835 public void write(org.apache.thrift.protocol.TProtocol oprot, GetCatalogs_args struct) throws org.apache.thrift.TException {
6836 struct.validate();
6837
6838 oprot.writeStructBegin(STRUCT_DESC);
6839 if (struct.req != null) {
6840 oprot.writeFieldBegin(REQ_FIELD_DESC);
6841 struct.req.write(oprot);
6842 oprot.writeFieldEnd();
6843 }
6844 oprot.writeFieldStop();
6845 oprot.writeStructEnd();
6846 }
6847
6848 }
6849
6850 private static class GetCatalogs_argsTupleSchemeFactory implements SchemeFactory {
6851 public GetCatalogs_argsTupleScheme getScheme() {
6852 return new GetCatalogs_argsTupleScheme();
6853 }
6854 }
6855
6856 private static class GetCatalogs_argsTupleScheme extends TupleScheme<GetCatalogs_args> {
6857
6858 @Override
6859 public void write(org.apache.thrift.protocol.TProtocol prot, GetCatalogs_args struct) throws org.apache.thrift.TException {
6860 TTupleProtocol oprot = (TTupleProtocol) prot;
6861 BitSet optionals = new BitSet();
6862 if (struct.isSetReq()) {
6863 optionals.set(0);
6864 }
6865 oprot.writeBitSet(optionals, 1);
6866 if (struct.isSetReq()) {
6867 struct.req.write(oprot);
6868 }
6869 }
6870
6871 @Override
6872 public void read(org.apache.thrift.protocol.TProtocol prot, GetCatalogs_args struct) throws org.apache.thrift.TException {
6873 TTupleProtocol iprot = (TTupleProtocol) prot;
6874 BitSet incoming = iprot.readBitSet(1);
6875 if (incoming.get(0)) {
6876 struct.req = new TGetCatalogsReq();
6877 struct.req.read(iprot);
6878 struct.setReqIsSet(true);
6879 }
6880 }
6881 }
6882
6883 }
6884
6885 public static class GetCatalogs_result implements org.apache.thrift.TBase<GetCatalogs_result, GetCatalogs_result._Fields>, java.io.Serializable, Cloneable, Comparable<GetCatalogs_result> {
6886 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetCatalogs_result");
6887
6888 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);
6889
6890 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6891 static {
6892 schemes.put(StandardScheme.class, new GetCatalogs_resultStandardSchemeFactory());
6893 schemes.put(TupleScheme.class, new GetCatalogs_resultTupleSchemeFactory());
6894 }
6895
6896 private TGetCatalogsResp success;
6897
6898
6899 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6900 SUCCESS((short)0, "success");
6901
6902 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6903
6904 static {
6905 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6906 byName.put(field.getFieldName(), field);
6907 }
6908 }
6909
6910
6911
6912
6913 public static _Fields findByThriftId(int fieldId) {
6914 switch(fieldId) {
6915 case 0:
6916 return SUCCESS;
6917 default:
6918 return null;
6919 }
6920 }
6921
6922
6923
6924
6925
6926 public static _Fields findByThriftIdOrThrow(int fieldId) {
6927 _Fields fields = findByThriftId(fieldId);
6928 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6929 return fields;
6930 }
6931
6932
6933
6934
6935 public static _Fields findByName(String name) {
6936 return byName.get(name);
6937 }
6938
6939 private final short _thriftId;
6940 private final String _fieldName;
6941
6942 _Fields(short thriftId, String fieldName) {
6943 _thriftId = thriftId;
6944 _fieldName = fieldName;
6945 }
6946
6947 public short getThriftFieldId() {
6948 return _thriftId;
6949 }
6950
6951 public String getFieldName() {
6952 return _fieldName;
6953 }
6954 }
6955
6956
6957 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6958 static {
6959 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6960 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
6961 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetCatalogsResp.class)));
6962 metaDataMap = Collections.unmodifiableMap(tmpMap);
6963 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetCatalogs_result.class, metaDataMap);
6964 }
6965
6966 public GetCatalogs_result() {
6967 }
6968
6969 public GetCatalogs_result(
6970 TGetCatalogsResp success)
6971 {
6972 this();
6973 this.success = success;
6974 }
6975
6976
6977
6978
6979 public GetCatalogs_result(GetCatalogs_result other) {
6980 if (other.isSetSuccess()) {
6981 this.success = new TGetCatalogsResp(other.success);
6982 }
6983 }
6984
6985 public GetCatalogs_result deepCopy() {
6986 return new GetCatalogs_result(this);
6987 }
6988
6989 @Override
6990 public void clear() {
6991 this.success = null;
6992 }
6993
6994 public TGetCatalogsResp getSuccess() {
6995 return this.success;
6996 }
6997
6998 public void setSuccess(TGetCatalogsResp success) {
6999 this.success = success;
7000 }
7001
7002 public void unsetSuccess() {
7003 this.success = null;
7004 }
7005
7006
7007 public boolean isSetSuccess() {
7008 return this.success != null;
7009 }
7010
7011 public void setSuccessIsSet(boolean value) {
7012 if (!value) {
7013 this.success = null;
7014 }
7015 }
7016
7017 public void setFieldValue(_Fields field, Object value) {
7018 switch (field) {
7019 case SUCCESS:
7020 if (value == null) {
7021 unsetSuccess();
7022 } else {
7023 setSuccess((TGetCatalogsResp)value);
7024 }
7025 break;
7026
7027 }
7028 }
7029
7030 public Object getFieldValue(_Fields field) {
7031 switch (field) {
7032 case SUCCESS:
7033 return getSuccess();
7034
7035 }
7036 throw new IllegalStateException();
7037 }
7038
7039
7040 public boolean isSet(_Fields field) {
7041 if (field == null) {
7042 throw new IllegalArgumentException();
7043 }
7044
7045 switch (field) {
7046 case SUCCESS:
7047 return isSetSuccess();
7048 }
7049 throw new IllegalStateException();
7050 }
7051
7052 @Override
7053 public boolean equals(Object that) {
7054 if (that == null)
7055 return false;
7056 if (that instanceof GetCatalogs_result)
7057 return this.equals((GetCatalogs_result)that);
7058 return false;
7059 }
7060
7061 public boolean equals(GetCatalogs_result that) {
7062 if (that == null)
7063 return false;
7064
7065 boolean this_present_success = true && this.isSetSuccess();
7066 boolean that_present_success = true && that.isSetSuccess();
7067 if (this_present_success || that_present_success) {
7068 if (!(this_present_success && that_present_success))
7069 return false;
7070 if (!this.success.equals(that.success))
7071 return false;
7072 }
7073
7074 return true;
7075 }
7076
7077 @Override
7078 public int hashCode() {
7079 List<Object> list = new ArrayList<Object>();
7080
7081 boolean present_success = true && (isSetSuccess());
7082 list.add(present_success);
7083 if (present_success)
7084 list.add(success);
7085
7086 return list.hashCode();
7087 }
7088
7089 @Override
7090 public int compareTo(GetCatalogs_result other) {
7091 if (!getClass().equals(other.getClass())) {
7092 return getClass().getName().compareTo(other.getClass().getName());
7093 }
7094
7095 int lastComparison = 0;
7096
7097 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
7098 if (lastComparison != 0) {
7099 return lastComparison;
7100 }
7101 if (isSetSuccess()) {
7102 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
7103 if (lastComparison != 0) {
7104 return lastComparison;
7105 }
7106 }
7107 return 0;
7108 }
7109
7110 public _Fields fieldForId(int fieldId) {
7111 return _Fields.findByThriftId(fieldId);
7112 }
7113
7114 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7115 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7116 }
7117
7118 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7119 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7120 }
7121
7122 @Override
7123 public String toString() {
7124 StringBuilder sb = new StringBuilder("GetCatalogs_result(");
7125 boolean first = true;
7126
7127 sb.append("success:");
7128 if (this.success == null) {
7129 sb.append("null");
7130 } else {
7131 sb.append(this.success);
7132 }
7133 first = false;
7134 sb.append(")");
7135 return sb.toString();
7136 }
7137
7138 public void validate() throws org.apache.thrift.TException {
7139
7140
7141 if (success != null) {
7142 success.validate();
7143 }
7144 }
7145
7146 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7147 try {
7148 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7149 } catch (org.apache.thrift.TException te) {
7150 throw new java.io.IOException(te);
7151 }
7152 }
7153
7154 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7155 try {
7156 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7157 } catch (org.apache.thrift.TException te) {
7158 throw new java.io.IOException(te);
7159 }
7160 }
7161
7162 private static class GetCatalogs_resultStandardSchemeFactory implements SchemeFactory {
7163 public GetCatalogs_resultStandardScheme getScheme() {
7164 return new GetCatalogs_resultStandardScheme();
7165 }
7166 }
7167
7168 private static class GetCatalogs_resultStandardScheme extends StandardScheme<GetCatalogs_result> {
7169
7170 public void read(org.apache.thrift.protocol.TProtocol iprot, GetCatalogs_result struct) throws org.apache.thrift.TException {
7171 org.apache.thrift.protocol.TField schemeField;
7172 iprot.readStructBegin();
7173 while (true)
7174 {
7175 schemeField = iprot.readFieldBegin();
7176 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7177 break;
7178 }
7179 switch (schemeField.id) {
7180 case 0:
7181 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
7182 struct.success = new TGetCatalogsResp();
7183 struct.success.read(iprot);
7184 struct.setSuccessIsSet(true);
7185 } else {
7186 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7187 }
7188 break;
7189 default:
7190 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7191 }
7192 iprot.readFieldEnd();
7193 }
7194 iprot.readStructEnd();
7195 struct.validate();
7196 }
7197
7198 public void write(org.apache.thrift.protocol.TProtocol oprot, GetCatalogs_result struct) throws org.apache.thrift.TException {
7199 struct.validate();
7200
7201 oprot.writeStructBegin(STRUCT_DESC);
7202 if (struct.success != null) {
7203 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7204 struct.success.write(oprot);
7205 oprot.writeFieldEnd();
7206 }
7207 oprot.writeFieldStop();
7208 oprot.writeStructEnd();
7209 }
7210
7211 }
7212
7213 private static class GetCatalogs_resultTupleSchemeFactory implements SchemeFactory {
7214 public GetCatalogs_resultTupleScheme getScheme() {
7215 return new GetCatalogs_resultTupleScheme();
7216 }
7217 }
7218
7219 private static class GetCatalogs_resultTupleScheme extends TupleScheme<GetCatalogs_result> {
7220
7221 @Override
7222 public void write(org.apache.thrift.protocol.TProtocol prot, GetCatalogs_result struct) throws org.apache.thrift.TException {
7223 TTupleProtocol oprot = (TTupleProtocol) prot;
7224 BitSet optionals = new BitSet();
7225 if (struct.isSetSuccess()) {
7226 optionals.set(0);
7227 }
7228 oprot.writeBitSet(optionals, 1);
7229 if (struct.isSetSuccess()) {
7230 struct.success.write(oprot);
7231 }
7232 }
7233
7234 @Override
7235 public void read(org.apache.thrift.protocol.TProtocol prot, GetCatalogs_result struct) throws org.apache.thrift.TException {
7236 TTupleProtocol iprot = (TTupleProtocol) prot;
7237 BitSet incoming = iprot.readBitSet(1);
7238 if (incoming.get(0)) {
7239 struct.success = new TGetCatalogsResp();
7240 struct.success.read(iprot);
7241 struct.setSuccessIsSet(true);
7242 }
7243 }
7244 }
7245
7246 }
7247
7248 public static class GetSchemas_args implements org.apache.thrift.TBase<GetSchemas_args, GetSchemas_args._Fields>, java.io.Serializable, Cloneable, Comparable<GetSchemas_args> {
7249 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetSchemas_args");
7250
7251 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);
7252
7253 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7254 static {
7255 schemes.put(StandardScheme.class, new GetSchemas_argsStandardSchemeFactory());
7256 schemes.put(TupleScheme.class, new GetSchemas_argsTupleSchemeFactory());
7257 }
7258
7259 private TGetSchemasReq req;
7260
7261
7262 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7263 REQ((short)1, "req");
7264
7265 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7266
7267 static {
7268 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7269 byName.put(field.getFieldName(), field);
7270 }
7271 }
7272
7273
7274
7275
7276 public static _Fields findByThriftId(int fieldId) {
7277 switch(fieldId) {
7278 case 1:
7279 return REQ;
7280 default:
7281 return null;
7282 }
7283 }
7284
7285
7286
7287
7288
7289 public static _Fields findByThriftIdOrThrow(int fieldId) {
7290 _Fields fields = findByThriftId(fieldId);
7291 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7292 return fields;
7293 }
7294
7295
7296
7297
7298 public static _Fields findByName(String name) {
7299 return byName.get(name);
7300 }
7301
7302 private final short _thriftId;
7303 private final String _fieldName;
7304
7305 _Fields(short thriftId, String fieldName) {
7306 _thriftId = thriftId;
7307 _fieldName = fieldName;
7308 }
7309
7310 public short getThriftFieldId() {
7311 return _thriftId;
7312 }
7313
7314 public String getFieldName() {
7315 return _fieldName;
7316 }
7317 }
7318
7319
7320 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7321 static {
7322 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7323 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
7324 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetSchemasReq.class)));
7325 metaDataMap = Collections.unmodifiableMap(tmpMap);
7326 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetSchemas_args.class, metaDataMap);
7327 }
7328
7329 public GetSchemas_args() {
7330 }
7331
7332 public GetSchemas_args(
7333 TGetSchemasReq req)
7334 {
7335 this();
7336 this.req = req;
7337 }
7338
7339
7340
7341
7342 public GetSchemas_args(GetSchemas_args other) {
7343 if (other.isSetReq()) {
7344 this.req = new TGetSchemasReq(other.req);
7345 }
7346 }
7347
7348 public GetSchemas_args deepCopy() {
7349 return new GetSchemas_args(this);
7350 }
7351
7352 @Override
7353 public void clear() {
7354 this.req = null;
7355 }
7356
7357 public TGetSchemasReq getReq() {
7358 return this.req;
7359 }
7360
7361 public void setReq(TGetSchemasReq req) {
7362 this.req = req;
7363 }
7364
7365 public void unsetReq() {
7366 this.req = null;
7367 }
7368
7369
7370 public boolean isSetReq() {
7371 return this.req != null;
7372 }
7373
7374 public void setReqIsSet(boolean value) {
7375 if (!value) {
7376 this.req = null;
7377 }
7378 }
7379
7380 public void setFieldValue(_Fields field, Object value) {
7381 switch (field) {
7382 case REQ:
7383 if (value == null) {
7384 unsetReq();
7385 } else {
7386 setReq((TGetSchemasReq)value);
7387 }
7388 break;
7389
7390 }
7391 }
7392
7393 public Object getFieldValue(_Fields field) {
7394 switch (field) {
7395 case REQ:
7396 return getReq();
7397
7398 }
7399 throw new IllegalStateException();
7400 }
7401
7402
7403 public boolean isSet(_Fields field) {
7404 if (field == null) {
7405 throw new IllegalArgumentException();
7406 }
7407
7408 switch (field) {
7409 case REQ:
7410 return isSetReq();
7411 }
7412 throw new IllegalStateException();
7413 }
7414
7415 @Override
7416 public boolean equals(Object that) {
7417 if (that == null)
7418 return false;
7419 if (that instanceof GetSchemas_args)
7420 return this.equals((GetSchemas_args)that);
7421 return false;
7422 }
7423
7424 public boolean equals(GetSchemas_args that) {
7425 if (that == null)
7426 return false;
7427
7428 boolean this_present_req = true && this.isSetReq();
7429 boolean that_present_req = true && that.isSetReq();
7430 if (this_present_req || that_present_req) {
7431 if (!(this_present_req && that_present_req))
7432 return false;
7433 if (!this.req.equals(that.req))
7434 return false;
7435 }
7436
7437 return true;
7438 }
7439
7440 @Override
7441 public int hashCode() {
7442 List<Object> list = new ArrayList<Object>();
7443
7444 boolean present_req = true && (isSetReq());
7445 list.add(present_req);
7446 if (present_req)
7447 list.add(req);
7448
7449 return list.hashCode();
7450 }
7451
7452 @Override
7453 public int compareTo(GetSchemas_args other) {
7454 if (!getClass().equals(other.getClass())) {
7455 return getClass().getName().compareTo(other.getClass().getName());
7456 }
7457
7458 int lastComparison = 0;
7459
7460 lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
7461 if (lastComparison != 0) {
7462 return lastComparison;
7463 }
7464 if (isSetReq()) {
7465 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
7466 if (lastComparison != 0) {
7467 return lastComparison;
7468 }
7469 }
7470 return 0;
7471 }
7472
7473 public _Fields fieldForId(int fieldId) {
7474 return _Fields.findByThriftId(fieldId);
7475 }
7476
7477 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7478 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7479 }
7480
7481 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7482 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7483 }
7484
7485 @Override
7486 public String toString() {
7487 StringBuilder sb = new StringBuilder("GetSchemas_args(");
7488 boolean first = true;
7489
7490 sb.append("req:");
7491 if (this.req == null) {
7492 sb.append("null");
7493 } else {
7494 sb.append(this.req);
7495 }
7496 first = false;
7497 sb.append(")");
7498 return sb.toString();
7499 }
7500
7501 public void validate() throws org.apache.thrift.TException {
7502
7503
7504 if (req != null) {
7505 req.validate();
7506 }
7507 }
7508
7509 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7510 try {
7511 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7512 } catch (org.apache.thrift.TException te) {
7513 throw new java.io.IOException(te);
7514 }
7515 }
7516
7517 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7518 try {
7519 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7520 } catch (org.apache.thrift.TException te) {
7521 throw new java.io.IOException(te);
7522 }
7523 }
7524
7525 private static class GetSchemas_argsStandardSchemeFactory implements SchemeFactory {
7526 public GetSchemas_argsStandardScheme getScheme() {
7527 return new GetSchemas_argsStandardScheme();
7528 }
7529 }
7530
7531 private static class GetSchemas_argsStandardScheme extends StandardScheme<GetSchemas_args> {
7532
7533 public void read(org.apache.thrift.protocol.TProtocol iprot, GetSchemas_args struct) throws org.apache.thrift.TException {
7534 org.apache.thrift.protocol.TField schemeField;
7535 iprot.readStructBegin();
7536 while (true)
7537 {
7538 schemeField = iprot.readFieldBegin();
7539 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7540 break;
7541 }
7542 switch (schemeField.id) {
7543 case 1:
7544 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
7545 struct.req = new TGetSchemasReq();
7546 struct.req.read(iprot);
7547 struct.setReqIsSet(true);
7548 } else {
7549 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7550 }
7551 break;
7552 default:
7553 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7554 }
7555 iprot.readFieldEnd();
7556 }
7557 iprot.readStructEnd();
7558 struct.validate();
7559 }
7560
7561 public void write(org.apache.thrift.protocol.TProtocol oprot, GetSchemas_args struct) throws org.apache.thrift.TException {
7562 struct.validate();
7563
7564 oprot.writeStructBegin(STRUCT_DESC);
7565 if (struct.req != null) {
7566 oprot.writeFieldBegin(REQ_FIELD_DESC);
7567 struct.req.write(oprot);
7568 oprot.writeFieldEnd();
7569 }
7570 oprot.writeFieldStop();
7571 oprot.writeStructEnd();
7572 }
7573
7574 }
7575
7576 private static class GetSchemas_argsTupleSchemeFactory implements SchemeFactory {
7577 public GetSchemas_argsTupleScheme getScheme() {
7578 return new GetSchemas_argsTupleScheme();
7579 }
7580 }
7581
7582 private static class GetSchemas_argsTupleScheme extends TupleScheme<GetSchemas_args> {
7583
7584 @Override
7585 public void write(org.apache.thrift.protocol.TProtocol prot, GetSchemas_args struct) throws org.apache.thrift.TException {
7586 TTupleProtocol oprot = (TTupleProtocol) prot;
7587 BitSet optionals = new BitSet();
7588 if (struct.isSetReq()) {
7589 optionals.set(0);
7590 }
7591 oprot.writeBitSet(optionals, 1);
7592 if (struct.isSetReq()) {
7593 struct.req.write(oprot);
7594 }
7595 }
7596
7597 @Override
7598 public void read(org.apache.thrift.protocol.TProtocol prot, GetSchemas_args struct) throws org.apache.thrift.TException {
7599 TTupleProtocol iprot = (TTupleProtocol) prot;
7600 BitSet incoming = iprot.readBitSet(1);
7601 if (incoming.get(0)) {
7602 struct.req = new TGetSchemasReq();
7603 struct.req.read(iprot);
7604 struct.setReqIsSet(true);
7605 }
7606 }
7607 }
7608
7609 }
7610
7611 public static class GetSchemas_result implements org.apache.thrift.TBase<GetSchemas_result, GetSchemas_result._Fields>, java.io.Serializable, Cloneable, Comparable<GetSchemas_result> {
7612 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetSchemas_result");
7613
7614 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);
7615
7616 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7617 static {
7618 schemes.put(StandardScheme.class, new GetSchemas_resultStandardSchemeFactory());
7619 schemes.put(TupleScheme.class, new GetSchemas_resultTupleSchemeFactory());
7620 }
7621
7622 private TGetSchemasResp success;
7623
7624
7625 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7626 SUCCESS((short)0, "success");
7627
7628 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7629
7630 static {
7631 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7632 byName.put(field.getFieldName(), field);
7633 }
7634 }
7635
7636
7637
7638
7639 public static _Fields findByThriftId(int fieldId) {
7640 switch(fieldId) {
7641 case 0:
7642 return SUCCESS;
7643 default:
7644 return null;
7645 }
7646 }
7647
7648
7649
7650
7651
7652 public static _Fields findByThriftIdOrThrow(int fieldId) {
7653 _Fields fields = findByThriftId(fieldId);
7654 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7655 return fields;
7656 }
7657
7658
7659
7660
7661 public static _Fields findByName(String name) {
7662 return byName.get(name);
7663 }
7664
7665 private final short _thriftId;
7666 private final String _fieldName;
7667
7668 _Fields(short thriftId, String fieldName) {
7669 _thriftId = thriftId;
7670 _fieldName = fieldName;
7671 }
7672
7673 public short getThriftFieldId() {
7674 return _thriftId;
7675 }
7676
7677 public String getFieldName() {
7678 return _fieldName;
7679 }
7680 }
7681
7682
7683 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7684 static {
7685 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7686 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
7687 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetSchemasResp.class)));
7688 metaDataMap = Collections.unmodifiableMap(tmpMap);
7689 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetSchemas_result.class, metaDataMap);
7690 }
7691
7692 public GetSchemas_result() {
7693 }
7694
7695 public GetSchemas_result(
7696 TGetSchemasResp success)
7697 {
7698 this();
7699 this.success = success;
7700 }
7701
7702
7703
7704
7705 public GetSchemas_result(GetSchemas_result other) {
7706 if (other.isSetSuccess()) {
7707 this.success = new TGetSchemasResp(other.success);
7708 }
7709 }
7710
7711 public GetSchemas_result deepCopy() {
7712 return new GetSchemas_result(this);
7713 }
7714
7715 @Override
7716 public void clear() {
7717 this.success = null;
7718 }
7719
7720 public TGetSchemasResp getSuccess() {
7721 return this.success;
7722 }
7723
7724 public void setSuccess(TGetSchemasResp success) {
7725 this.success = success;
7726 }
7727
7728 public void unsetSuccess() {
7729 this.success = null;
7730 }
7731
7732
7733 public boolean isSetSuccess() {
7734 return this.success != null;
7735 }
7736
7737 public void setSuccessIsSet(boolean value) {
7738 if (!value) {
7739 this.success = null;
7740 }
7741 }
7742
7743 public void setFieldValue(_Fields field, Object value) {
7744 switch (field) {
7745 case SUCCESS:
7746 if (value == null) {
7747 unsetSuccess();
7748 } else {
7749 setSuccess((TGetSchemasResp)value);
7750 }
7751 break;
7752
7753 }
7754 }
7755
7756 public Object getFieldValue(_Fields field) {
7757 switch (field) {
7758 case SUCCESS:
7759 return getSuccess();
7760
7761 }
7762 throw new IllegalStateException();
7763 }
7764
7765
7766 public boolean isSet(_Fields field) {
7767 if (field == null) {
7768 throw new IllegalArgumentException();
7769 }
7770
7771 switch (field) {
7772 case SUCCESS:
7773 return isSetSuccess();
7774 }
7775 throw new IllegalStateException();
7776 }
7777
7778 @Override
7779 public boolean equals(Object that) {
7780 if (that == null)
7781 return false;
7782 if (that instanceof GetSchemas_result)
7783 return this.equals((GetSchemas_result)that);
7784 return false;
7785 }
7786
7787 public boolean equals(GetSchemas_result that) {
7788 if (that == null)
7789 return false;
7790
7791 boolean this_present_success = true && this.isSetSuccess();
7792 boolean that_present_success = true && that.isSetSuccess();
7793 if (this_present_success || that_present_success) {
7794 if (!(this_present_success && that_present_success))
7795 return false;
7796 if (!this.success.equals(that.success))
7797 return false;
7798 }
7799
7800 return true;
7801 }
7802
7803 @Override
7804 public int hashCode() {
7805 List<Object> list = new ArrayList<Object>();
7806
7807 boolean present_success = true && (isSetSuccess());
7808 list.add(present_success);
7809 if (present_success)
7810 list.add(success);
7811
7812 return list.hashCode();
7813 }
7814
7815 @Override
7816 public int compareTo(GetSchemas_result other) {
7817 if (!getClass().equals(other.getClass())) {
7818 return getClass().getName().compareTo(other.getClass().getName());
7819 }
7820
7821 int lastComparison = 0;
7822
7823 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
7824 if (lastComparison != 0) {
7825 return lastComparison;
7826 }
7827 if (isSetSuccess()) {
7828 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
7829 if (lastComparison != 0) {
7830 return lastComparison;
7831 }
7832 }
7833 return 0;
7834 }
7835
7836 public _Fields fieldForId(int fieldId) {
7837 return _Fields.findByThriftId(fieldId);
7838 }
7839
7840 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7841 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7842 }
7843
7844 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7845 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7846 }
7847
7848 @Override
7849 public String toString() {
7850 StringBuilder sb = new StringBuilder("GetSchemas_result(");
7851 boolean first = true;
7852
7853 sb.append("success:");
7854 if (this.success == null) {
7855 sb.append("null");
7856 } else {
7857 sb.append(this.success);
7858 }
7859 first = false;
7860 sb.append(")");
7861 return sb.toString();
7862 }
7863
7864 public void validate() throws org.apache.thrift.TException {
7865
7866
7867 if (success != null) {
7868 success.validate();
7869 }
7870 }
7871
7872 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7873 try {
7874 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7875 } catch (org.apache.thrift.TException te) {
7876 throw new java.io.IOException(te);
7877 }
7878 }
7879
7880 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7881 try {
7882 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7883 } catch (org.apache.thrift.TException te) {
7884 throw new java.io.IOException(te);
7885 }
7886 }
7887
7888 private static class GetSchemas_resultStandardSchemeFactory implements SchemeFactory {
7889 public GetSchemas_resultStandardScheme getScheme() {
7890 return new GetSchemas_resultStandardScheme();
7891 }
7892 }
7893
7894 private static class GetSchemas_resultStandardScheme extends StandardScheme<GetSchemas_result> {
7895
7896 public void read(org.apache.thrift.protocol.TProtocol iprot, GetSchemas_result struct) throws org.apache.thrift.TException {
7897 org.apache.thrift.protocol.TField schemeField;
7898 iprot.readStructBegin();
7899 while (true)
7900 {
7901 schemeField = iprot.readFieldBegin();
7902 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7903 break;
7904 }
7905 switch (schemeField.id) {
7906 case 0:
7907 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
7908 struct.success = new TGetSchemasResp();
7909 struct.success.read(iprot);
7910 struct.setSuccessIsSet(true);
7911 } else {
7912 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7913 }
7914 break;
7915 default:
7916 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7917 }
7918 iprot.readFieldEnd();
7919 }
7920 iprot.readStructEnd();
7921 struct.validate();
7922 }
7923
7924 public void write(org.apache.thrift.protocol.TProtocol oprot, GetSchemas_result struct) throws org.apache.thrift.TException {
7925 struct.validate();
7926
7927 oprot.writeStructBegin(STRUCT_DESC);
7928 if (struct.success != null) {
7929 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7930 struct.success.write(oprot);
7931 oprot.writeFieldEnd();
7932 }
7933 oprot.writeFieldStop();
7934 oprot.writeStructEnd();
7935 }
7936
7937 }
7938
7939 private static class GetSchemas_resultTupleSchemeFactory implements SchemeFactory {
7940 public GetSchemas_resultTupleScheme getScheme() {
7941 return new GetSchemas_resultTupleScheme();
7942 }
7943 }
7944
7945 private static class GetSchemas_resultTupleScheme extends TupleScheme<GetSchemas_result> {
7946
7947 @Override
7948 public void write(org.apache.thrift.protocol.TProtocol prot, GetSchemas_result struct) throws org.apache.thrift.TException {
7949 TTupleProtocol oprot = (TTupleProtocol) prot;
7950 BitSet optionals = new BitSet();
7951 if (struct.isSetSuccess()) {
7952 optionals.set(0);
7953 }
7954 oprot.writeBitSet(optionals, 1);
7955 if (struct.isSetSuccess()) {
7956 struct.success.write(oprot);
7957 }
7958 }
7959
7960 @Override
7961 public void read(org.apache.thrift.protocol.TProtocol prot, GetSchemas_result struct) throws org.apache.thrift.TException {
7962 TTupleProtocol iprot = (TTupleProtocol) prot;
7963 BitSet incoming = iprot.readBitSet(1);
7964 if (incoming.get(0)) {
7965 struct.success = new TGetSchemasResp();
7966 struct.success.read(iprot);
7967 struct.setSuccessIsSet(true);
7968 }
7969 }
7970 }
7971
7972 }
7973
7974 public static class GetTables_args implements org.apache.thrift.TBase<GetTables_args, GetTables_args._Fields>, java.io.Serializable, Cloneable, Comparable<GetTables_args> {
7975 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTables_args");
7976
7977 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);
7978
7979 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7980 static {
7981 schemes.put(StandardScheme.class, new GetTables_argsStandardSchemeFactory());
7982 schemes.put(TupleScheme.class, new GetTables_argsTupleSchemeFactory());
7983 }
7984
7985 private TGetTablesReq req;
7986
7987
7988 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7989 REQ((short)1, "req");
7990
7991 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7992
7993 static {
7994 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7995 byName.put(field.getFieldName(), field);
7996 }
7997 }
7998
7999
8000
8001
8002 public static _Fields findByThriftId(int fieldId) {
8003 switch(fieldId) {
8004 case 1:
8005 return REQ;
8006 default:
8007 return null;
8008 }
8009 }
8010
8011
8012
8013
8014
8015 public static _Fields findByThriftIdOrThrow(int fieldId) {
8016 _Fields fields = findByThriftId(fieldId);
8017 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8018 return fields;
8019 }
8020
8021
8022
8023
8024 public static _Fields findByName(String name) {
8025 return byName.get(name);
8026 }
8027
8028 private final short _thriftId;
8029 private final String _fieldName;
8030
8031 _Fields(short thriftId, String fieldName) {
8032 _thriftId = thriftId;
8033 _fieldName = fieldName;
8034 }
8035
8036 public short getThriftFieldId() {
8037 return _thriftId;
8038 }
8039
8040 public String getFieldName() {
8041 return _fieldName;
8042 }
8043 }
8044
8045
8046 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8047 static {
8048 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8049 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
8050 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetTablesReq.class)));
8051 metaDataMap = Collections.unmodifiableMap(tmpMap);
8052 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetTables_args.class, metaDataMap);
8053 }
8054
8055 public GetTables_args() {
8056 }
8057
8058 public GetTables_args(
8059 TGetTablesReq req)
8060 {
8061 this();
8062 this.req = req;
8063 }
8064
8065
8066
8067
8068 public GetTables_args(GetTables_args other) {
8069 if (other.isSetReq()) {
8070 this.req = new TGetTablesReq(other.req);
8071 }
8072 }
8073
8074 public GetTables_args deepCopy() {
8075 return new GetTables_args(this);
8076 }
8077
8078 @Override
8079 public void clear() {
8080 this.req = null;
8081 }
8082
8083 public TGetTablesReq getReq() {
8084 return this.req;
8085 }
8086
8087 public void setReq(TGetTablesReq req) {
8088 this.req = req;
8089 }
8090
8091 public void unsetReq() {
8092 this.req = null;
8093 }
8094
8095
8096 public boolean isSetReq() {
8097 return this.req != null;
8098 }
8099
8100 public void setReqIsSet(boolean value) {
8101 if (!value) {
8102 this.req = null;
8103 }
8104 }
8105
8106 public void setFieldValue(_Fields field, Object value) {
8107 switch (field) {
8108 case REQ:
8109 if (value == null) {
8110 unsetReq();
8111 } else {
8112 setReq((TGetTablesReq)value);
8113 }
8114 break;
8115
8116 }
8117 }
8118
8119 public Object getFieldValue(_Fields field) {
8120 switch (field) {
8121 case REQ:
8122 return getReq();
8123
8124 }
8125 throw new IllegalStateException();
8126 }
8127
8128
8129 public boolean isSet(_Fields field) {
8130 if (field == null) {
8131 throw new IllegalArgumentException();
8132 }
8133
8134 switch (field) {
8135 case REQ:
8136 return isSetReq();
8137 }
8138 throw new IllegalStateException();
8139 }
8140
8141 @Override
8142 public boolean equals(Object that) {
8143 if (that == null)
8144 return false;
8145 if (that instanceof GetTables_args)
8146 return this.equals((GetTables_args)that);
8147 return false;
8148 }
8149
8150 public boolean equals(GetTables_args that) {
8151 if (that == null)
8152 return false;
8153
8154 boolean this_present_req = true && this.isSetReq();
8155 boolean that_present_req = true && that.isSetReq();
8156 if (this_present_req || that_present_req) {
8157 if (!(this_present_req && that_present_req))
8158 return false;
8159 if (!this.req.equals(that.req))
8160 return false;
8161 }
8162
8163 return true;
8164 }
8165
8166 @Override
8167 public int hashCode() {
8168 List<Object> list = new ArrayList<Object>();
8169
8170 boolean present_req = true && (isSetReq());
8171 list.add(present_req);
8172 if (present_req)
8173 list.add(req);
8174
8175 return list.hashCode();
8176 }
8177
8178 @Override
8179 public int compareTo(GetTables_args other) {
8180 if (!getClass().equals(other.getClass())) {
8181 return getClass().getName().compareTo(other.getClass().getName());
8182 }
8183
8184 int lastComparison = 0;
8185
8186 lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
8187 if (lastComparison != 0) {
8188 return lastComparison;
8189 }
8190 if (isSetReq()) {
8191 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
8192 if (lastComparison != 0) {
8193 return lastComparison;
8194 }
8195 }
8196 return 0;
8197 }
8198
8199 public _Fields fieldForId(int fieldId) {
8200 return _Fields.findByThriftId(fieldId);
8201 }
8202
8203 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8204 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8205 }
8206
8207 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8208 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8209 }
8210
8211 @Override
8212 public String toString() {
8213 StringBuilder sb = new StringBuilder("GetTables_args(");
8214 boolean first = true;
8215
8216 sb.append("req:");
8217 if (this.req == null) {
8218 sb.append("null");
8219 } else {
8220 sb.append(this.req);
8221 }
8222 first = false;
8223 sb.append(")");
8224 return sb.toString();
8225 }
8226
8227 public void validate() throws org.apache.thrift.TException {
8228
8229
8230 if (req != null) {
8231 req.validate();
8232 }
8233 }
8234
8235 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8236 try {
8237 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8238 } catch (org.apache.thrift.TException te) {
8239 throw new java.io.IOException(te);
8240 }
8241 }
8242
8243 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8244 try {
8245 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8246 } catch (org.apache.thrift.TException te) {
8247 throw new java.io.IOException(te);
8248 }
8249 }
8250
8251 private static class GetTables_argsStandardSchemeFactory implements SchemeFactory {
8252 public GetTables_argsStandardScheme getScheme() {
8253 return new GetTables_argsStandardScheme();
8254 }
8255 }
8256
8257 private static class GetTables_argsStandardScheme extends StandardScheme<GetTables_args> {
8258
8259 public void read(org.apache.thrift.protocol.TProtocol iprot, GetTables_args struct) throws org.apache.thrift.TException {
8260 org.apache.thrift.protocol.TField schemeField;
8261 iprot.readStructBegin();
8262 while (true)
8263 {
8264 schemeField = iprot.readFieldBegin();
8265 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8266 break;
8267 }
8268 switch (schemeField.id) {
8269 case 1:
8270 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
8271 struct.req = new TGetTablesReq();
8272 struct.req.read(iprot);
8273 struct.setReqIsSet(true);
8274 } else {
8275 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8276 }
8277 break;
8278 default:
8279 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8280 }
8281 iprot.readFieldEnd();
8282 }
8283 iprot.readStructEnd();
8284 struct.validate();
8285 }
8286
8287 public void write(org.apache.thrift.protocol.TProtocol oprot, GetTables_args struct) throws org.apache.thrift.TException {
8288 struct.validate();
8289
8290 oprot.writeStructBegin(STRUCT_DESC);
8291 if (struct.req != null) {
8292 oprot.writeFieldBegin(REQ_FIELD_DESC);
8293 struct.req.write(oprot);
8294 oprot.writeFieldEnd();
8295 }
8296 oprot.writeFieldStop();
8297 oprot.writeStructEnd();
8298 }
8299
8300 }
8301
8302 private static class GetTables_argsTupleSchemeFactory implements SchemeFactory {
8303 public GetTables_argsTupleScheme getScheme() {
8304 return new GetTables_argsTupleScheme();
8305 }
8306 }
8307
8308 private static class GetTables_argsTupleScheme extends TupleScheme<GetTables_args> {
8309
8310 @Override
8311 public void write(org.apache.thrift.protocol.TProtocol prot, GetTables_args struct) throws org.apache.thrift.TException {
8312 TTupleProtocol oprot = (TTupleProtocol) prot;
8313 BitSet optionals = new BitSet();
8314 if (struct.isSetReq()) {
8315 optionals.set(0);
8316 }
8317 oprot.writeBitSet(optionals, 1);
8318 if (struct.isSetReq()) {
8319 struct.req.write(oprot);
8320 }
8321 }
8322
8323 @Override
8324 public void read(org.apache.thrift.protocol.TProtocol prot, GetTables_args struct) throws org.apache.thrift.TException {
8325 TTupleProtocol iprot = (TTupleProtocol) prot;
8326 BitSet incoming = iprot.readBitSet(1);
8327 if (incoming.get(0)) {
8328 struct.req = new TGetTablesReq();
8329 struct.req.read(iprot);
8330 struct.setReqIsSet(true);
8331 }
8332 }
8333 }
8334
8335 }
8336
8337 public static class GetTables_result implements org.apache.thrift.TBase<GetTables_result, GetTables_result._Fields>, java.io.Serializable, Cloneable, Comparable<GetTables_result> {
8338 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTables_result");
8339
8340 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);
8341
8342 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8343 static {
8344 schemes.put(StandardScheme.class, new GetTables_resultStandardSchemeFactory());
8345 schemes.put(TupleScheme.class, new GetTables_resultTupleSchemeFactory());
8346 }
8347
8348 private TGetTablesResp success;
8349
8350
8351 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8352 SUCCESS((short)0, "success");
8353
8354 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8355
8356 static {
8357 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8358 byName.put(field.getFieldName(), field);
8359 }
8360 }
8361
8362
8363
8364
8365 public static _Fields findByThriftId(int fieldId) {
8366 switch(fieldId) {
8367 case 0:
8368 return SUCCESS;
8369 default:
8370 return null;
8371 }
8372 }
8373
8374
8375
8376
8377
8378 public static _Fields findByThriftIdOrThrow(int fieldId) {
8379 _Fields fields = findByThriftId(fieldId);
8380 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8381 return fields;
8382 }
8383
8384
8385
8386
8387 public static _Fields findByName(String name) {
8388 return byName.get(name);
8389 }
8390
8391 private final short _thriftId;
8392 private final String _fieldName;
8393
8394 _Fields(short thriftId, String fieldName) {
8395 _thriftId = thriftId;
8396 _fieldName = fieldName;
8397 }
8398
8399 public short getThriftFieldId() {
8400 return _thriftId;
8401 }
8402
8403 public String getFieldName() {
8404 return _fieldName;
8405 }
8406 }
8407
8408
8409 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8410 static {
8411 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8412 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
8413 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetTablesResp.class)));
8414 metaDataMap = Collections.unmodifiableMap(tmpMap);
8415 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetTables_result.class, metaDataMap);
8416 }
8417
8418 public GetTables_result() {
8419 }
8420
8421 public GetTables_result(
8422 TGetTablesResp success)
8423 {
8424 this();
8425 this.success = success;
8426 }
8427
8428
8429
8430
8431 public GetTables_result(GetTables_result other) {
8432 if (other.isSetSuccess()) {
8433 this.success = new TGetTablesResp(other.success);
8434 }
8435 }
8436
8437 public GetTables_result deepCopy() {
8438 return new GetTables_result(this);
8439 }
8440
8441 @Override
8442 public void clear() {
8443 this.success = null;
8444 }
8445
8446 public TGetTablesResp getSuccess() {
8447 return this.success;
8448 }
8449
8450 public void setSuccess(TGetTablesResp success) {
8451 this.success = success;
8452 }
8453
8454 public void unsetSuccess() {
8455 this.success = null;
8456 }
8457
8458
8459 public boolean isSetSuccess() {
8460 return this.success != null;
8461 }
8462
8463 public void setSuccessIsSet(boolean value) {
8464 if (!value) {
8465 this.success = null;
8466 }
8467 }
8468
8469 public void setFieldValue(_Fields field, Object value) {
8470 switch (field) {
8471 case SUCCESS:
8472 if (value == null) {
8473 unsetSuccess();
8474 } else {
8475 setSuccess((TGetTablesResp)value);
8476 }
8477 break;
8478
8479 }
8480 }
8481
8482 public Object getFieldValue(_Fields field) {
8483 switch (field) {
8484 case SUCCESS:
8485 return getSuccess();
8486
8487 }
8488 throw new IllegalStateException();
8489 }
8490
8491
8492 public boolean isSet(_Fields field) {
8493 if (field == null) {
8494 throw new IllegalArgumentException();
8495 }
8496
8497 switch (field) {
8498 case SUCCESS:
8499 return isSetSuccess();
8500 }
8501 throw new IllegalStateException();
8502 }
8503
8504 @Override
8505 public boolean equals(Object that) {
8506 if (that == null)
8507 return false;
8508 if (that instanceof GetTables_result)
8509 return this.equals((GetTables_result)that);
8510 return false;
8511 }
8512
8513 public boolean equals(GetTables_result that) {
8514 if (that == null)
8515 return false;
8516
8517 boolean this_present_success = true && this.isSetSuccess();
8518 boolean that_present_success = true && that.isSetSuccess();
8519 if (this_present_success || that_present_success) {
8520 if (!(this_present_success && that_present_success))
8521 return false;
8522 if (!this.success.equals(that.success))
8523 return false;
8524 }
8525
8526 return true;
8527 }
8528
8529 @Override
8530 public int hashCode() {
8531 List<Object> list = new ArrayList<Object>();
8532
8533 boolean present_success = true && (isSetSuccess());
8534 list.add(present_success);
8535 if (present_success)
8536 list.add(success);
8537
8538 return list.hashCode();
8539 }
8540
8541 @Override
8542 public int compareTo(GetTables_result other) {
8543 if (!getClass().equals(other.getClass())) {
8544 return getClass().getName().compareTo(other.getClass().getName());
8545 }
8546
8547 int lastComparison = 0;
8548
8549 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
8550 if (lastComparison != 0) {
8551 return lastComparison;
8552 }
8553 if (isSetSuccess()) {
8554 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
8555 if (lastComparison != 0) {
8556 return lastComparison;
8557 }
8558 }
8559 return 0;
8560 }
8561
8562 public _Fields fieldForId(int fieldId) {
8563 return _Fields.findByThriftId(fieldId);
8564 }
8565
8566 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8567 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8568 }
8569
8570 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8571 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8572 }
8573
8574 @Override
8575 public String toString() {
8576 StringBuilder sb = new StringBuilder("GetTables_result(");
8577 boolean first = true;
8578
8579 sb.append("success:");
8580 if (this.success == null) {
8581 sb.append("null");
8582 } else {
8583 sb.append(this.success);
8584 }
8585 first = false;
8586 sb.append(")");
8587 return sb.toString();
8588 }
8589
8590 public void validate() throws org.apache.thrift.TException {
8591
8592
8593 if (success != null) {
8594 success.validate();
8595 }
8596 }
8597
8598 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8599 try {
8600 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8601 } catch (org.apache.thrift.TException te) {
8602 throw new java.io.IOException(te);
8603 }
8604 }
8605
8606 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8607 try {
8608 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8609 } catch (org.apache.thrift.TException te) {
8610 throw new java.io.IOException(te);
8611 }
8612 }
8613
8614 private static class GetTables_resultStandardSchemeFactory implements SchemeFactory {
8615 public GetTables_resultStandardScheme getScheme() {
8616 return new GetTables_resultStandardScheme();
8617 }
8618 }
8619
8620 private static class GetTables_resultStandardScheme extends StandardScheme<GetTables_result> {
8621
8622 public void read(org.apache.thrift.protocol.TProtocol iprot, GetTables_result struct) throws org.apache.thrift.TException {
8623 org.apache.thrift.protocol.TField schemeField;
8624 iprot.readStructBegin();
8625 while (true)
8626 {
8627 schemeField = iprot.readFieldBegin();
8628 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8629 break;
8630 }
8631 switch (schemeField.id) {
8632 case 0:
8633 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
8634 struct.success = new TGetTablesResp();
8635 struct.success.read(iprot);
8636 struct.setSuccessIsSet(true);
8637 } else {
8638 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8639 }
8640 break;
8641 default:
8642 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8643 }
8644 iprot.readFieldEnd();
8645 }
8646 iprot.readStructEnd();
8647 struct.validate();
8648 }
8649
8650 public void write(org.apache.thrift.protocol.TProtocol oprot, GetTables_result struct) throws org.apache.thrift.TException {
8651 struct.validate();
8652
8653 oprot.writeStructBegin(STRUCT_DESC);
8654 if (struct.success != null) {
8655 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8656 struct.success.write(oprot);
8657 oprot.writeFieldEnd();
8658 }
8659 oprot.writeFieldStop();
8660 oprot.writeStructEnd();
8661 }
8662
8663 }
8664
8665 private static class GetTables_resultTupleSchemeFactory implements SchemeFactory {
8666 public GetTables_resultTupleScheme getScheme() {
8667 return new GetTables_resultTupleScheme();
8668 }
8669 }
8670
8671 private static class GetTables_resultTupleScheme extends TupleScheme<GetTables_result> {
8672
8673 @Override
8674 public void write(org.apache.thrift.protocol.TProtocol prot, GetTables_result struct) throws org.apache.thrift.TException {
8675 TTupleProtocol oprot = (TTupleProtocol) prot;
8676 BitSet optionals = new BitSet();
8677 if (struct.isSetSuccess()) {
8678 optionals.set(0);
8679 }
8680 oprot.writeBitSet(optionals, 1);
8681 if (struct.isSetSuccess()) {
8682 struct.success.write(oprot);
8683 }
8684 }
8685
8686 @Override
8687 public void read(org.apache.thrift.protocol.TProtocol prot, GetTables_result struct) throws org.apache.thrift.TException {
8688 TTupleProtocol iprot = (TTupleProtocol) prot;
8689 BitSet incoming = iprot.readBitSet(1);
8690 if (incoming.get(0)) {
8691 struct.success = new TGetTablesResp();
8692 struct.success.read(iprot);
8693 struct.setSuccessIsSet(true);
8694 }
8695 }
8696 }
8697
8698 }
8699
8700 public static class GetTableTypes_args implements org.apache.thrift.TBase<GetTableTypes_args, GetTableTypes_args._Fields>, java.io.Serializable, Cloneable, Comparable<GetTableTypes_args> {
8701 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTableTypes_args");
8702
8703 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);
8704
8705 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8706 static {
8707 schemes.put(StandardScheme.class, new GetTableTypes_argsStandardSchemeFactory());
8708 schemes.put(TupleScheme.class, new GetTableTypes_argsTupleSchemeFactory());
8709 }
8710
8711 private TGetTableTypesReq req;
8712
8713
8714 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8715 REQ((short)1, "req");
8716
8717 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8718
8719 static {
8720 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8721 byName.put(field.getFieldName(), field);
8722 }
8723 }
8724
8725
8726
8727
8728 public static _Fields findByThriftId(int fieldId) {
8729 switch(fieldId) {
8730 case 1:
8731 return REQ;
8732 default:
8733 return null;
8734 }
8735 }
8736
8737
8738
8739
8740
8741 public static _Fields findByThriftIdOrThrow(int fieldId) {
8742 _Fields fields = findByThriftId(fieldId);
8743 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8744 return fields;
8745 }
8746
8747
8748
8749
8750 public static _Fields findByName(String name) {
8751 return byName.get(name);
8752 }
8753
8754 private final short _thriftId;
8755 private final String _fieldName;
8756
8757 _Fields(short thriftId, String fieldName) {
8758 _thriftId = thriftId;
8759 _fieldName = fieldName;
8760 }
8761
8762 public short getThriftFieldId() {
8763 return _thriftId;
8764 }
8765
8766 public String getFieldName() {
8767 return _fieldName;
8768 }
8769 }
8770
8771
8772 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8773 static {
8774 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8775 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
8776 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetTableTypesReq.class)));
8777 metaDataMap = Collections.unmodifiableMap(tmpMap);
8778 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetTableTypes_args.class, metaDataMap);
8779 }
8780
8781 public GetTableTypes_args() {
8782 }
8783
8784 public GetTableTypes_args(
8785 TGetTableTypesReq req)
8786 {
8787 this();
8788 this.req = req;
8789 }
8790
8791
8792
8793
8794 public GetTableTypes_args(GetTableTypes_args other) {
8795 if (other.isSetReq()) {
8796 this.req = new TGetTableTypesReq(other.req);
8797 }
8798 }
8799
8800 public GetTableTypes_args deepCopy() {
8801 return new GetTableTypes_args(this);
8802 }
8803
8804 @Override
8805 public void clear() {
8806 this.req = null;
8807 }
8808
8809 public TGetTableTypesReq getReq() {
8810 return this.req;
8811 }
8812
8813 public void setReq(TGetTableTypesReq req) {
8814 this.req = req;
8815 }
8816
8817 public void unsetReq() {
8818 this.req = null;
8819 }
8820
8821
8822 public boolean isSetReq() {
8823 return this.req != null;
8824 }
8825
8826 public void setReqIsSet(boolean value) {
8827 if (!value) {
8828 this.req = null;
8829 }
8830 }
8831
8832 public void setFieldValue(_Fields field, Object value) {
8833 switch (field) {
8834 case REQ:
8835 if (value == null) {
8836 unsetReq();
8837 } else {
8838 setReq((TGetTableTypesReq)value);
8839 }
8840 break;
8841
8842 }
8843 }
8844
8845 public Object getFieldValue(_Fields field) {
8846 switch (field) {
8847 case REQ:
8848 return getReq();
8849
8850 }
8851 throw new IllegalStateException();
8852 }
8853
8854
8855 public boolean isSet(_Fields field) {
8856 if (field == null) {
8857 throw new IllegalArgumentException();
8858 }
8859
8860 switch (field) {
8861 case REQ:
8862 return isSetReq();
8863 }
8864 throw new IllegalStateException();
8865 }
8866
8867 @Override
8868 public boolean equals(Object that) {
8869 if (that == null)
8870 return false;
8871 if (that instanceof GetTableTypes_args)
8872 return this.equals((GetTableTypes_args)that);
8873 return false;
8874 }
8875
8876 public boolean equals(GetTableTypes_args that) {
8877 if (that == null)
8878 return false;
8879
8880 boolean this_present_req = true && this.isSetReq();
8881 boolean that_present_req = true && that.isSetReq();
8882 if (this_present_req || that_present_req) {
8883 if (!(this_present_req && that_present_req))
8884 return false;
8885 if (!this.req.equals(that.req))
8886 return false;
8887 }
8888
8889 return true;
8890 }
8891
8892 @Override
8893 public int hashCode() {
8894 List<Object> list = new ArrayList<Object>();
8895
8896 boolean present_req = true && (isSetReq());
8897 list.add(present_req);
8898 if (present_req)
8899 list.add(req);
8900
8901 return list.hashCode();
8902 }
8903
8904 @Override
8905 public int compareTo(GetTableTypes_args other) {
8906 if (!getClass().equals(other.getClass())) {
8907 return getClass().getName().compareTo(other.getClass().getName());
8908 }
8909
8910 int lastComparison = 0;
8911
8912 lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
8913 if (lastComparison != 0) {
8914 return lastComparison;
8915 }
8916 if (isSetReq()) {
8917 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
8918 if (lastComparison != 0) {
8919 return lastComparison;
8920 }
8921 }
8922 return 0;
8923 }
8924
8925 public _Fields fieldForId(int fieldId) {
8926 return _Fields.findByThriftId(fieldId);
8927 }
8928
8929 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8930 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8931 }
8932
8933 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8934 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8935 }
8936
8937 @Override
8938 public String toString() {
8939 StringBuilder sb = new StringBuilder("GetTableTypes_args(");
8940 boolean first = true;
8941
8942 sb.append("req:");
8943 if (this.req == null) {
8944 sb.append("null");
8945 } else {
8946 sb.append(this.req);
8947 }
8948 first = false;
8949 sb.append(")");
8950 return sb.toString();
8951 }
8952
8953 public void validate() throws org.apache.thrift.TException {
8954
8955
8956 if (req != null) {
8957 req.validate();
8958 }
8959 }
8960
8961 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8962 try {
8963 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8964 } catch (org.apache.thrift.TException te) {
8965 throw new java.io.IOException(te);
8966 }
8967 }
8968
8969 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8970 try {
8971 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8972 } catch (org.apache.thrift.TException te) {
8973 throw new java.io.IOException(te);
8974 }
8975 }
8976
8977 private static class GetTableTypes_argsStandardSchemeFactory implements SchemeFactory {
8978 public GetTableTypes_argsStandardScheme getScheme() {
8979 return new GetTableTypes_argsStandardScheme();
8980 }
8981 }
8982
8983 private static class GetTableTypes_argsStandardScheme extends StandardScheme<GetTableTypes_args> {
8984
8985 public void read(org.apache.thrift.protocol.TProtocol iprot, GetTableTypes_args struct) throws org.apache.thrift.TException {
8986 org.apache.thrift.protocol.TField schemeField;
8987 iprot.readStructBegin();
8988 while (true)
8989 {
8990 schemeField = iprot.readFieldBegin();
8991 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8992 break;
8993 }
8994 switch (schemeField.id) {
8995 case 1:
8996 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
8997 struct.req = new TGetTableTypesReq();
8998 struct.req.read(iprot);
8999 struct.setReqIsSet(true);
9000 } else {
9001 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9002 }
9003 break;
9004 default:
9005 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9006 }
9007 iprot.readFieldEnd();
9008 }
9009 iprot.readStructEnd();
9010 struct.validate();
9011 }
9012
9013 public void write(org.apache.thrift.protocol.TProtocol oprot, GetTableTypes_args struct) throws org.apache.thrift.TException {
9014 struct.validate();
9015
9016 oprot.writeStructBegin(STRUCT_DESC);
9017 if (struct.req != null) {
9018 oprot.writeFieldBegin(REQ_FIELD_DESC);
9019 struct.req.write(oprot);
9020 oprot.writeFieldEnd();
9021 }
9022 oprot.writeFieldStop();
9023 oprot.writeStructEnd();
9024 }
9025
9026 }
9027
9028 private static class GetTableTypes_argsTupleSchemeFactory implements SchemeFactory {
9029 public GetTableTypes_argsTupleScheme getScheme() {
9030 return new GetTableTypes_argsTupleScheme();
9031 }
9032 }
9033
9034 private static class GetTableTypes_argsTupleScheme extends TupleScheme<GetTableTypes_args> {
9035
9036 @Override
9037 public void write(org.apache.thrift.protocol.TProtocol prot, GetTableTypes_args struct) throws org.apache.thrift.TException {
9038 TTupleProtocol oprot = (TTupleProtocol) prot;
9039 BitSet optionals = new BitSet();
9040 if (struct.isSetReq()) {
9041 optionals.set(0);
9042 }
9043 oprot.writeBitSet(optionals, 1);
9044 if (struct.isSetReq()) {
9045 struct.req.write(oprot);
9046 }
9047 }
9048
9049 @Override
9050 public void read(org.apache.thrift.protocol.TProtocol prot, GetTableTypes_args struct) throws org.apache.thrift.TException {
9051 TTupleProtocol iprot = (TTupleProtocol) prot;
9052 BitSet incoming = iprot.readBitSet(1);
9053 if (incoming.get(0)) {
9054 struct.req = new TGetTableTypesReq();
9055 struct.req.read(iprot);
9056 struct.setReqIsSet(true);
9057 }
9058 }
9059 }
9060
9061 }
9062
9063 public static class GetTableTypes_result implements org.apache.thrift.TBase<GetTableTypes_result, GetTableTypes_result._Fields>, java.io.Serializable, Cloneable, Comparable<GetTableTypes_result> {
9064 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTableTypes_result");
9065
9066 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);
9067
9068 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9069 static {
9070 schemes.put(StandardScheme.class, new GetTableTypes_resultStandardSchemeFactory());
9071 schemes.put(TupleScheme.class, new GetTableTypes_resultTupleSchemeFactory());
9072 }
9073
9074 private TGetTableTypesResp success;
9075
9076
9077 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9078 SUCCESS((short)0, "success");
9079
9080 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9081
9082 static {
9083 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9084 byName.put(field.getFieldName(), field);
9085 }
9086 }
9087
9088
9089
9090
9091 public static _Fields findByThriftId(int fieldId) {
9092 switch(fieldId) {
9093 case 0:
9094 return SUCCESS;
9095 default:
9096 return null;
9097 }
9098 }
9099
9100
9101
9102
9103
9104 public static _Fields findByThriftIdOrThrow(int fieldId) {
9105 _Fields fields = findByThriftId(fieldId);
9106 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9107 return fields;
9108 }
9109
9110
9111
9112
9113 public static _Fields findByName(String name) {
9114 return byName.get(name);
9115 }
9116
9117 private final short _thriftId;
9118 private final String _fieldName;
9119
9120 _Fields(short thriftId, String fieldName) {
9121 _thriftId = thriftId;
9122 _fieldName = fieldName;
9123 }
9124
9125 public short getThriftFieldId() {
9126 return _thriftId;
9127 }
9128
9129 public String getFieldName() {
9130 return _fieldName;
9131 }
9132 }
9133
9134
9135 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9136 static {
9137 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9138 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
9139 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetTableTypesResp.class)));
9140 metaDataMap = Collections.unmodifiableMap(tmpMap);
9141 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetTableTypes_result.class, metaDataMap);
9142 }
9143
9144 public GetTableTypes_result() {
9145 }
9146
9147 public GetTableTypes_result(
9148 TGetTableTypesResp success)
9149 {
9150 this();
9151 this.success = success;
9152 }
9153
9154
9155
9156
9157 public GetTableTypes_result(GetTableTypes_result other) {
9158 if (other.isSetSuccess()) {
9159 this.success = new TGetTableTypesResp(other.success);
9160 }
9161 }
9162
9163 public GetTableTypes_result deepCopy() {
9164 return new GetTableTypes_result(this);
9165 }
9166
9167 @Override
9168 public void clear() {
9169 this.success = null;
9170 }
9171
9172 public TGetTableTypesResp getSuccess() {
9173 return this.success;
9174 }
9175
9176 public void setSuccess(TGetTableTypesResp success) {
9177 this.success = success;
9178 }
9179
9180 public void unsetSuccess() {
9181 this.success = null;
9182 }
9183
9184
9185 public boolean isSetSuccess() {
9186 return this.success != null;
9187 }
9188
9189 public void setSuccessIsSet(boolean value) {
9190 if (!value) {
9191 this.success = null;
9192 }
9193 }
9194
9195 public void setFieldValue(_Fields field, Object value) {
9196 switch (field) {
9197 case SUCCESS:
9198 if (value == null) {
9199 unsetSuccess();
9200 } else {
9201 setSuccess((TGetTableTypesResp)value);
9202 }
9203 break;
9204
9205 }
9206 }
9207
9208 public Object getFieldValue(_Fields field) {
9209 switch (field) {
9210 case SUCCESS:
9211 return getSuccess();
9212
9213 }
9214 throw new IllegalStateException();
9215 }
9216
9217
9218 public boolean isSet(_Fields field) {
9219 if (field == null) {
9220 throw new IllegalArgumentException();
9221 }
9222
9223 switch (field) {
9224 case SUCCESS:
9225 return isSetSuccess();
9226 }
9227 throw new IllegalStateException();
9228 }
9229
9230 @Override
9231 public boolean equals(Object that) {
9232 if (that == null)
9233 return false;
9234 if (that instanceof GetTableTypes_result)
9235 return this.equals((GetTableTypes_result)that);
9236 return false;
9237 }
9238
9239 public boolean equals(GetTableTypes_result that) {
9240 if (that == null)
9241 return false;
9242
9243 boolean this_present_success = true && this.isSetSuccess();
9244 boolean that_present_success = true && that.isSetSuccess();
9245 if (this_present_success || that_present_success) {
9246 if (!(this_present_success && that_present_success))
9247 return false;
9248 if (!this.success.equals(that.success))
9249 return false;
9250 }
9251
9252 return true;
9253 }
9254
9255 @Override
9256 public int hashCode() {
9257 List<Object> list = new ArrayList<Object>();
9258
9259 boolean present_success = true && (isSetSuccess());
9260 list.add(present_success);
9261 if (present_success)
9262 list.add(success);
9263
9264 return list.hashCode();
9265 }
9266
9267 @Override
9268 public int compareTo(GetTableTypes_result other) {
9269 if (!getClass().equals(other.getClass())) {
9270 return getClass().getName().compareTo(other.getClass().getName());
9271 }
9272
9273 int lastComparison = 0;
9274
9275 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
9276 if (lastComparison != 0) {
9277 return lastComparison;
9278 }
9279 if (isSetSuccess()) {
9280 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
9281 if (lastComparison != 0) {
9282 return lastComparison;
9283 }
9284 }
9285 return 0;
9286 }
9287
9288 public _Fields fieldForId(int fieldId) {
9289 return _Fields.findByThriftId(fieldId);
9290 }
9291
9292 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9293 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9294 }
9295
9296 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9297 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9298 }
9299
9300 @Override
9301 public String toString() {
9302 StringBuilder sb = new StringBuilder("GetTableTypes_result(");
9303 boolean first = true;
9304
9305 sb.append("success:");
9306 if (this.success == null) {
9307 sb.append("null");
9308 } else {
9309 sb.append(this.success);
9310 }
9311 first = false;
9312 sb.append(")");
9313 return sb.toString();
9314 }
9315
9316 public void validate() throws org.apache.thrift.TException {
9317
9318
9319 if (success != null) {
9320 success.validate();
9321 }
9322 }
9323
9324 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9325 try {
9326 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9327 } catch (org.apache.thrift.TException te) {
9328 throw new java.io.IOException(te);
9329 }
9330 }
9331
9332 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9333 try {
9334 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9335 } catch (org.apache.thrift.TException te) {
9336 throw new java.io.IOException(te);
9337 }
9338 }
9339
9340 private static class GetTableTypes_resultStandardSchemeFactory implements SchemeFactory {
9341 public GetTableTypes_resultStandardScheme getScheme() {
9342 return new GetTableTypes_resultStandardScheme();
9343 }
9344 }
9345
9346 private static class GetTableTypes_resultStandardScheme extends StandardScheme<GetTableTypes_result> {
9347
9348 public void read(org.apache.thrift.protocol.TProtocol iprot, GetTableTypes_result struct) throws org.apache.thrift.TException {
9349 org.apache.thrift.protocol.TField schemeField;
9350 iprot.readStructBegin();
9351 while (true)
9352 {
9353 schemeField = iprot.readFieldBegin();
9354 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9355 break;
9356 }
9357 switch (schemeField.id) {
9358 case 0:
9359 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
9360 struct.success = new TGetTableTypesResp();
9361 struct.success.read(iprot);
9362 struct.setSuccessIsSet(true);
9363 } else {
9364 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9365 }
9366 break;
9367 default:
9368 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9369 }
9370 iprot.readFieldEnd();
9371 }
9372 iprot.readStructEnd();
9373 struct.validate();
9374 }
9375
9376 public void write(org.apache.thrift.protocol.TProtocol oprot, GetTableTypes_result struct) throws org.apache.thrift.TException {
9377 struct.validate();
9378
9379 oprot.writeStructBegin(STRUCT_DESC);
9380 if (struct.success != null) {
9381 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9382 struct.success.write(oprot);
9383 oprot.writeFieldEnd();
9384 }
9385 oprot.writeFieldStop();
9386 oprot.writeStructEnd();
9387 }
9388
9389 }
9390
9391 private static class GetTableTypes_resultTupleSchemeFactory implements SchemeFactory {
9392 public GetTableTypes_resultTupleScheme getScheme() {
9393 return new GetTableTypes_resultTupleScheme();
9394 }
9395 }
9396
9397 private static class GetTableTypes_resultTupleScheme extends TupleScheme<GetTableTypes_result> {
9398
9399 @Override
9400 public void write(org.apache.thrift.protocol.TProtocol prot, GetTableTypes_result struct) throws org.apache.thrift.TException {
9401 TTupleProtocol oprot = (TTupleProtocol) prot;
9402 BitSet optionals = new BitSet();
9403 if (struct.isSetSuccess()) {
9404 optionals.set(0);
9405 }
9406 oprot.writeBitSet(optionals, 1);
9407 if (struct.isSetSuccess()) {
9408 struct.success.write(oprot);
9409 }
9410 }
9411
9412 @Override
9413 public void read(org.apache.thrift.protocol.TProtocol prot, GetTableTypes_result struct) throws org.apache.thrift.TException {
9414 TTupleProtocol iprot = (TTupleProtocol) prot;
9415 BitSet incoming = iprot.readBitSet(1);
9416 if (incoming.get(0)) {
9417 struct.success = new TGetTableTypesResp();
9418 struct.success.read(iprot);
9419 struct.setSuccessIsSet(true);
9420 }
9421 }
9422 }
9423
9424 }
9425
9426 public static class GetColumns_args implements org.apache.thrift.TBase<GetColumns_args, GetColumns_args._Fields>, java.io.Serializable, Cloneable, Comparable<GetColumns_args> {
9427 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetColumns_args");
9428
9429 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);
9430
9431 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9432 static {
9433 schemes.put(StandardScheme.class, new GetColumns_argsStandardSchemeFactory());
9434 schemes.put(TupleScheme.class, new GetColumns_argsTupleSchemeFactory());
9435 }
9436
9437 private TGetColumnsReq req;
9438
9439
9440 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9441 REQ((short)1, "req");
9442
9443 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9444
9445 static {
9446 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9447 byName.put(field.getFieldName(), field);
9448 }
9449 }
9450
9451
9452
9453
9454 public static _Fields findByThriftId(int fieldId) {
9455 switch(fieldId) {
9456 case 1:
9457 return REQ;
9458 default:
9459 return null;
9460 }
9461 }
9462
9463
9464
9465
9466
9467 public static _Fields findByThriftIdOrThrow(int fieldId) {
9468 _Fields fields = findByThriftId(fieldId);
9469 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9470 return fields;
9471 }
9472
9473
9474
9475
9476 public static _Fields findByName(String name) {
9477 return byName.get(name);
9478 }
9479
9480 private final short _thriftId;
9481 private final String _fieldName;
9482
9483 _Fields(short thriftId, String fieldName) {
9484 _thriftId = thriftId;
9485 _fieldName = fieldName;
9486 }
9487
9488 public short getThriftFieldId() {
9489 return _thriftId;
9490 }
9491
9492 public String getFieldName() {
9493 return _fieldName;
9494 }
9495 }
9496
9497
9498 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9499 static {
9500 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9501 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
9502 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetColumnsReq.class)));
9503 metaDataMap = Collections.unmodifiableMap(tmpMap);
9504 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetColumns_args.class, metaDataMap);
9505 }
9506
9507 public GetColumns_args() {
9508 }
9509
9510 public GetColumns_args(
9511 TGetColumnsReq req)
9512 {
9513 this();
9514 this.req = req;
9515 }
9516
9517
9518
9519
9520 public GetColumns_args(GetColumns_args other) {
9521 if (other.isSetReq()) {
9522 this.req = new TGetColumnsReq(other.req);
9523 }
9524 }
9525
9526 public GetColumns_args deepCopy() {
9527 return new GetColumns_args(this);
9528 }
9529
9530 @Override
9531 public void clear() {
9532 this.req = null;
9533 }
9534
9535 public TGetColumnsReq getReq() {
9536 return this.req;
9537 }
9538
9539 public void setReq(TGetColumnsReq req) {
9540 this.req = req;
9541 }
9542
9543 public void unsetReq() {
9544 this.req = null;
9545 }
9546
9547
9548 public boolean isSetReq() {
9549 return this.req != null;
9550 }
9551
9552 public void setReqIsSet(boolean value) {
9553 if (!value) {
9554 this.req = null;
9555 }
9556 }
9557
9558 public void setFieldValue(_Fields field, Object value) {
9559 switch (field) {
9560 case REQ:
9561 if (value == null) {
9562 unsetReq();
9563 } else {
9564 setReq((TGetColumnsReq)value);
9565 }
9566 break;
9567
9568 }
9569 }
9570
9571 public Object getFieldValue(_Fields field) {
9572 switch (field) {
9573 case REQ:
9574 return getReq();
9575
9576 }
9577 throw new IllegalStateException();
9578 }
9579
9580
9581 public boolean isSet(_Fields field) {
9582 if (field == null) {
9583 throw new IllegalArgumentException();
9584 }
9585
9586 switch (field) {
9587 case REQ:
9588 return isSetReq();
9589 }
9590 throw new IllegalStateException();
9591 }
9592
9593 @Override
9594 public boolean equals(Object that) {
9595 if (that == null)
9596 return false;
9597 if (that instanceof GetColumns_args)
9598 return this.equals((GetColumns_args)that);
9599 return false;
9600 }
9601
9602 public boolean equals(GetColumns_args that) {
9603 if (that == null)
9604 return false;
9605
9606 boolean this_present_req = true && this.isSetReq();
9607 boolean that_present_req = true && that.isSetReq();
9608 if (this_present_req || that_present_req) {
9609 if (!(this_present_req && that_present_req))
9610 return false;
9611 if (!this.req.equals(that.req))
9612 return false;
9613 }
9614
9615 return true;
9616 }
9617
9618 @Override
9619 public int hashCode() {
9620 List<Object> list = new ArrayList<Object>();
9621
9622 boolean present_req = true && (isSetReq());
9623 list.add(present_req);
9624 if (present_req)
9625 list.add(req);
9626
9627 return list.hashCode();
9628 }
9629
9630 @Override
9631 public int compareTo(GetColumns_args other) {
9632 if (!getClass().equals(other.getClass())) {
9633 return getClass().getName().compareTo(other.getClass().getName());
9634 }
9635
9636 int lastComparison = 0;
9637
9638 lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
9639 if (lastComparison != 0) {
9640 return lastComparison;
9641 }
9642 if (isSetReq()) {
9643 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
9644 if (lastComparison != 0) {
9645 return lastComparison;
9646 }
9647 }
9648 return 0;
9649 }
9650
9651 public _Fields fieldForId(int fieldId) {
9652 return _Fields.findByThriftId(fieldId);
9653 }
9654
9655 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9656 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9657 }
9658
9659 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9660 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9661 }
9662
9663 @Override
9664 public String toString() {
9665 StringBuilder sb = new StringBuilder("GetColumns_args(");
9666 boolean first = true;
9667
9668 sb.append("req:");
9669 if (this.req == null) {
9670 sb.append("null");
9671 } else {
9672 sb.append(this.req);
9673 }
9674 first = false;
9675 sb.append(")");
9676 return sb.toString();
9677 }
9678
9679 public void validate() throws org.apache.thrift.TException {
9680
9681
9682 if (req != null) {
9683 req.validate();
9684 }
9685 }
9686
9687 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9688 try {
9689 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9690 } catch (org.apache.thrift.TException te) {
9691 throw new java.io.IOException(te);
9692 }
9693 }
9694
9695 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9696 try {
9697 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9698 } catch (org.apache.thrift.TException te) {
9699 throw new java.io.IOException(te);
9700 }
9701 }
9702
9703 private static class GetColumns_argsStandardSchemeFactory implements SchemeFactory {
9704 public GetColumns_argsStandardScheme getScheme() {
9705 return new GetColumns_argsStandardScheme();
9706 }
9707 }
9708
9709 private static class GetColumns_argsStandardScheme extends StandardScheme<GetColumns_args> {
9710
9711 public void read(org.apache.thrift.protocol.TProtocol iprot, GetColumns_args struct) throws org.apache.thrift.TException {
9712 org.apache.thrift.protocol.TField schemeField;
9713 iprot.readStructBegin();
9714 while (true)
9715 {
9716 schemeField = iprot.readFieldBegin();
9717 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9718 break;
9719 }
9720 switch (schemeField.id) {
9721 case 1:
9722 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
9723 struct.req = new TGetColumnsReq();
9724 struct.req.read(iprot);
9725 struct.setReqIsSet(true);
9726 } else {
9727 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9728 }
9729 break;
9730 default:
9731 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9732 }
9733 iprot.readFieldEnd();
9734 }
9735 iprot.readStructEnd();
9736 struct.validate();
9737 }
9738
9739 public void write(org.apache.thrift.protocol.TProtocol oprot, GetColumns_args struct) throws org.apache.thrift.TException {
9740 struct.validate();
9741
9742 oprot.writeStructBegin(STRUCT_DESC);
9743 if (struct.req != null) {
9744 oprot.writeFieldBegin(REQ_FIELD_DESC);
9745 struct.req.write(oprot);
9746 oprot.writeFieldEnd();
9747 }
9748 oprot.writeFieldStop();
9749 oprot.writeStructEnd();
9750 }
9751
9752 }
9753
9754 private static class GetColumns_argsTupleSchemeFactory implements SchemeFactory {
9755 public GetColumns_argsTupleScheme getScheme() {
9756 return new GetColumns_argsTupleScheme();
9757 }
9758 }
9759
9760 private static class GetColumns_argsTupleScheme extends TupleScheme<GetColumns_args> {
9761
9762 @Override
9763 public void write(org.apache.thrift.protocol.TProtocol prot, GetColumns_args struct) throws org.apache.thrift.TException {
9764 TTupleProtocol oprot = (TTupleProtocol) prot;
9765 BitSet optionals = new BitSet();
9766 if (struct.isSetReq()) {
9767 optionals.set(0);
9768 }
9769 oprot.writeBitSet(optionals, 1);
9770 if (struct.isSetReq()) {
9771 struct.req.write(oprot);
9772 }
9773 }
9774
9775 @Override
9776 public void read(org.apache.thrift.protocol.TProtocol prot, GetColumns_args struct) throws org.apache.thrift.TException {
9777 TTupleProtocol iprot = (TTupleProtocol) prot;
9778 BitSet incoming = iprot.readBitSet(1);
9779 if (incoming.get(0)) {
9780 struct.req = new TGetColumnsReq();
9781 struct.req.read(iprot);
9782 struct.setReqIsSet(true);
9783 }
9784 }
9785 }
9786
9787 }
9788
9789 public static class GetColumns_result implements org.apache.thrift.TBase<GetColumns_result, GetColumns_result._Fields>, java.io.Serializable, Cloneable, Comparable<GetColumns_result> {
9790 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetColumns_result");
9791
9792 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);
9793
9794 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9795 static {
9796 schemes.put(StandardScheme.class, new GetColumns_resultStandardSchemeFactory());
9797 schemes.put(TupleScheme.class, new GetColumns_resultTupleSchemeFactory());
9798 }
9799
9800 private TGetColumnsResp success;
9801
9802
9803 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9804 SUCCESS((short)0, "success");
9805
9806 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9807
9808 static {
9809 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9810 byName.put(field.getFieldName(), field);
9811 }
9812 }
9813
9814
9815
9816
9817 public static _Fields findByThriftId(int fieldId) {
9818 switch(fieldId) {
9819 case 0:
9820 return SUCCESS;
9821 default:
9822 return null;
9823 }
9824 }
9825
9826
9827
9828
9829
9830 public static _Fields findByThriftIdOrThrow(int fieldId) {
9831 _Fields fields = findByThriftId(fieldId);
9832 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9833 return fields;
9834 }
9835
9836
9837
9838
9839 public static _Fields findByName(String name) {
9840 return byName.get(name);
9841 }
9842
9843 private final short _thriftId;
9844 private final String _fieldName;
9845
9846 _Fields(short thriftId, String fieldName) {
9847 _thriftId = thriftId;
9848 _fieldName = fieldName;
9849 }
9850
9851 public short getThriftFieldId() {
9852 return _thriftId;
9853 }
9854
9855 public String getFieldName() {
9856 return _fieldName;
9857 }
9858 }
9859
9860
9861 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9862 static {
9863 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9864 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
9865 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetColumnsResp.class)));
9866 metaDataMap = Collections.unmodifiableMap(tmpMap);
9867 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetColumns_result.class, metaDataMap);
9868 }
9869
9870 public GetColumns_result() {
9871 }
9872
9873 public GetColumns_result(
9874 TGetColumnsResp success)
9875 {
9876 this();
9877 this.success = success;
9878 }
9879
9880
9881
9882
9883 public GetColumns_result(GetColumns_result other) {
9884 if (other.isSetSuccess()) {
9885 this.success = new TGetColumnsResp(other.success);
9886 }
9887 }
9888
9889 public GetColumns_result deepCopy() {
9890 return new GetColumns_result(this);
9891 }
9892
9893 @Override
9894 public void clear() {
9895 this.success = null;
9896 }
9897
9898 public TGetColumnsResp getSuccess() {
9899 return this.success;
9900 }
9901
9902 public void setSuccess(TGetColumnsResp success) {
9903 this.success = success;
9904 }
9905
9906 public void unsetSuccess() {
9907 this.success = null;
9908 }
9909
9910
9911 public boolean isSetSuccess() {
9912 return this.success != null;
9913 }
9914
9915 public void setSuccessIsSet(boolean value) {
9916 if (!value) {
9917 this.success = null;
9918 }
9919 }
9920
9921 public void setFieldValue(_Fields field, Object value) {
9922 switch (field) {
9923 case SUCCESS:
9924 if (value == null) {
9925 unsetSuccess();
9926 } else {
9927 setSuccess((TGetColumnsResp)value);
9928 }
9929 break;
9930
9931 }
9932 }
9933
9934 public Object getFieldValue(_Fields field) {
9935 switch (field) {
9936 case SUCCESS:
9937 return getSuccess();
9938
9939 }
9940 throw new IllegalStateException();
9941 }
9942
9943
9944 public boolean isSet(_Fields field) {
9945 if (field == null) {
9946 throw new IllegalArgumentException();
9947 }
9948
9949 switch (field) {
9950 case SUCCESS:
9951 return isSetSuccess();
9952 }
9953 throw new IllegalStateException();
9954 }
9955
9956 @Override
9957 public boolean equals(Object that) {
9958 if (that == null)
9959 return false;
9960 if (that instanceof GetColumns_result)
9961 return this.equals((GetColumns_result)that);
9962 return false;
9963 }
9964
9965 public boolean equals(GetColumns_result that) {
9966 if (that == null)
9967 return false;
9968
9969 boolean this_present_success = true && this.isSetSuccess();
9970 boolean that_present_success = true && that.isSetSuccess();
9971 if (this_present_success || that_present_success) {
9972 if (!(this_present_success && that_present_success))
9973 return false;
9974 if (!this.success.equals(that.success))
9975 return false;
9976 }
9977
9978 return true;
9979 }
9980
9981 @Override
9982 public int hashCode() {
9983 List<Object> list = new ArrayList<Object>();
9984
9985 boolean present_success = true && (isSetSuccess());
9986 list.add(present_success);
9987 if (present_success)
9988 list.add(success);
9989
9990 return list.hashCode();
9991 }
9992
9993 @Override
9994 public int compareTo(GetColumns_result other) {
9995 if (!getClass().equals(other.getClass())) {
9996 return getClass().getName().compareTo(other.getClass().getName());
9997 }
9998
9999 int lastComparison = 0;
10000
10001 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
10002 if (lastComparison != 0) {
10003 return lastComparison;
10004 }
10005 if (isSetSuccess()) {
10006 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
10007 if (lastComparison != 0) {
10008 return lastComparison;
10009 }
10010 }
10011 return 0;
10012 }
10013
10014 public _Fields fieldForId(int fieldId) {
10015 return _Fields.findByThriftId(fieldId);
10016 }
10017
10018 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10019 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10020 }
10021
10022 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10023 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10024 }
10025
10026 @Override
10027 public String toString() {
10028 StringBuilder sb = new StringBuilder("GetColumns_result(");
10029 boolean first = true;
10030
10031 sb.append("success:");
10032 if (this.success == null) {
10033 sb.append("null");
10034 } else {
10035 sb.append(this.success);
10036 }
10037 first = false;
10038 sb.append(")");
10039 return sb.toString();
10040 }
10041
10042 public void validate() throws org.apache.thrift.TException {
10043
10044
10045 if (success != null) {
10046 success.validate();
10047 }
10048 }
10049
10050 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10051 try {
10052 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10053 } catch (org.apache.thrift.TException te) {
10054 throw new java.io.IOException(te);
10055 }
10056 }
10057
10058 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10059 try {
10060 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10061 } catch (org.apache.thrift.TException te) {
10062 throw new java.io.IOException(te);
10063 }
10064 }
10065
10066 private static class GetColumns_resultStandardSchemeFactory implements SchemeFactory {
10067 public GetColumns_resultStandardScheme getScheme() {
10068 return new GetColumns_resultStandardScheme();
10069 }
10070 }
10071
10072 private static class GetColumns_resultStandardScheme extends StandardScheme<GetColumns_result> {
10073
10074 public void read(org.apache.thrift.protocol.TProtocol iprot, GetColumns_result struct) throws org.apache.thrift.TException {
10075 org.apache.thrift.protocol.TField schemeField;
10076 iprot.readStructBegin();
10077 while (true)
10078 {
10079 schemeField = iprot.readFieldBegin();
10080 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10081 break;
10082 }
10083 switch (schemeField.id) {
10084 case 0:
10085 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
10086 struct.success = new TGetColumnsResp();
10087 struct.success.read(iprot);
10088 struct.setSuccessIsSet(true);
10089 } else {
10090 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10091 }
10092 break;
10093 default:
10094 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10095 }
10096 iprot.readFieldEnd();
10097 }
10098 iprot.readStructEnd();
10099 struct.validate();
10100 }
10101
10102 public void write(org.apache.thrift.protocol.TProtocol oprot, GetColumns_result struct) throws org.apache.thrift.TException {
10103 struct.validate();
10104
10105 oprot.writeStructBegin(STRUCT_DESC);
10106 if (struct.success != null) {
10107 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10108 struct.success.write(oprot);
10109 oprot.writeFieldEnd();
10110 }
10111 oprot.writeFieldStop();
10112 oprot.writeStructEnd();
10113 }
10114
10115 }
10116
10117 private static class GetColumns_resultTupleSchemeFactory implements SchemeFactory {
10118 public GetColumns_resultTupleScheme getScheme() {
10119 return new GetColumns_resultTupleScheme();
10120 }
10121 }
10122
10123 private static class GetColumns_resultTupleScheme extends TupleScheme<GetColumns_result> {
10124
10125 @Override
10126 public void write(org.apache.thrift.protocol.TProtocol prot, GetColumns_result struct) throws org.apache.thrift.TException {
10127 TTupleProtocol oprot = (TTupleProtocol) prot;
10128 BitSet optionals = new BitSet();
10129 if (struct.isSetSuccess()) {
10130 optionals.set(0);
10131 }
10132 oprot.writeBitSet(optionals, 1);
10133 if (struct.isSetSuccess()) {
10134 struct.success.write(oprot);
10135 }
10136 }
10137
10138 @Override
10139 public void read(org.apache.thrift.protocol.TProtocol prot, GetColumns_result struct) throws org.apache.thrift.TException {
10140 TTupleProtocol iprot = (TTupleProtocol) prot;
10141 BitSet incoming = iprot.readBitSet(1);
10142 if (incoming.get(0)) {
10143 struct.success = new TGetColumnsResp();
10144 struct.success.read(iprot);
10145 struct.setSuccessIsSet(true);
10146 }
10147 }
10148 }
10149
10150 }
10151
10152 public static class GetFunctions_args implements org.apache.thrift.TBase<GetFunctions_args, GetFunctions_args._Fields>, java.io.Serializable, Cloneable, Comparable<GetFunctions_args> {
10153 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetFunctions_args");
10154
10155 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);
10156
10157 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10158 static {
10159 schemes.put(StandardScheme.class, new GetFunctions_argsStandardSchemeFactory());
10160 schemes.put(TupleScheme.class, new GetFunctions_argsTupleSchemeFactory());
10161 }
10162
10163 private TGetFunctionsReq req;
10164
10165
10166 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10167 REQ((short)1, "req");
10168
10169 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10170
10171 static {
10172 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10173 byName.put(field.getFieldName(), field);
10174 }
10175 }
10176
10177
10178
10179
10180 public static _Fields findByThriftId(int fieldId) {
10181 switch(fieldId) {
10182 case 1:
10183 return REQ;
10184 default:
10185 return null;
10186 }
10187 }
10188
10189
10190
10191
10192
10193 public static _Fields findByThriftIdOrThrow(int fieldId) {
10194 _Fields fields = findByThriftId(fieldId);
10195 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10196 return fields;
10197 }
10198
10199
10200
10201
10202 public static _Fields findByName(String name) {
10203 return byName.get(name);
10204 }
10205
10206 private final short _thriftId;
10207 private final String _fieldName;
10208
10209 _Fields(short thriftId, String fieldName) {
10210 _thriftId = thriftId;
10211 _fieldName = fieldName;
10212 }
10213
10214 public short getThriftFieldId() {
10215 return _thriftId;
10216 }
10217
10218 public String getFieldName() {
10219 return _fieldName;
10220 }
10221 }
10222
10223
10224 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10225 static {
10226 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10227 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
10228 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetFunctionsReq.class)));
10229 metaDataMap = Collections.unmodifiableMap(tmpMap);
10230 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetFunctions_args.class, metaDataMap);
10231 }
10232
10233 public GetFunctions_args() {
10234 }
10235
10236 public GetFunctions_args(
10237 TGetFunctionsReq req)
10238 {
10239 this();
10240 this.req = req;
10241 }
10242
10243
10244
10245
10246 public GetFunctions_args(GetFunctions_args other) {
10247 if (other.isSetReq()) {
10248 this.req = new TGetFunctionsReq(other.req);
10249 }
10250 }
10251
10252 public GetFunctions_args deepCopy() {
10253 return new GetFunctions_args(this);
10254 }
10255
10256 @Override
10257 public void clear() {
10258 this.req = null;
10259 }
10260
10261 public TGetFunctionsReq getReq() {
10262 return this.req;
10263 }
10264
10265 public void setReq(TGetFunctionsReq req) {
10266 this.req = req;
10267 }
10268
10269 public void unsetReq() {
10270 this.req = null;
10271 }
10272
10273
10274 public boolean isSetReq() {
10275 return this.req != null;
10276 }
10277
10278 public void setReqIsSet(boolean value) {
10279 if (!value) {
10280 this.req = null;
10281 }
10282 }
10283
10284 public void setFieldValue(_Fields field, Object value) {
10285 switch (field) {
10286 case REQ:
10287 if (value == null) {
10288 unsetReq();
10289 } else {
10290 setReq((TGetFunctionsReq)value);
10291 }
10292 break;
10293
10294 }
10295 }
10296
10297 public Object getFieldValue(_Fields field) {
10298 switch (field) {
10299 case REQ:
10300 return getReq();
10301
10302 }
10303 throw new IllegalStateException();
10304 }
10305
10306
10307 public boolean isSet(_Fields field) {
10308 if (field == null) {
10309 throw new IllegalArgumentException();
10310 }
10311
10312 switch (field) {
10313 case REQ:
10314 return isSetReq();
10315 }
10316 throw new IllegalStateException();
10317 }
10318
10319 @Override
10320 public boolean equals(Object that) {
10321 if (that == null)
10322 return false;
10323 if (that instanceof GetFunctions_args)
10324 return this.equals((GetFunctions_args)that);
10325 return false;
10326 }
10327
10328 public boolean equals(GetFunctions_args that) {
10329 if (that == null)
10330 return false;
10331
10332 boolean this_present_req = true && this.isSetReq();
10333 boolean that_present_req = true && that.isSetReq();
10334 if (this_present_req || that_present_req) {
10335 if (!(this_present_req && that_present_req))
10336 return false;
10337 if (!this.req.equals(that.req))
10338 return false;
10339 }
10340
10341 return true;
10342 }
10343
10344 @Override
10345 public int hashCode() {
10346 List<Object> list = new ArrayList<Object>();
10347
10348 boolean present_req = true && (isSetReq());
10349 list.add(present_req);
10350 if (present_req)
10351 list.add(req);
10352
10353 return list.hashCode();
10354 }
10355
10356 @Override
10357 public int compareTo(GetFunctions_args other) {
10358 if (!getClass().equals(other.getClass())) {
10359 return getClass().getName().compareTo(other.getClass().getName());
10360 }
10361
10362 int lastComparison = 0;
10363
10364 lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
10365 if (lastComparison != 0) {
10366 return lastComparison;
10367 }
10368 if (isSetReq()) {
10369 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
10370 if (lastComparison != 0) {
10371 return lastComparison;
10372 }
10373 }
10374 return 0;
10375 }
10376
10377 public _Fields fieldForId(int fieldId) {
10378 return _Fields.findByThriftId(fieldId);
10379 }
10380
10381 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10382 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10383 }
10384
10385 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10386 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10387 }
10388
10389 @Override
10390 public String toString() {
10391 StringBuilder sb = new StringBuilder("GetFunctions_args(");
10392 boolean first = true;
10393
10394 sb.append("req:");
10395 if (this.req == null) {
10396 sb.append("null");
10397 } else {
10398 sb.append(this.req);
10399 }
10400 first = false;
10401 sb.append(")");
10402 return sb.toString();
10403 }
10404
10405 public void validate() throws org.apache.thrift.TException {
10406
10407
10408 if (req != null) {
10409 req.validate();
10410 }
10411 }
10412
10413 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10414 try {
10415 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10416 } catch (org.apache.thrift.TException te) {
10417 throw new java.io.IOException(te);
10418 }
10419 }
10420
10421 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10422 try {
10423 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10424 } catch (org.apache.thrift.TException te) {
10425 throw new java.io.IOException(te);
10426 }
10427 }
10428
10429 private static class GetFunctions_argsStandardSchemeFactory implements SchemeFactory {
10430 public GetFunctions_argsStandardScheme getScheme() {
10431 return new GetFunctions_argsStandardScheme();
10432 }
10433 }
10434
10435 private static class GetFunctions_argsStandardScheme extends StandardScheme<GetFunctions_args> {
10436
10437 public void read(org.apache.thrift.protocol.TProtocol iprot, GetFunctions_args struct) throws org.apache.thrift.TException {
10438 org.apache.thrift.protocol.TField schemeField;
10439 iprot.readStructBegin();
10440 while (true)
10441 {
10442 schemeField = iprot.readFieldBegin();
10443 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10444 break;
10445 }
10446 switch (schemeField.id) {
10447 case 1:
10448 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
10449 struct.req = new TGetFunctionsReq();
10450 struct.req.read(iprot);
10451 struct.setReqIsSet(true);
10452 } else {
10453 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10454 }
10455 break;
10456 default:
10457 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10458 }
10459 iprot.readFieldEnd();
10460 }
10461 iprot.readStructEnd();
10462 struct.validate();
10463 }
10464
10465 public void write(org.apache.thrift.protocol.TProtocol oprot, GetFunctions_args struct) throws org.apache.thrift.TException {
10466 struct.validate();
10467
10468 oprot.writeStructBegin(STRUCT_DESC);
10469 if (struct.req != null) {
10470 oprot.writeFieldBegin(REQ_FIELD_DESC);
10471 struct.req.write(oprot);
10472 oprot.writeFieldEnd();
10473 }
10474 oprot.writeFieldStop();
10475 oprot.writeStructEnd();
10476 }
10477
10478 }
10479
10480 private static class GetFunctions_argsTupleSchemeFactory implements SchemeFactory {
10481 public GetFunctions_argsTupleScheme getScheme() {
10482 return new GetFunctions_argsTupleScheme();
10483 }
10484 }
10485
10486 private static class GetFunctions_argsTupleScheme extends TupleScheme<GetFunctions_args> {
10487
10488 @Override
10489 public void write(org.apache.thrift.protocol.TProtocol prot, GetFunctions_args struct) throws org.apache.thrift.TException {
10490 TTupleProtocol oprot = (TTupleProtocol) prot;
10491 BitSet optionals = new BitSet();
10492 if (struct.isSetReq()) {
10493 optionals.set(0);
10494 }
10495 oprot.writeBitSet(optionals, 1);
10496 if (struct.isSetReq()) {
10497 struct.req.write(oprot);
10498 }
10499 }
10500
10501 @Override
10502 public void read(org.apache.thrift.protocol.TProtocol prot, GetFunctions_args struct) throws org.apache.thrift.TException {
10503 TTupleProtocol iprot = (TTupleProtocol) prot;
10504 BitSet incoming = iprot.readBitSet(1);
10505 if (incoming.get(0)) {
10506 struct.req = new TGetFunctionsReq();
10507 struct.req.read(iprot);
10508 struct.setReqIsSet(true);
10509 }
10510 }
10511 }
10512
10513 }
10514
10515 public static class GetFunctions_result implements org.apache.thrift.TBase<GetFunctions_result, GetFunctions_result._Fields>, java.io.Serializable, Cloneable, Comparable<GetFunctions_result> {
10516 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetFunctions_result");
10517
10518 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);
10519
10520 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10521 static {
10522 schemes.put(StandardScheme.class, new GetFunctions_resultStandardSchemeFactory());
10523 schemes.put(TupleScheme.class, new GetFunctions_resultTupleSchemeFactory());
10524 }
10525
10526 private TGetFunctionsResp success;
10527
10528
10529 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10530 SUCCESS((short)0, "success");
10531
10532 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10533
10534 static {
10535 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10536 byName.put(field.getFieldName(), field);
10537 }
10538 }
10539
10540
10541
10542
10543 public static _Fields findByThriftId(int fieldId) {
10544 switch(fieldId) {
10545 case 0:
10546 return SUCCESS;
10547 default:
10548 return null;
10549 }
10550 }
10551
10552
10553
10554
10555
10556 public static _Fields findByThriftIdOrThrow(int fieldId) {
10557 _Fields fields = findByThriftId(fieldId);
10558 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10559 return fields;
10560 }
10561
10562
10563
10564
10565 public static _Fields findByName(String name) {
10566 return byName.get(name);
10567 }
10568
10569 private final short _thriftId;
10570 private final String _fieldName;
10571
10572 _Fields(short thriftId, String fieldName) {
10573 _thriftId = thriftId;
10574 _fieldName = fieldName;
10575 }
10576
10577 public short getThriftFieldId() {
10578 return _thriftId;
10579 }
10580
10581 public String getFieldName() {
10582 return _fieldName;
10583 }
10584 }
10585
10586
10587 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10588 static {
10589 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10590 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
10591 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetFunctionsResp.class)));
10592 metaDataMap = Collections.unmodifiableMap(tmpMap);
10593 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetFunctions_result.class, metaDataMap);
10594 }
10595
10596 public GetFunctions_result() {
10597 }
10598
10599 public GetFunctions_result(
10600 TGetFunctionsResp success)
10601 {
10602 this();
10603 this.success = success;
10604 }
10605
10606
10607
10608
10609 public GetFunctions_result(GetFunctions_result other) {
10610 if (other.isSetSuccess()) {
10611 this.success = new TGetFunctionsResp(other.success);
10612 }
10613 }
10614
10615 public GetFunctions_result deepCopy() {
10616 return new GetFunctions_result(this);
10617 }
10618
10619 @Override
10620 public void clear() {
10621 this.success = null;
10622 }
10623
10624 public TGetFunctionsResp getSuccess() {
10625 return this.success;
10626 }
10627
10628 public void setSuccess(TGetFunctionsResp success) {
10629 this.success = success;
10630 }
10631
10632 public void unsetSuccess() {
10633 this.success = null;
10634 }
10635
10636
10637 public boolean isSetSuccess() {
10638 return this.success != null;
10639 }
10640
10641 public void setSuccessIsSet(boolean value) {
10642 if (!value) {
10643 this.success = null;
10644 }
10645 }
10646
10647 public void setFieldValue(_Fields field, Object value) {
10648 switch (field) {
10649 case SUCCESS:
10650 if (value == null) {
10651 unsetSuccess();
10652 } else {
10653 setSuccess((TGetFunctionsResp)value);
10654 }
10655 break;
10656
10657 }
10658 }
10659
10660 public Object getFieldValue(_Fields field) {
10661 switch (field) {
10662 case SUCCESS:
10663 return getSuccess();
10664
10665 }
10666 throw new IllegalStateException();
10667 }
10668
10669
10670 public boolean isSet(_Fields field) {
10671 if (field == null) {
10672 throw new IllegalArgumentException();
10673 }
10674
10675 switch (field) {
10676 case SUCCESS:
10677 return isSetSuccess();
10678 }
10679 throw new IllegalStateException();
10680 }
10681
10682 @Override
10683 public boolean equals(Object that) {
10684 if (that == null)
10685 return false;
10686 if (that instanceof GetFunctions_result)
10687 return this.equals((GetFunctions_result)that);
10688 return false;
10689 }
10690
10691 public boolean equals(GetFunctions_result that) {
10692 if (that == null)
10693 return false;
10694
10695 boolean this_present_success = true && this.isSetSuccess();
10696 boolean that_present_success = true && that.isSetSuccess();
10697 if (this_present_success || that_present_success) {
10698 if (!(this_present_success && that_present_success))
10699 return false;
10700 if (!this.success.equals(that.success))
10701 return false;
10702 }
10703
10704 return true;
10705 }
10706
10707 @Override
10708 public int hashCode() {
10709 List<Object> list = new ArrayList<Object>();
10710
10711 boolean present_success = true && (isSetSuccess());
10712 list.add(present_success);
10713 if (present_success)
10714 list.add(success);
10715
10716 return list.hashCode();
10717 }
10718
10719 @Override
10720 public int compareTo(GetFunctions_result other) {
10721 if (!getClass().equals(other.getClass())) {
10722 return getClass().getName().compareTo(other.getClass().getName());
10723 }
10724
10725 int lastComparison = 0;
10726
10727 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
10728 if (lastComparison != 0) {
10729 return lastComparison;
10730 }
10731 if (isSetSuccess()) {
10732 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
10733 if (lastComparison != 0) {
10734 return lastComparison;
10735 }
10736 }
10737 return 0;
10738 }
10739
10740 public _Fields fieldForId(int fieldId) {
10741 return _Fields.findByThriftId(fieldId);
10742 }
10743
10744 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10745 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10746 }
10747
10748 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10749 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10750 }
10751
10752 @Override
10753 public String toString() {
10754 StringBuilder sb = new StringBuilder("GetFunctions_result(");
10755 boolean first = true;
10756
10757 sb.append("success:");
10758 if (this.success == null) {
10759 sb.append("null");
10760 } else {
10761 sb.append(this.success);
10762 }
10763 first = false;
10764 sb.append(")");
10765 return sb.toString();
10766 }
10767
10768 public void validate() throws org.apache.thrift.TException {
10769
10770
10771 if (success != null) {
10772 success.validate();
10773 }
10774 }
10775
10776 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10777 try {
10778 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10779 } catch (org.apache.thrift.TException te) {
10780 throw new java.io.IOException(te);
10781 }
10782 }
10783
10784 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10785 try {
10786 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10787 } catch (org.apache.thrift.TException te) {
10788 throw new java.io.IOException(te);
10789 }
10790 }
10791
10792 private static class GetFunctions_resultStandardSchemeFactory implements SchemeFactory {
10793 public GetFunctions_resultStandardScheme getScheme() {
10794 return new GetFunctions_resultStandardScheme();
10795 }
10796 }
10797
10798 private static class GetFunctions_resultStandardScheme extends StandardScheme<GetFunctions_result> {
10799
10800 public void read(org.apache.thrift.protocol.TProtocol iprot, GetFunctions_result struct) throws org.apache.thrift.TException {
10801 org.apache.thrift.protocol.TField schemeField;
10802 iprot.readStructBegin();
10803 while (true)
10804 {
10805 schemeField = iprot.readFieldBegin();
10806 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10807 break;
10808 }
10809 switch (schemeField.id) {
10810 case 0:
10811 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
10812 struct.success = new TGetFunctionsResp();
10813 struct.success.read(iprot);
10814 struct.setSuccessIsSet(true);
10815 } else {
10816 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10817 }
10818 break;
10819 default:
10820 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10821 }
10822 iprot.readFieldEnd();
10823 }
10824 iprot.readStructEnd();
10825 struct.validate();
10826 }
10827
10828 public void write(org.apache.thrift.protocol.TProtocol oprot, GetFunctions_result struct) throws org.apache.thrift.TException {
10829 struct.validate();
10830
10831 oprot.writeStructBegin(STRUCT_DESC);
10832 if (struct.success != null) {
10833 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10834 struct.success.write(oprot);
10835 oprot.writeFieldEnd();
10836 }
10837 oprot.writeFieldStop();
10838 oprot.writeStructEnd();
10839 }
10840
10841 }
10842
10843 private static class GetFunctions_resultTupleSchemeFactory implements SchemeFactory {
10844 public GetFunctions_resultTupleScheme getScheme() {
10845 return new GetFunctions_resultTupleScheme();
10846 }
10847 }
10848
10849 private static class GetFunctions_resultTupleScheme extends TupleScheme<GetFunctions_result> {
10850
10851 @Override
10852 public void write(org.apache.thrift.protocol.TProtocol prot, GetFunctions_result struct) throws org.apache.thrift.TException {
10853 TTupleProtocol oprot = (TTupleProtocol) prot;
10854 BitSet optionals = new BitSet();
10855 if (struct.isSetSuccess()) {
10856 optionals.set(0);
10857 }
10858 oprot.writeBitSet(optionals, 1);
10859 if (struct.isSetSuccess()) {
10860 struct.success.write(oprot);
10861 }
10862 }
10863
10864 @Override
10865 public void read(org.apache.thrift.protocol.TProtocol prot, GetFunctions_result struct) throws org.apache.thrift.TException {
10866 TTupleProtocol iprot = (TTupleProtocol) prot;
10867 BitSet incoming = iprot.readBitSet(1);
10868 if (incoming.get(0)) {
10869 struct.success = new TGetFunctionsResp();
10870 struct.success.read(iprot);
10871 struct.setSuccessIsSet(true);
10872 }
10873 }
10874 }
10875
10876 }
10877
10878 public static class GetPrimaryKeys_args implements org.apache.thrift.TBase<GetPrimaryKeys_args, GetPrimaryKeys_args._Fields>, java.io.Serializable, Cloneable, Comparable<GetPrimaryKeys_args> {
10879 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetPrimaryKeys_args");
10880
10881 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);
10882
10883 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10884 static {
10885 schemes.put(StandardScheme.class, new GetPrimaryKeys_argsStandardSchemeFactory());
10886 schemes.put(TupleScheme.class, new GetPrimaryKeys_argsTupleSchemeFactory());
10887 }
10888
10889 private TGetPrimaryKeysReq req;
10890
10891
10892 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10893 REQ((short)1, "req");
10894
10895 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10896
10897 static {
10898 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10899 byName.put(field.getFieldName(), field);
10900 }
10901 }
10902
10903
10904
10905
10906 public static _Fields findByThriftId(int fieldId) {
10907 switch(fieldId) {
10908 case 1:
10909 return REQ;
10910 default:
10911 return null;
10912 }
10913 }
10914
10915
10916
10917
10918
10919 public static _Fields findByThriftIdOrThrow(int fieldId) {
10920 _Fields fields = findByThriftId(fieldId);
10921 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10922 return fields;
10923 }
10924
10925
10926
10927
10928 public static _Fields findByName(String name) {
10929 return byName.get(name);
10930 }
10931
10932 private final short _thriftId;
10933 private final String _fieldName;
10934
10935 _Fields(short thriftId, String fieldName) {
10936 _thriftId = thriftId;
10937 _fieldName = fieldName;
10938 }
10939
10940 public short getThriftFieldId() {
10941 return _thriftId;
10942 }
10943
10944 public String getFieldName() {
10945 return _fieldName;
10946 }
10947 }
10948
10949
10950 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10951 static {
10952 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10953 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
10954 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetPrimaryKeysReq.class)));
10955 metaDataMap = Collections.unmodifiableMap(tmpMap);
10956 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetPrimaryKeys_args.class, metaDataMap);
10957 }
10958
10959 public GetPrimaryKeys_args() {
10960 }
10961
10962 public GetPrimaryKeys_args(
10963 TGetPrimaryKeysReq req)
10964 {
10965 this();
10966 this.req = req;
10967 }
10968
10969
10970
10971
10972 public GetPrimaryKeys_args(GetPrimaryKeys_args other) {
10973 if (other.isSetReq()) {
10974 this.req = new TGetPrimaryKeysReq(other.req);
10975 }
10976 }
10977
10978 public GetPrimaryKeys_args deepCopy() {
10979 return new GetPrimaryKeys_args(this);
10980 }
10981
10982 @Override
10983 public void clear() {
10984 this.req = null;
10985 }
10986
10987 public TGetPrimaryKeysReq getReq() {
10988 return this.req;
10989 }
10990
10991 public void setReq(TGetPrimaryKeysReq req) {
10992 this.req = req;
10993 }
10994
10995 public void unsetReq() {
10996 this.req = null;
10997 }
10998
10999
11000 public boolean isSetReq() {
11001 return this.req != null;
11002 }
11003
11004 public void setReqIsSet(boolean value) {
11005 if (!value) {
11006 this.req = null;
11007 }
11008 }
11009
11010 public void setFieldValue(_Fields field, Object value) {
11011 switch (field) {
11012 case REQ:
11013 if (value == null) {
11014 unsetReq();
11015 } else {
11016 setReq((TGetPrimaryKeysReq)value);
11017 }
11018 break;
11019
11020 }
11021 }
11022
11023 public Object getFieldValue(_Fields field) {
11024 switch (field) {
11025 case REQ:
11026 return getReq();
11027
11028 }
11029 throw new IllegalStateException();
11030 }
11031
11032
11033 public boolean isSet(_Fields field) {
11034 if (field == null) {
11035 throw new IllegalArgumentException();
11036 }
11037
11038 switch (field) {
11039 case REQ:
11040 return isSetReq();
11041 }
11042 throw new IllegalStateException();
11043 }
11044
11045 @Override
11046 public boolean equals(Object that) {
11047 if (that == null)
11048 return false;
11049 if (that instanceof GetPrimaryKeys_args)
11050 return this.equals((GetPrimaryKeys_args)that);
11051 return false;
11052 }
11053
11054 public boolean equals(GetPrimaryKeys_args that) {
11055 if (that == null)
11056 return false;
11057
11058 boolean this_present_req = true && this.isSetReq();
11059 boolean that_present_req = true && that.isSetReq();
11060 if (this_present_req || that_present_req) {
11061 if (!(this_present_req && that_present_req))
11062 return false;
11063 if (!this.req.equals(that.req))
11064 return false;
11065 }
11066
11067 return true;
11068 }
11069
11070 @Override
11071 public int hashCode() {
11072 List<Object> list = new ArrayList<Object>();
11073
11074 boolean present_req = true && (isSetReq());
11075 list.add(present_req);
11076 if (present_req)
11077 list.add(req);
11078
11079 return list.hashCode();
11080 }
11081
11082 @Override
11083 public int compareTo(GetPrimaryKeys_args other) {
11084 if (!getClass().equals(other.getClass())) {
11085 return getClass().getName().compareTo(other.getClass().getName());
11086 }
11087
11088 int lastComparison = 0;
11089
11090 lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
11091 if (lastComparison != 0) {
11092 return lastComparison;
11093 }
11094 if (isSetReq()) {
11095 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
11096 if (lastComparison != 0) {
11097 return lastComparison;
11098 }
11099 }
11100 return 0;
11101 }
11102
11103 public _Fields fieldForId(int fieldId) {
11104 return _Fields.findByThriftId(fieldId);
11105 }
11106
11107 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11108 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11109 }
11110
11111 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11112 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11113 }
11114
11115 @Override
11116 public String toString() {
11117 StringBuilder sb = new StringBuilder("GetPrimaryKeys_args(");
11118 boolean first = true;
11119
11120 sb.append("req:");
11121 if (this.req == null) {
11122 sb.append("null");
11123 } else {
11124 sb.append(this.req);
11125 }
11126 first = false;
11127 sb.append(")");
11128 return sb.toString();
11129 }
11130
11131 public void validate() throws org.apache.thrift.TException {
11132
11133
11134 if (req != null) {
11135 req.validate();
11136 }
11137 }
11138
11139 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11140 try {
11141 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11142 } catch (org.apache.thrift.TException te) {
11143 throw new java.io.IOException(te);
11144 }
11145 }
11146
11147 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11148 try {
11149 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11150 } catch (org.apache.thrift.TException te) {
11151 throw new java.io.IOException(te);
11152 }
11153 }
11154
11155 private static class GetPrimaryKeys_argsStandardSchemeFactory implements SchemeFactory {
11156 public GetPrimaryKeys_argsStandardScheme getScheme() {
11157 return new GetPrimaryKeys_argsStandardScheme();
11158 }
11159 }
11160
11161 private static class GetPrimaryKeys_argsStandardScheme extends StandardScheme<GetPrimaryKeys_args> {
11162
11163 public void read(org.apache.thrift.protocol.TProtocol iprot, GetPrimaryKeys_args struct) throws org.apache.thrift.TException {
11164 org.apache.thrift.protocol.TField schemeField;
11165 iprot.readStructBegin();
11166 while (true)
11167 {
11168 schemeField = iprot.readFieldBegin();
11169 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11170 break;
11171 }
11172 switch (schemeField.id) {
11173 case 1:
11174 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
11175 struct.req = new TGetPrimaryKeysReq();
11176 struct.req.read(iprot);
11177 struct.setReqIsSet(true);
11178 } else {
11179 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11180 }
11181 break;
11182 default:
11183 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11184 }
11185 iprot.readFieldEnd();
11186 }
11187 iprot.readStructEnd();
11188 struct.validate();
11189 }
11190
11191 public void write(org.apache.thrift.protocol.TProtocol oprot, GetPrimaryKeys_args struct) throws org.apache.thrift.TException {
11192 struct.validate();
11193
11194 oprot.writeStructBegin(STRUCT_DESC);
11195 if (struct.req != null) {
11196 oprot.writeFieldBegin(REQ_FIELD_DESC);
11197 struct.req.write(oprot);
11198 oprot.writeFieldEnd();
11199 }
11200 oprot.writeFieldStop();
11201 oprot.writeStructEnd();
11202 }
11203
11204 }
11205
11206 private static class GetPrimaryKeys_argsTupleSchemeFactory implements SchemeFactory {
11207 public GetPrimaryKeys_argsTupleScheme getScheme() {
11208 return new GetPrimaryKeys_argsTupleScheme();
11209 }
11210 }
11211
11212 private static class GetPrimaryKeys_argsTupleScheme extends TupleScheme<GetPrimaryKeys_args> {
11213
11214 @Override
11215 public void write(org.apache.thrift.protocol.TProtocol prot, GetPrimaryKeys_args struct) throws org.apache.thrift.TException {
11216 TTupleProtocol oprot = (TTupleProtocol) prot;
11217 BitSet optionals = new BitSet();
11218 if (struct.isSetReq()) {
11219 optionals.set(0);
11220 }
11221 oprot.writeBitSet(optionals, 1);
11222 if (struct.isSetReq()) {
11223 struct.req.write(oprot);
11224 }
11225 }
11226
11227 @Override
11228 public void read(org.apache.thrift.protocol.TProtocol prot, GetPrimaryKeys_args struct) throws org.apache.thrift.TException {
11229 TTupleProtocol iprot = (TTupleProtocol) prot;
11230 BitSet incoming = iprot.readBitSet(1);
11231 if (incoming.get(0)) {
11232 struct.req = new TGetPrimaryKeysReq();
11233 struct.req.read(iprot);
11234 struct.setReqIsSet(true);
11235 }
11236 }
11237 }
11238
11239 }
11240
11241 public static class GetPrimaryKeys_result implements org.apache.thrift.TBase<GetPrimaryKeys_result, GetPrimaryKeys_result._Fields>, java.io.Serializable, Cloneable, Comparable<GetPrimaryKeys_result> {
11242 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetPrimaryKeys_result");
11243
11244 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);
11245
11246 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11247 static {
11248 schemes.put(StandardScheme.class, new GetPrimaryKeys_resultStandardSchemeFactory());
11249 schemes.put(TupleScheme.class, new GetPrimaryKeys_resultTupleSchemeFactory());
11250 }
11251
11252 private TGetPrimaryKeysResp success;
11253
11254
11255 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11256 SUCCESS((short)0, "success");
11257
11258 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11259
11260 static {
11261 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11262 byName.put(field.getFieldName(), field);
11263 }
11264 }
11265
11266
11267
11268
11269 public static _Fields findByThriftId(int fieldId) {
11270 switch(fieldId) {
11271 case 0:
11272 return SUCCESS;
11273 default:
11274 return null;
11275 }
11276 }
11277
11278
11279
11280
11281
11282 public static _Fields findByThriftIdOrThrow(int fieldId) {
11283 _Fields fields = findByThriftId(fieldId);
11284 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11285 return fields;
11286 }
11287
11288
11289
11290
11291 public static _Fields findByName(String name) {
11292 return byName.get(name);
11293 }
11294
11295 private final short _thriftId;
11296 private final String _fieldName;
11297
11298 _Fields(short thriftId, String fieldName) {
11299 _thriftId = thriftId;
11300 _fieldName = fieldName;
11301 }
11302
11303 public short getThriftFieldId() {
11304 return _thriftId;
11305 }
11306
11307 public String getFieldName() {
11308 return _fieldName;
11309 }
11310 }
11311
11312
11313 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11314 static {
11315 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11316 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
11317 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetPrimaryKeysResp.class)));
11318 metaDataMap = Collections.unmodifiableMap(tmpMap);
11319 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetPrimaryKeys_result.class, metaDataMap);
11320 }
11321
11322 public GetPrimaryKeys_result() {
11323 }
11324
11325 public GetPrimaryKeys_result(
11326 TGetPrimaryKeysResp success)
11327 {
11328 this();
11329 this.success = success;
11330 }
11331
11332
11333
11334
11335 public GetPrimaryKeys_result(GetPrimaryKeys_result other) {
11336 if (other.isSetSuccess()) {
11337 this.success = new TGetPrimaryKeysResp(other.success);
11338 }
11339 }
11340
11341 public GetPrimaryKeys_result deepCopy() {
11342 return new GetPrimaryKeys_result(this);
11343 }
11344
11345 @Override
11346 public void clear() {
11347 this.success = null;
11348 }
11349
11350 public TGetPrimaryKeysResp getSuccess() {
11351 return this.success;
11352 }
11353
11354 public void setSuccess(TGetPrimaryKeysResp success) {
11355 this.success = success;
11356 }
11357
11358 public void unsetSuccess() {
11359 this.success = null;
11360 }
11361
11362
11363 public boolean isSetSuccess() {
11364 return this.success != null;
11365 }
11366
11367 public void setSuccessIsSet(boolean value) {
11368 if (!value) {
11369 this.success = null;
11370 }
11371 }
11372
11373 public void setFieldValue(_Fields field, Object value) {
11374 switch (field) {
11375 case SUCCESS:
11376 if (value == null) {
11377 unsetSuccess();
11378 } else {
11379 setSuccess((TGetPrimaryKeysResp)value);
11380 }
11381 break;
11382
11383 }
11384 }
11385
11386 public Object getFieldValue(_Fields field) {
11387 switch (field) {
11388 case SUCCESS:
11389 return getSuccess();
11390
11391 }
11392 throw new IllegalStateException();
11393 }
11394
11395
11396 public boolean isSet(_Fields field) {
11397 if (field == null) {
11398 throw new IllegalArgumentException();
11399 }
11400
11401 switch (field) {
11402 case SUCCESS:
11403 return isSetSuccess();
11404 }
11405 throw new IllegalStateException();
11406 }
11407
11408 @Override
11409 public boolean equals(Object that) {
11410 if (that == null)
11411 return false;
11412 if (that instanceof GetPrimaryKeys_result)
11413 return this.equals((GetPrimaryKeys_result)that);
11414 return false;
11415 }
11416
11417 public boolean equals(GetPrimaryKeys_result that) {
11418 if (that == null)
11419 return false;
11420
11421 boolean this_present_success = true && this.isSetSuccess();
11422 boolean that_present_success = true && that.isSetSuccess();
11423 if (this_present_success || that_present_success) {
11424 if (!(this_present_success && that_present_success))
11425 return false;
11426 if (!this.success.equals(that.success))
11427 return false;
11428 }
11429
11430 return true;
11431 }
11432
11433 @Override
11434 public int hashCode() {
11435 List<Object> list = new ArrayList<Object>();
11436
11437 boolean present_success = true && (isSetSuccess());
11438 list.add(present_success);
11439 if (present_success)
11440 list.add(success);
11441
11442 return list.hashCode();
11443 }
11444
11445 @Override
11446 public int compareTo(GetPrimaryKeys_result other) {
11447 if (!getClass().equals(other.getClass())) {
11448 return getClass().getName().compareTo(other.getClass().getName());
11449 }
11450
11451 int lastComparison = 0;
11452
11453 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
11454 if (lastComparison != 0) {
11455 return lastComparison;
11456 }
11457 if (isSetSuccess()) {
11458 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
11459 if (lastComparison != 0) {
11460 return lastComparison;
11461 }
11462 }
11463 return 0;
11464 }
11465
11466 public _Fields fieldForId(int fieldId) {
11467 return _Fields.findByThriftId(fieldId);
11468 }
11469
11470 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11471 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11472 }
11473
11474 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11475 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11476 }
11477
11478 @Override
11479 public String toString() {
11480 StringBuilder sb = new StringBuilder("GetPrimaryKeys_result(");
11481 boolean first = true;
11482
11483 sb.append("success:");
11484 if (this.success == null) {
11485 sb.append("null");
11486 } else {
11487 sb.append(this.success);
11488 }
11489 first = false;
11490 sb.append(")");
11491 return sb.toString();
11492 }
11493
11494 public void validate() throws org.apache.thrift.TException {
11495
11496
11497 if (success != null) {
11498 success.validate();
11499 }
11500 }
11501
11502 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11503 try {
11504 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11505 } catch (org.apache.thrift.TException te) {
11506 throw new java.io.IOException(te);
11507 }
11508 }
11509
11510 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11511 try {
11512 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11513 } catch (org.apache.thrift.TException te) {
11514 throw new java.io.IOException(te);
11515 }
11516 }
11517
11518 private static class GetPrimaryKeys_resultStandardSchemeFactory implements SchemeFactory {
11519 public GetPrimaryKeys_resultStandardScheme getScheme() {
11520 return new GetPrimaryKeys_resultStandardScheme();
11521 }
11522 }
11523
11524 private static class GetPrimaryKeys_resultStandardScheme extends StandardScheme<GetPrimaryKeys_result> {
11525
11526 public void read(org.apache.thrift.protocol.TProtocol iprot, GetPrimaryKeys_result struct) throws org.apache.thrift.TException {
11527 org.apache.thrift.protocol.TField schemeField;
11528 iprot.readStructBegin();
11529 while (true)
11530 {
11531 schemeField = iprot.readFieldBegin();
11532 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11533 break;
11534 }
11535 switch (schemeField.id) {
11536 case 0:
11537 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
11538 struct.success = new TGetPrimaryKeysResp();
11539 struct.success.read(iprot);
11540 struct.setSuccessIsSet(true);
11541 } else {
11542 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11543 }
11544 break;
11545 default:
11546 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11547 }
11548 iprot.readFieldEnd();
11549 }
11550 iprot.readStructEnd();
11551 struct.validate();
11552 }
11553
11554 public void write(org.apache.thrift.protocol.TProtocol oprot, GetPrimaryKeys_result struct) throws org.apache.thrift.TException {
11555 struct.validate();
11556
11557 oprot.writeStructBegin(STRUCT_DESC);
11558 if (struct.success != null) {
11559 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11560 struct.success.write(oprot);
11561 oprot.writeFieldEnd();
11562 }
11563 oprot.writeFieldStop();
11564 oprot.writeStructEnd();
11565 }
11566
11567 }
11568
11569 private static class GetPrimaryKeys_resultTupleSchemeFactory implements SchemeFactory {
11570 public GetPrimaryKeys_resultTupleScheme getScheme() {
11571 return new GetPrimaryKeys_resultTupleScheme();
11572 }
11573 }
11574
11575 private static class GetPrimaryKeys_resultTupleScheme extends TupleScheme<GetPrimaryKeys_result> {
11576
11577 @Override
11578 public void write(org.apache.thrift.protocol.TProtocol prot, GetPrimaryKeys_result struct) throws org.apache.thrift.TException {
11579 TTupleProtocol oprot = (TTupleProtocol) prot;
11580 BitSet optionals = new BitSet();
11581 if (struct.isSetSuccess()) {
11582 optionals.set(0);
11583 }
11584 oprot.writeBitSet(optionals, 1);
11585 if (struct.isSetSuccess()) {
11586 struct.success.write(oprot);
11587 }
11588 }
11589
11590 @Override
11591 public void read(org.apache.thrift.protocol.TProtocol prot, GetPrimaryKeys_result struct) throws org.apache.thrift.TException {
11592 TTupleProtocol iprot = (TTupleProtocol) prot;
11593 BitSet incoming = iprot.readBitSet(1);
11594 if (incoming.get(0)) {
11595 struct.success = new TGetPrimaryKeysResp();
11596 struct.success.read(iprot);
11597 struct.setSuccessIsSet(true);
11598 }
11599 }
11600 }
11601
11602 }
11603
11604 public static class GetCrossReference_args implements org.apache.thrift.TBase<GetCrossReference_args, GetCrossReference_args._Fields>, java.io.Serializable, Cloneable, Comparable<GetCrossReference_args> {
11605 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetCrossReference_args");
11606
11607 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);
11608
11609 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11610 static {
11611 schemes.put(StandardScheme.class, new GetCrossReference_argsStandardSchemeFactory());
11612 schemes.put(TupleScheme.class, new GetCrossReference_argsTupleSchemeFactory());
11613 }
11614
11615 private TGetCrossReferenceReq req;
11616
11617
11618 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11619 REQ((short)1, "req");
11620
11621 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11622
11623 static {
11624 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11625 byName.put(field.getFieldName(), field);
11626 }
11627 }
11628
11629
11630
11631
11632 public static _Fields findByThriftId(int fieldId) {
11633 switch(fieldId) {
11634 case 1:
11635 return REQ;
11636 default:
11637 return null;
11638 }
11639 }
11640
11641
11642
11643
11644
11645 public static _Fields findByThriftIdOrThrow(int fieldId) {
11646 _Fields fields = findByThriftId(fieldId);
11647 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11648 return fields;
11649 }
11650
11651
11652
11653
11654 public static _Fields findByName(String name) {
11655 return byName.get(name);
11656 }
11657
11658 private final short _thriftId;
11659 private final String _fieldName;
11660
11661 _Fields(short thriftId, String fieldName) {
11662 _thriftId = thriftId;
11663 _fieldName = fieldName;
11664 }
11665
11666 public short getThriftFieldId() {
11667 return _thriftId;
11668 }
11669
11670 public String getFieldName() {
11671 return _fieldName;
11672 }
11673 }
11674
11675
11676 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11677 static {
11678 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11679 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
11680 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetCrossReferenceReq.class)));
11681 metaDataMap = Collections.unmodifiableMap(tmpMap);
11682 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetCrossReference_args.class, metaDataMap);
11683 }
11684
11685 public GetCrossReference_args() {
11686 }
11687
11688 public GetCrossReference_args(
11689 TGetCrossReferenceReq req)
11690 {
11691 this();
11692 this.req = req;
11693 }
11694
11695
11696
11697
11698 public GetCrossReference_args(GetCrossReference_args other) {
11699 if (other.isSetReq()) {
11700 this.req = new TGetCrossReferenceReq(other.req);
11701 }
11702 }
11703
11704 public GetCrossReference_args deepCopy() {
11705 return new GetCrossReference_args(this);
11706 }
11707
11708 @Override
11709 public void clear() {
11710 this.req = null;
11711 }
11712
11713 public TGetCrossReferenceReq getReq() {
11714 return this.req;
11715 }
11716
11717 public void setReq(TGetCrossReferenceReq req) {
11718 this.req = req;
11719 }
11720
11721 public void unsetReq() {
11722 this.req = null;
11723 }
11724
11725
11726 public boolean isSetReq() {
11727 return this.req != null;
11728 }
11729
11730 public void setReqIsSet(boolean value) {
11731 if (!value) {
11732 this.req = null;
11733 }
11734 }
11735
11736 public void setFieldValue(_Fields field, Object value) {
11737 switch (field) {
11738 case REQ:
11739 if (value == null) {
11740 unsetReq();
11741 } else {
11742 setReq((TGetCrossReferenceReq)value);
11743 }
11744 break;
11745
11746 }
11747 }
11748
11749 public Object getFieldValue(_Fields field) {
11750 switch (field) {
11751 case REQ:
11752 return getReq();
11753
11754 }
11755 throw new IllegalStateException();
11756 }
11757
11758
11759 public boolean isSet(_Fields field) {
11760 if (field == null) {
11761 throw new IllegalArgumentException();
11762 }
11763
11764 switch (field) {
11765 case REQ:
11766 return isSetReq();
11767 }
11768 throw new IllegalStateException();
11769 }
11770
11771 @Override
11772 public boolean equals(Object that) {
11773 if (that == null)
11774 return false;
11775 if (that instanceof GetCrossReference_args)
11776 return this.equals((GetCrossReference_args)that);
11777 return false;
11778 }
11779
11780 public boolean equals(GetCrossReference_args that) {
11781 if (that == null)
11782 return false;
11783
11784 boolean this_present_req = true && this.isSetReq();
11785 boolean that_present_req = true && that.isSetReq();
11786 if (this_present_req || that_present_req) {
11787 if (!(this_present_req && that_present_req))
11788 return false;
11789 if (!this.req.equals(that.req))
11790 return false;
11791 }
11792
11793 return true;
11794 }
11795
11796 @Override
11797 public int hashCode() {
11798 List<Object> list = new ArrayList<Object>();
11799
11800 boolean present_req = true && (isSetReq());
11801 list.add(present_req);
11802 if (present_req)
11803 list.add(req);
11804
11805 return list.hashCode();
11806 }
11807
11808 @Override
11809 public int compareTo(GetCrossReference_args other) {
11810 if (!getClass().equals(other.getClass())) {
11811 return getClass().getName().compareTo(other.getClass().getName());
11812 }
11813
11814 int lastComparison = 0;
11815
11816 lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
11817 if (lastComparison != 0) {
11818 return lastComparison;
11819 }
11820 if (isSetReq()) {
11821 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
11822 if (lastComparison != 0) {
11823 return lastComparison;
11824 }
11825 }
11826 return 0;
11827 }
11828
11829 public _Fields fieldForId(int fieldId) {
11830 return _Fields.findByThriftId(fieldId);
11831 }
11832
11833 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11834 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11835 }
11836
11837 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11838 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11839 }
11840
11841 @Override
11842 public String toString() {
11843 StringBuilder sb = new StringBuilder("GetCrossReference_args(");
11844 boolean first = true;
11845
11846 sb.append("req:");
11847 if (this.req == null) {
11848 sb.append("null");
11849 } else {
11850 sb.append(this.req);
11851 }
11852 first = false;
11853 sb.append(")");
11854 return sb.toString();
11855 }
11856
11857 public void validate() throws org.apache.thrift.TException {
11858
11859
11860 if (req != null) {
11861 req.validate();
11862 }
11863 }
11864
11865 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11866 try {
11867 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11868 } catch (org.apache.thrift.TException te) {
11869 throw new java.io.IOException(te);
11870 }
11871 }
11872
11873 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11874 try {
11875 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11876 } catch (org.apache.thrift.TException te) {
11877 throw new java.io.IOException(te);
11878 }
11879 }
11880
11881 private static class GetCrossReference_argsStandardSchemeFactory implements SchemeFactory {
11882 public GetCrossReference_argsStandardScheme getScheme() {
11883 return new GetCrossReference_argsStandardScheme();
11884 }
11885 }
11886
11887 private static class GetCrossReference_argsStandardScheme extends StandardScheme<GetCrossReference_args> {
11888
11889 public void read(org.apache.thrift.protocol.TProtocol iprot, GetCrossReference_args struct) throws org.apache.thrift.TException {
11890 org.apache.thrift.protocol.TField schemeField;
11891 iprot.readStructBegin();
11892 while (true)
11893 {
11894 schemeField = iprot.readFieldBegin();
11895 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11896 break;
11897 }
11898 switch (schemeField.id) {
11899 case 1:
11900 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
11901 struct.req = new TGetCrossReferenceReq();
11902 struct.req.read(iprot);
11903 struct.setReqIsSet(true);
11904 } else {
11905 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11906 }
11907 break;
11908 default:
11909 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11910 }
11911 iprot.readFieldEnd();
11912 }
11913 iprot.readStructEnd();
11914 struct.validate();
11915 }
11916
11917 public void write(org.apache.thrift.protocol.TProtocol oprot, GetCrossReference_args struct) throws org.apache.thrift.TException {
11918 struct.validate();
11919
11920 oprot.writeStructBegin(STRUCT_DESC);
11921 if (struct.req != null) {
11922 oprot.writeFieldBegin(REQ_FIELD_DESC);
11923 struct.req.write(oprot);
11924 oprot.writeFieldEnd();
11925 }
11926 oprot.writeFieldStop();
11927 oprot.writeStructEnd();
11928 }
11929
11930 }
11931
11932 private static class GetCrossReference_argsTupleSchemeFactory implements SchemeFactory {
11933 public GetCrossReference_argsTupleScheme getScheme() {
11934 return new GetCrossReference_argsTupleScheme();
11935 }
11936 }
11937
11938 private static class GetCrossReference_argsTupleScheme extends TupleScheme<GetCrossReference_args> {
11939
11940 @Override
11941 public void write(org.apache.thrift.protocol.TProtocol prot, GetCrossReference_args struct) throws org.apache.thrift.TException {
11942 TTupleProtocol oprot = (TTupleProtocol) prot;
11943 BitSet optionals = new BitSet();
11944 if (struct.isSetReq()) {
11945 optionals.set(0);
11946 }
11947 oprot.writeBitSet(optionals, 1);
11948 if (struct.isSetReq()) {
11949 struct.req.write(oprot);
11950 }
11951 }
11952
11953 @Override
11954 public void read(org.apache.thrift.protocol.TProtocol prot, GetCrossReference_args struct) throws org.apache.thrift.TException {
11955 TTupleProtocol iprot = (TTupleProtocol) prot;
11956 BitSet incoming = iprot.readBitSet(1);
11957 if (incoming.get(0)) {
11958 struct.req = new TGetCrossReferenceReq();
11959 struct.req.read(iprot);
11960 struct.setReqIsSet(true);
11961 }
11962 }
11963 }
11964
11965 }
11966
11967 public static class GetCrossReference_result implements org.apache.thrift.TBase<GetCrossReference_result, GetCrossReference_result._Fields>, java.io.Serializable, Cloneable, Comparable<GetCrossReference_result> {
11968 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetCrossReference_result");
11969
11970 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);
11971
11972 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11973 static {
11974 schemes.put(StandardScheme.class, new GetCrossReference_resultStandardSchemeFactory());
11975 schemes.put(TupleScheme.class, new GetCrossReference_resultTupleSchemeFactory());
11976 }
11977
11978 private TGetCrossReferenceResp success;
11979
11980
11981 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11982 SUCCESS((short)0, "success");
11983
11984 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11985
11986 static {
11987 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11988 byName.put(field.getFieldName(), field);
11989 }
11990 }
11991
11992
11993
11994
11995 public static _Fields findByThriftId(int fieldId) {
11996 switch(fieldId) {
11997 case 0:
11998 return SUCCESS;
11999 default:
12000 return null;
12001 }
12002 }
12003
12004
12005
12006
12007
12008 public static _Fields findByThriftIdOrThrow(int fieldId) {
12009 _Fields fields = findByThriftId(fieldId);
12010 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12011 return fields;
12012 }
12013
12014
12015
12016
12017 public static _Fields findByName(String name) {
12018 return byName.get(name);
12019 }
12020
12021 private final short _thriftId;
12022 private final String _fieldName;
12023
12024 _Fields(short thriftId, String fieldName) {
12025 _thriftId = thriftId;
12026 _fieldName = fieldName;
12027 }
12028
12029 public short getThriftFieldId() {
12030 return _thriftId;
12031 }
12032
12033 public String getFieldName() {
12034 return _fieldName;
12035 }
12036 }
12037
12038
12039 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12040 static {
12041 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12042 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
12043 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetCrossReferenceResp.class)));
12044 metaDataMap = Collections.unmodifiableMap(tmpMap);
12045 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetCrossReference_result.class, metaDataMap);
12046 }
12047
12048 public GetCrossReference_result() {
12049 }
12050
12051 public GetCrossReference_result(
12052 TGetCrossReferenceResp success)
12053 {
12054 this();
12055 this.success = success;
12056 }
12057
12058
12059
12060
12061 public GetCrossReference_result(GetCrossReference_result other) {
12062 if (other.isSetSuccess()) {
12063 this.success = new TGetCrossReferenceResp(other.success);
12064 }
12065 }
12066
12067 public GetCrossReference_result deepCopy() {
12068 return new GetCrossReference_result(this);
12069 }
12070
12071 @Override
12072 public void clear() {
12073 this.success = null;
12074 }
12075
12076 public TGetCrossReferenceResp getSuccess() {
12077 return this.success;
12078 }
12079
12080 public void setSuccess(TGetCrossReferenceResp success) {
12081 this.success = success;
12082 }
12083
12084 public void unsetSuccess() {
12085 this.success = null;
12086 }
12087
12088
12089 public boolean isSetSuccess() {
12090 return this.success != null;
12091 }
12092
12093 public void setSuccessIsSet(boolean value) {
12094 if (!value) {
12095 this.success = null;
12096 }
12097 }
12098
12099 public void setFieldValue(_Fields field, Object value) {
12100 switch (field) {
12101 case SUCCESS:
12102 if (value == null) {
12103 unsetSuccess();
12104 } else {
12105 setSuccess((TGetCrossReferenceResp)value);
12106 }
12107 break;
12108
12109 }
12110 }
12111
12112 public Object getFieldValue(_Fields field) {
12113 switch (field) {
12114 case SUCCESS:
12115 return getSuccess();
12116
12117 }
12118 throw new IllegalStateException();
12119 }
12120
12121
12122 public boolean isSet(_Fields field) {
12123 if (field == null) {
12124 throw new IllegalArgumentException();
12125 }
12126
12127 switch (field) {
12128 case SUCCESS:
12129 return isSetSuccess();
12130 }
12131 throw new IllegalStateException();
12132 }
12133
12134 @Override
12135 public boolean equals(Object that) {
12136 if (that == null)
12137 return false;
12138 if (that instanceof GetCrossReference_result)
12139 return this.equals((GetCrossReference_result)that);
12140 return false;
12141 }
12142
12143 public boolean equals(GetCrossReference_result that) {
12144 if (that == null)
12145 return false;
12146
12147 boolean this_present_success = true && this.isSetSuccess();
12148 boolean that_present_success = true && that.isSetSuccess();
12149 if (this_present_success || that_present_success) {
12150 if (!(this_present_success && that_present_success))
12151 return false;
12152 if (!this.success.equals(that.success))
12153 return false;
12154 }
12155
12156 return true;
12157 }
12158
12159 @Override
12160 public int hashCode() {
12161 List<Object> list = new ArrayList<Object>();
12162
12163 boolean present_success = true && (isSetSuccess());
12164 list.add(present_success);
12165 if (present_success)
12166 list.add(success);
12167
12168 return list.hashCode();
12169 }
12170
12171 @Override
12172 public int compareTo(GetCrossReference_result other) {
12173 if (!getClass().equals(other.getClass())) {
12174 return getClass().getName().compareTo(other.getClass().getName());
12175 }
12176
12177 int lastComparison = 0;
12178
12179 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
12180 if (lastComparison != 0) {
12181 return lastComparison;
12182 }
12183 if (isSetSuccess()) {
12184 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
12185 if (lastComparison != 0) {
12186 return lastComparison;
12187 }
12188 }
12189 return 0;
12190 }
12191
12192 public _Fields fieldForId(int fieldId) {
12193 return _Fields.findByThriftId(fieldId);
12194 }
12195
12196 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12197 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12198 }
12199
12200 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12201 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12202 }
12203
12204 @Override
12205 public String toString() {
12206 StringBuilder sb = new StringBuilder("GetCrossReference_result(");
12207 boolean first = true;
12208
12209 sb.append("success:");
12210 if (this.success == null) {
12211 sb.append("null");
12212 } else {
12213 sb.append(this.success);
12214 }
12215 first = false;
12216 sb.append(")");
12217 return sb.toString();
12218 }
12219
12220 public void validate() throws org.apache.thrift.TException {
12221
12222
12223 if (success != null) {
12224 success.validate();
12225 }
12226 }
12227
12228 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12229 try {
12230 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12231 } catch (org.apache.thrift.TException te) {
12232 throw new java.io.IOException(te);
12233 }
12234 }
12235
12236 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12237 try {
12238 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12239 } catch (org.apache.thrift.TException te) {
12240 throw new java.io.IOException(te);
12241 }
12242 }
12243
12244 private static class GetCrossReference_resultStandardSchemeFactory implements SchemeFactory {
12245 public GetCrossReference_resultStandardScheme getScheme() {
12246 return new GetCrossReference_resultStandardScheme();
12247 }
12248 }
12249
12250 private static class GetCrossReference_resultStandardScheme extends StandardScheme<GetCrossReference_result> {
12251
12252 public void read(org.apache.thrift.protocol.TProtocol iprot, GetCrossReference_result struct) throws org.apache.thrift.TException {
12253 org.apache.thrift.protocol.TField schemeField;
12254 iprot.readStructBegin();
12255 while (true)
12256 {
12257 schemeField = iprot.readFieldBegin();
12258 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12259 break;
12260 }
12261 switch (schemeField.id) {
12262 case 0:
12263 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
12264 struct.success = new TGetCrossReferenceResp();
12265 struct.success.read(iprot);
12266 struct.setSuccessIsSet(true);
12267 } else {
12268 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12269 }
12270 break;
12271 default:
12272 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12273 }
12274 iprot.readFieldEnd();
12275 }
12276 iprot.readStructEnd();
12277 struct.validate();
12278 }
12279
12280 public void write(org.apache.thrift.protocol.TProtocol oprot, GetCrossReference_result struct) throws org.apache.thrift.TException {
12281 struct.validate();
12282
12283 oprot.writeStructBegin(STRUCT_DESC);
12284 if (struct.success != null) {
12285 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12286 struct.success.write(oprot);
12287 oprot.writeFieldEnd();
12288 }
12289 oprot.writeFieldStop();
12290 oprot.writeStructEnd();
12291 }
12292
12293 }
12294
12295 private static class GetCrossReference_resultTupleSchemeFactory implements SchemeFactory {
12296 public GetCrossReference_resultTupleScheme getScheme() {
12297 return new GetCrossReference_resultTupleScheme();
12298 }
12299 }
12300
12301 private static class GetCrossReference_resultTupleScheme extends TupleScheme<GetCrossReference_result> {
12302
12303 @Override
12304 public void write(org.apache.thrift.protocol.TProtocol prot, GetCrossReference_result struct) throws org.apache.thrift.TException {
12305 TTupleProtocol oprot = (TTupleProtocol) prot;
12306 BitSet optionals = new BitSet();
12307 if (struct.isSetSuccess()) {
12308 optionals.set(0);
12309 }
12310 oprot.writeBitSet(optionals, 1);
12311 if (struct.isSetSuccess()) {
12312 struct.success.write(oprot);
12313 }
12314 }
12315
12316 @Override
12317 public void read(org.apache.thrift.protocol.TProtocol prot, GetCrossReference_result struct) throws org.apache.thrift.TException {
12318 TTupleProtocol iprot = (TTupleProtocol) prot;
12319 BitSet incoming = iprot.readBitSet(1);
12320 if (incoming.get(0)) {
12321 struct.success = new TGetCrossReferenceResp();
12322 struct.success.read(iprot);
12323 struct.setSuccessIsSet(true);
12324 }
12325 }
12326 }
12327
12328 }
12329
12330 public static class GetOperationStatus_args implements org.apache.thrift.TBase<GetOperationStatus_args, GetOperationStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<GetOperationStatus_args> {
12331 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetOperationStatus_args");
12332
12333 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);
12334
12335 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12336 static {
12337 schemes.put(StandardScheme.class, new GetOperationStatus_argsStandardSchemeFactory());
12338 schemes.put(TupleScheme.class, new GetOperationStatus_argsTupleSchemeFactory());
12339 }
12340
12341 private TGetOperationStatusReq req;
12342
12343
12344 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12345 REQ((short)1, "req");
12346
12347 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12348
12349 static {
12350 for (_Fields field : EnumSet.allOf(_Fields.class)) {
12351 byName.put(field.getFieldName(), field);
12352 }
12353 }
12354
12355
12356
12357
12358 public static _Fields findByThriftId(int fieldId) {
12359 switch(fieldId) {
12360 case 1:
12361 return REQ;
12362 default:
12363 return null;
12364 }
12365 }
12366
12367
12368
12369
12370
12371 public static _Fields findByThriftIdOrThrow(int fieldId) {
12372 _Fields fields = findByThriftId(fieldId);
12373 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12374 return fields;
12375 }
12376
12377
12378
12379
12380 public static _Fields findByName(String name) {
12381 return byName.get(name);
12382 }
12383
12384 private final short _thriftId;
12385 private final String _fieldName;
12386
12387 _Fields(short thriftId, String fieldName) {
12388 _thriftId = thriftId;
12389 _fieldName = fieldName;
12390 }
12391
12392 public short getThriftFieldId() {
12393 return _thriftId;
12394 }
12395
12396 public String getFieldName() {
12397 return _fieldName;
12398 }
12399 }
12400
12401
12402 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12403 static {
12404 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12405 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
12406 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetOperationStatusReq.class)));
12407 metaDataMap = Collections.unmodifiableMap(tmpMap);
12408 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetOperationStatus_args.class, metaDataMap);
12409 }
12410
12411 public GetOperationStatus_args() {
12412 }
12413
12414 public GetOperationStatus_args(
12415 TGetOperationStatusReq req)
12416 {
12417 this();
12418 this.req = req;
12419 }
12420
12421
12422
12423
12424 public GetOperationStatus_args(GetOperationStatus_args other) {
12425 if (other.isSetReq()) {
12426 this.req = new TGetOperationStatusReq(other.req);
12427 }
12428 }
12429
12430 public GetOperationStatus_args deepCopy() {
12431 return new GetOperationStatus_args(this);
12432 }
12433
12434 @Override
12435 public void clear() {
12436 this.req = null;
12437 }
12438
12439 public TGetOperationStatusReq getReq() {
12440 return this.req;
12441 }
12442
12443 public void setReq(TGetOperationStatusReq req) {
12444 this.req = req;
12445 }
12446
12447 public void unsetReq() {
12448 this.req = null;
12449 }
12450
12451
12452 public boolean isSetReq() {
12453 return this.req != null;
12454 }
12455
12456 public void setReqIsSet(boolean value) {
12457 if (!value) {
12458 this.req = null;
12459 }
12460 }
12461
12462 public void setFieldValue(_Fields field, Object value) {
12463 switch (field) {
12464 case REQ:
12465 if (value == null) {
12466 unsetReq();
12467 } else {
12468 setReq((TGetOperationStatusReq)value);
12469 }
12470 break;
12471
12472 }
12473 }
12474
12475 public Object getFieldValue(_Fields field) {
12476 switch (field) {
12477 case REQ:
12478 return getReq();
12479
12480 }
12481 throw new IllegalStateException();
12482 }
12483
12484
12485 public boolean isSet(_Fields field) {
12486 if (field == null) {
12487 throw new IllegalArgumentException();
12488 }
12489
12490 switch (field) {
12491 case REQ:
12492 return isSetReq();
12493 }
12494 throw new IllegalStateException();
12495 }
12496
12497 @Override
12498 public boolean equals(Object that) {
12499 if (that == null)
12500 return false;
12501 if (that instanceof GetOperationStatus_args)
12502 return this.equals((GetOperationStatus_args)that);
12503 return false;
12504 }
12505
12506 public boolean equals(GetOperationStatus_args that) {
12507 if (that == null)
12508 return false;
12509
12510 boolean this_present_req = true && this.isSetReq();
12511 boolean that_present_req = true && that.isSetReq();
12512 if (this_present_req || that_present_req) {
12513 if (!(this_present_req && that_present_req))
12514 return false;
12515 if (!this.req.equals(that.req))
12516 return false;
12517 }
12518
12519 return true;
12520 }
12521
12522 @Override
12523 public int hashCode() {
12524 List<Object> list = new ArrayList<Object>();
12525
12526 boolean present_req = true && (isSetReq());
12527 list.add(present_req);
12528 if (present_req)
12529 list.add(req);
12530
12531 return list.hashCode();
12532 }
12533
12534 @Override
12535 public int compareTo(GetOperationStatus_args other) {
12536 if (!getClass().equals(other.getClass())) {
12537 return getClass().getName().compareTo(other.getClass().getName());
12538 }
12539
12540 int lastComparison = 0;
12541
12542 lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
12543 if (lastComparison != 0) {
12544 return lastComparison;
12545 }
12546 if (isSetReq()) {
12547 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
12548 if (lastComparison != 0) {
12549 return lastComparison;
12550 }
12551 }
12552 return 0;
12553 }
12554
12555 public _Fields fieldForId(int fieldId) {
12556 return _Fields.findByThriftId(fieldId);
12557 }
12558
12559 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12560 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12561 }
12562
12563 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12564 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12565 }
12566
12567 @Override
12568 public String toString() {
12569 StringBuilder sb = new StringBuilder("GetOperationStatus_args(");
12570 boolean first = true;
12571
12572 sb.append("req:");
12573 if (this.req == null) {
12574 sb.append("null");
12575 } else {
12576 sb.append(this.req);
12577 }
12578 first = false;
12579 sb.append(")");
12580 return sb.toString();
12581 }
12582
12583 public void validate() throws org.apache.thrift.TException {
12584
12585
12586 if (req != null) {
12587 req.validate();
12588 }
12589 }
12590
12591 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12592 try {
12593 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12594 } catch (org.apache.thrift.TException te) {
12595 throw new java.io.IOException(te);
12596 }
12597 }
12598
12599 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12600 try {
12601 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12602 } catch (org.apache.thrift.TException te) {
12603 throw new java.io.IOException(te);
12604 }
12605 }
12606
12607 private static class GetOperationStatus_argsStandardSchemeFactory implements SchemeFactory {
12608 public GetOperationStatus_argsStandardScheme getScheme() {
12609 return new GetOperationStatus_argsStandardScheme();
12610 }
12611 }
12612
12613 private static class GetOperationStatus_argsStandardScheme extends StandardScheme<GetOperationStatus_args> {
12614
12615 public void read(org.apache.thrift.protocol.TProtocol iprot, GetOperationStatus_args struct) throws org.apache.thrift.TException {
12616 org.apache.thrift.protocol.TField schemeField;
12617 iprot.readStructBegin();
12618 while (true)
12619 {
12620 schemeField = iprot.readFieldBegin();
12621 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12622 break;
12623 }
12624 switch (schemeField.id) {
12625 case 1:
12626 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
12627 struct.req = new TGetOperationStatusReq();
12628 struct.req.read(iprot);
12629 struct.setReqIsSet(true);
12630 } else {
12631 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12632 }
12633 break;
12634 default:
12635 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12636 }
12637 iprot.readFieldEnd();
12638 }
12639 iprot.readStructEnd();
12640 struct.validate();
12641 }
12642
12643 public void write(org.apache.thrift.protocol.TProtocol oprot, GetOperationStatus_args struct) throws org.apache.thrift.TException {
12644 struct.validate();
12645
12646 oprot.writeStructBegin(STRUCT_DESC);
12647 if (struct.req != null) {
12648 oprot.writeFieldBegin(REQ_FIELD_DESC);
12649 struct.req.write(oprot);
12650 oprot.writeFieldEnd();
12651 }
12652 oprot.writeFieldStop();
12653 oprot.writeStructEnd();
12654 }
12655
12656 }
12657
12658 private static class GetOperationStatus_argsTupleSchemeFactory implements SchemeFactory {
12659 public GetOperationStatus_argsTupleScheme getScheme() {
12660 return new GetOperationStatus_argsTupleScheme();
12661 }
12662 }
12663
12664 private static class GetOperationStatus_argsTupleScheme extends TupleScheme<GetOperationStatus_args> {
12665
12666 @Override
12667 public void write(org.apache.thrift.protocol.TProtocol prot, GetOperationStatus_args struct) throws org.apache.thrift.TException {
12668 TTupleProtocol oprot = (TTupleProtocol) prot;
12669 BitSet optionals = new BitSet();
12670 if (struct.isSetReq()) {
12671 optionals.set(0);
12672 }
12673 oprot.writeBitSet(optionals, 1);
12674 if (struct.isSetReq()) {
12675 struct.req.write(oprot);
12676 }
12677 }
12678
12679 @Override
12680 public void read(org.apache.thrift.protocol.TProtocol prot, GetOperationStatus_args struct) throws org.apache.thrift.TException {
12681 TTupleProtocol iprot = (TTupleProtocol) prot;
12682 BitSet incoming = iprot.readBitSet(1);
12683 if (incoming.get(0)) {
12684 struct.req = new TGetOperationStatusReq();
12685 struct.req.read(iprot);
12686 struct.setReqIsSet(true);
12687 }
12688 }
12689 }
12690
12691 }
12692
12693 public static class GetOperationStatus_result implements org.apache.thrift.TBase<GetOperationStatus_result, GetOperationStatus_result._Fields>, java.io.Serializable, Cloneable, Comparable<GetOperationStatus_result> {
12694 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetOperationStatus_result");
12695
12696 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);
12697
12698 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12699 static {
12700 schemes.put(StandardScheme.class, new GetOperationStatus_resultStandardSchemeFactory());
12701 schemes.put(TupleScheme.class, new GetOperationStatus_resultTupleSchemeFactory());
12702 }
12703
12704 private TGetOperationStatusResp success;
12705
12706
12707 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12708 SUCCESS((short)0, "success");
12709
12710 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12711
12712 static {
12713 for (_Fields field : EnumSet.allOf(_Fields.class)) {
12714 byName.put(field.getFieldName(), field);
12715 }
12716 }
12717
12718
12719
12720
12721 public static _Fields findByThriftId(int fieldId) {
12722 switch(fieldId) {
12723 case 0:
12724 return SUCCESS;
12725 default:
12726 return null;
12727 }
12728 }
12729
12730
12731
12732
12733
12734 public static _Fields findByThriftIdOrThrow(int fieldId) {
12735 _Fields fields = findByThriftId(fieldId);
12736 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12737 return fields;
12738 }
12739
12740
12741
12742
12743 public static _Fields findByName(String name) {
12744 return byName.get(name);
12745 }
12746
12747 private final short _thriftId;
12748 private final String _fieldName;
12749
12750 _Fields(short thriftId, String fieldName) {
12751 _thriftId = thriftId;
12752 _fieldName = fieldName;
12753 }
12754
12755 public short getThriftFieldId() {
12756 return _thriftId;
12757 }
12758
12759 public String getFieldName() {
12760 return _fieldName;
12761 }
12762 }
12763
12764
12765 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12766 static {
12767 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12768 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
12769 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetOperationStatusResp.class)));
12770 metaDataMap = Collections.unmodifiableMap(tmpMap);
12771 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetOperationStatus_result.class, metaDataMap);
12772 }
12773
12774 public GetOperationStatus_result() {
12775 }
12776
12777 public GetOperationStatus_result(
12778 TGetOperationStatusResp success)
12779 {
12780 this();
12781 this.success = success;
12782 }
12783
12784
12785
12786
12787 public GetOperationStatus_result(GetOperationStatus_result other) {
12788 if (other.isSetSuccess()) {
12789 this.success = new TGetOperationStatusResp(other.success);
12790 }
12791 }
12792
12793 public GetOperationStatus_result deepCopy() {
12794 return new GetOperationStatus_result(this);
12795 }
12796
12797 @Override
12798 public void clear() {
12799 this.success = null;
12800 }
12801
12802 public TGetOperationStatusResp getSuccess() {
12803 return this.success;
12804 }
12805
12806 public void setSuccess(TGetOperationStatusResp success) {
12807 this.success = success;
12808 }
12809
12810 public void unsetSuccess() {
12811 this.success = null;
12812 }
12813
12814
12815 public boolean isSetSuccess() {
12816 return this.success != null;
12817 }
12818
12819 public void setSuccessIsSet(boolean value) {
12820 if (!value) {
12821 this.success = null;
12822 }
12823 }
12824
12825 public void setFieldValue(_Fields field, Object value) {
12826 switch (field) {
12827 case SUCCESS:
12828 if (value == null) {
12829 unsetSuccess();
12830 } else {
12831 setSuccess((TGetOperationStatusResp)value);
12832 }
12833 break;
12834
12835 }
12836 }
12837
12838 public Object getFieldValue(_Fields field) {
12839 switch (field) {
12840 case SUCCESS:
12841 return getSuccess();
12842
12843 }
12844 throw new IllegalStateException();
12845 }
12846
12847
12848 public boolean isSet(_Fields field) {
12849 if (field == null) {
12850 throw new IllegalArgumentException();
12851 }
12852
12853 switch (field) {
12854 case SUCCESS:
12855 return isSetSuccess();
12856 }
12857 throw new IllegalStateException();
12858 }
12859
12860 @Override
12861 public boolean equals(Object that) {
12862 if (that == null)
12863 return false;
12864 if (that instanceof GetOperationStatus_result)
12865 return this.equals((GetOperationStatus_result)that);
12866 return false;
12867 }
12868
12869 public boolean equals(GetOperationStatus_result that) {
12870 if (that == null)
12871 return false;
12872
12873 boolean this_present_success = true && this.isSetSuccess();
12874 boolean that_present_success = true && that.isSetSuccess();
12875 if (this_present_success || that_present_success) {
12876 if (!(this_present_success && that_present_success))
12877 return false;
12878 if (!this.success.equals(that.success))
12879 return false;
12880 }
12881
12882 return true;
12883 }
12884
12885 @Override
12886 public int hashCode() {
12887 List<Object> list = new ArrayList<Object>();
12888
12889 boolean present_success = true && (isSetSuccess());
12890 list.add(present_success);
12891 if (present_success)
12892 list.add(success);
12893
12894 return list.hashCode();
12895 }
12896
12897 @Override
12898 public int compareTo(GetOperationStatus_result other) {
12899 if (!getClass().equals(other.getClass())) {
12900 return getClass().getName().compareTo(other.getClass().getName());
12901 }
12902
12903 int lastComparison = 0;
12904
12905 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
12906 if (lastComparison != 0) {
12907 return lastComparison;
12908 }
12909 if (isSetSuccess()) {
12910 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
12911 if (lastComparison != 0) {
12912 return lastComparison;
12913 }
12914 }
12915 return 0;
12916 }
12917
12918 public _Fields fieldForId(int fieldId) {
12919 return _Fields.findByThriftId(fieldId);
12920 }
12921
12922 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12923 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12924 }
12925
12926 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12927 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12928 }
12929
12930 @Override
12931 public String toString() {
12932 StringBuilder sb = new StringBuilder("GetOperationStatus_result(");
12933 boolean first = true;
12934
12935 sb.append("success:");
12936 if (this.success == null) {
12937 sb.append("null");
12938 } else {
12939 sb.append(this.success);
12940 }
12941 first = false;
12942 sb.append(")");
12943 return sb.toString();
12944 }
12945
12946 public void validate() throws org.apache.thrift.TException {
12947
12948
12949 if (success != null) {
12950 success.validate();
12951 }
12952 }
12953
12954 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12955 try {
12956 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12957 } catch (org.apache.thrift.TException te) {
12958 throw new java.io.IOException(te);
12959 }
12960 }
12961
12962 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12963 try {
12964 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12965 } catch (org.apache.thrift.TException te) {
12966 throw new java.io.IOException(te);
12967 }
12968 }
12969
12970 private static class GetOperationStatus_resultStandardSchemeFactory implements SchemeFactory {
12971 public GetOperationStatus_resultStandardScheme getScheme() {
12972 return new GetOperationStatus_resultStandardScheme();
12973 }
12974 }
12975
12976 private static class GetOperationStatus_resultStandardScheme extends StandardScheme<GetOperationStatus_result> {
12977
12978 public void read(org.apache.thrift.protocol.TProtocol iprot, GetOperationStatus_result struct) throws org.apache.thrift.TException {
12979 org.apache.thrift.protocol.TField schemeField;
12980 iprot.readStructBegin();
12981 while (true)
12982 {
12983 schemeField = iprot.readFieldBegin();
12984 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12985 break;
12986 }
12987 switch (schemeField.id) {
12988 case 0:
12989 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
12990 struct.success = new TGetOperationStatusResp();
12991 struct.success.read(iprot);
12992 struct.setSuccessIsSet(true);
12993 } else {
12994 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12995 }
12996 break;
12997 default:
12998 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12999 }
13000 iprot.readFieldEnd();
13001 }
13002 iprot.readStructEnd();
13003 struct.validate();
13004 }
13005
13006 public void write(org.apache.thrift.protocol.TProtocol oprot, GetOperationStatus_result struct) throws org.apache.thrift.TException {
13007 struct.validate();
13008
13009 oprot.writeStructBegin(STRUCT_DESC);
13010 if (struct.success != null) {
13011 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13012 struct.success.write(oprot);
13013 oprot.writeFieldEnd();
13014 }
13015 oprot.writeFieldStop();
13016 oprot.writeStructEnd();
13017 }
13018
13019 }
13020
13021 private static class GetOperationStatus_resultTupleSchemeFactory implements SchemeFactory {
13022 public GetOperationStatus_resultTupleScheme getScheme() {
13023 return new GetOperationStatus_resultTupleScheme();
13024 }
13025 }
13026
13027 private static class GetOperationStatus_resultTupleScheme extends TupleScheme<GetOperationStatus_result> {
13028
13029 @Override
13030 public void write(org.apache.thrift.protocol.TProtocol prot, GetOperationStatus_result struct) throws org.apache.thrift.TException {
13031 TTupleProtocol oprot = (TTupleProtocol) prot;
13032 BitSet optionals = new BitSet();
13033 if (struct.isSetSuccess()) {
13034 optionals.set(0);
13035 }
13036 oprot.writeBitSet(optionals, 1);
13037 if (struct.isSetSuccess()) {
13038 struct.success.write(oprot);
13039 }
13040 }
13041
13042 @Override
13043 public void read(org.apache.thrift.protocol.TProtocol prot, GetOperationStatus_result struct) throws org.apache.thrift.TException {
13044 TTupleProtocol iprot = (TTupleProtocol) prot;
13045 BitSet incoming = iprot.readBitSet(1);
13046 if (incoming.get(0)) {
13047 struct.success = new TGetOperationStatusResp();
13048 struct.success.read(iprot);
13049 struct.setSuccessIsSet(true);
13050 }
13051 }
13052 }
13053
13054 }
13055
13056 public static class CancelOperation_args implements org.apache.thrift.TBase<CancelOperation_args, CancelOperation_args._Fields>, java.io.Serializable, Cloneable, Comparable<CancelOperation_args> {
13057 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CancelOperation_args");
13058
13059 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);
13060
13061 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13062 static {
13063 schemes.put(StandardScheme.class, new CancelOperation_argsStandardSchemeFactory());
13064 schemes.put(TupleScheme.class, new CancelOperation_argsTupleSchemeFactory());
13065 }
13066
13067 private TCancelOperationReq req;
13068
13069
13070 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13071 REQ((short)1, "req");
13072
13073 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13074
13075 static {
13076 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13077 byName.put(field.getFieldName(), field);
13078 }
13079 }
13080
13081
13082
13083
13084 public static _Fields findByThriftId(int fieldId) {
13085 switch(fieldId) {
13086 case 1:
13087 return REQ;
13088 default:
13089 return null;
13090 }
13091 }
13092
13093
13094
13095
13096
13097 public static _Fields findByThriftIdOrThrow(int fieldId) {
13098 _Fields fields = findByThriftId(fieldId);
13099 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13100 return fields;
13101 }
13102
13103
13104
13105
13106 public static _Fields findByName(String name) {
13107 return byName.get(name);
13108 }
13109
13110 private final short _thriftId;
13111 private final String _fieldName;
13112
13113 _Fields(short thriftId, String fieldName) {
13114 _thriftId = thriftId;
13115 _fieldName = fieldName;
13116 }
13117
13118 public short getThriftFieldId() {
13119 return _thriftId;
13120 }
13121
13122 public String getFieldName() {
13123 return _fieldName;
13124 }
13125 }
13126
13127
13128 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13129 static {
13130 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13131 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
13132 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCancelOperationReq.class)));
13133 metaDataMap = Collections.unmodifiableMap(tmpMap);
13134 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CancelOperation_args.class, metaDataMap);
13135 }
13136
13137 public CancelOperation_args() {
13138 }
13139
13140 public CancelOperation_args(
13141 TCancelOperationReq req)
13142 {
13143 this();
13144 this.req = req;
13145 }
13146
13147
13148
13149
13150 public CancelOperation_args(CancelOperation_args other) {
13151 if (other.isSetReq()) {
13152 this.req = new TCancelOperationReq(other.req);
13153 }
13154 }
13155
13156 public CancelOperation_args deepCopy() {
13157 return new CancelOperation_args(this);
13158 }
13159
13160 @Override
13161 public void clear() {
13162 this.req = null;
13163 }
13164
13165 public TCancelOperationReq getReq() {
13166 return this.req;
13167 }
13168
13169 public void setReq(TCancelOperationReq req) {
13170 this.req = req;
13171 }
13172
13173 public void unsetReq() {
13174 this.req = null;
13175 }
13176
13177
13178 public boolean isSetReq() {
13179 return this.req != null;
13180 }
13181
13182 public void setReqIsSet(boolean value) {
13183 if (!value) {
13184 this.req = null;
13185 }
13186 }
13187
13188 public void setFieldValue(_Fields field, Object value) {
13189 switch (field) {
13190 case REQ:
13191 if (value == null) {
13192 unsetReq();
13193 } else {
13194 setReq((TCancelOperationReq)value);
13195 }
13196 break;
13197
13198 }
13199 }
13200
13201 public Object getFieldValue(_Fields field) {
13202 switch (field) {
13203 case REQ:
13204 return getReq();
13205
13206 }
13207 throw new IllegalStateException();
13208 }
13209
13210
13211 public boolean isSet(_Fields field) {
13212 if (field == null) {
13213 throw new IllegalArgumentException();
13214 }
13215
13216 switch (field) {
13217 case REQ:
13218 return isSetReq();
13219 }
13220 throw new IllegalStateException();
13221 }
13222
13223 @Override
13224 public boolean equals(Object that) {
13225 if (that == null)
13226 return false;
13227 if (that instanceof CancelOperation_args)
13228 return this.equals((CancelOperation_args)that);
13229 return false;
13230 }
13231
13232 public boolean equals(CancelOperation_args that) {
13233 if (that == null)
13234 return false;
13235
13236 boolean this_present_req = true && this.isSetReq();
13237 boolean that_present_req = true && that.isSetReq();
13238 if (this_present_req || that_present_req) {
13239 if (!(this_present_req && that_present_req))
13240 return false;
13241 if (!this.req.equals(that.req))
13242 return false;
13243 }
13244
13245 return true;
13246 }
13247
13248 @Override
13249 public int hashCode() {
13250 List<Object> list = new ArrayList<Object>();
13251
13252 boolean present_req = true && (isSetReq());
13253 list.add(present_req);
13254 if (present_req)
13255 list.add(req);
13256
13257 return list.hashCode();
13258 }
13259
13260 @Override
13261 public int compareTo(CancelOperation_args other) {
13262 if (!getClass().equals(other.getClass())) {
13263 return getClass().getName().compareTo(other.getClass().getName());
13264 }
13265
13266 int lastComparison = 0;
13267
13268 lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
13269 if (lastComparison != 0) {
13270 return lastComparison;
13271 }
13272 if (isSetReq()) {
13273 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
13274 if (lastComparison != 0) {
13275 return lastComparison;
13276 }
13277 }
13278 return 0;
13279 }
13280
13281 public _Fields fieldForId(int fieldId) {
13282 return _Fields.findByThriftId(fieldId);
13283 }
13284
13285 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13286 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13287 }
13288
13289 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13290 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13291 }
13292
13293 @Override
13294 public String toString() {
13295 StringBuilder sb = new StringBuilder("CancelOperation_args(");
13296 boolean first = true;
13297
13298 sb.append("req:");
13299 if (this.req == null) {
13300 sb.append("null");
13301 } else {
13302 sb.append(this.req);
13303 }
13304 first = false;
13305 sb.append(")");
13306 return sb.toString();
13307 }
13308
13309 public void validate() throws org.apache.thrift.TException {
13310
13311
13312 if (req != null) {
13313 req.validate();
13314 }
13315 }
13316
13317 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13318 try {
13319 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13320 } catch (org.apache.thrift.TException te) {
13321 throw new java.io.IOException(te);
13322 }
13323 }
13324
13325 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13326 try {
13327 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13328 } catch (org.apache.thrift.TException te) {
13329 throw new java.io.IOException(te);
13330 }
13331 }
13332
13333 private static class CancelOperation_argsStandardSchemeFactory implements SchemeFactory {
13334 public CancelOperation_argsStandardScheme getScheme() {
13335 return new CancelOperation_argsStandardScheme();
13336 }
13337 }
13338
13339 private static class CancelOperation_argsStandardScheme extends StandardScheme<CancelOperation_args> {
13340
13341 public void read(org.apache.thrift.protocol.TProtocol iprot, CancelOperation_args struct) throws org.apache.thrift.TException {
13342 org.apache.thrift.protocol.TField schemeField;
13343 iprot.readStructBegin();
13344 while (true)
13345 {
13346 schemeField = iprot.readFieldBegin();
13347 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13348 break;
13349 }
13350 switch (schemeField.id) {
13351 case 1:
13352 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
13353 struct.req = new TCancelOperationReq();
13354 struct.req.read(iprot);
13355 struct.setReqIsSet(true);
13356 } else {
13357 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13358 }
13359 break;
13360 default:
13361 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13362 }
13363 iprot.readFieldEnd();
13364 }
13365 iprot.readStructEnd();
13366 struct.validate();
13367 }
13368
13369 public void write(org.apache.thrift.protocol.TProtocol oprot, CancelOperation_args struct) throws org.apache.thrift.TException {
13370 struct.validate();
13371
13372 oprot.writeStructBegin(STRUCT_DESC);
13373 if (struct.req != null) {
13374 oprot.writeFieldBegin(REQ_FIELD_DESC);
13375 struct.req.write(oprot);
13376 oprot.writeFieldEnd();
13377 }
13378 oprot.writeFieldStop();
13379 oprot.writeStructEnd();
13380 }
13381
13382 }
13383
13384 private static class CancelOperation_argsTupleSchemeFactory implements SchemeFactory {
13385 public CancelOperation_argsTupleScheme getScheme() {
13386 return new CancelOperation_argsTupleScheme();
13387 }
13388 }
13389
13390 private static class CancelOperation_argsTupleScheme extends TupleScheme<CancelOperation_args> {
13391
13392 @Override
13393 public void write(org.apache.thrift.protocol.TProtocol prot, CancelOperation_args struct) throws org.apache.thrift.TException {
13394 TTupleProtocol oprot = (TTupleProtocol) prot;
13395 BitSet optionals = new BitSet();
13396 if (struct.isSetReq()) {
13397 optionals.set(0);
13398 }
13399 oprot.writeBitSet(optionals, 1);
13400 if (struct.isSetReq()) {
13401 struct.req.write(oprot);
13402 }
13403 }
13404
13405 @Override
13406 public void read(org.apache.thrift.protocol.TProtocol prot, CancelOperation_args struct) throws org.apache.thrift.TException {
13407 TTupleProtocol iprot = (TTupleProtocol) prot;
13408 BitSet incoming = iprot.readBitSet(1);
13409 if (incoming.get(0)) {
13410 struct.req = new TCancelOperationReq();
13411 struct.req.read(iprot);
13412 struct.setReqIsSet(true);
13413 }
13414 }
13415 }
13416
13417 }
13418
13419 public static class CancelOperation_result implements org.apache.thrift.TBase<CancelOperation_result, CancelOperation_result._Fields>, java.io.Serializable, Cloneable, Comparable<CancelOperation_result> {
13420 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CancelOperation_result");
13421
13422 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);
13423
13424 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13425 static {
13426 schemes.put(StandardScheme.class, new CancelOperation_resultStandardSchemeFactory());
13427 schemes.put(TupleScheme.class, new CancelOperation_resultTupleSchemeFactory());
13428 }
13429
13430 private TCancelOperationResp success;
13431
13432
13433 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13434 SUCCESS((short)0, "success");
13435
13436 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13437
13438 static {
13439 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13440 byName.put(field.getFieldName(), field);
13441 }
13442 }
13443
13444
13445
13446
13447 public static _Fields findByThriftId(int fieldId) {
13448 switch(fieldId) {
13449 case 0:
13450 return SUCCESS;
13451 default:
13452 return null;
13453 }
13454 }
13455
13456
13457
13458
13459
13460 public static _Fields findByThriftIdOrThrow(int fieldId) {
13461 _Fields fields = findByThriftId(fieldId);
13462 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13463 return fields;
13464 }
13465
13466
13467
13468
13469 public static _Fields findByName(String name) {
13470 return byName.get(name);
13471 }
13472
13473 private final short _thriftId;
13474 private final String _fieldName;
13475
13476 _Fields(short thriftId, String fieldName) {
13477 _thriftId = thriftId;
13478 _fieldName = fieldName;
13479 }
13480
13481 public short getThriftFieldId() {
13482 return _thriftId;
13483 }
13484
13485 public String getFieldName() {
13486 return _fieldName;
13487 }
13488 }
13489
13490
13491 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13492 static {
13493 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13494 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
13495 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCancelOperationResp.class)));
13496 metaDataMap = Collections.unmodifiableMap(tmpMap);
13497 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CancelOperation_result.class, metaDataMap);
13498 }
13499
13500 public CancelOperation_result() {
13501 }
13502
13503 public CancelOperation_result(
13504 TCancelOperationResp success)
13505 {
13506 this();
13507 this.success = success;
13508 }
13509
13510
13511
13512
13513 public CancelOperation_result(CancelOperation_result other) {
13514 if (other.isSetSuccess()) {
13515 this.success = new TCancelOperationResp(other.success);
13516 }
13517 }
13518
13519 public CancelOperation_result deepCopy() {
13520 return new CancelOperation_result(this);
13521 }
13522
13523 @Override
13524 public void clear() {
13525 this.success = null;
13526 }
13527
13528 public TCancelOperationResp getSuccess() {
13529 return this.success;
13530 }
13531
13532 public void setSuccess(TCancelOperationResp success) {
13533 this.success = success;
13534 }
13535
13536 public void unsetSuccess() {
13537 this.success = null;
13538 }
13539
13540
13541 public boolean isSetSuccess() {
13542 return this.success != null;
13543 }
13544
13545 public void setSuccessIsSet(boolean value) {
13546 if (!value) {
13547 this.success = null;
13548 }
13549 }
13550
13551 public void setFieldValue(_Fields field, Object value) {
13552 switch (field) {
13553 case SUCCESS:
13554 if (value == null) {
13555 unsetSuccess();
13556 } else {
13557 setSuccess((TCancelOperationResp)value);
13558 }
13559 break;
13560
13561 }
13562 }
13563
13564 public Object getFieldValue(_Fields field) {
13565 switch (field) {
13566 case SUCCESS:
13567 return getSuccess();
13568
13569 }
13570 throw new IllegalStateException();
13571 }
13572
13573
13574 public boolean isSet(_Fields field) {
13575 if (field == null) {
13576 throw new IllegalArgumentException();
13577 }
13578
13579 switch (field) {
13580 case SUCCESS:
13581 return isSetSuccess();
13582 }
13583 throw new IllegalStateException();
13584 }
13585
13586 @Override
13587 public boolean equals(Object that) {
13588 if (that == null)
13589 return false;
13590 if (that instanceof CancelOperation_result)
13591 return this.equals((CancelOperation_result)that);
13592 return false;
13593 }
13594
13595 public boolean equals(CancelOperation_result that) {
13596 if (that == null)
13597 return false;
13598
13599 boolean this_present_success = true && this.isSetSuccess();
13600 boolean that_present_success = true && that.isSetSuccess();
13601 if (this_present_success || that_present_success) {
13602 if (!(this_present_success && that_present_success))
13603 return false;
13604 if (!this.success.equals(that.success))
13605 return false;
13606 }
13607
13608 return true;
13609 }
13610
13611 @Override
13612 public int hashCode() {
13613 List<Object> list = new ArrayList<Object>();
13614
13615 boolean present_success = true && (isSetSuccess());
13616 list.add(present_success);
13617 if (present_success)
13618 list.add(success);
13619
13620 return list.hashCode();
13621 }
13622
13623 @Override
13624 public int compareTo(CancelOperation_result other) {
13625 if (!getClass().equals(other.getClass())) {
13626 return getClass().getName().compareTo(other.getClass().getName());
13627 }
13628
13629 int lastComparison = 0;
13630
13631 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
13632 if (lastComparison != 0) {
13633 return lastComparison;
13634 }
13635 if (isSetSuccess()) {
13636 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
13637 if (lastComparison != 0) {
13638 return lastComparison;
13639 }
13640 }
13641 return 0;
13642 }
13643
13644 public _Fields fieldForId(int fieldId) {
13645 return _Fields.findByThriftId(fieldId);
13646 }
13647
13648 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13649 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13650 }
13651
13652 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13653 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13654 }
13655
13656 @Override
13657 public String toString() {
13658 StringBuilder sb = new StringBuilder("CancelOperation_result(");
13659 boolean first = true;
13660
13661 sb.append("success:");
13662 if (this.success == null) {
13663 sb.append("null");
13664 } else {
13665 sb.append(this.success);
13666 }
13667 first = false;
13668 sb.append(")");
13669 return sb.toString();
13670 }
13671
13672 public void validate() throws org.apache.thrift.TException {
13673
13674
13675 if (success != null) {
13676 success.validate();
13677 }
13678 }
13679
13680 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13681 try {
13682 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13683 } catch (org.apache.thrift.TException te) {
13684 throw new java.io.IOException(te);
13685 }
13686 }
13687
13688 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13689 try {
13690 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13691 } catch (org.apache.thrift.TException te) {
13692 throw new java.io.IOException(te);
13693 }
13694 }
13695
13696 private static class CancelOperation_resultStandardSchemeFactory implements SchemeFactory {
13697 public CancelOperation_resultStandardScheme getScheme() {
13698 return new CancelOperation_resultStandardScheme();
13699 }
13700 }
13701
13702 private static class CancelOperation_resultStandardScheme extends StandardScheme<CancelOperation_result> {
13703
13704 public void read(org.apache.thrift.protocol.TProtocol iprot, CancelOperation_result struct) throws org.apache.thrift.TException {
13705 org.apache.thrift.protocol.TField schemeField;
13706 iprot.readStructBegin();
13707 while (true)
13708 {
13709 schemeField = iprot.readFieldBegin();
13710 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13711 break;
13712 }
13713 switch (schemeField.id) {
13714 case 0:
13715 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
13716 struct.success = new TCancelOperationResp();
13717 struct.success.read(iprot);
13718 struct.setSuccessIsSet(true);
13719 } else {
13720 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13721 }
13722 break;
13723 default:
13724 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13725 }
13726 iprot.readFieldEnd();
13727 }
13728 iprot.readStructEnd();
13729 struct.validate();
13730 }
13731
13732 public void write(org.apache.thrift.protocol.TProtocol oprot, CancelOperation_result struct) throws org.apache.thrift.TException {
13733 struct.validate();
13734
13735 oprot.writeStructBegin(STRUCT_DESC);
13736 if (struct.success != null) {
13737 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13738 struct.success.write(oprot);
13739 oprot.writeFieldEnd();
13740 }
13741 oprot.writeFieldStop();
13742 oprot.writeStructEnd();
13743 }
13744
13745 }
13746
13747 private static class CancelOperation_resultTupleSchemeFactory implements SchemeFactory {
13748 public CancelOperation_resultTupleScheme getScheme() {
13749 return new CancelOperation_resultTupleScheme();
13750 }
13751 }
13752
13753 private static class CancelOperation_resultTupleScheme extends TupleScheme<CancelOperation_result> {
13754
13755 @Override
13756 public void write(org.apache.thrift.protocol.TProtocol prot, CancelOperation_result struct) throws org.apache.thrift.TException {
13757 TTupleProtocol oprot = (TTupleProtocol) prot;
13758 BitSet optionals = new BitSet();
13759 if (struct.isSetSuccess()) {
13760 optionals.set(0);
13761 }
13762 oprot.writeBitSet(optionals, 1);
13763 if (struct.isSetSuccess()) {
13764 struct.success.write(oprot);
13765 }
13766 }
13767
13768 @Override
13769 public void read(org.apache.thrift.protocol.TProtocol prot, CancelOperation_result struct) throws org.apache.thrift.TException {
13770 TTupleProtocol iprot = (TTupleProtocol) prot;
13771 BitSet incoming = iprot.readBitSet(1);
13772 if (incoming.get(0)) {
13773 struct.success = new TCancelOperationResp();
13774 struct.success.read(iprot);
13775 struct.setSuccessIsSet(true);
13776 }
13777 }
13778 }
13779
13780 }
13781
13782 public static class CloseOperation_args implements org.apache.thrift.TBase<CloseOperation_args, CloseOperation_args._Fields>, java.io.Serializable, Cloneable, Comparable<CloseOperation_args> {
13783 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CloseOperation_args");
13784
13785 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);
13786
13787 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13788 static {
13789 schemes.put(StandardScheme.class, new CloseOperation_argsStandardSchemeFactory());
13790 schemes.put(TupleScheme.class, new CloseOperation_argsTupleSchemeFactory());
13791 }
13792
13793 private TCloseOperationReq req;
13794
13795
13796 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13797 REQ((short)1, "req");
13798
13799 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13800
13801 static {
13802 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13803 byName.put(field.getFieldName(), field);
13804 }
13805 }
13806
13807
13808
13809
13810 public static _Fields findByThriftId(int fieldId) {
13811 switch(fieldId) {
13812 case 1:
13813 return REQ;
13814 default:
13815 return null;
13816 }
13817 }
13818
13819
13820
13821
13822
13823 public static _Fields findByThriftIdOrThrow(int fieldId) {
13824 _Fields fields = findByThriftId(fieldId);
13825 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13826 return fields;
13827 }
13828
13829
13830
13831
13832 public static _Fields findByName(String name) {
13833 return byName.get(name);
13834 }
13835
13836 private final short _thriftId;
13837 private final String _fieldName;
13838
13839 _Fields(short thriftId, String fieldName) {
13840 _thriftId = thriftId;
13841 _fieldName = fieldName;
13842 }
13843
13844 public short getThriftFieldId() {
13845 return _thriftId;
13846 }
13847
13848 public String getFieldName() {
13849 return _fieldName;
13850 }
13851 }
13852
13853
13854 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13855 static {
13856 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13857 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
13858 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCloseOperationReq.class)));
13859 metaDataMap = Collections.unmodifiableMap(tmpMap);
13860 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CloseOperation_args.class, metaDataMap);
13861 }
13862
13863 public CloseOperation_args() {
13864 }
13865
13866 public CloseOperation_args(
13867 TCloseOperationReq req)
13868 {
13869 this();
13870 this.req = req;
13871 }
13872
13873
13874
13875
13876 public CloseOperation_args(CloseOperation_args other) {
13877 if (other.isSetReq()) {
13878 this.req = new TCloseOperationReq(other.req);
13879 }
13880 }
13881
13882 public CloseOperation_args deepCopy() {
13883 return new CloseOperation_args(this);
13884 }
13885
13886 @Override
13887 public void clear() {
13888 this.req = null;
13889 }
13890
13891 public TCloseOperationReq getReq() {
13892 return this.req;
13893 }
13894
13895 public void setReq(TCloseOperationReq req) {
13896 this.req = req;
13897 }
13898
13899 public void unsetReq() {
13900 this.req = null;
13901 }
13902
13903
13904 public boolean isSetReq() {
13905 return this.req != null;
13906 }
13907
13908 public void setReqIsSet(boolean value) {
13909 if (!value) {
13910 this.req = null;
13911 }
13912 }
13913
13914 public void setFieldValue(_Fields field, Object value) {
13915 switch (field) {
13916 case REQ:
13917 if (value == null) {
13918 unsetReq();
13919 } else {
13920 setReq((TCloseOperationReq)value);
13921 }
13922 break;
13923
13924 }
13925 }
13926
13927 public Object getFieldValue(_Fields field) {
13928 switch (field) {
13929 case REQ:
13930 return getReq();
13931
13932 }
13933 throw new IllegalStateException();
13934 }
13935
13936
13937 public boolean isSet(_Fields field) {
13938 if (field == null) {
13939 throw new IllegalArgumentException();
13940 }
13941
13942 switch (field) {
13943 case REQ:
13944 return isSetReq();
13945 }
13946 throw new IllegalStateException();
13947 }
13948
13949 @Override
13950 public boolean equals(Object that) {
13951 if (that == null)
13952 return false;
13953 if (that instanceof CloseOperation_args)
13954 return this.equals((CloseOperation_args)that);
13955 return false;
13956 }
13957
13958 public boolean equals(CloseOperation_args that) {
13959 if (that == null)
13960 return false;
13961
13962 boolean this_present_req = true && this.isSetReq();
13963 boolean that_present_req = true && that.isSetReq();
13964 if (this_present_req || that_present_req) {
13965 if (!(this_present_req && that_present_req))
13966 return false;
13967 if (!this.req.equals(that.req))
13968 return false;
13969 }
13970
13971 return true;
13972 }
13973
13974 @Override
13975 public int hashCode() {
13976 List<Object> list = new ArrayList<Object>();
13977
13978 boolean present_req = true && (isSetReq());
13979 list.add(present_req);
13980 if (present_req)
13981 list.add(req);
13982
13983 return list.hashCode();
13984 }
13985
13986 @Override
13987 public int compareTo(CloseOperation_args other) {
13988 if (!getClass().equals(other.getClass())) {
13989 return getClass().getName().compareTo(other.getClass().getName());
13990 }
13991
13992 int lastComparison = 0;
13993
13994 lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
13995 if (lastComparison != 0) {
13996 return lastComparison;
13997 }
13998 if (isSetReq()) {
13999 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
14000 if (lastComparison != 0) {
14001 return lastComparison;
14002 }
14003 }
14004 return 0;
14005 }
14006
14007 public _Fields fieldForId(int fieldId) {
14008 return _Fields.findByThriftId(fieldId);
14009 }
14010
14011 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14012 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14013 }
14014
14015 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14016 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14017 }
14018
14019 @Override
14020 public String toString() {
14021 StringBuilder sb = new StringBuilder("CloseOperation_args(");
14022 boolean first = true;
14023
14024 sb.append("req:");
14025 if (this.req == null) {
14026 sb.append("null");
14027 } else {
14028 sb.append(this.req);
14029 }
14030 first = false;
14031 sb.append(")");
14032 return sb.toString();
14033 }
14034
14035 public void validate() throws org.apache.thrift.TException {
14036
14037
14038 if (req != null) {
14039 req.validate();
14040 }
14041 }
14042
14043 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14044 try {
14045 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14046 } catch (org.apache.thrift.TException te) {
14047 throw new java.io.IOException(te);
14048 }
14049 }
14050
14051 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14052 try {
14053 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14054 } catch (org.apache.thrift.TException te) {
14055 throw new java.io.IOException(te);
14056 }
14057 }
14058
14059 private static class CloseOperation_argsStandardSchemeFactory implements SchemeFactory {
14060 public CloseOperation_argsStandardScheme getScheme() {
14061 return new CloseOperation_argsStandardScheme();
14062 }
14063 }
14064
14065 private static class CloseOperation_argsStandardScheme extends StandardScheme<CloseOperation_args> {
14066
14067 public void read(org.apache.thrift.protocol.TProtocol iprot, CloseOperation_args struct) throws org.apache.thrift.TException {
14068 org.apache.thrift.protocol.TField schemeField;
14069 iprot.readStructBegin();
14070 while (true)
14071 {
14072 schemeField = iprot.readFieldBegin();
14073 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14074 break;
14075 }
14076 switch (schemeField.id) {
14077 case 1:
14078 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
14079 struct.req = new TCloseOperationReq();
14080 struct.req.read(iprot);
14081 struct.setReqIsSet(true);
14082 } else {
14083 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14084 }
14085 break;
14086 default:
14087 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14088 }
14089 iprot.readFieldEnd();
14090 }
14091 iprot.readStructEnd();
14092 struct.validate();
14093 }
14094
14095 public void write(org.apache.thrift.protocol.TProtocol oprot, CloseOperation_args struct) throws org.apache.thrift.TException {
14096 struct.validate();
14097
14098 oprot.writeStructBegin(STRUCT_DESC);
14099 if (struct.req != null) {
14100 oprot.writeFieldBegin(REQ_FIELD_DESC);
14101 struct.req.write(oprot);
14102 oprot.writeFieldEnd();
14103 }
14104 oprot.writeFieldStop();
14105 oprot.writeStructEnd();
14106 }
14107
14108 }
14109
14110 private static class CloseOperation_argsTupleSchemeFactory implements SchemeFactory {
14111 public CloseOperation_argsTupleScheme getScheme() {
14112 return new CloseOperation_argsTupleScheme();
14113 }
14114 }
14115
14116 private static class CloseOperation_argsTupleScheme extends TupleScheme<CloseOperation_args> {
14117
14118 @Override
14119 public void write(org.apache.thrift.protocol.TProtocol prot, CloseOperation_args struct) throws org.apache.thrift.TException {
14120 TTupleProtocol oprot = (TTupleProtocol) prot;
14121 BitSet optionals = new BitSet();
14122 if (struct.isSetReq()) {
14123 optionals.set(0);
14124 }
14125 oprot.writeBitSet(optionals, 1);
14126 if (struct.isSetReq()) {
14127 struct.req.write(oprot);
14128 }
14129 }
14130
14131 @Override
14132 public void read(org.apache.thrift.protocol.TProtocol prot, CloseOperation_args struct) throws org.apache.thrift.TException {
14133 TTupleProtocol iprot = (TTupleProtocol) prot;
14134 BitSet incoming = iprot.readBitSet(1);
14135 if (incoming.get(0)) {
14136 struct.req = new TCloseOperationReq();
14137 struct.req.read(iprot);
14138 struct.setReqIsSet(true);
14139 }
14140 }
14141 }
14142
14143 }
14144
14145 public static class CloseOperation_result implements org.apache.thrift.TBase<CloseOperation_result, CloseOperation_result._Fields>, java.io.Serializable, Cloneable, Comparable<CloseOperation_result> {
14146 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CloseOperation_result");
14147
14148 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);
14149
14150 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14151 static {
14152 schemes.put(StandardScheme.class, new CloseOperation_resultStandardSchemeFactory());
14153 schemes.put(TupleScheme.class, new CloseOperation_resultTupleSchemeFactory());
14154 }
14155
14156 private TCloseOperationResp success;
14157
14158
14159 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14160 SUCCESS((short)0, "success");
14161
14162 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14163
14164 static {
14165 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14166 byName.put(field.getFieldName(), field);
14167 }
14168 }
14169
14170
14171
14172
14173 public static _Fields findByThriftId(int fieldId) {
14174 switch(fieldId) {
14175 case 0:
14176 return SUCCESS;
14177 default:
14178 return null;
14179 }
14180 }
14181
14182
14183
14184
14185
14186 public static _Fields findByThriftIdOrThrow(int fieldId) {
14187 _Fields fields = findByThriftId(fieldId);
14188 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14189 return fields;
14190 }
14191
14192
14193
14194
14195 public static _Fields findByName(String name) {
14196 return byName.get(name);
14197 }
14198
14199 private final short _thriftId;
14200 private final String _fieldName;
14201
14202 _Fields(short thriftId, String fieldName) {
14203 _thriftId = thriftId;
14204 _fieldName = fieldName;
14205 }
14206
14207 public short getThriftFieldId() {
14208 return _thriftId;
14209 }
14210
14211 public String getFieldName() {
14212 return _fieldName;
14213 }
14214 }
14215
14216
14217 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14218 static {
14219 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14220 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
14221 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCloseOperationResp.class)));
14222 metaDataMap = Collections.unmodifiableMap(tmpMap);
14223 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CloseOperation_result.class, metaDataMap);
14224 }
14225
14226 public CloseOperation_result() {
14227 }
14228
14229 public CloseOperation_result(
14230 TCloseOperationResp success)
14231 {
14232 this();
14233 this.success = success;
14234 }
14235
14236
14237
14238
14239 public CloseOperation_result(CloseOperation_result other) {
14240 if (other.isSetSuccess()) {
14241 this.success = new TCloseOperationResp(other.success);
14242 }
14243 }
14244
14245 public CloseOperation_result deepCopy() {
14246 return new CloseOperation_result(this);
14247 }
14248
14249 @Override
14250 public void clear() {
14251 this.success = null;
14252 }
14253
14254 public TCloseOperationResp getSuccess() {
14255 return this.success;
14256 }
14257
14258 public void setSuccess(TCloseOperationResp success) {
14259 this.success = success;
14260 }
14261
14262 public void unsetSuccess() {
14263 this.success = null;
14264 }
14265
14266
14267 public boolean isSetSuccess() {
14268 return this.success != null;
14269 }
14270
14271 public void setSuccessIsSet(boolean value) {
14272 if (!value) {
14273 this.success = null;
14274 }
14275 }
14276
14277 public void setFieldValue(_Fields field, Object value) {
14278 switch (field) {
14279 case SUCCESS:
14280 if (value == null) {
14281 unsetSuccess();
14282 } else {
14283 setSuccess((TCloseOperationResp)value);
14284 }
14285 break;
14286
14287 }
14288 }
14289
14290 public Object getFieldValue(_Fields field) {
14291 switch (field) {
14292 case SUCCESS:
14293 return getSuccess();
14294
14295 }
14296 throw new IllegalStateException();
14297 }
14298
14299
14300 public boolean isSet(_Fields field) {
14301 if (field == null) {
14302 throw new IllegalArgumentException();
14303 }
14304
14305 switch (field) {
14306 case SUCCESS:
14307 return isSetSuccess();
14308 }
14309 throw new IllegalStateException();
14310 }
14311
14312 @Override
14313 public boolean equals(Object that) {
14314 if (that == null)
14315 return false;
14316 if (that instanceof CloseOperation_result)
14317 return this.equals((CloseOperation_result)that);
14318 return false;
14319 }
14320
14321 public boolean equals(CloseOperation_result that) {
14322 if (that == null)
14323 return false;
14324
14325 boolean this_present_success = true && this.isSetSuccess();
14326 boolean that_present_success = true && that.isSetSuccess();
14327 if (this_present_success || that_present_success) {
14328 if (!(this_present_success && that_present_success))
14329 return false;
14330 if (!this.success.equals(that.success))
14331 return false;
14332 }
14333
14334 return true;
14335 }
14336
14337 @Override
14338 public int hashCode() {
14339 List<Object> list = new ArrayList<Object>();
14340
14341 boolean present_success = true && (isSetSuccess());
14342 list.add(present_success);
14343 if (present_success)
14344 list.add(success);
14345
14346 return list.hashCode();
14347 }
14348
14349 @Override
14350 public int compareTo(CloseOperation_result other) {
14351 if (!getClass().equals(other.getClass())) {
14352 return getClass().getName().compareTo(other.getClass().getName());
14353 }
14354
14355 int lastComparison = 0;
14356
14357 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
14358 if (lastComparison != 0) {
14359 return lastComparison;
14360 }
14361 if (isSetSuccess()) {
14362 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
14363 if (lastComparison != 0) {
14364 return lastComparison;
14365 }
14366 }
14367 return 0;
14368 }
14369
14370 public _Fields fieldForId(int fieldId) {
14371 return _Fields.findByThriftId(fieldId);
14372 }
14373
14374 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14375 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14376 }
14377
14378 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14379 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14380 }
14381
14382 @Override
14383 public String toString() {
14384 StringBuilder sb = new StringBuilder("CloseOperation_result(");
14385 boolean first = true;
14386
14387 sb.append("success:");
14388 if (this.success == null) {
14389 sb.append("null");
14390 } else {
14391 sb.append(this.success);
14392 }
14393 first = false;
14394 sb.append(")");
14395 return sb.toString();
14396 }
14397
14398 public void validate() throws org.apache.thrift.TException {
14399
14400
14401 if (success != null) {
14402 success.validate();
14403 }
14404 }
14405
14406 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14407 try {
14408 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14409 } catch (org.apache.thrift.TException te) {
14410 throw new java.io.IOException(te);
14411 }
14412 }
14413
14414 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14415 try {
14416 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14417 } catch (org.apache.thrift.TException te) {
14418 throw new java.io.IOException(te);
14419 }
14420 }
14421
14422 private static class CloseOperation_resultStandardSchemeFactory implements SchemeFactory {
14423 public CloseOperation_resultStandardScheme getScheme() {
14424 return new CloseOperation_resultStandardScheme();
14425 }
14426 }
14427
14428 private static class CloseOperation_resultStandardScheme extends StandardScheme<CloseOperation_result> {
14429
14430 public void read(org.apache.thrift.protocol.TProtocol iprot, CloseOperation_result struct) throws org.apache.thrift.TException {
14431 org.apache.thrift.protocol.TField schemeField;
14432 iprot.readStructBegin();
14433 while (true)
14434 {
14435 schemeField = iprot.readFieldBegin();
14436 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14437 break;
14438 }
14439 switch (schemeField.id) {
14440 case 0:
14441 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
14442 struct.success = new TCloseOperationResp();
14443 struct.success.read(iprot);
14444 struct.setSuccessIsSet(true);
14445 } else {
14446 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14447 }
14448 break;
14449 default:
14450 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14451 }
14452 iprot.readFieldEnd();
14453 }
14454 iprot.readStructEnd();
14455 struct.validate();
14456 }
14457
14458 public void write(org.apache.thrift.protocol.TProtocol oprot, CloseOperation_result struct) throws org.apache.thrift.TException {
14459 struct.validate();
14460
14461 oprot.writeStructBegin(STRUCT_DESC);
14462 if (struct.success != null) {
14463 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14464 struct.success.write(oprot);
14465 oprot.writeFieldEnd();
14466 }
14467 oprot.writeFieldStop();
14468 oprot.writeStructEnd();
14469 }
14470
14471 }
14472
14473 private static class CloseOperation_resultTupleSchemeFactory implements SchemeFactory {
14474 public CloseOperation_resultTupleScheme getScheme() {
14475 return new CloseOperation_resultTupleScheme();
14476 }
14477 }
14478
14479 private static class CloseOperation_resultTupleScheme extends TupleScheme<CloseOperation_result> {
14480
14481 @Override
14482 public void write(org.apache.thrift.protocol.TProtocol prot, CloseOperation_result struct) throws org.apache.thrift.TException {
14483 TTupleProtocol oprot = (TTupleProtocol) prot;
14484 BitSet optionals = new BitSet();
14485 if (struct.isSetSuccess()) {
14486 optionals.set(0);
14487 }
14488 oprot.writeBitSet(optionals, 1);
14489 if (struct.isSetSuccess()) {
14490 struct.success.write(oprot);
14491 }
14492 }
14493
14494 @Override
14495 public void read(org.apache.thrift.protocol.TProtocol prot, CloseOperation_result struct) throws org.apache.thrift.TException {
14496 TTupleProtocol iprot = (TTupleProtocol) prot;
14497 BitSet incoming = iprot.readBitSet(1);
14498 if (incoming.get(0)) {
14499 struct.success = new TCloseOperationResp();
14500 struct.success.read(iprot);
14501 struct.setSuccessIsSet(true);
14502 }
14503 }
14504 }
14505
14506 }
14507
14508 public static class GetResultSetMetadata_args implements org.apache.thrift.TBase<GetResultSetMetadata_args, GetResultSetMetadata_args._Fields>, java.io.Serializable, Cloneable, Comparable<GetResultSetMetadata_args> {
14509 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetResultSetMetadata_args");
14510
14511 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);
14512
14513 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14514 static {
14515 schemes.put(StandardScheme.class, new GetResultSetMetadata_argsStandardSchemeFactory());
14516 schemes.put(TupleScheme.class, new GetResultSetMetadata_argsTupleSchemeFactory());
14517 }
14518
14519 private TGetResultSetMetadataReq req;
14520
14521
14522 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14523 REQ((short)1, "req");
14524
14525 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14526
14527 static {
14528 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14529 byName.put(field.getFieldName(), field);
14530 }
14531 }
14532
14533
14534
14535
14536 public static _Fields findByThriftId(int fieldId) {
14537 switch(fieldId) {
14538 case 1:
14539 return REQ;
14540 default:
14541 return null;
14542 }
14543 }
14544
14545
14546
14547
14548
14549 public static _Fields findByThriftIdOrThrow(int fieldId) {
14550 _Fields fields = findByThriftId(fieldId);
14551 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14552 return fields;
14553 }
14554
14555
14556
14557
14558 public static _Fields findByName(String name) {
14559 return byName.get(name);
14560 }
14561
14562 private final short _thriftId;
14563 private final String _fieldName;
14564
14565 _Fields(short thriftId, String fieldName) {
14566 _thriftId = thriftId;
14567 _fieldName = fieldName;
14568 }
14569
14570 public short getThriftFieldId() {
14571 return _thriftId;
14572 }
14573
14574 public String getFieldName() {
14575 return _fieldName;
14576 }
14577 }
14578
14579
14580 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14581 static {
14582 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14583 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
14584 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetResultSetMetadataReq.class)));
14585 metaDataMap = Collections.unmodifiableMap(tmpMap);
14586 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetResultSetMetadata_args.class, metaDataMap);
14587 }
14588
14589 public GetResultSetMetadata_args() {
14590 }
14591
14592 public GetResultSetMetadata_args(
14593 TGetResultSetMetadataReq req)
14594 {
14595 this();
14596 this.req = req;
14597 }
14598
14599
14600
14601
14602 public GetResultSetMetadata_args(GetResultSetMetadata_args other) {
14603 if (other.isSetReq()) {
14604 this.req = new TGetResultSetMetadataReq(other.req);
14605 }
14606 }
14607
14608 public GetResultSetMetadata_args deepCopy() {
14609 return new GetResultSetMetadata_args(this);
14610 }
14611
14612 @Override
14613 public void clear() {
14614 this.req = null;
14615 }
14616
14617 public TGetResultSetMetadataReq getReq() {
14618 return this.req;
14619 }
14620
14621 public void setReq(TGetResultSetMetadataReq req) {
14622 this.req = req;
14623 }
14624
14625 public void unsetReq() {
14626 this.req = null;
14627 }
14628
14629
14630 public boolean isSetReq() {
14631 return this.req != null;
14632 }
14633
14634 public void setReqIsSet(boolean value) {
14635 if (!value) {
14636 this.req = null;
14637 }
14638 }
14639
14640 public void setFieldValue(_Fields field, Object value) {
14641 switch (field) {
14642 case REQ:
14643 if (value == null) {
14644 unsetReq();
14645 } else {
14646 setReq((TGetResultSetMetadataReq)value);
14647 }
14648 break;
14649
14650 }
14651 }
14652
14653 public Object getFieldValue(_Fields field) {
14654 switch (field) {
14655 case REQ:
14656 return getReq();
14657
14658 }
14659 throw new IllegalStateException();
14660 }
14661
14662
14663 public boolean isSet(_Fields field) {
14664 if (field == null) {
14665 throw new IllegalArgumentException();
14666 }
14667
14668 switch (field) {
14669 case REQ:
14670 return isSetReq();
14671 }
14672 throw new IllegalStateException();
14673 }
14674
14675 @Override
14676 public boolean equals(Object that) {
14677 if (that == null)
14678 return false;
14679 if (that instanceof GetResultSetMetadata_args)
14680 return this.equals((GetResultSetMetadata_args)that);
14681 return false;
14682 }
14683
14684 public boolean equals(GetResultSetMetadata_args that) {
14685 if (that == null)
14686 return false;
14687
14688 boolean this_present_req = true && this.isSetReq();
14689 boolean that_present_req = true && that.isSetReq();
14690 if (this_present_req || that_present_req) {
14691 if (!(this_present_req && that_present_req))
14692 return false;
14693 if (!this.req.equals(that.req))
14694 return false;
14695 }
14696
14697 return true;
14698 }
14699
14700 @Override
14701 public int hashCode() {
14702 List<Object> list = new ArrayList<Object>();
14703
14704 boolean present_req = true && (isSetReq());
14705 list.add(present_req);
14706 if (present_req)
14707 list.add(req);
14708
14709 return list.hashCode();
14710 }
14711
14712 @Override
14713 public int compareTo(GetResultSetMetadata_args other) {
14714 if (!getClass().equals(other.getClass())) {
14715 return getClass().getName().compareTo(other.getClass().getName());
14716 }
14717
14718 int lastComparison = 0;
14719
14720 lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
14721 if (lastComparison != 0) {
14722 return lastComparison;
14723 }
14724 if (isSetReq()) {
14725 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
14726 if (lastComparison != 0) {
14727 return lastComparison;
14728 }
14729 }
14730 return 0;
14731 }
14732
14733 public _Fields fieldForId(int fieldId) {
14734 return _Fields.findByThriftId(fieldId);
14735 }
14736
14737 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14738 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14739 }
14740
14741 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14742 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14743 }
14744
14745 @Override
14746 public String toString() {
14747 StringBuilder sb = new StringBuilder("GetResultSetMetadata_args(");
14748 boolean first = true;
14749
14750 sb.append("req:");
14751 if (this.req == null) {
14752 sb.append("null");
14753 } else {
14754 sb.append(this.req);
14755 }
14756 first = false;
14757 sb.append(")");
14758 return sb.toString();
14759 }
14760
14761 public void validate() throws org.apache.thrift.TException {
14762
14763
14764 if (req != null) {
14765 req.validate();
14766 }
14767 }
14768
14769 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14770 try {
14771 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14772 } catch (org.apache.thrift.TException te) {
14773 throw new java.io.IOException(te);
14774 }
14775 }
14776
14777 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14778 try {
14779 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14780 } catch (org.apache.thrift.TException te) {
14781 throw new java.io.IOException(te);
14782 }
14783 }
14784
14785 private static class GetResultSetMetadata_argsStandardSchemeFactory implements SchemeFactory {
14786 public GetResultSetMetadata_argsStandardScheme getScheme() {
14787 return new GetResultSetMetadata_argsStandardScheme();
14788 }
14789 }
14790
14791 private static class GetResultSetMetadata_argsStandardScheme extends StandardScheme<GetResultSetMetadata_args> {
14792
14793 public void read(org.apache.thrift.protocol.TProtocol iprot, GetResultSetMetadata_args struct) throws org.apache.thrift.TException {
14794 org.apache.thrift.protocol.TField schemeField;
14795 iprot.readStructBegin();
14796 while (true)
14797 {
14798 schemeField = iprot.readFieldBegin();
14799 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14800 break;
14801 }
14802 switch (schemeField.id) {
14803 case 1:
14804 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
14805 struct.req = new TGetResultSetMetadataReq();
14806 struct.req.read(iprot);
14807 struct.setReqIsSet(true);
14808 } else {
14809 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14810 }
14811 break;
14812 default:
14813 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14814 }
14815 iprot.readFieldEnd();
14816 }
14817 iprot.readStructEnd();
14818 struct.validate();
14819 }
14820
14821 public void write(org.apache.thrift.protocol.TProtocol oprot, GetResultSetMetadata_args struct) throws org.apache.thrift.TException {
14822 struct.validate();
14823
14824 oprot.writeStructBegin(STRUCT_DESC);
14825 if (struct.req != null) {
14826 oprot.writeFieldBegin(REQ_FIELD_DESC);
14827 struct.req.write(oprot);
14828 oprot.writeFieldEnd();
14829 }
14830 oprot.writeFieldStop();
14831 oprot.writeStructEnd();
14832 }
14833
14834 }
14835
14836 private static class GetResultSetMetadata_argsTupleSchemeFactory implements SchemeFactory {
14837 public GetResultSetMetadata_argsTupleScheme getScheme() {
14838 return new GetResultSetMetadata_argsTupleScheme();
14839 }
14840 }
14841
14842 private static class GetResultSetMetadata_argsTupleScheme extends TupleScheme<GetResultSetMetadata_args> {
14843
14844 @Override
14845 public void write(org.apache.thrift.protocol.TProtocol prot, GetResultSetMetadata_args struct) throws org.apache.thrift.TException {
14846 TTupleProtocol oprot = (TTupleProtocol) prot;
14847 BitSet optionals = new BitSet();
14848 if (struct.isSetReq()) {
14849 optionals.set(0);
14850 }
14851 oprot.writeBitSet(optionals, 1);
14852 if (struct.isSetReq()) {
14853 struct.req.write(oprot);
14854 }
14855 }
14856
14857 @Override
14858 public void read(org.apache.thrift.protocol.TProtocol prot, GetResultSetMetadata_args struct) throws org.apache.thrift.TException {
14859 TTupleProtocol iprot = (TTupleProtocol) prot;
14860 BitSet incoming = iprot.readBitSet(1);
14861 if (incoming.get(0)) {
14862 struct.req = new TGetResultSetMetadataReq();
14863 struct.req.read(iprot);
14864 struct.setReqIsSet(true);
14865 }
14866 }
14867 }
14868
14869 }
14870
14871 public static class GetResultSetMetadata_result implements org.apache.thrift.TBase<GetResultSetMetadata_result, GetResultSetMetadata_result._Fields>, java.io.Serializable, Cloneable, Comparable<GetResultSetMetadata_result> {
14872 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetResultSetMetadata_result");
14873
14874 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);
14875
14876 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14877 static {
14878 schemes.put(StandardScheme.class, new GetResultSetMetadata_resultStandardSchemeFactory());
14879 schemes.put(TupleScheme.class, new GetResultSetMetadata_resultTupleSchemeFactory());
14880 }
14881
14882 private TGetResultSetMetadataResp success;
14883
14884
14885 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14886 SUCCESS((short)0, "success");
14887
14888 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14889
14890 static {
14891 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14892 byName.put(field.getFieldName(), field);
14893 }
14894 }
14895
14896
14897
14898
14899 public static _Fields findByThriftId(int fieldId) {
14900 switch(fieldId) {
14901 case 0:
14902 return SUCCESS;
14903 default:
14904 return null;
14905 }
14906 }
14907
14908
14909
14910
14911
14912 public static _Fields findByThriftIdOrThrow(int fieldId) {
14913 _Fields fields = findByThriftId(fieldId);
14914 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14915 return fields;
14916 }
14917
14918
14919
14920
14921 public static _Fields findByName(String name) {
14922 return byName.get(name);
14923 }
14924
14925 private final short _thriftId;
14926 private final String _fieldName;
14927
14928 _Fields(short thriftId, String fieldName) {
14929 _thriftId = thriftId;
14930 _fieldName = fieldName;
14931 }
14932
14933 public short getThriftFieldId() {
14934 return _thriftId;
14935 }
14936
14937 public String getFieldName() {
14938 return _fieldName;
14939 }
14940 }
14941
14942
14943 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14944 static {
14945 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14946 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
14947 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetResultSetMetadataResp.class)));
14948 metaDataMap = Collections.unmodifiableMap(tmpMap);
14949 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetResultSetMetadata_result.class, metaDataMap);
14950 }
14951
14952 public GetResultSetMetadata_result() {
14953 }
14954
14955 public GetResultSetMetadata_result(
14956 TGetResultSetMetadataResp success)
14957 {
14958 this();
14959 this.success = success;
14960 }
14961
14962
14963
14964
14965 public GetResultSetMetadata_result(GetResultSetMetadata_result other) {
14966 if (other.isSetSuccess()) {
14967 this.success = new TGetResultSetMetadataResp(other.success);
14968 }
14969 }
14970
14971 public GetResultSetMetadata_result deepCopy() {
14972 return new GetResultSetMetadata_result(this);
14973 }
14974
14975 @Override
14976 public void clear() {
14977 this.success = null;
14978 }
14979
14980 public TGetResultSetMetadataResp getSuccess() {
14981 return this.success;
14982 }
14983
14984 public void setSuccess(TGetResultSetMetadataResp success) {
14985 this.success = success;
14986 }
14987
14988 public void unsetSuccess() {
14989 this.success = null;
14990 }
14991
14992
14993 public boolean isSetSuccess() {
14994 return this.success != null;
14995 }
14996
14997 public void setSuccessIsSet(boolean value) {
14998 if (!value) {
14999 this.success = null;
15000 }
15001 }
15002
15003 public void setFieldValue(_Fields field, Object value) {
15004 switch (field) {
15005 case SUCCESS:
15006 if (value == null) {
15007 unsetSuccess();
15008 } else {
15009 setSuccess((TGetResultSetMetadataResp)value);
15010 }
15011 break;
15012
15013 }
15014 }
15015
15016 public Object getFieldValue(_Fields field) {
15017 switch (field) {
15018 case SUCCESS:
15019 return getSuccess();
15020
15021 }
15022 throw new IllegalStateException();
15023 }
15024
15025
15026 public boolean isSet(_Fields field) {
15027 if (field == null) {
15028 throw new IllegalArgumentException();
15029 }
15030
15031 switch (field) {
15032 case SUCCESS:
15033 return isSetSuccess();
15034 }
15035 throw new IllegalStateException();
15036 }
15037
15038 @Override
15039 public boolean equals(Object that) {
15040 if (that == null)
15041 return false;
15042 if (that instanceof GetResultSetMetadata_result)
15043 return this.equals((GetResultSetMetadata_result)that);
15044 return false;
15045 }
15046
15047 public boolean equals(GetResultSetMetadata_result that) {
15048 if (that == null)
15049 return false;
15050
15051 boolean this_present_success = true && this.isSetSuccess();
15052 boolean that_present_success = true && that.isSetSuccess();
15053 if (this_present_success || that_present_success) {
15054 if (!(this_present_success && that_present_success))
15055 return false;
15056 if (!this.success.equals(that.success))
15057 return false;
15058 }
15059
15060 return true;
15061 }
15062
15063 @Override
15064 public int hashCode() {
15065 List<Object> list = new ArrayList<Object>();
15066
15067 boolean present_success = true && (isSetSuccess());
15068 list.add(present_success);
15069 if (present_success)
15070 list.add(success);
15071
15072 return list.hashCode();
15073 }
15074
15075 @Override
15076 public int compareTo(GetResultSetMetadata_result other) {
15077 if (!getClass().equals(other.getClass())) {
15078 return getClass().getName().compareTo(other.getClass().getName());
15079 }
15080
15081 int lastComparison = 0;
15082
15083 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
15084 if (lastComparison != 0) {
15085 return lastComparison;
15086 }
15087 if (isSetSuccess()) {
15088 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
15089 if (lastComparison != 0) {
15090 return lastComparison;
15091 }
15092 }
15093 return 0;
15094 }
15095
15096 public _Fields fieldForId(int fieldId) {
15097 return _Fields.findByThriftId(fieldId);
15098 }
15099
15100 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15101 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15102 }
15103
15104 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15105 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15106 }
15107
15108 @Override
15109 public String toString() {
15110 StringBuilder sb = new StringBuilder("GetResultSetMetadata_result(");
15111 boolean first = true;
15112
15113 sb.append("success:");
15114 if (this.success == null) {
15115 sb.append("null");
15116 } else {
15117 sb.append(this.success);
15118 }
15119 first = false;
15120 sb.append(")");
15121 return sb.toString();
15122 }
15123
15124 public void validate() throws org.apache.thrift.TException {
15125
15126
15127 if (success != null) {
15128 success.validate();
15129 }
15130 }
15131
15132 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15133 try {
15134 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15135 } catch (org.apache.thrift.TException te) {
15136 throw new java.io.IOException(te);
15137 }
15138 }
15139
15140 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15141 try {
15142 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15143 } catch (org.apache.thrift.TException te) {
15144 throw new java.io.IOException(te);
15145 }
15146 }
15147
15148 private static class GetResultSetMetadata_resultStandardSchemeFactory implements SchemeFactory {
15149 public GetResultSetMetadata_resultStandardScheme getScheme() {
15150 return new GetResultSetMetadata_resultStandardScheme();
15151 }
15152 }
15153
15154 private static class GetResultSetMetadata_resultStandardScheme extends StandardScheme<GetResultSetMetadata_result> {
15155
15156 public void read(org.apache.thrift.protocol.TProtocol iprot, GetResultSetMetadata_result struct) throws org.apache.thrift.TException {
15157 org.apache.thrift.protocol.TField schemeField;
15158 iprot.readStructBegin();
15159 while (true)
15160 {
15161 schemeField = iprot.readFieldBegin();
15162 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15163 break;
15164 }
15165 switch (schemeField.id) {
15166 case 0:
15167 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
15168 struct.success = new TGetResultSetMetadataResp();
15169 struct.success.read(iprot);
15170 struct.setSuccessIsSet(true);
15171 } else {
15172 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15173 }
15174 break;
15175 default:
15176 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15177 }
15178 iprot.readFieldEnd();
15179 }
15180 iprot.readStructEnd();
15181 struct.validate();
15182 }
15183
15184 public void write(org.apache.thrift.protocol.TProtocol oprot, GetResultSetMetadata_result struct) throws org.apache.thrift.TException {
15185 struct.validate();
15186
15187 oprot.writeStructBegin(STRUCT_DESC);
15188 if (struct.success != null) {
15189 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15190 struct.success.write(oprot);
15191 oprot.writeFieldEnd();
15192 }
15193 oprot.writeFieldStop();
15194 oprot.writeStructEnd();
15195 }
15196
15197 }
15198
15199 private static class GetResultSetMetadata_resultTupleSchemeFactory implements SchemeFactory {
15200 public GetResultSetMetadata_resultTupleScheme getScheme() {
15201 return new GetResultSetMetadata_resultTupleScheme();
15202 }
15203 }
15204
15205 private static class GetResultSetMetadata_resultTupleScheme extends TupleScheme<GetResultSetMetadata_result> {
15206
15207 @Override
15208 public void write(org.apache.thrift.protocol.TProtocol prot, GetResultSetMetadata_result struct) throws org.apache.thrift.TException {
15209 TTupleProtocol oprot = (TTupleProtocol) prot;
15210 BitSet optionals = new BitSet();
15211 if (struct.isSetSuccess()) {
15212 optionals.set(0);
15213 }
15214 oprot.writeBitSet(optionals, 1);
15215 if (struct.isSetSuccess()) {
15216 struct.success.write(oprot);
15217 }
15218 }
15219
15220 @Override
15221 public void read(org.apache.thrift.protocol.TProtocol prot, GetResultSetMetadata_result struct) throws org.apache.thrift.TException {
15222 TTupleProtocol iprot = (TTupleProtocol) prot;
15223 BitSet incoming = iprot.readBitSet(1);
15224 if (incoming.get(0)) {
15225 struct.success = new TGetResultSetMetadataResp();
15226 struct.success.read(iprot);
15227 struct.setSuccessIsSet(true);
15228 }
15229 }
15230 }
15231
15232 }
15233
15234 public static class FetchResults_args implements org.apache.thrift.TBase<FetchResults_args, FetchResults_args._Fields>, java.io.Serializable, Cloneable, Comparable<FetchResults_args> {
15235 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FetchResults_args");
15236
15237 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);
15238
15239 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15240 static {
15241 schemes.put(StandardScheme.class, new FetchResults_argsStandardSchemeFactory());
15242 schemes.put(TupleScheme.class, new FetchResults_argsTupleSchemeFactory());
15243 }
15244
15245 private TFetchResultsReq req;
15246
15247
15248 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15249 REQ((short)1, "req");
15250
15251 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15252
15253 static {
15254 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15255 byName.put(field.getFieldName(), field);
15256 }
15257 }
15258
15259
15260
15261
15262 public static _Fields findByThriftId(int fieldId) {
15263 switch(fieldId) {
15264 case 1:
15265 return REQ;
15266 default:
15267 return null;
15268 }
15269 }
15270
15271
15272
15273
15274
15275 public static _Fields findByThriftIdOrThrow(int fieldId) {
15276 _Fields fields = findByThriftId(fieldId);
15277 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15278 return fields;
15279 }
15280
15281
15282
15283
15284 public static _Fields findByName(String name) {
15285 return byName.get(name);
15286 }
15287
15288 private final short _thriftId;
15289 private final String _fieldName;
15290
15291 _Fields(short thriftId, String fieldName) {
15292 _thriftId = thriftId;
15293 _fieldName = fieldName;
15294 }
15295
15296 public short getThriftFieldId() {
15297 return _thriftId;
15298 }
15299
15300 public String getFieldName() {
15301 return _fieldName;
15302 }
15303 }
15304
15305
15306 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15307 static {
15308 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15309 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
15310 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TFetchResultsReq.class)));
15311 metaDataMap = Collections.unmodifiableMap(tmpMap);
15312 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(FetchResults_args.class, metaDataMap);
15313 }
15314
15315 public FetchResults_args() {
15316 }
15317
15318 public FetchResults_args(
15319 TFetchResultsReq req)
15320 {
15321 this();
15322 this.req = req;
15323 }
15324
15325
15326
15327
15328 public FetchResults_args(FetchResults_args other) {
15329 if (other.isSetReq()) {
15330 this.req = new TFetchResultsReq(other.req);
15331 }
15332 }
15333
15334 public FetchResults_args deepCopy() {
15335 return new FetchResults_args(this);
15336 }
15337
15338 @Override
15339 public void clear() {
15340 this.req = null;
15341 }
15342
15343 public TFetchResultsReq getReq() {
15344 return this.req;
15345 }
15346
15347 public void setReq(TFetchResultsReq req) {
15348 this.req = req;
15349 }
15350
15351 public void unsetReq() {
15352 this.req = null;
15353 }
15354
15355
15356 public boolean isSetReq() {
15357 return this.req != null;
15358 }
15359
15360 public void setReqIsSet(boolean value) {
15361 if (!value) {
15362 this.req = null;
15363 }
15364 }
15365
15366 public void setFieldValue(_Fields field, Object value) {
15367 switch (field) {
15368 case REQ:
15369 if (value == null) {
15370 unsetReq();
15371 } else {
15372 setReq((TFetchResultsReq)value);
15373 }
15374 break;
15375
15376 }
15377 }
15378
15379 public Object getFieldValue(_Fields field) {
15380 switch (field) {
15381 case REQ:
15382 return getReq();
15383
15384 }
15385 throw new IllegalStateException();
15386 }
15387
15388
15389 public boolean isSet(_Fields field) {
15390 if (field == null) {
15391 throw new IllegalArgumentException();
15392 }
15393
15394 switch (field) {
15395 case REQ:
15396 return isSetReq();
15397 }
15398 throw new IllegalStateException();
15399 }
15400
15401 @Override
15402 public boolean equals(Object that) {
15403 if (that == null)
15404 return false;
15405 if (that instanceof FetchResults_args)
15406 return this.equals((FetchResults_args)that);
15407 return false;
15408 }
15409
15410 public boolean equals(FetchResults_args that) {
15411 if (that == null)
15412 return false;
15413
15414 boolean this_present_req = true && this.isSetReq();
15415 boolean that_present_req = true && that.isSetReq();
15416 if (this_present_req || that_present_req) {
15417 if (!(this_present_req && that_present_req))
15418 return false;
15419 if (!this.req.equals(that.req))
15420 return false;
15421 }
15422
15423 return true;
15424 }
15425
15426 @Override
15427 public int hashCode() {
15428 List<Object> list = new ArrayList<Object>();
15429
15430 boolean present_req = true && (isSetReq());
15431 list.add(present_req);
15432 if (present_req)
15433 list.add(req);
15434
15435 return list.hashCode();
15436 }
15437
15438 @Override
15439 public int compareTo(FetchResults_args other) {
15440 if (!getClass().equals(other.getClass())) {
15441 return getClass().getName().compareTo(other.getClass().getName());
15442 }
15443
15444 int lastComparison = 0;
15445
15446 lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
15447 if (lastComparison != 0) {
15448 return lastComparison;
15449 }
15450 if (isSetReq()) {
15451 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
15452 if (lastComparison != 0) {
15453 return lastComparison;
15454 }
15455 }
15456 return 0;
15457 }
15458
15459 public _Fields fieldForId(int fieldId) {
15460 return _Fields.findByThriftId(fieldId);
15461 }
15462
15463 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15464 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15465 }
15466
15467 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15468 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15469 }
15470
15471 @Override
15472 public String toString() {
15473 StringBuilder sb = new StringBuilder("FetchResults_args(");
15474 boolean first = true;
15475
15476 sb.append("req:");
15477 if (this.req == null) {
15478 sb.append("null");
15479 } else {
15480 sb.append(this.req);
15481 }
15482 first = false;
15483 sb.append(")");
15484 return sb.toString();
15485 }
15486
15487 public void validate() throws org.apache.thrift.TException {
15488
15489
15490 if (req != null) {
15491 req.validate();
15492 }
15493 }
15494
15495 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15496 try {
15497 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15498 } catch (org.apache.thrift.TException te) {
15499 throw new java.io.IOException(te);
15500 }
15501 }
15502
15503 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15504 try {
15505 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15506 } catch (org.apache.thrift.TException te) {
15507 throw new java.io.IOException(te);
15508 }
15509 }
15510
15511 private static class FetchResults_argsStandardSchemeFactory implements SchemeFactory {
15512 public FetchResults_argsStandardScheme getScheme() {
15513 return new FetchResults_argsStandardScheme();
15514 }
15515 }
15516
15517 private static class FetchResults_argsStandardScheme extends StandardScheme<FetchResults_args> {
15518
15519 public void read(org.apache.thrift.protocol.TProtocol iprot, FetchResults_args struct) throws org.apache.thrift.TException {
15520 org.apache.thrift.protocol.TField schemeField;
15521 iprot.readStructBegin();
15522 while (true)
15523 {
15524 schemeField = iprot.readFieldBegin();
15525 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15526 break;
15527 }
15528 switch (schemeField.id) {
15529 case 1:
15530 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
15531 struct.req = new TFetchResultsReq();
15532 struct.req.read(iprot);
15533 struct.setReqIsSet(true);
15534 } else {
15535 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15536 }
15537 break;
15538 default:
15539 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15540 }
15541 iprot.readFieldEnd();
15542 }
15543 iprot.readStructEnd();
15544 struct.validate();
15545 }
15546
15547 public void write(org.apache.thrift.protocol.TProtocol oprot, FetchResults_args struct) throws org.apache.thrift.TException {
15548 struct.validate();
15549
15550 oprot.writeStructBegin(STRUCT_DESC);
15551 if (struct.req != null) {
15552 oprot.writeFieldBegin(REQ_FIELD_DESC);
15553 struct.req.write(oprot);
15554 oprot.writeFieldEnd();
15555 }
15556 oprot.writeFieldStop();
15557 oprot.writeStructEnd();
15558 }
15559
15560 }
15561
15562 private static class FetchResults_argsTupleSchemeFactory implements SchemeFactory {
15563 public FetchResults_argsTupleScheme getScheme() {
15564 return new FetchResults_argsTupleScheme();
15565 }
15566 }
15567
15568 private static class FetchResults_argsTupleScheme extends TupleScheme<FetchResults_args> {
15569
15570 @Override
15571 public void write(org.apache.thrift.protocol.TProtocol prot, FetchResults_args struct) throws org.apache.thrift.TException {
15572 TTupleProtocol oprot = (TTupleProtocol) prot;
15573 BitSet optionals = new BitSet();
15574 if (struct.isSetReq()) {
15575 optionals.set(0);
15576 }
15577 oprot.writeBitSet(optionals, 1);
15578 if (struct.isSetReq()) {
15579 struct.req.write(oprot);
15580 }
15581 }
15582
15583 @Override
15584 public void read(org.apache.thrift.protocol.TProtocol prot, FetchResults_args struct) throws org.apache.thrift.TException {
15585 TTupleProtocol iprot = (TTupleProtocol) prot;
15586 BitSet incoming = iprot.readBitSet(1);
15587 if (incoming.get(0)) {
15588 struct.req = new TFetchResultsReq();
15589 struct.req.read(iprot);
15590 struct.setReqIsSet(true);
15591 }
15592 }
15593 }
15594
15595 }
15596
15597 public static class FetchResults_result implements org.apache.thrift.TBase<FetchResults_result, FetchResults_result._Fields>, java.io.Serializable, Cloneable, Comparable<FetchResults_result> {
15598 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FetchResults_result");
15599
15600 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);
15601
15602 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15603 static {
15604 schemes.put(StandardScheme.class, new FetchResults_resultStandardSchemeFactory());
15605 schemes.put(TupleScheme.class, new FetchResults_resultTupleSchemeFactory());
15606 }
15607
15608 private TFetchResultsResp success;
15609
15610
15611 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15612 SUCCESS((short)0, "success");
15613
15614 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15615
15616 static {
15617 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15618 byName.put(field.getFieldName(), field);
15619 }
15620 }
15621
15622
15623
15624
15625 public static _Fields findByThriftId(int fieldId) {
15626 switch(fieldId) {
15627 case 0:
15628 return SUCCESS;
15629 default:
15630 return null;
15631 }
15632 }
15633
15634
15635
15636
15637
15638 public static _Fields findByThriftIdOrThrow(int fieldId) {
15639 _Fields fields = findByThriftId(fieldId);
15640 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15641 return fields;
15642 }
15643
15644
15645
15646
15647 public static _Fields findByName(String name) {
15648 return byName.get(name);
15649 }
15650
15651 private final short _thriftId;
15652 private final String _fieldName;
15653
15654 _Fields(short thriftId, String fieldName) {
15655 _thriftId = thriftId;
15656 _fieldName = fieldName;
15657 }
15658
15659 public short getThriftFieldId() {
15660 return _thriftId;
15661 }
15662
15663 public String getFieldName() {
15664 return _fieldName;
15665 }
15666 }
15667
15668
15669 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15670 static {
15671 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15672 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
15673 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TFetchResultsResp.class)));
15674 metaDataMap = Collections.unmodifiableMap(tmpMap);
15675 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(FetchResults_result.class, metaDataMap);
15676 }
15677
15678 public FetchResults_result() {
15679 }
15680
15681 public FetchResults_result(
15682 TFetchResultsResp success)
15683 {
15684 this();
15685 this.success = success;
15686 }
15687
15688
15689
15690
15691 public FetchResults_result(FetchResults_result other) {
15692 if (other.isSetSuccess()) {
15693 this.success = new TFetchResultsResp(other.success);
15694 }
15695 }
15696
15697 public FetchResults_result deepCopy() {
15698 return new FetchResults_result(this);
15699 }
15700
15701 @Override
15702 public void clear() {
15703 this.success = null;
15704 }
15705
15706 public TFetchResultsResp getSuccess() {
15707 return this.success;
15708 }
15709
15710 public void setSuccess(TFetchResultsResp success) {
15711 this.success = success;
15712 }
15713
15714 public void unsetSuccess() {
15715 this.success = null;
15716 }
15717
15718
15719 public boolean isSetSuccess() {
15720 return this.success != null;
15721 }
15722
15723 public void setSuccessIsSet(boolean value) {
15724 if (!value) {
15725 this.success = null;
15726 }
15727 }
15728
15729 public void setFieldValue(_Fields field, Object value) {
15730 switch (field) {
15731 case SUCCESS:
15732 if (value == null) {
15733 unsetSuccess();
15734 } else {
15735 setSuccess((TFetchResultsResp)value);
15736 }
15737 break;
15738
15739 }
15740 }
15741
15742 public Object getFieldValue(_Fields field) {
15743 switch (field) {
15744 case SUCCESS:
15745 return getSuccess();
15746
15747 }
15748 throw new IllegalStateException();
15749 }
15750
15751
15752 public boolean isSet(_Fields field) {
15753 if (field == null) {
15754 throw new IllegalArgumentException();
15755 }
15756
15757 switch (field) {
15758 case SUCCESS:
15759 return isSetSuccess();
15760 }
15761 throw new IllegalStateException();
15762 }
15763
15764 @Override
15765 public boolean equals(Object that) {
15766 if (that == null)
15767 return false;
15768 if (that instanceof FetchResults_result)
15769 return this.equals((FetchResults_result)that);
15770 return false;
15771 }
15772
15773 public boolean equals(FetchResults_result that) {
15774 if (that == null)
15775 return false;
15776
15777 boolean this_present_success = true && this.isSetSuccess();
15778 boolean that_present_success = true && that.isSetSuccess();
15779 if (this_present_success || that_present_success) {
15780 if (!(this_present_success && that_present_success))
15781 return false;
15782 if (!this.success.equals(that.success))
15783 return false;
15784 }
15785
15786 return true;
15787 }
15788
15789 @Override
15790 public int hashCode() {
15791 List<Object> list = new ArrayList<Object>();
15792
15793 boolean present_success = true && (isSetSuccess());
15794 list.add(present_success);
15795 if (present_success)
15796 list.add(success);
15797
15798 return list.hashCode();
15799 }
15800
15801 @Override
15802 public int compareTo(FetchResults_result other) {
15803 if (!getClass().equals(other.getClass())) {
15804 return getClass().getName().compareTo(other.getClass().getName());
15805 }
15806
15807 int lastComparison = 0;
15808
15809 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
15810 if (lastComparison != 0) {
15811 return lastComparison;
15812 }
15813 if (isSetSuccess()) {
15814 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
15815 if (lastComparison != 0) {
15816 return lastComparison;
15817 }
15818 }
15819 return 0;
15820 }
15821
15822 public _Fields fieldForId(int fieldId) {
15823 return _Fields.findByThriftId(fieldId);
15824 }
15825
15826 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15827 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15828 }
15829
15830 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15831 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15832 }
15833
15834 @Override
15835 public String toString() {
15836 StringBuilder sb = new StringBuilder("FetchResults_result(");
15837 boolean first = true;
15838
15839 sb.append("success:");
15840 if (this.success == null) {
15841 sb.append("null");
15842 } else {
15843 sb.append(this.success);
15844 }
15845 first = false;
15846 sb.append(")");
15847 return sb.toString();
15848 }
15849
15850 public void validate() throws org.apache.thrift.TException {
15851
15852
15853 if (success != null) {
15854 success.validate();
15855 }
15856 }
15857
15858 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15859 try {
15860 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15861 } catch (org.apache.thrift.TException te) {
15862 throw new java.io.IOException(te);
15863 }
15864 }
15865
15866 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15867 try {
15868 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15869 } catch (org.apache.thrift.TException te) {
15870 throw new java.io.IOException(te);
15871 }
15872 }
15873
15874 private static class FetchResults_resultStandardSchemeFactory implements SchemeFactory {
15875 public FetchResults_resultStandardScheme getScheme() {
15876 return new FetchResults_resultStandardScheme();
15877 }
15878 }
15879
15880 private static class FetchResults_resultStandardScheme extends StandardScheme<FetchResults_result> {
15881
15882 public void read(org.apache.thrift.protocol.TProtocol iprot, FetchResults_result struct) throws org.apache.thrift.TException {
15883 org.apache.thrift.protocol.TField schemeField;
15884 iprot.readStructBegin();
15885 while (true)
15886 {
15887 schemeField = iprot.readFieldBegin();
15888 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15889 break;
15890 }
15891 switch (schemeField.id) {
15892 case 0:
15893 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
15894 struct.success = new TFetchResultsResp();
15895 struct.success.read(iprot);
15896 struct.setSuccessIsSet(true);
15897 } else {
15898 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15899 }
15900 break;
15901 default:
15902 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15903 }
15904 iprot.readFieldEnd();
15905 }
15906 iprot.readStructEnd();
15907 struct.validate();
15908 }
15909
15910 public void write(org.apache.thrift.protocol.TProtocol oprot, FetchResults_result struct) throws org.apache.thrift.TException {
15911 struct.validate();
15912
15913 oprot.writeStructBegin(STRUCT_DESC);
15914 if (struct.success != null) {
15915 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15916 struct.success.write(oprot);
15917 oprot.writeFieldEnd();
15918 }
15919 oprot.writeFieldStop();
15920 oprot.writeStructEnd();
15921 }
15922
15923 }
15924
15925 private static class FetchResults_resultTupleSchemeFactory implements SchemeFactory {
15926 public FetchResults_resultTupleScheme getScheme() {
15927 return new FetchResults_resultTupleScheme();
15928 }
15929 }
15930
15931 private static class FetchResults_resultTupleScheme extends TupleScheme<FetchResults_result> {
15932
15933 @Override
15934 public void write(org.apache.thrift.protocol.TProtocol prot, FetchResults_result struct) throws org.apache.thrift.TException {
15935 TTupleProtocol oprot = (TTupleProtocol) prot;
15936 BitSet optionals = new BitSet();
15937 if (struct.isSetSuccess()) {
15938 optionals.set(0);
15939 }
15940 oprot.writeBitSet(optionals, 1);
15941 if (struct.isSetSuccess()) {
15942 struct.success.write(oprot);
15943 }
15944 }
15945
15946 @Override
15947 public void read(org.apache.thrift.protocol.TProtocol prot, FetchResults_result struct) throws org.apache.thrift.TException {
15948 TTupleProtocol iprot = (TTupleProtocol) prot;
15949 BitSet incoming = iprot.readBitSet(1);
15950 if (incoming.get(0)) {
15951 struct.success = new TFetchResultsResp();
15952 struct.success.read(iprot);
15953 struct.setSuccessIsSet(true);
15954 }
15955 }
15956 }
15957
15958 }
15959
15960 public static class GetDelegationToken_args implements org.apache.thrift.TBase<GetDelegationToken_args, GetDelegationToken_args._Fields>, java.io.Serializable, Cloneable, Comparable<GetDelegationToken_args> {
15961 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetDelegationToken_args");
15962
15963 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);
15964
15965 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15966 static {
15967 schemes.put(StandardScheme.class, new GetDelegationToken_argsStandardSchemeFactory());
15968 schemes.put(TupleScheme.class, new GetDelegationToken_argsTupleSchemeFactory());
15969 }
15970
15971 private TGetDelegationTokenReq req;
15972
15973
15974 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15975 REQ((short)1, "req");
15976
15977 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15978
15979 static {
15980 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15981 byName.put(field.getFieldName(), field);
15982 }
15983 }
15984
15985
15986
15987
15988 public static _Fields findByThriftId(int fieldId) {
15989 switch(fieldId) {
15990 case 1:
15991 return REQ;
15992 default:
15993 return null;
15994 }
15995 }
15996
15997
15998
15999
16000
16001 public static _Fields findByThriftIdOrThrow(int fieldId) {
16002 _Fields fields = findByThriftId(fieldId);
16003 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16004 return fields;
16005 }
16006
16007
16008
16009
16010 public static _Fields findByName(String name) {
16011 return byName.get(name);
16012 }
16013
16014 private final short _thriftId;
16015 private final String _fieldName;
16016
16017 _Fields(short thriftId, String fieldName) {
16018 _thriftId = thriftId;
16019 _fieldName = fieldName;
16020 }
16021
16022 public short getThriftFieldId() {
16023 return _thriftId;
16024 }
16025
16026 public String getFieldName() {
16027 return _fieldName;
16028 }
16029 }
16030
16031
16032 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16033 static {
16034 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16035 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
16036 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetDelegationTokenReq.class)));
16037 metaDataMap = Collections.unmodifiableMap(tmpMap);
16038 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetDelegationToken_args.class, metaDataMap);
16039 }
16040
16041 public GetDelegationToken_args() {
16042 }
16043
16044 public GetDelegationToken_args(
16045 TGetDelegationTokenReq req)
16046 {
16047 this();
16048 this.req = req;
16049 }
16050
16051
16052
16053
16054 public GetDelegationToken_args(GetDelegationToken_args other) {
16055 if (other.isSetReq()) {
16056 this.req = new TGetDelegationTokenReq(other.req);
16057 }
16058 }
16059
16060 public GetDelegationToken_args deepCopy() {
16061 return new GetDelegationToken_args(this);
16062 }
16063
16064 @Override
16065 public void clear() {
16066 this.req = null;
16067 }
16068
16069 public TGetDelegationTokenReq getReq() {
16070 return this.req;
16071 }
16072
16073 public void setReq(TGetDelegationTokenReq req) {
16074 this.req = req;
16075 }
16076
16077 public void unsetReq() {
16078 this.req = null;
16079 }
16080
16081
16082 public boolean isSetReq() {
16083 return this.req != null;
16084 }
16085
16086 public void setReqIsSet(boolean value) {
16087 if (!value) {
16088 this.req = null;
16089 }
16090 }
16091
16092 public void setFieldValue(_Fields field, Object value) {
16093 switch (field) {
16094 case REQ:
16095 if (value == null) {
16096 unsetReq();
16097 } else {
16098 setReq((TGetDelegationTokenReq)value);
16099 }
16100 break;
16101
16102 }
16103 }
16104
16105 public Object getFieldValue(_Fields field) {
16106 switch (field) {
16107 case REQ:
16108 return getReq();
16109
16110 }
16111 throw new IllegalStateException();
16112 }
16113
16114
16115 public boolean isSet(_Fields field) {
16116 if (field == null) {
16117 throw new IllegalArgumentException();
16118 }
16119
16120 switch (field) {
16121 case REQ:
16122 return isSetReq();
16123 }
16124 throw new IllegalStateException();
16125 }
16126
16127 @Override
16128 public boolean equals(Object that) {
16129 if (that == null)
16130 return false;
16131 if (that instanceof GetDelegationToken_args)
16132 return this.equals((GetDelegationToken_args)that);
16133 return false;
16134 }
16135
16136 public boolean equals(GetDelegationToken_args that) {
16137 if (that == null)
16138 return false;
16139
16140 boolean this_present_req = true && this.isSetReq();
16141 boolean that_present_req = true && that.isSetReq();
16142 if (this_present_req || that_present_req) {
16143 if (!(this_present_req && that_present_req))
16144 return false;
16145 if (!this.req.equals(that.req))
16146 return false;
16147 }
16148
16149 return true;
16150 }
16151
16152 @Override
16153 public int hashCode() {
16154 List<Object> list = new ArrayList<Object>();
16155
16156 boolean present_req = true && (isSetReq());
16157 list.add(present_req);
16158 if (present_req)
16159 list.add(req);
16160
16161 return list.hashCode();
16162 }
16163
16164 @Override
16165 public int compareTo(GetDelegationToken_args other) {
16166 if (!getClass().equals(other.getClass())) {
16167 return getClass().getName().compareTo(other.getClass().getName());
16168 }
16169
16170 int lastComparison = 0;
16171
16172 lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
16173 if (lastComparison != 0) {
16174 return lastComparison;
16175 }
16176 if (isSetReq()) {
16177 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
16178 if (lastComparison != 0) {
16179 return lastComparison;
16180 }
16181 }
16182 return 0;
16183 }
16184
16185 public _Fields fieldForId(int fieldId) {
16186 return _Fields.findByThriftId(fieldId);
16187 }
16188
16189 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16190 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16191 }
16192
16193 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16194 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16195 }
16196
16197 @Override
16198 public String toString() {
16199 StringBuilder sb = new StringBuilder("GetDelegationToken_args(");
16200 boolean first = true;
16201
16202 sb.append("req:");
16203 if (this.req == null) {
16204 sb.append("null");
16205 } else {
16206 sb.append(this.req);
16207 }
16208 first = false;
16209 sb.append(")");
16210 return sb.toString();
16211 }
16212
16213 public void validate() throws org.apache.thrift.TException {
16214
16215
16216 if (req != null) {
16217 req.validate();
16218 }
16219 }
16220
16221 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16222 try {
16223 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16224 } catch (org.apache.thrift.TException te) {
16225 throw new java.io.IOException(te);
16226 }
16227 }
16228
16229 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16230 try {
16231 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16232 } catch (org.apache.thrift.TException te) {
16233 throw new java.io.IOException(te);
16234 }
16235 }
16236
16237 private static class GetDelegationToken_argsStandardSchemeFactory implements SchemeFactory {
16238 public GetDelegationToken_argsStandardScheme getScheme() {
16239 return new GetDelegationToken_argsStandardScheme();
16240 }
16241 }
16242
16243 private static class GetDelegationToken_argsStandardScheme extends StandardScheme<GetDelegationToken_args> {
16244
16245 public void read(org.apache.thrift.protocol.TProtocol iprot, GetDelegationToken_args struct) throws org.apache.thrift.TException {
16246 org.apache.thrift.protocol.TField schemeField;
16247 iprot.readStructBegin();
16248 while (true)
16249 {
16250 schemeField = iprot.readFieldBegin();
16251 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16252 break;
16253 }
16254 switch (schemeField.id) {
16255 case 1:
16256 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
16257 struct.req = new TGetDelegationTokenReq();
16258 struct.req.read(iprot);
16259 struct.setReqIsSet(true);
16260 } else {
16261 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16262 }
16263 break;
16264 default:
16265 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16266 }
16267 iprot.readFieldEnd();
16268 }
16269 iprot.readStructEnd();
16270 struct.validate();
16271 }
16272
16273 public void write(org.apache.thrift.protocol.TProtocol oprot, GetDelegationToken_args struct) throws org.apache.thrift.TException {
16274 struct.validate();
16275
16276 oprot.writeStructBegin(STRUCT_DESC);
16277 if (struct.req != null) {
16278 oprot.writeFieldBegin(REQ_FIELD_DESC);
16279 struct.req.write(oprot);
16280 oprot.writeFieldEnd();
16281 }
16282 oprot.writeFieldStop();
16283 oprot.writeStructEnd();
16284 }
16285
16286 }
16287
16288 private static class GetDelegationToken_argsTupleSchemeFactory implements SchemeFactory {
16289 public GetDelegationToken_argsTupleScheme getScheme() {
16290 return new GetDelegationToken_argsTupleScheme();
16291 }
16292 }
16293
16294 private static class GetDelegationToken_argsTupleScheme extends TupleScheme<GetDelegationToken_args> {
16295
16296 @Override
16297 public void write(org.apache.thrift.protocol.TProtocol prot, GetDelegationToken_args struct) throws org.apache.thrift.TException {
16298 TTupleProtocol oprot = (TTupleProtocol) prot;
16299 BitSet optionals = new BitSet();
16300 if (struct.isSetReq()) {
16301 optionals.set(0);
16302 }
16303 oprot.writeBitSet(optionals, 1);
16304 if (struct.isSetReq()) {
16305 struct.req.write(oprot);
16306 }
16307 }
16308
16309 @Override
16310 public void read(org.apache.thrift.protocol.TProtocol prot, GetDelegationToken_args struct) throws org.apache.thrift.TException {
16311 TTupleProtocol iprot = (TTupleProtocol) prot;
16312 BitSet incoming = iprot.readBitSet(1);
16313 if (incoming.get(0)) {
16314 struct.req = new TGetDelegationTokenReq();
16315 struct.req.read(iprot);
16316 struct.setReqIsSet(true);
16317 }
16318 }
16319 }
16320
16321 }
16322
16323 public static class GetDelegationToken_result implements org.apache.thrift.TBase<GetDelegationToken_result, GetDelegationToken_result._Fields>, java.io.Serializable, Cloneable, Comparable<GetDelegationToken_result> {
16324 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetDelegationToken_result");
16325
16326 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);
16327
16328 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16329 static {
16330 schemes.put(StandardScheme.class, new GetDelegationToken_resultStandardSchemeFactory());
16331 schemes.put(TupleScheme.class, new GetDelegationToken_resultTupleSchemeFactory());
16332 }
16333
16334 private TGetDelegationTokenResp success;
16335
16336
16337 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16338 SUCCESS((short)0, "success");
16339
16340 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16341
16342 static {
16343 for (_Fields field : EnumSet.allOf(_Fields.class)) {
16344 byName.put(field.getFieldName(), field);
16345 }
16346 }
16347
16348
16349
16350
16351 public static _Fields findByThriftId(int fieldId) {
16352 switch(fieldId) {
16353 case 0:
16354 return SUCCESS;
16355 default:
16356 return null;
16357 }
16358 }
16359
16360
16361
16362
16363
16364 public static _Fields findByThriftIdOrThrow(int fieldId) {
16365 _Fields fields = findByThriftId(fieldId);
16366 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16367 return fields;
16368 }
16369
16370
16371
16372
16373 public static _Fields findByName(String name) {
16374 return byName.get(name);
16375 }
16376
16377 private final short _thriftId;
16378 private final String _fieldName;
16379
16380 _Fields(short thriftId, String fieldName) {
16381 _thriftId = thriftId;
16382 _fieldName = fieldName;
16383 }
16384
16385 public short getThriftFieldId() {
16386 return _thriftId;
16387 }
16388
16389 public String getFieldName() {
16390 return _fieldName;
16391 }
16392 }
16393
16394
16395 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16396 static {
16397 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16398 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
16399 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetDelegationTokenResp.class)));
16400 metaDataMap = Collections.unmodifiableMap(tmpMap);
16401 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetDelegationToken_result.class, metaDataMap);
16402 }
16403
16404 public GetDelegationToken_result() {
16405 }
16406
16407 public GetDelegationToken_result(
16408 TGetDelegationTokenResp success)
16409 {
16410 this();
16411 this.success = success;
16412 }
16413
16414
16415
16416
16417 public GetDelegationToken_result(GetDelegationToken_result other) {
16418 if (other.isSetSuccess()) {
16419 this.success = new TGetDelegationTokenResp(other.success);
16420 }
16421 }
16422
16423 public GetDelegationToken_result deepCopy() {
16424 return new GetDelegationToken_result(this);
16425 }
16426
16427 @Override
16428 public void clear() {
16429 this.success = null;
16430 }
16431
16432 public TGetDelegationTokenResp getSuccess() {
16433 return this.success;
16434 }
16435
16436 public void setSuccess(TGetDelegationTokenResp success) {
16437 this.success = success;
16438 }
16439
16440 public void unsetSuccess() {
16441 this.success = null;
16442 }
16443
16444
16445 public boolean isSetSuccess() {
16446 return this.success != null;
16447 }
16448
16449 public void setSuccessIsSet(boolean value) {
16450 if (!value) {
16451 this.success = null;
16452 }
16453 }
16454
16455 public void setFieldValue(_Fields field, Object value) {
16456 switch (field) {
16457 case SUCCESS:
16458 if (value == null) {
16459 unsetSuccess();
16460 } else {
16461 setSuccess((TGetDelegationTokenResp)value);
16462 }
16463 break;
16464
16465 }
16466 }
16467
16468 public Object getFieldValue(_Fields field) {
16469 switch (field) {
16470 case SUCCESS:
16471 return getSuccess();
16472
16473 }
16474 throw new IllegalStateException();
16475 }
16476
16477
16478 public boolean isSet(_Fields field) {
16479 if (field == null) {
16480 throw new IllegalArgumentException();
16481 }
16482
16483 switch (field) {
16484 case SUCCESS:
16485 return isSetSuccess();
16486 }
16487 throw new IllegalStateException();
16488 }
16489
16490 @Override
16491 public boolean equals(Object that) {
16492 if (that == null)
16493 return false;
16494 if (that instanceof GetDelegationToken_result)
16495 return this.equals((GetDelegationToken_result)that);
16496 return false;
16497 }
16498
16499 public boolean equals(GetDelegationToken_result that) {
16500 if (that == null)
16501 return false;
16502
16503 boolean this_present_success = true && this.isSetSuccess();
16504 boolean that_present_success = true && that.isSetSuccess();
16505 if (this_present_success || that_present_success) {
16506 if (!(this_present_success && that_present_success))
16507 return false;
16508 if (!this.success.equals(that.success))
16509 return false;
16510 }
16511
16512 return true;
16513 }
16514
16515 @Override
16516 public int hashCode() {
16517 List<Object> list = new ArrayList<Object>();
16518
16519 boolean present_success = true && (isSetSuccess());
16520 list.add(present_success);
16521 if (present_success)
16522 list.add(success);
16523
16524 return list.hashCode();
16525 }
16526
16527 @Override
16528 public int compareTo(GetDelegationToken_result other) {
16529 if (!getClass().equals(other.getClass())) {
16530 return getClass().getName().compareTo(other.getClass().getName());
16531 }
16532
16533 int lastComparison = 0;
16534
16535 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
16536 if (lastComparison != 0) {
16537 return lastComparison;
16538 }
16539 if (isSetSuccess()) {
16540 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
16541 if (lastComparison != 0) {
16542 return lastComparison;
16543 }
16544 }
16545 return 0;
16546 }
16547
16548 public _Fields fieldForId(int fieldId) {
16549 return _Fields.findByThriftId(fieldId);
16550 }
16551
16552 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16553 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16554 }
16555
16556 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16557 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16558 }
16559
16560 @Override
16561 public String toString() {
16562 StringBuilder sb = new StringBuilder("GetDelegationToken_result(");
16563 boolean first = true;
16564
16565 sb.append("success:");
16566 if (this.success == null) {
16567 sb.append("null");
16568 } else {
16569 sb.append(this.success);
16570 }
16571 first = false;
16572 sb.append(")");
16573 return sb.toString();
16574 }
16575
16576 public void validate() throws org.apache.thrift.TException {
16577
16578
16579 if (success != null) {
16580 success.validate();
16581 }
16582 }
16583
16584 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16585 try {
16586 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16587 } catch (org.apache.thrift.TException te) {
16588 throw new java.io.IOException(te);
16589 }
16590 }
16591
16592 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16593 try {
16594 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16595 } catch (org.apache.thrift.TException te) {
16596 throw new java.io.IOException(te);
16597 }
16598 }
16599
16600 private static class GetDelegationToken_resultStandardSchemeFactory implements SchemeFactory {
16601 public GetDelegationToken_resultStandardScheme getScheme() {
16602 return new GetDelegationToken_resultStandardScheme();
16603 }
16604 }
16605
16606 private static class GetDelegationToken_resultStandardScheme extends StandardScheme<GetDelegationToken_result> {
16607
16608 public void read(org.apache.thrift.protocol.TProtocol iprot, GetDelegationToken_result struct) throws org.apache.thrift.TException {
16609 org.apache.thrift.protocol.TField schemeField;
16610 iprot.readStructBegin();
16611 while (true)
16612 {
16613 schemeField = iprot.readFieldBegin();
16614 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16615 break;
16616 }
16617 switch (schemeField.id) {
16618 case 0:
16619 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
16620 struct.success = new TGetDelegationTokenResp();
16621 struct.success.read(iprot);
16622 struct.setSuccessIsSet(true);
16623 } else {
16624 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16625 }
16626 break;
16627 default:
16628 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16629 }
16630 iprot.readFieldEnd();
16631 }
16632 iprot.readStructEnd();
16633 struct.validate();
16634 }
16635
16636 public void write(org.apache.thrift.protocol.TProtocol oprot, GetDelegationToken_result struct) throws org.apache.thrift.TException {
16637 struct.validate();
16638
16639 oprot.writeStructBegin(STRUCT_DESC);
16640 if (struct.success != null) {
16641 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16642 struct.success.write(oprot);
16643 oprot.writeFieldEnd();
16644 }
16645 oprot.writeFieldStop();
16646 oprot.writeStructEnd();
16647 }
16648
16649 }
16650
16651 private static class GetDelegationToken_resultTupleSchemeFactory implements SchemeFactory {
16652 public GetDelegationToken_resultTupleScheme getScheme() {
16653 return new GetDelegationToken_resultTupleScheme();
16654 }
16655 }
16656
16657 private static class GetDelegationToken_resultTupleScheme extends TupleScheme<GetDelegationToken_result> {
16658
16659 @Override
16660 public void write(org.apache.thrift.protocol.TProtocol prot, GetDelegationToken_result struct) throws org.apache.thrift.TException {
16661 TTupleProtocol oprot = (TTupleProtocol) prot;
16662 BitSet optionals = new BitSet();
16663 if (struct.isSetSuccess()) {
16664 optionals.set(0);
16665 }
16666 oprot.writeBitSet(optionals, 1);
16667 if (struct.isSetSuccess()) {
16668 struct.success.write(oprot);
16669 }
16670 }
16671
16672 @Override
16673 public void read(org.apache.thrift.protocol.TProtocol prot, GetDelegationToken_result struct) throws org.apache.thrift.TException {
16674 TTupleProtocol iprot = (TTupleProtocol) prot;
16675 BitSet incoming = iprot.readBitSet(1);
16676 if (incoming.get(0)) {
16677 struct.success = new TGetDelegationTokenResp();
16678 struct.success.read(iprot);
16679 struct.setSuccessIsSet(true);
16680 }
16681 }
16682 }
16683
16684 }
16685
16686 public static class CancelDelegationToken_args implements org.apache.thrift.TBase<CancelDelegationToken_args, CancelDelegationToken_args._Fields>, java.io.Serializable, Cloneable, Comparable<CancelDelegationToken_args> {
16687 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CancelDelegationToken_args");
16688
16689 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);
16690
16691 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16692 static {
16693 schemes.put(StandardScheme.class, new CancelDelegationToken_argsStandardSchemeFactory());
16694 schemes.put(TupleScheme.class, new CancelDelegationToken_argsTupleSchemeFactory());
16695 }
16696
16697 private TCancelDelegationTokenReq req;
16698
16699
16700 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16701 REQ((short)1, "req");
16702
16703 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16704
16705 static {
16706 for (_Fields field : EnumSet.allOf(_Fields.class)) {
16707 byName.put(field.getFieldName(), field);
16708 }
16709 }
16710
16711
16712
16713
16714 public static _Fields findByThriftId(int fieldId) {
16715 switch(fieldId) {
16716 case 1:
16717 return REQ;
16718 default:
16719 return null;
16720 }
16721 }
16722
16723
16724
16725
16726
16727 public static _Fields findByThriftIdOrThrow(int fieldId) {
16728 _Fields fields = findByThriftId(fieldId);
16729 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16730 return fields;
16731 }
16732
16733
16734
16735
16736 public static _Fields findByName(String name) {
16737 return byName.get(name);
16738 }
16739
16740 private final short _thriftId;
16741 private final String _fieldName;
16742
16743 _Fields(short thriftId, String fieldName) {
16744 _thriftId = thriftId;
16745 _fieldName = fieldName;
16746 }
16747
16748 public short getThriftFieldId() {
16749 return _thriftId;
16750 }
16751
16752 public String getFieldName() {
16753 return _fieldName;
16754 }
16755 }
16756
16757
16758 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16759 static {
16760 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16761 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
16762 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCancelDelegationTokenReq.class)));
16763 metaDataMap = Collections.unmodifiableMap(tmpMap);
16764 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CancelDelegationToken_args.class, metaDataMap);
16765 }
16766
16767 public CancelDelegationToken_args() {
16768 }
16769
16770 public CancelDelegationToken_args(
16771 TCancelDelegationTokenReq req)
16772 {
16773 this();
16774 this.req = req;
16775 }
16776
16777
16778
16779
16780 public CancelDelegationToken_args(CancelDelegationToken_args other) {
16781 if (other.isSetReq()) {
16782 this.req = new TCancelDelegationTokenReq(other.req);
16783 }
16784 }
16785
16786 public CancelDelegationToken_args deepCopy() {
16787 return new CancelDelegationToken_args(this);
16788 }
16789
16790 @Override
16791 public void clear() {
16792 this.req = null;
16793 }
16794
16795 public TCancelDelegationTokenReq getReq() {
16796 return this.req;
16797 }
16798
16799 public void setReq(TCancelDelegationTokenReq req) {
16800 this.req = req;
16801 }
16802
16803 public void unsetReq() {
16804 this.req = null;
16805 }
16806
16807
16808 public boolean isSetReq() {
16809 return this.req != null;
16810 }
16811
16812 public void setReqIsSet(boolean value) {
16813 if (!value) {
16814 this.req = null;
16815 }
16816 }
16817
16818 public void setFieldValue(_Fields field, Object value) {
16819 switch (field) {
16820 case REQ:
16821 if (value == null) {
16822 unsetReq();
16823 } else {
16824 setReq((TCancelDelegationTokenReq)value);
16825 }
16826 break;
16827
16828 }
16829 }
16830
16831 public Object getFieldValue(_Fields field) {
16832 switch (field) {
16833 case REQ:
16834 return getReq();
16835
16836 }
16837 throw new IllegalStateException();
16838 }
16839
16840
16841 public boolean isSet(_Fields field) {
16842 if (field == null) {
16843 throw new IllegalArgumentException();
16844 }
16845
16846 switch (field) {
16847 case REQ:
16848 return isSetReq();
16849 }
16850 throw new IllegalStateException();
16851 }
16852
16853 @Override
16854 public boolean equals(Object that) {
16855 if (that == null)
16856 return false;
16857 if (that instanceof CancelDelegationToken_args)
16858 return this.equals((CancelDelegationToken_args)that);
16859 return false;
16860 }
16861
16862 public boolean equals(CancelDelegationToken_args that) {
16863 if (that == null)
16864 return false;
16865
16866 boolean this_present_req = true && this.isSetReq();
16867 boolean that_present_req = true && that.isSetReq();
16868 if (this_present_req || that_present_req) {
16869 if (!(this_present_req && that_present_req))
16870 return false;
16871 if (!this.req.equals(that.req))
16872 return false;
16873 }
16874
16875 return true;
16876 }
16877
16878 @Override
16879 public int hashCode() {
16880 List<Object> list = new ArrayList<Object>();
16881
16882 boolean present_req = true && (isSetReq());
16883 list.add(present_req);
16884 if (present_req)
16885 list.add(req);
16886
16887 return list.hashCode();
16888 }
16889
16890 @Override
16891 public int compareTo(CancelDelegationToken_args other) {
16892 if (!getClass().equals(other.getClass())) {
16893 return getClass().getName().compareTo(other.getClass().getName());
16894 }
16895
16896 int lastComparison = 0;
16897
16898 lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
16899 if (lastComparison != 0) {
16900 return lastComparison;
16901 }
16902 if (isSetReq()) {
16903 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
16904 if (lastComparison != 0) {
16905 return lastComparison;
16906 }
16907 }
16908 return 0;
16909 }
16910
16911 public _Fields fieldForId(int fieldId) {
16912 return _Fields.findByThriftId(fieldId);
16913 }
16914
16915 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16916 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16917 }
16918
16919 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16920 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16921 }
16922
16923 @Override
16924 public String toString() {
16925 StringBuilder sb = new StringBuilder("CancelDelegationToken_args(");
16926 boolean first = true;
16927
16928 sb.append("req:");
16929 if (this.req == null) {
16930 sb.append("null");
16931 } else {
16932 sb.append(this.req);
16933 }
16934 first = false;
16935 sb.append(")");
16936 return sb.toString();
16937 }
16938
16939 public void validate() throws org.apache.thrift.TException {
16940
16941
16942 if (req != null) {
16943 req.validate();
16944 }
16945 }
16946
16947 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16948 try {
16949 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16950 } catch (org.apache.thrift.TException te) {
16951 throw new java.io.IOException(te);
16952 }
16953 }
16954
16955 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16956 try {
16957 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16958 } catch (org.apache.thrift.TException te) {
16959 throw new java.io.IOException(te);
16960 }
16961 }
16962
16963 private static class CancelDelegationToken_argsStandardSchemeFactory implements SchemeFactory {
16964 public CancelDelegationToken_argsStandardScheme getScheme() {
16965 return new CancelDelegationToken_argsStandardScheme();
16966 }
16967 }
16968
16969 private static class CancelDelegationToken_argsStandardScheme extends StandardScheme<CancelDelegationToken_args> {
16970
16971 public void read(org.apache.thrift.protocol.TProtocol iprot, CancelDelegationToken_args struct) throws org.apache.thrift.TException {
16972 org.apache.thrift.protocol.TField schemeField;
16973 iprot.readStructBegin();
16974 while (true)
16975 {
16976 schemeField = iprot.readFieldBegin();
16977 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16978 break;
16979 }
16980 switch (schemeField.id) {
16981 case 1:
16982 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
16983 struct.req = new TCancelDelegationTokenReq();
16984 struct.req.read(iprot);
16985 struct.setReqIsSet(true);
16986 } else {
16987 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16988 }
16989 break;
16990 default:
16991 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16992 }
16993 iprot.readFieldEnd();
16994 }
16995 iprot.readStructEnd();
16996 struct.validate();
16997 }
16998
16999 public void write(org.apache.thrift.protocol.TProtocol oprot, CancelDelegationToken_args struct) throws org.apache.thrift.TException {
17000 struct.validate();
17001
17002 oprot.writeStructBegin(STRUCT_DESC);
17003 if (struct.req != null) {
17004 oprot.writeFieldBegin(REQ_FIELD_DESC);
17005 struct.req.write(oprot);
17006 oprot.writeFieldEnd();
17007 }
17008 oprot.writeFieldStop();
17009 oprot.writeStructEnd();
17010 }
17011
17012 }
17013
17014 private static class CancelDelegationToken_argsTupleSchemeFactory implements SchemeFactory {
17015 public CancelDelegationToken_argsTupleScheme getScheme() {
17016 return new CancelDelegationToken_argsTupleScheme();
17017 }
17018 }
17019
17020 private static class CancelDelegationToken_argsTupleScheme extends TupleScheme<CancelDelegationToken_args> {
17021
17022 @Override
17023 public void write(org.apache.thrift.protocol.TProtocol prot, CancelDelegationToken_args struct) throws org.apache.thrift.TException {
17024 TTupleProtocol oprot = (TTupleProtocol) prot;
17025 BitSet optionals = new BitSet();
17026 if (struct.isSetReq()) {
17027 optionals.set(0);
17028 }
17029 oprot.writeBitSet(optionals, 1);
17030 if (struct.isSetReq()) {
17031 struct.req.write(oprot);
17032 }
17033 }
17034
17035 @Override
17036 public void read(org.apache.thrift.protocol.TProtocol prot, CancelDelegationToken_args struct) throws org.apache.thrift.TException {
17037 TTupleProtocol iprot = (TTupleProtocol) prot;
17038 BitSet incoming = iprot.readBitSet(1);
17039 if (incoming.get(0)) {
17040 struct.req = new TCancelDelegationTokenReq();
17041 struct.req.read(iprot);
17042 struct.setReqIsSet(true);
17043 }
17044 }
17045 }
17046
17047 }
17048
17049 public static class CancelDelegationToken_result implements org.apache.thrift.TBase<CancelDelegationToken_result, CancelDelegationToken_result._Fields>, java.io.Serializable, Cloneable, Comparable<CancelDelegationToken_result> {
17050 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CancelDelegationToken_result");
17051
17052 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);
17053
17054 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17055 static {
17056 schemes.put(StandardScheme.class, new CancelDelegationToken_resultStandardSchemeFactory());
17057 schemes.put(TupleScheme.class, new CancelDelegationToken_resultTupleSchemeFactory());
17058 }
17059
17060 private TCancelDelegationTokenResp success;
17061
17062
17063 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17064 SUCCESS((short)0, "success");
17065
17066 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17067
17068 static {
17069 for (_Fields field : EnumSet.allOf(_Fields.class)) {
17070 byName.put(field.getFieldName(), field);
17071 }
17072 }
17073
17074
17075
17076
17077 public static _Fields findByThriftId(int fieldId) {
17078 switch(fieldId) {
17079 case 0:
17080 return SUCCESS;
17081 default:
17082 return null;
17083 }
17084 }
17085
17086
17087
17088
17089
17090 public static _Fields findByThriftIdOrThrow(int fieldId) {
17091 _Fields fields = findByThriftId(fieldId);
17092 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17093 return fields;
17094 }
17095
17096
17097
17098
17099 public static _Fields findByName(String name) {
17100 return byName.get(name);
17101 }
17102
17103 private final short _thriftId;
17104 private final String _fieldName;
17105
17106 _Fields(short thriftId, String fieldName) {
17107 _thriftId = thriftId;
17108 _fieldName = fieldName;
17109 }
17110
17111 public short getThriftFieldId() {
17112 return _thriftId;
17113 }
17114
17115 public String getFieldName() {
17116 return _fieldName;
17117 }
17118 }
17119
17120
17121 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17122 static {
17123 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17124 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
17125 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCancelDelegationTokenResp.class)));
17126 metaDataMap = Collections.unmodifiableMap(tmpMap);
17127 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CancelDelegationToken_result.class, metaDataMap);
17128 }
17129
17130 public CancelDelegationToken_result() {
17131 }
17132
17133 public CancelDelegationToken_result(
17134 TCancelDelegationTokenResp success)
17135 {
17136 this();
17137 this.success = success;
17138 }
17139
17140
17141
17142
17143 public CancelDelegationToken_result(CancelDelegationToken_result other) {
17144 if (other.isSetSuccess()) {
17145 this.success = new TCancelDelegationTokenResp(other.success);
17146 }
17147 }
17148
17149 public CancelDelegationToken_result deepCopy() {
17150 return new CancelDelegationToken_result(this);
17151 }
17152
17153 @Override
17154 public void clear() {
17155 this.success = null;
17156 }
17157
17158 public TCancelDelegationTokenResp getSuccess() {
17159 return this.success;
17160 }
17161
17162 public void setSuccess(TCancelDelegationTokenResp success) {
17163 this.success = success;
17164 }
17165
17166 public void unsetSuccess() {
17167 this.success = null;
17168 }
17169
17170
17171 public boolean isSetSuccess() {
17172 return this.success != null;
17173 }
17174
17175 public void setSuccessIsSet(boolean value) {
17176 if (!value) {
17177 this.success = null;
17178 }
17179 }
17180
17181 public void setFieldValue(_Fields field, Object value) {
17182 switch (field) {
17183 case SUCCESS:
17184 if (value == null) {
17185 unsetSuccess();
17186 } else {
17187 setSuccess((TCancelDelegationTokenResp)value);
17188 }
17189 break;
17190
17191 }
17192 }
17193
17194 public Object getFieldValue(_Fields field) {
17195 switch (field) {
17196 case SUCCESS:
17197 return getSuccess();
17198
17199 }
17200 throw new IllegalStateException();
17201 }
17202
17203
17204 public boolean isSet(_Fields field) {
17205 if (field == null) {
17206 throw new IllegalArgumentException();
17207 }
17208
17209 switch (field) {
17210 case SUCCESS:
17211 return isSetSuccess();
17212 }
17213 throw new IllegalStateException();
17214 }
17215
17216 @Override
17217 public boolean equals(Object that) {
17218 if (that == null)
17219 return false;
17220 if (that instanceof CancelDelegationToken_result)
17221 return this.equals((CancelDelegationToken_result)that);
17222 return false;
17223 }
17224
17225 public boolean equals(CancelDelegationToken_result that) {
17226 if (that == null)
17227 return false;
17228
17229 boolean this_present_success = true && this.isSetSuccess();
17230 boolean that_present_success = true && that.isSetSuccess();
17231 if (this_present_success || that_present_success) {
17232 if (!(this_present_success && that_present_success))
17233 return false;
17234 if (!this.success.equals(that.success))
17235 return false;
17236 }
17237
17238 return true;
17239 }
17240
17241 @Override
17242 public int hashCode() {
17243 List<Object> list = new ArrayList<Object>();
17244
17245 boolean present_success = true && (isSetSuccess());
17246 list.add(present_success);
17247 if (present_success)
17248 list.add(success);
17249
17250 return list.hashCode();
17251 }
17252
17253 @Override
17254 public int compareTo(CancelDelegationToken_result other) {
17255 if (!getClass().equals(other.getClass())) {
17256 return getClass().getName().compareTo(other.getClass().getName());
17257 }
17258
17259 int lastComparison = 0;
17260
17261 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
17262 if (lastComparison != 0) {
17263 return lastComparison;
17264 }
17265 if (isSetSuccess()) {
17266 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
17267 if (lastComparison != 0) {
17268 return lastComparison;
17269 }
17270 }
17271 return 0;
17272 }
17273
17274 public _Fields fieldForId(int fieldId) {
17275 return _Fields.findByThriftId(fieldId);
17276 }
17277
17278 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17279 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17280 }
17281
17282 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17283 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17284 }
17285
17286 @Override
17287 public String toString() {
17288 StringBuilder sb = new StringBuilder("CancelDelegationToken_result(");
17289 boolean first = true;
17290
17291 sb.append("success:");
17292 if (this.success == null) {
17293 sb.append("null");
17294 } else {
17295 sb.append(this.success);
17296 }
17297 first = false;
17298 sb.append(")");
17299 return sb.toString();
17300 }
17301
17302 public void validate() throws org.apache.thrift.TException {
17303
17304
17305 if (success != null) {
17306 success.validate();
17307 }
17308 }
17309
17310 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17311 try {
17312 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17313 } catch (org.apache.thrift.TException te) {
17314 throw new java.io.IOException(te);
17315 }
17316 }
17317
17318 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17319 try {
17320 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17321 } catch (org.apache.thrift.TException te) {
17322 throw new java.io.IOException(te);
17323 }
17324 }
17325
17326 private static class CancelDelegationToken_resultStandardSchemeFactory implements SchemeFactory {
17327 public CancelDelegationToken_resultStandardScheme getScheme() {
17328 return new CancelDelegationToken_resultStandardScheme();
17329 }
17330 }
17331
17332 private static class CancelDelegationToken_resultStandardScheme extends StandardScheme<CancelDelegationToken_result> {
17333
17334 public void read(org.apache.thrift.protocol.TProtocol iprot, CancelDelegationToken_result struct) throws org.apache.thrift.TException {
17335 org.apache.thrift.protocol.TField schemeField;
17336 iprot.readStructBegin();
17337 while (true)
17338 {
17339 schemeField = iprot.readFieldBegin();
17340 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17341 break;
17342 }
17343 switch (schemeField.id) {
17344 case 0:
17345 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
17346 struct.success = new TCancelDelegationTokenResp();
17347 struct.success.read(iprot);
17348 struct.setSuccessIsSet(true);
17349 } else {
17350 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17351 }
17352 break;
17353 default:
17354 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17355 }
17356 iprot.readFieldEnd();
17357 }
17358 iprot.readStructEnd();
17359 struct.validate();
17360 }
17361
17362 public void write(org.apache.thrift.protocol.TProtocol oprot, CancelDelegationToken_result struct) throws org.apache.thrift.TException {
17363 struct.validate();
17364
17365 oprot.writeStructBegin(STRUCT_DESC);
17366 if (struct.success != null) {
17367 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17368 struct.success.write(oprot);
17369 oprot.writeFieldEnd();
17370 }
17371 oprot.writeFieldStop();
17372 oprot.writeStructEnd();
17373 }
17374
17375 }
17376
17377 private static class CancelDelegationToken_resultTupleSchemeFactory implements SchemeFactory {
17378 public CancelDelegationToken_resultTupleScheme getScheme() {
17379 return new CancelDelegationToken_resultTupleScheme();
17380 }
17381 }
17382
17383 private static class CancelDelegationToken_resultTupleScheme extends TupleScheme<CancelDelegationToken_result> {
17384
17385 @Override
17386 public void write(org.apache.thrift.protocol.TProtocol prot, CancelDelegationToken_result struct) throws org.apache.thrift.TException {
17387 TTupleProtocol oprot = (TTupleProtocol) prot;
17388 BitSet optionals = new BitSet();
17389 if (struct.isSetSuccess()) {
17390 optionals.set(0);
17391 }
17392 oprot.writeBitSet(optionals, 1);
17393 if (struct.isSetSuccess()) {
17394 struct.success.write(oprot);
17395 }
17396 }
17397
17398 @Override
17399 public void read(org.apache.thrift.protocol.TProtocol prot, CancelDelegationToken_result struct) throws org.apache.thrift.TException {
17400 TTupleProtocol iprot = (TTupleProtocol) prot;
17401 BitSet incoming = iprot.readBitSet(1);
17402 if (incoming.get(0)) {
17403 struct.success = new TCancelDelegationTokenResp();
17404 struct.success.read(iprot);
17405 struct.setSuccessIsSet(true);
17406 }
17407 }
17408 }
17409
17410 }
17411
17412 public static class RenewDelegationToken_args implements org.apache.thrift.TBase<RenewDelegationToken_args, RenewDelegationToken_args._Fields>, java.io.Serializable, Cloneable, Comparable<RenewDelegationToken_args> {
17413 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RenewDelegationToken_args");
17414
17415 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);
17416
17417 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17418 static {
17419 schemes.put(StandardScheme.class, new RenewDelegationToken_argsStandardSchemeFactory());
17420 schemes.put(TupleScheme.class, new RenewDelegationToken_argsTupleSchemeFactory());
17421 }
17422
17423 private TRenewDelegationTokenReq req;
17424
17425
17426 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17427 REQ((short)1, "req");
17428
17429 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17430
17431 static {
17432 for (_Fields field : EnumSet.allOf(_Fields.class)) {
17433 byName.put(field.getFieldName(), field);
17434 }
17435 }
17436
17437
17438
17439
17440 public static _Fields findByThriftId(int fieldId) {
17441 switch(fieldId) {
17442 case 1:
17443 return REQ;
17444 default:
17445 return null;
17446 }
17447 }
17448
17449
17450
17451
17452
17453 public static _Fields findByThriftIdOrThrow(int fieldId) {
17454 _Fields fields = findByThriftId(fieldId);
17455 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17456 return fields;
17457 }
17458
17459
17460
17461
17462 public static _Fields findByName(String name) {
17463 return byName.get(name);
17464 }
17465
17466 private final short _thriftId;
17467 private final String _fieldName;
17468
17469 _Fields(short thriftId, String fieldName) {
17470 _thriftId = thriftId;
17471 _fieldName = fieldName;
17472 }
17473
17474 public short getThriftFieldId() {
17475 return _thriftId;
17476 }
17477
17478 public String getFieldName() {
17479 return _fieldName;
17480 }
17481 }
17482
17483
17484 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17485 static {
17486 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17487 tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT,
17488 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRenewDelegationTokenReq.class)));
17489 metaDataMap = Collections.unmodifiableMap(tmpMap);
17490 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RenewDelegationToken_args.class, metaDataMap);
17491 }
17492
17493 public RenewDelegationToken_args() {
17494 }
17495
17496 public RenewDelegationToken_args(
17497 TRenewDelegationTokenReq req)
17498 {
17499 this();
17500 this.req = req;
17501 }
17502
17503
17504
17505
17506 public RenewDelegationToken_args(RenewDelegationToken_args other) {
17507 if (other.isSetReq()) {
17508 this.req = new TRenewDelegationTokenReq(other.req);
17509 }
17510 }
17511
17512 public RenewDelegationToken_args deepCopy() {
17513 return new RenewDelegationToken_args(this);
17514 }
17515
17516 @Override
17517 public void clear() {
17518 this.req = null;
17519 }
17520
17521 public TRenewDelegationTokenReq getReq() {
17522 return this.req;
17523 }
17524
17525 public void setReq(TRenewDelegationTokenReq req) {
17526 this.req = req;
17527 }
17528
17529 public void unsetReq() {
17530 this.req = null;
17531 }
17532
17533
17534 public boolean isSetReq() {
17535 return this.req != null;
17536 }
17537
17538 public void setReqIsSet(boolean value) {
17539 if (!value) {
17540 this.req = null;
17541 }
17542 }
17543
17544 public void setFieldValue(_Fields field, Object value) {
17545 switch (field) {
17546 case REQ:
17547 if (value == null) {
17548 unsetReq();
17549 } else {
17550 setReq((TRenewDelegationTokenReq)value);
17551 }
17552 break;
17553
17554 }
17555 }
17556
17557 public Object getFieldValue(_Fields field) {
17558 switch (field) {
17559 case REQ:
17560 return getReq();
17561
17562 }
17563 throw new IllegalStateException();
17564 }
17565
17566
17567 public boolean isSet(_Fields field) {
17568 if (field == null) {
17569 throw new IllegalArgumentException();
17570 }
17571
17572 switch (field) {
17573 case REQ:
17574 return isSetReq();
17575 }
17576 throw new IllegalStateException();
17577 }
17578
17579 @Override
17580 public boolean equals(Object that) {
17581 if (that == null)
17582 return false;
17583 if (that instanceof RenewDelegationToken_args)
17584 return this.equals((RenewDelegationToken_args)that);
17585 return false;
17586 }
17587
17588 public boolean equals(RenewDelegationToken_args that) {
17589 if (that == null)
17590 return false;
17591
17592 boolean this_present_req = true && this.isSetReq();
17593 boolean that_present_req = true && that.isSetReq();
17594 if (this_present_req || that_present_req) {
17595 if (!(this_present_req && that_present_req))
17596 return false;
17597 if (!this.req.equals(that.req))
17598 return false;
17599 }
17600
17601 return true;
17602 }
17603
17604 @Override
17605 public int hashCode() {
17606 List<Object> list = new ArrayList<Object>();
17607
17608 boolean present_req = true && (isSetReq());
17609 list.add(present_req);
17610 if (present_req)
17611 list.add(req);
17612
17613 return list.hashCode();
17614 }
17615
17616 @Override
17617 public int compareTo(RenewDelegationToken_args other) {
17618 if (!getClass().equals(other.getClass())) {
17619 return getClass().getName().compareTo(other.getClass().getName());
17620 }
17621
17622 int lastComparison = 0;
17623
17624 lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq());
17625 if (lastComparison != 0) {
17626 return lastComparison;
17627 }
17628 if (isSetReq()) {
17629 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req);
17630 if (lastComparison != 0) {
17631 return lastComparison;
17632 }
17633 }
17634 return 0;
17635 }
17636
17637 public _Fields fieldForId(int fieldId) {
17638 return _Fields.findByThriftId(fieldId);
17639 }
17640
17641 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17642 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17643 }
17644
17645 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17646 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17647 }
17648
17649 @Override
17650 public String toString() {
17651 StringBuilder sb = new StringBuilder("RenewDelegationToken_args(");
17652 boolean first = true;
17653
17654 sb.append("req:");
17655 if (this.req == null) {
17656 sb.append("null");
17657 } else {
17658 sb.append(this.req);
17659 }
17660 first = false;
17661 sb.append(")");
17662 return sb.toString();
17663 }
17664
17665 public void validate() throws org.apache.thrift.TException {
17666
17667
17668 if (req != null) {
17669 req.validate();
17670 }
17671 }
17672
17673 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17674 try {
17675 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17676 } catch (org.apache.thrift.TException te) {
17677 throw new java.io.IOException(te);
17678 }
17679 }
17680
17681 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17682 try {
17683 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17684 } catch (org.apache.thrift.TException te) {
17685 throw new java.io.IOException(te);
17686 }
17687 }
17688
17689 private static class RenewDelegationToken_argsStandardSchemeFactory implements SchemeFactory {
17690 public RenewDelegationToken_argsStandardScheme getScheme() {
17691 return new RenewDelegationToken_argsStandardScheme();
17692 }
17693 }
17694
17695 private static class RenewDelegationToken_argsStandardScheme extends StandardScheme<RenewDelegationToken_args> {
17696
17697 public void read(org.apache.thrift.protocol.TProtocol iprot, RenewDelegationToken_args struct) throws org.apache.thrift.TException {
17698 org.apache.thrift.protocol.TField schemeField;
17699 iprot.readStructBegin();
17700 while (true)
17701 {
17702 schemeField = iprot.readFieldBegin();
17703 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17704 break;
17705 }
17706 switch (schemeField.id) {
17707 case 1:
17708 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
17709 struct.req = new TRenewDelegationTokenReq();
17710 struct.req.read(iprot);
17711 struct.setReqIsSet(true);
17712 } else {
17713 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17714 }
17715 break;
17716 default:
17717 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17718 }
17719 iprot.readFieldEnd();
17720 }
17721 iprot.readStructEnd();
17722 struct.validate();
17723 }
17724
17725 public void write(org.apache.thrift.protocol.TProtocol oprot, RenewDelegationToken_args struct) throws org.apache.thrift.TException {
17726 struct.validate();
17727
17728 oprot.writeStructBegin(STRUCT_DESC);
17729 if (struct.req != null) {
17730 oprot.writeFieldBegin(REQ_FIELD_DESC);
17731 struct.req.write(oprot);
17732 oprot.writeFieldEnd();
17733 }
17734 oprot.writeFieldStop();
17735 oprot.writeStructEnd();
17736 }
17737
17738 }
17739
17740 private static class RenewDelegationToken_argsTupleSchemeFactory implements SchemeFactory {
17741 public RenewDelegationToken_argsTupleScheme getScheme() {
17742 return new RenewDelegationToken_argsTupleScheme();
17743 }
17744 }
17745
17746 private static class RenewDelegationToken_argsTupleScheme extends TupleScheme<RenewDelegationToken_args> {
17747
17748 @Override
17749 public void write(org.apache.thrift.protocol.TProtocol prot, RenewDelegationToken_args struct) throws org.apache.thrift.TException {
17750 TTupleProtocol oprot = (TTupleProtocol) prot;
17751 BitSet optionals = new BitSet();
17752 if (struct.isSetReq()) {
17753 optionals.set(0);
17754 }
17755 oprot.writeBitSet(optionals, 1);
17756 if (struct.isSetReq()) {
17757 struct.req.write(oprot);
17758 }
17759 }
17760
17761 @Override
17762 public void read(org.apache.thrift.protocol.TProtocol prot, RenewDelegationToken_args struct) throws org.apache.thrift.TException {
17763 TTupleProtocol iprot = (TTupleProtocol) prot;
17764 BitSet incoming = iprot.readBitSet(1);
17765 if (incoming.get(0)) {
17766 struct.req = new TRenewDelegationTokenReq();
17767 struct.req.read(iprot);
17768 struct.setReqIsSet(true);
17769 }
17770 }
17771 }
17772
17773 }
17774
17775 public static class RenewDelegationToken_result implements org.apache.thrift.TBase<RenewDelegationToken_result, RenewDelegationToken_result._Fields>, java.io.Serializable, Cloneable, Comparable<RenewDelegationToken_result> {
17776 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RenewDelegationToken_result");
17777
17778 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);
17779
17780 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17781 static {
17782 schemes.put(StandardScheme.class, new RenewDelegationToken_resultStandardSchemeFactory());
17783 schemes.put(TupleScheme.class, new RenewDelegationToken_resultTupleSchemeFactory());
17784 }
17785
17786 private TRenewDelegationTokenResp success;
17787
17788
17789 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17790 SUCCESS((short)0, "success");
17791
17792 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17793
17794 static {
17795 for (_Fields field : EnumSet.allOf(_Fields.class)) {
17796 byName.put(field.getFieldName(), field);
17797 }
17798 }
17799
17800
17801
17802
17803 public static _Fields findByThriftId(int fieldId) {
17804 switch(fieldId) {
17805 case 0:
17806 return SUCCESS;
17807 default:
17808 return null;
17809 }
17810 }
17811
17812
17813
17814
17815
17816 public static _Fields findByThriftIdOrThrow(int fieldId) {
17817 _Fields fields = findByThriftId(fieldId);
17818 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17819 return fields;
17820 }
17821
17822
17823
17824
17825 public static _Fields findByName(String name) {
17826 return byName.get(name);
17827 }
17828
17829 private final short _thriftId;
17830 private final String _fieldName;
17831
17832 _Fields(short thriftId, String fieldName) {
17833 _thriftId = thriftId;
17834 _fieldName = fieldName;
17835 }
17836
17837 public short getThriftFieldId() {
17838 return _thriftId;
17839 }
17840
17841 public String getFieldName() {
17842 return _fieldName;
17843 }
17844 }
17845
17846
17847 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17848 static {
17849 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17850 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
17851 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRenewDelegationTokenResp.class)));
17852 metaDataMap = Collections.unmodifiableMap(tmpMap);
17853 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RenewDelegationToken_result.class, metaDataMap);
17854 }
17855
17856 public RenewDelegationToken_result() {
17857 }
17858
17859 public RenewDelegationToken_result(
17860 TRenewDelegationTokenResp success)
17861 {
17862 this();
17863 this.success = success;
17864 }
17865
17866
17867
17868
17869 public RenewDelegationToken_result(RenewDelegationToken_result other) {
17870 if (other.isSetSuccess()) {
17871 this.success = new TRenewDelegationTokenResp(other.success);
17872 }
17873 }
17874
17875 public RenewDelegationToken_result deepCopy() {
17876 return new RenewDelegationToken_result(this);
17877 }
17878
17879 @Override
17880 public void clear() {
17881 this.success = null;
17882 }
17883
17884 public TRenewDelegationTokenResp getSuccess() {
17885 return this.success;
17886 }
17887
17888 public void setSuccess(TRenewDelegationTokenResp success) {
17889 this.success = success;
17890 }
17891
17892 public void unsetSuccess() {
17893 this.success = null;
17894 }
17895
17896
17897 public boolean isSetSuccess() {
17898 return this.success != null;
17899 }
17900
17901 public void setSuccessIsSet(boolean value) {
17902 if (!value) {
17903 this.success = null;
17904 }
17905 }
17906
17907 public void setFieldValue(_Fields field, Object value) {
17908 switch (field) {
17909 case SUCCESS:
17910 if (value == null) {
17911 unsetSuccess();
17912 } else {
17913 setSuccess((TRenewDelegationTokenResp)value);
17914 }
17915 break;
17916
17917 }
17918 }
17919
17920 public Object getFieldValue(_Fields field) {
17921 switch (field) {
17922 case SUCCESS:
17923 return getSuccess();
17924
17925 }
17926 throw new IllegalStateException();
17927 }
17928
17929
17930 public boolean isSet(_Fields field) {
17931 if (field == null) {
17932 throw new IllegalArgumentException();
17933 }
17934
17935 switch (field) {
17936 case SUCCESS:
17937 return isSetSuccess();
17938 }
17939 throw new IllegalStateException();
17940 }
17941
17942 @Override
17943 public boolean equals(Object that) {
17944 if (that == null)
17945 return false;
17946 if (that instanceof RenewDelegationToken_result)
17947 return this.equals((RenewDelegationToken_result)that);
17948 return false;
17949 }
17950
17951 public boolean equals(RenewDelegationToken_result that) {
17952 if (that == null)
17953 return false;
17954
17955 boolean this_present_success = true && this.isSetSuccess();
17956 boolean that_present_success = true && that.isSetSuccess();
17957 if (this_present_success || that_present_success) {
17958 if (!(this_present_success && that_present_success))
17959 return false;
17960 if (!this.success.equals(that.success))
17961 return false;
17962 }
17963
17964 return true;
17965 }
17966
17967 @Override
17968 public int hashCode() {
17969 List<Object> list = new ArrayList<Object>();
17970
17971 boolean present_success = true && (isSetSuccess());
17972 list.add(present_success);
17973 if (present_success)
17974 list.add(success);
17975
17976 return list.hashCode();
17977 }
17978
17979 @Override
17980 public int compareTo(RenewDelegationToken_result other) {
17981 if (!getClass().equals(other.getClass())) {
17982 return getClass().getName().compareTo(other.getClass().getName());
17983 }
17984
17985 int lastComparison = 0;
17986
17987 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
17988 if (lastComparison != 0) {
17989 return lastComparison;
17990 }
17991 if (isSetSuccess()) {
17992 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
17993 if (lastComparison != 0) {
17994 return lastComparison;
17995 }
17996 }
17997 return 0;
17998 }
17999
18000 public _Fields fieldForId(int fieldId) {
18001 return _Fields.findByThriftId(fieldId);
18002 }
18003
18004 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18005 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
18006 }
18007
18008 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18009 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
18010 }
18011
18012 @Override
18013 public String toString() {
18014 StringBuilder sb = new StringBuilder("RenewDelegationToken_result(");
18015 boolean first = true;
18016
18017 sb.append("success:");
18018 if (this.success == null) {
18019 sb.append("null");
18020 } else {
18021 sb.append(this.success);
18022 }
18023 first = false;
18024 sb.append(")");
18025 return sb.toString();
18026 }
18027
18028 public void validate() throws org.apache.thrift.TException {
18029
18030
18031 if (success != null) {
18032 success.validate();
18033 }
18034 }
18035
18036 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18037 try {
18038 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18039 } catch (org.apache.thrift.TException te) {
18040 throw new java.io.IOException(te);
18041 }
18042 }
18043
18044 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18045 try {
18046 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18047 } catch (org.apache.thrift.TException te) {
18048 throw new java.io.IOException(te);
18049 }
18050 }
18051
18052 private static class RenewDelegationToken_resultStandardSchemeFactory implements SchemeFactory {
18053 public RenewDelegationToken_resultStandardScheme getScheme() {
18054 return new RenewDelegationToken_resultStandardScheme();
18055 }
18056 }
18057
18058 private static class RenewDelegationToken_resultStandardScheme extends StandardScheme<RenewDelegationToken_result> {
18059
18060 public void read(org.apache.thrift.protocol.TProtocol iprot, RenewDelegationToken_result struct) throws org.apache.thrift.TException {
18061 org.apache.thrift.protocol.TField schemeField;
18062 iprot.readStructBegin();
18063 while (true)
18064 {
18065 schemeField = iprot.readFieldBegin();
18066 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
18067 break;
18068 }
18069 switch (schemeField.id) {
18070 case 0:
18071 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
18072 struct.success = new TRenewDelegationTokenResp();
18073 struct.success.read(iprot);
18074 struct.setSuccessIsSet(true);
18075 } else {
18076 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18077 }
18078 break;
18079 default:
18080 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18081 }
18082 iprot.readFieldEnd();
18083 }
18084 iprot.readStructEnd();
18085 struct.validate();
18086 }
18087
18088 public void write(org.apache.thrift.protocol.TProtocol oprot, RenewDelegationToken_result struct) throws org.apache.thrift.TException {
18089 struct.validate();
18090
18091 oprot.writeStructBegin(STRUCT_DESC);
18092 if (struct.success != null) {
18093 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18094 struct.success.write(oprot);
18095 oprot.writeFieldEnd();
18096 }
18097 oprot.writeFieldStop();
18098 oprot.writeStructEnd();
18099 }
18100
18101 }
18102
18103 private static class RenewDelegationToken_resultTupleSchemeFactory implements SchemeFactory {
18104 public RenewDelegationToken_resultTupleScheme getScheme() {
18105 return new RenewDelegationToken_resultTupleScheme();
18106 }
18107 }
18108
18109 private static class RenewDelegationToken_resultTupleScheme extends TupleScheme<RenewDelegationToken_result> {
18110
18111 @Override
18112 public void write(org.apache.thrift.protocol.TProtocol prot, RenewDelegationToken_result struct) throws org.apache.thrift.TException {
18113 TTupleProtocol oprot = (TTupleProtocol) prot;
18114 BitSet optionals = new BitSet();
18115 if (struct.isSetSuccess()) {
18116 optionals.set(0);
18117 }
18118 oprot.writeBitSet(optionals, 1);
18119 if (struct.isSetSuccess()) {
18120 struct.success.write(oprot);
18121 }
18122 }
18123
18124 @Override
18125 public void read(org.apache.thrift.protocol.TProtocol prot, RenewDelegationToken_result struct) throws org.apache.thrift.TException {
18126 TTupleProtocol iprot = (TTupleProtocol) prot;
18127 BitSet incoming = iprot.readBitSet(1);
18128 if (incoming.get(0)) {
18129 struct.success = new TRenewDelegationTokenResp();
18130 struct.success.read(iprot);
18131 struct.setSuccessIsSet(true);
18132 }
18133 }
18134 }
18135
18136 }
18137
18138 }